Skip to content

Commit 261f31e

Browse files
committed
Fix psuedo-c semicolon highlighting in ternary operations
1 parent 4072c10 commit 261f31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/c/pseudoc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ bool PseudoCFunction::TryEmitSimplifiedTernary(
528528

529529
// Emit the false-source expression
530530
GetExprText(falseAssign, emitter, settings, TernaryOperatorPrecedence);
531-
emitter.Append(KeywordToken, ";");
531+
emitter.Append(TextToken, ";");
532532

533533
// If the ternary expression is too complex (i.e. too many tokens), revert back.
534534
if (tokens.size() - originalTokenCount > emitter.GetMaxTernarySimplificationTokens())

0 commit comments

Comments
 (0)