mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +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()); }
|
{VARIABLENOCOLON} { return yy::seclang_parser::make_VARIABLE(yytext, *driver.loc.back()); }
|
||||||
[ \t]+ { return yy::seclang_parser::make_SPACE(*driver.loc.back()); }
|
[ \t]+ { return yy::seclang_parser::make_SPACE(*driver.loc.back()); }
|
||||||
[\n]+ { driver.loc.back()->lines(yyleng); driver.loc.back()->step(); }
|
[\n]+ { driver.loc.back()->lines(yyleng); driver.loc.back()->step(); }
|
||||||
|
#.* { /* comment, just ignore. */ }
|
||||||
. { driver.error (*driver.loc.back(), "invalid character", yytext); }
|
. { driver.error (*driver.loc.back(), "invalid character", yytext); }
|
||||||
<<EOF>> {
|
<<EOF>> {
|
||||||
if (driver.ref.size() > 0) {
|
if (driver.ref.size() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user