mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
seclanguage: ignore lines starting with "#"
This commit is contained in:
parent
cff74e7cea
commit
b7fb65fe65
@ -211,6 +211,7 @@ FREE_TEXT_NEW_LINE [^\"|\n]+
|
||||
{VARIABLENOCOLON} { return yy::seclang_parser::make_VARIABLE(yytext, *driver.loc.back()); }
|
||||
[ \t]+ { return yy::seclang_parser::make_SPACE(*driver.loc.back()); }
|
||||
[\n]+ { driver.loc.back()->lines(yyleng); driver.loc.back()->step(); }
|
||||
#.* { /* comment, just ignore. */ }
|
||||
. { driver.error (*driver.loc.back(), "invalid character", yytext); }
|
||||
<<EOF>> {
|
||||
if (driver.ref.size() > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user