mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
d: fix syntax error on SymbolKind.toString method
Reported by ledaniel2. <https://github.com/akimd/bison/issues/88> * data/skeletons/d.m4: Here.
This commit is contained in:
committed by
Akim Demaille
parent
be4528096e
commit
0faf371992
@@ -284,8 +284,7 @@ m4_define([b4_declare_symbol_enum],
|
||||
that double-quoting is unnecessary unless the string contains an
|
||||
apostrophe, a comma, or backslash (other than backslash-backslash).
|
||||
YYSTR is taken from yytname. */
|
||||
final void toString(W)(W sink) const
|
||||
if (isOutputRange!(W, char))
|
||||
final void toString(void delegate(const(char)[]) sink) const
|
||||
{
|
||||
immutable string[] yy_sname = @{
|
||||
]b4_symbol_names[
|
||||
@@ -296,7 +295,7 @@ m4_define([b4_declare_symbol_enum],
|
||||
]b4_translatable[
|
||||
@};]])[
|
||||
|
||||
put(sink, yy_sname[yycode_]);
|
||||
sink.formattedWrite!"%s"(yy_sname[yycode_]);
|
||||
}
|
||||
}
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user