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

Possible inconsistency in highlighting numbers #654

Open
philiprbrenan opened this issue Sep 12, 2015 · 1 comment
Open

Possible inconsistency in highlighting numbers #654

philiprbrenan opened this issue Sep 12, 2015 · 1 comment

Comments

@philiprbrenan
Copy link

1_000_000

In Java/Ubuntu 14/Geany (built on or after 2015-07-13) the literal number one million comes out differently depending on whether it contains the allowed separator _ or not. Possibly this should be regarded as an inconsistency as the literal still has the same value where-as the change in color might lead one to believe that the value of the literal was different in each
case.

@elextr
Copy link
Member

elextr commented Sep 12, 2015

The scintilla lexer is identifying the former correctly as a number, but the latter as a user literal, (add %Y to the status bar to see) probably getting confused with C++ user literals since they both use the same lexer and c++ user literals use _ in numbers.

Scintilla is a separate project that we use, you should report the bug there as well.

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