]> git.saurik.com Git - cycript.git/blobdiff - Scanner.lpp.in
Improve support for char values (from JS strings).
[cycript.git] / Scanner.lpp.in
index 58cfd7d6bacb74cee7626d42ad5e05991068fbe3..d9614df0b2c5c4e316d1cf123abfecb46e9dae0d 100644 (file)
@@ -606,8 +606,10 @@ XMLName {XMLNameStart}{XMLNamePart}*
     "$" R CYLexBufferUnit('$');
 
     {PlateCharacter}+ R CYLexBufferUnits(yytext, yyleng);
-    {PlateCharacter}*{LineTerminatorSequence} R E("invalid newline");
     {PlateCharacter}*{UnicodeScrap} R E("invalid character");
+
+    {PlateCharacter}*{LineTerminatorSequence} yylloc->end.Lines(); CYLexBufferUnits(yytext, yyleng);
+    \\{LineTerminatorSequence} yylloc->end.Lines();
 }
     /* }}} */
     /* Escapes {{{ */