Fix a use of appendToken to appendIdentifier in translate-c

This commit is contained in:
Henrik Laxhuber 2020-07-26 18:29:45 +02:00 committed by Veikka Tuominen
parent 442025481c
commit 9f6401c692

View File

@ -4514,7 +4514,7 @@ const CtrlFlow = struct {
const ltoken = try appendToken(c, kw, kw_text);
const label_token = if (label) |l| blk: {
_ = try appendToken(c, .Colon, ":");
break :blk try appendToken(c, .Identifier, l);
break :blk try appendIdentifier(c, l);
} else null;
return CtrlFlow{
.c = c,