mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
style: avoid gettextize warnings
* src/scan-gram.l, src/scan-skel.l: Help it see the start and end of "character literals".
This commit is contained in:
@@ -380,7 +380,7 @@ eqopt ({sp}=)?
|
|||||||
BEGIN SC_BRACKETED_ID;
|
BEGIN SC_BRACKETED_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
[^\[%A-Za-z0-9_<>{}\"\'*;|=/, \f\r\n\t\v]+|. {
|
[^\[%A-Za-z0-9_<>{}""''*;|=/, \f\r\n\t\v]+|. {
|
||||||
complain (loc, complaint, "%s: %s",
|
complain (loc, complaint, "%s: %s",
|
||||||
ngettext ("invalid character", "invalid characters", yyleng),
|
ngettext ("invalid character", "invalid characters", yyleng),
|
||||||
quote_mem (yytext, yyleng));
|
quote_mem (yytext, yyleng));
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ static void fail_for_invalid_at (char const *at);
|
|||||||
"@output(" at_init (&argc, argv, &at_ptr, &at_output);
|
"@output(" at_init (&argc, argv, &at_ptr, &at_output);
|
||||||
|
|
||||||
/* This pattern must not match more than the previous @ patterns. */
|
/* This pattern must not match more than the previous @ patterns. */
|
||||||
@[^@{}\'(\n]* fail_for_invalid_at (yytext);
|
@[^@{}''(\n]* fail_for_invalid_at (yytext);
|
||||||
\n out_lineno++; ECHO;
|
\n out_lineno++; ECHO;
|
||||||
[^@\n]+ ECHO;
|
[^@\n]+ ECHO;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user