mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
diagnostics: translate bison's own tokens
As a test case, support translations in Bison itself. * src/parse-gram.y: Mark the translatable tokens. While at it, use clearer names. * tests/input.at: Adjust expectations.
This commit is contained in:
@@ -287,10 +287,10 @@ input.y:5.8-15: error: syntax error, unexpected string, expecting character lite
|
||||
input.y:6.8-13: error: syntax error, unexpected string, expecting character literal or identifier or <tag>
|
||||
6 | %token "tok1" 1;
|
||||
| ^~~~~~
|
||||
input.y:7.14: error: syntax error, unexpected integer
|
||||
input.y:7.14: error: syntax error, unexpected integer literal
|
||||
7 | %left "tok2" 2;
|
||||
| ^
|
||||
input.y:8.14: error: syntax error, unexpected integer
|
||||
input.y:8.14: error: syntax error, unexpected integer literal
|
||||
8 | %type "tok3" 3;
|
||||
| ^
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user