diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-01-05 15:23:28 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-01-19 21:23:11 +0100 |
commit | 6ada985ff3ea7a5b7a7d0654e0d3ae86a0183f7c (patch) | |
tree | 8a8782edd972989747ed8c27a1cd9a63d379050b /tests | |
parent | 2e12257803475740bbe3896a57f55676d254c561 (diff) | |
download | bison-6ada985ff3ea7a5b7a7d0654e0d3ae86a0183f7c.tar.gz |
parsers: issue tname with i18n markup
Some users would like to avoid having to "parse" the *.y file to find
the strings to translate. Let's issue the translatable tokens with N_
to allow "parsing" the generated parsers instead.
See
https://lists.gnu.org/archive/html/bison-patches/2019-01/msg00015.html
* src/output.c (prepare_symbol_names): Issue symbol_names with N_()
markup.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/calc.at | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/calc.at b/tests/calc.at index 7ed7f891..81b783c4 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -422,6 +422,7 @@ void location_print (FILE *o, Span s); ]AT_YYLEX_DECLARE_EXTERN[ ]AT_TOKEN_TRANSLATE_IF([[ +#define N_ static const char * _ (const char *cp) |