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

fix: tweak java constant parser #749

Open
wants to merge 1 commit into
base: dev3
Choose a base branch
from

Conversation

Jydett
Copy link

@Jydett Jydett commented Dec 8, 2023

What's fixed

Java regex for constant styling expanded to support rarer declaration (hexa, octal, binary, scientific notation, underscore in number...)

Before the fix, only the constant on the right side were styled as java constant :
before

 - recognize octal notation
 - type indicator (l, L, F, f, D, d)
 - scientific notation (exponent)
 - some test to validate the regex
@Jydett Jydett force-pushed the fix/better_java_constant_regex branch from 9654b0e to de17271 Compare December 11, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants