Accept quoted regexp in the collection selection

This commit is contained in:
Felipe Zimmerle 2017-02-24 00:16:24 -03:00 committed by Felipe Zimmerle
parent 39761ce7b8
commit d6363607aa
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 3421 additions and 3397 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,6 +25,8 @@ typedef yy::seclang_parser p;
%}
%option noyywrap nounput batch debug noinput
ACTION_ACCURACY (?i:accuracy)
ACTION_ALLOW ((?i:allow:(?i:REQUEST|PHASE))|(?i:phase:'(?i:REQUEST|PHASE)')|(?i:allow))
ACTION_APPEND (?i:append)
@ -758,6 +760,8 @@ EQUALS_MINUS (?i:=\-)
<EXPECTING_VAR_PARAMETER>{
[\/]{DICT_ELEMENT_WITH_PIPE}[\/] { BEGIN(EXPECTING_VARIABLE); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 1, yyleng-2), *driver.loc.back()); }
['][\/]{DICT_ELEMENT_WITH_PIPE}[\/]['] { BEGIN(EXPECTING_VARIABLE); return p::make_DICT_ELEMENT_REGEXP(std::string(yytext, 2, yyleng-4), *driver.loc.back()); }
{DICT_ELEMENT} { BEGIN(EXPECTING_VARIABLE); return p::make_DICT_ELEMENT(yytext, *driver.loc.back()); }
[|] { }
. { BEGIN(LEXING_ERROR_ACTION); yyless(0); }