From f89aaa110b06e787daed57c1ec65af1b7a0ab005 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 2 Nov 2015 05:18:38 -0800 Subject: [PATCH] Location step should come before sliding position. --- Cycript.l.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(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 -- 2.47.2