Allow neverclaim guards of the form !(x)' or ! (x)'.

* src/neverparse/neverclaimscan.ll: Make the space between `!' and
`(' optional.  This fixes the patch from 2011-02-07 that made this
space mandatory...
* src/tgbatest/neverclaimread.test: Augment test case.
This commit is contained in:
Alexandre Duret-Lutz 2011-11-08 11:59:45 +01:00
parent 2422b63a36
commit 9130d6f58c
3 changed files with 12 additions and 3 deletions

View file

@ -56,7 +56,7 @@ eol \n|\r|\n\r|\r\n
"goto" return token::GOTO;
"false"|"0" return token::FALSE;
("!"[ \t]+)?"(".*")"|"true"|"1" {
("!"[ \t]*)?"(".*")"|"true"|"1" {
yylval->str = new std::string(yytext, yyleng);
return token::FORMULA;
}