neverparse: accept more unparenthesised guards

Also accept guards of the form (a) || !(b) or (a) && !(b).

* src/neverparse/neverclaimscan.ll: Adjust.
* src/tgbatest/neverclaimread.test: Add a test case.
This commit is contained in:
Alexandre Duret-Lutz 2013-07-26 12:02:04 +02:00
parent e598175fca
commit 027836f431
2 changed files with 4 additions and 7 deletions

View file

@ -75,7 +75,7 @@ eol \n|\r|\n\r|\r\n
yylval->str->append(yytext, yyleng);
}
/* if we match ")&&(" or ")||(", stay in <in_par> mode */
")"[ \t]*("&&"|"||")[ \t]*"(" {
")"[ \t]*("&&"|"||")[ \t!]*"(" {
yylval->str->append(yytext, yyleng);
}
")" {