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

Highlighting Integer Literals #122

Open
ellxor opened this issue Oct 9, 2024 · 2 comments
Open

Highlighting Integer Literals #122

ellxor opened this issue Oct 9, 2024 · 2 comments

Comments

@ellxor
Copy link
Contributor

ellxor commented Oct 9, 2024

D-mode does not seem to support:

  • hexadecimal or binary literals
  • literal suffixes (u/U/L)
  • digit separators (e.g. 1_000_000)

Full spec for integer literals found here: https://dlang.org/spec/lex.html#integerliteral

@ellxor
Copy link
Contributor Author

ellxor commented Oct 9, 2024

Similarly, for floating point literals:

  • hexadecimal floats
  • float suffixes (f/F/L)
  • digit separators
  • exponential literals (e.g 1.0e-9)

spec: https://dlang.org/spec/lex.html#floatliteral

@jibal
Copy link

jibal commented Dec 25, 2024

@ellxor Support how? c-mode and derived modes like d-mode don't do anything special with numeric literals.

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

No branches or pull requests

2 participants