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:
parent
d0525871ed
commit
ebc3d64927
2 changed files with 32 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue