Generalize patch from 2011-02-03 by allowing guards like "! (...)".

* src/neverparse/neverclaimscan.ll: Allow space between ! and (.
* src/tgbatest/neverclaimread.test: Add space for testing.
This commit is contained in:
Alexandre Duret-Lutz 2011-02-07 00:06:18 +01:00
parent 0568eaf0ee
commit 8b06edbc3b
3 changed files with 9 additions and 2 deletions

View file

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