neovimhaskell / haskell-vim

Custom Haskell Vimscripts
BSD 2-Clause "Simplified" License
681 stars 84 forks source link

Highlight numbers that have underscores #114

Closed michalt closed 3 years ago

michalt commented 5 years ago

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.