From: Jay Freeman (saurik) <saurik@saurik.com>
Date: Mon, 2 Nov 2015 13:18:38 +0000 (-0800)
Subject: Location step should come before sliding position.
X-Git-Tag: v0.9.504~23
X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/f89aaa110b06e787daed57c1ec65af1b7a0ab005

Location step should come before sliding position.
---

diff --git a/Cycript.l.in b/Cycript.l.in
index d52a19b..417afe3 100644
--- a/Cycript.l.in
+++ b/Cycript.l.in
@@ -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