X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/e31ea4969cfa2a181b81fe24fd4e9a39b6def364..12e37ba3b9b322dd5b0483b45008e78e12aaa670:/Cycript.l.in diff --git a/Cycript.l.in b/Cycript.l.in index 27c4395..85db0e8 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -133,18 +133,21 @@ int H(char c) { %option bison-locations %option nodefault %option noyywrap -%option yylineno +%option noyylineno %option nounput %option nounistd %option 8bit %option backup %option batch -%option full %option never-interactive %option pointer %option reentrant %option stack +%option full +%option ecs +%option align + Escape \\[\\'"bfnrtv]|\\0|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\\n IdentifierStart [a-zA-Z$_] @@ -401,7 +404,7 @@ XMLName {XMLNameStart}{XMLNamePart}* (\.[0-9]+|(0|[1-9][0-9]*)(\.[0-9]*)?)([eE][+-]?[0-9]+)? L C I(number, Number(strtod(yytext, NULL)), tk::NumericLiteral, hi::Constant); (\.[0-9]+|(0|[1-9][0-9]*)(\.[0-9]*)?)[eE][+-]?{IdentifierPart}* L E("invalid exponent") -(\.?[0-9]|(0|[1-9][0-9]*)?\.){IdentifierPart}* L E("invalid number") +(\.?[0-9]|(0|[1-9][0-9]*)\.){IdentifierPart}* L E("invalid number") \"([^"\\\n]|{Escape})*\"|'([^'\\\n]|{Escape})*' L C { char *value(A char[yyleng]);