summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-12-29 07:35:58 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-01-23 08:26:28 +0100
commit2cc361387c9790b387d205f5d862f493c148e424 (patch)
tree2799f200e1098334f17fa61cc30c2c2cd631b61c /tests
parente6d1289f4ac88a3ac488654544b1c2e3bc567a01 (diff)
downloadbison-2cc361387c9790b387d205f5d862f493c148e424.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/input.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/input.at b/tests/input.at
index c03b282f..0d115e3a 100644
--- a/tests/input.at
+++ b/tests/input.at
@@ -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;
| ^
]])