Skip to content

Commit

Permalink
Fix #256: JSON: Allow spaces between key and colon, still highlight k…
Browse files Browse the repository at this point in the history
…ey string with proper color
  • Loading branch information
bobbylight committed Mar 23, 2019
1 parent c1be723 commit 568fe8d
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ URL = (((https?|f(tp|ile))"://"|"www.")({URLCharacters}{URLEndCharacter})?)
<YYINITIAL> {

"null" { addToken(Token.RESERVED_WORD); }
{Key}/: { addToken(Token.VARIABLE); }
{Key}/([ \t\f]*): { addToken(Token.VARIABLE); }
{BooleanLiteral} { addToken(Token.LITERAL_BOOLEAN); }
{Identifier} { addToken(Token.IDENTIFIER); }
{Whitespace} { addToken(Token.WHITESPACE); }
Expand Down
Loading

0 comments on commit 568fe8d

Please sign in to comment.