Skip to content

Commit

Permalink
Fix a XAML decompiler crash caused by a unorthodox markup extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Apr 15, 2023
1 parent 9118993 commit 4522338
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ enum MarkupExtensionKind {
return new NameToken(first);
}
var last = GetNextToken();
if (last.Kind == TokenKind.CloseCurlyBrace) {
Undo(last);
return new NameToken(first);
}
if (last.Kind != TokenKind.Name) {
Undo(last);
return null;
Expand Down

0 comments on commit 4522338

Please sign in to comment.