]> git.saurik.com Git - cycript.git/commitdiff
Location step should come before sliding position.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2015 13:18:38 +0000 (05:18 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 2 Nov 2015 13:18:38 +0000 (05:18 -0800)
Cycript.l.in

index d52a19b5c6864b29e180c822f653e88b64fb4078..417afe3ecd7624f081ef66f5d884ff96e5cf3d80 100644 (file)
@@ -80,9 +80,9 @@ typedef cy::parser::token tk;
             left = yyleng - (nl - yytext) - 1; \
             nl = reinterpret_cast<const char *>(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