Skip to content

Commit

Permalink
Fix XAML syntax highlighting crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Apr 17, 2024
1 parent 60a79af commit 2ae95ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void SkipNamesAndPeriods() {
return new NameToken(first);
}
var last = GetNextToken();
if (last.Kind == TokenKind.CloseCurlyBrace) {
if (last.Kind == TokenKind.CloseCurlyBrace || last.Kind == TokenKind.Comma) {
Undo(last);
return new NameToken(first);
}
Expand Down

0 comments on commit 2ae95ff

Please sign in to comment.