Fix the line counter while showing an parser error

This commit is contained in:
Felipe Zimmerle 2016-06-23 15:40:19 -03:00
parent e5583c24bb
commit cf2ffe7e11
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -452,7 +452,7 @@ CONFIG_DIR_UNICODE_MAP_FILE (?i:SecUnicodeMapFile)
.*[^\\] { BEGIN(INITIAL); driver.loc.back()->lines(1); driver.loc.back()->step(); }
}
[ \t]*[\n]+ { driver.loc.back()->lines(yyleng); driver.loc.back()->step(); }
[ \t]*[\n] { driver.loc.back()->lines(1); driver.loc.back()->step(); }
#[ \t]*SecRule[^\\]*\\\n[ \t]* { driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
#[ \t]*SecRule[^\\]*\\\r\n[ \t]* { driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }
#[ \t]*SecAction[^\\]*\\\n[ \t]* { driver.loc.back()->lines(1); driver.loc.back()->step(); BEGIN(COMMENT); }