From: Jay Freeman (saurik) Date: Thu, 7 Jun 2012 20:43:05 +0000 (-0700) Subject: Fold the E lexer helper macro into RegExp lexeme. X-Git-Tag: v0.9.456~7 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/9205202e041367331ebcf456694be29b6017dad3?ds=sidebyside Fold the E lexer helper macro into RegExp lexeme. --- diff --git a/Cycript.l.in b/Cycript.l.in index 953264b..afdcb1f 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -46,8 +46,6 @@ typedef cy::parser::token tk; #define C T yyextra->state_ = CYClear; #define R T yyextra->state_ = CYRestricted; -#define E L C I(literal, RegEx(Y), tk::RegularExpressionLiteral); - #define N \ if (yyextra->state_ != CYNewLine) { \ if (yyextra->state_ != CYRestricted) \ @@ -147,7 +145,7 @@ XMLName {XMLNameStart}{XMLNamePart}* %% -\/{RegularExpressionBody}\/{RegularExpressionFlags} E +\/{RegularExpressionBody}\/{RegularExpressionFlags} L C I(literal, RegEx(Y), tk::RegularExpressionLiteral); \/\/[^\n]* L