X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/58afc6aaca119c6b7b9ac5d91e3c6ee28dbd6fda..c1d3e52e58e86c49f9d04e06ae8e0ece4b98250c:/Cycript.l.in diff --git a/Cycript.l.in b/Cycript.l.in index d52a19b..4878a25 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2014 Jay Freeman (saurik) + * Copyright (C) 2009-2015 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -80,9 +80,9 @@ typedef cy::parser::token tk; left = yyleng - (nl - yytext) - 1; \ nl = reinterpret_cast(memchr(nl + 1, '\n', left)); \ } while (nl != NULL); \ + yylloc->step(); \ yylloc->end.lines(lines); \ yylloc->end.columns(left); \ - yylloc->step(); \ more \ } else L \ } @@ -418,7 +418,7 @@ XMLName {XMLNameStart}{XMLNamePart}* I(string, String(value, local - value), tk::StringLiteral, hi::Constant); } -\r?\n|\r|\xe2\x80[\xa8\xa9] yylloc->end.lines(); yylloc->step(); N +\r?\n|\r|\xe2\x80[\xa8\xa9] yylloc->step(); yylloc->end.lines(); N [ \t] L