Skip to content

Highlight numbers that have underscores #114

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

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

michalt
Copy link
Contributor

@michalt michalt commented Mar 24, 2019

With LANGUAGE NumericUnderscores it's now possible to use _ in numbers, e.g., 10_000, see https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0009-numeric-underscores.rst

This adds a very simple highlighting support for this, but it's not as strict as the spec and does allow some invalid cases to be highlighted -- let me know if you'd prefer this to be stricter.

@raichoo raichoo merged commit f35d022 into neovimhaskell:master Jan 19, 2021
@goolord goolord mentioned this pull request Jan 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants