Skip to content

Commit

Permalink
Initialise color to fix translation to C#
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Sep 21, 2024
1 parent d8cbef5 commit 172a1fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private static boolean parseListType(TokenIterator<TokenType> tokens) {
}

private static HighlightMatcher parseHighlightMatcher(TokenIterator<TokenType> tokens) {
Optional<String> color;
Optional<String> color = Optional.empty();

if (tokens.trySkip(TokenType.SYMBOL, "[")) {
tokens.skip(TokenType.IDENTIFIER, "color");
Expand Down

0 comments on commit 172a1fc

Please sign in to comment.