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:
parent
e598175fca
commit
027836f431
2 changed files with 4 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
")" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue