Minor fix to token processing of dbfwfilter
The yylineno was manually simulated even though it can be automated by enabling the yylineno option.
This commit is contained in:
@ -22,7 +22,7 @@
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
%option reentrant noyywrap bison-bridge prefix="dbfw_yy"
|
%option reentrant noyywrap bison-bridge prefix="dbfw_yy"
|
||||||
/* %option header-file="lex.yy.h" */
|
%option yylineno
|
||||||
|
|
||||||
RULENAME [-_[:alnum:][:punct:]]+
|
RULENAME [-_[:alnum:][:punct:]]+
|
||||||
STR [_[:alnum:]]+
|
STR [_[:alnum:]]+
|
||||||
@ -40,7 +40,7 @@ BTSTR `[^`]*`
|
|||||||
USTR [%-_[:alnum:][:punct:]]+
|
USTR [%-_[:alnum:][:punct:]]+
|
||||||
|
|
||||||
%%
|
%%
|
||||||
"\n"+ dbfw_yyset_lineno(dbfw_yyget_lineno(yyscanner) + dbfw_yyget_leng(yyscanner), yyscanner);return '\n';
|
"\n"+ return '\n';
|
||||||
{COMMENT} return FWTOK_COMMENT;
|
{COMMENT} return FWTOK_COMMENT;
|
||||||
deny|allow return FWTOK_DENY; /** This should be removed at some point */
|
deny|allow return FWTOK_DENY; /** This should be removed at some point */
|
||||||
rule return FWTOK_RULE;
|
rule return FWTOK_RULE;
|
||||||
|
|||||||
Reference in New Issue
Block a user