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

Java lexer thinks braces are operators #987

Closed
Anteru opened this issue Aug 31, 2019 · 1 comment
Closed

Java lexer thinks braces are operators #987

Anteru opened this issue Aug 31, 2019 · 1 comment
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(Original issue 1283 created by None on 2016-09-05T00:48:42.768716+00:00)

Maybe I'm doing something wrong (or have a terrible understanding of Java), but I can reproduce this on the official demo page: http://pygments.org/demo/5926990/

Switch to the "monokai" theme and all the braces get colored red.

@Anteru Anteru added T-bug type: a bug X-imported imported from Bitbucket S-major severity: major labels Aug 31, 2019
@Anteru
Copy link
Collaborator Author

Anteru commented Aug 31, 2019

(Original comment by miikkas on 2016-09-08T08:49:14.761537+00:00)

Can confirm. There seem to be other characters too, that should be lexed as Punctuation:

  • semicolons,
  • dots between names in packages and
  • the colon at the end of label.

What about commas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket
Projects
None yet
Development

No branches or pull requests

1 participant