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

Bug in the JSON lexer #1091

Open
noughtmare opened this issue Jun 14, 2018 · 2 comments
Open

Bug in the JSON lexer #1091

noughtmare opened this issue Jun 14, 2018 · 2 comments

Comments

@noughtmare
Copy link
Member

Zeroes are not recognized correctly when they are not in pairs:

0

The zero in the example above will not be highlighted as a number.

00

The two zeroes will be recognized again.

000

The last zero in a sequence of three zeroes will not be recognized again.

@alexpeits
Copy link

While on this topic, should the lexer be compliant with this specification (meaning no oct/hex numbers and support for negative and scientific numbers)? Happy to submit a patch for that.

@noughtmare
Copy link
Member Author

I think that that compliance with that specification is a good target.

(meaning no oct/hex numbers and support for negative and scientific numbers)

Yeah, it is strange that it was implemented this way in the first place.

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

No branches or pull requests

2 participants