X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/66fb559f7b79a23d2821d9c0723dbf4b87abb3fb..7f0a9220982e73064c2aac5d4da3c3fc9705a027:/Cycript.l diff --git a/Cycript.l b/Cycript.l index 115e1de..c2142bd 100644 --- a/Cycript.l +++ b/Cycript.l @@ -114,9 +114,13 @@ RegularExpressionStart_ {RegularExpressionBody}{RegularExpressionEnd_} yylloc->end.lines(lines); yylloc->end.columns(left); yylloc->step(); + + N } else L } +"@" L C return tk::At; + "&" L C return tk::Ampersand; "&&" L C return tk::AmpersandAmpersand; "&=" L C return tk::AmpersandEqual; @@ -289,7 +293,7 @@ RegularExpressionStart_ {RegularExpressionBody}{RegularExpressionEnd_} return tk::StringLiteral; } -\n yylloc->end.lines(); yylloc->step(); N +\r?\n yylloc->end.lines(); yylloc->step(); N [ \t] L <> L yyterminate();