Don't allow strings or chars to span newlines

git-svn-id: https://smali.googlecode.com/svn/trunk@747 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2010-06-13 20:33:23 +00:00
parent b9f0c569ea
commit 35bfbe82f0

View File

@ -270,6 +270,7 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
setStringOrCharError("Invalid escape sequence " + yytext());
}
[\r\n] { return invalidStringOrChar("Unterminated string literal"); }
<<EOF>> { return invalidStringOrChar("Unterminated string literal"); }
}
@ -306,6 +307,7 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
setStringOrCharError("Invalid escape sequence " + yytext());
}
[\r\n] { return invalidStringOrChar("Unterminated character literal"); }
<<EOF>> { return invalidStringOrChar("Unterminated character literal"); }
}