From 8c191568adc897a5ac3ec251e17a48a2c9deb65e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 23 Nov 2015 03:39:12 -0800 Subject: [PATCH] Configure a better trade-off in lexer compression. --- Cycript.l.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cycript.l.in b/Cycript.l.in index 62fbc65..85db0e8 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -139,12 +139,15 @@ int H(char c) { %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]); -- 2.47.2