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:
Akim Demaille
2020-04-28 18:35:09 +02:00
parent 4c641c5189
commit 1b5cf80e32
2 changed files with 2 additions and 2 deletions

View File

@@ -380,7 +380,7 @@ eqopt ({sp}=)?
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",
ngettext ("invalid character", "invalid characters", yyleng),
quote_mem (yytext, yyleng));

View File

@@ -84,7 +84,7 @@ static void fail_for_invalid_at (char const *at);
"@output(" at_init (&argc, argv, &at_ptr, &at_output);
/* 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]+ ECHO;