neverclaim: fix reporting of parse_boolean() errors

* src/hoaparse/hoaparse.yy: Correctly adjust the
location of error messagges.
* src/tgbatest/neverclaimread.test: Add test case.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-04 08:36:59 +01:00
parent d0525871ed
commit ebc3d64927
2 changed files with 32 additions and 2 deletions

View file

@ -849,9 +849,9 @@ nc-formula: nc-formula-or-ident
// Adjust the diagnostic to the current position.
spot::location here = @1;
here.end.line = here.begin.line + j.first.end.line - 1;
here.end.column = here.begin.column + j.first.end.column;
here.end.column = here.begin.column + j.first.end.column - 1;
here.begin.line += j.first.begin.line - 1;
here.begin.column += j.first.begin.column;
here.begin.column += j.first.begin.column - 1;
error_list.emplace_back(here, j.second);
}
bdd cond = bddfalse;