]> git.saurik.com Git - cycript.git/blobdiff - Scanner.lpp.in
Use syntax-directed lexing to remove LexSetRegExp.
[cycript.git] / Scanner.lpp.in
index 399feb828e273a44cdb3d45f360a29e4ed4cfa62..c2aa6e4dc22a5e7e3857413e4189bc8023ed7499 100644 (file)
@@ -279,7 +279,7 @@ XMLName {XMLNameStart}{XMLNamePart}*
 
     /* RegEx {{{ */
 <RegularExpression>{
-    \/{UnicodePart}* R CYLexBufferUnits(yytext, yyleng); CYLexBufferEnd(literal, RegEx, tk::RegularExpressionLiteral, hi::Constant);
+    \/{UnicodePart}* R CYLexBufferUnits(yytext, yyleng); CYLexBufferEnd(literal, RegEx, tk::RegularExpressionLiteral_, hi::Constant);
     \/{UnicodePart}*{UnicodeError} R E("invalid character");
 
     {RegExCharacter}+ R CYLexBufferUnits(yytext, yyleng);