Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON - Minor syntax highlighing issue #256

Closed
krishnanmms opened this issue Feb 12, 2018 · 1 comment
Closed

JSON - Minor syntax highlighing issue #256

krishnanmms opened this issue Feb 12, 2018 · 1 comment
Assignees
Labels

Comments

@krishnanmms
Copy link

Syntax highlighting of JSON has minor glitch when there is a space between "key" and the colon. The attached image has lines both with a space between quote and colon and without. If there is space the key (field name) is not in the right color

"name": "Westley NORRIS", => No space, works fine
"gender" : "male", => contains space - key is not color correctly

json-issue

@bobbylight bobbylight self-assigned this Nov 25, 2018
@bobbylight bobbylight added the bug label Nov 25, 2018
@loiclefevre
Copy link

Seems having this at line 280 of JsonTokenMaker.flex:

{Key}/([ \t\f]*): { addToken(Token.VARIABLE); }

instead of

{Key}/: { addToken(Token.VARIABLE); }

solves the problem but produces a warning by JFlex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants