parseaut: fix handling of [ outside HOA
Fixes #509. * spot/parseaut/scanaut.ll: Reset ->str whenever a [ is read, so that we do not attempt to clear ->str while reading garbage. * NEWS: Mention the bug. * tests/core/parseaut.test: Test it.
This commit is contained in:
parent
b4279d3a12
commit
9222e9713b
3 changed files with 19 additions and 0 deletions
|
|
@ -454,6 +454,11 @@ identifier [[:alpha:]_][[:alnum:]_.-]*
|
|||
}
|
||||
}
|
||||
|
||||
"[" {
|
||||
yylval->str = nullptr;
|
||||
return *yytext;
|
||||
}
|
||||
|
||||
. return *yytext;
|
||||
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue