Skip to content

Commit f35d022

Browse files
authored
Merge pull request neovimhaskell#114 from michalt/numeric-underscores
Highlight numbers that have underscores
2 parents d876a1c + 3699da3 commit f35d022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/haskell.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ if get(g:, 'haskell_enable_static_pointers', 0)
6868
syn keyword haskellStatic static
6969
endif
7070
syn keyword haskellConditional if then else
71-
syn match haskellNumber "\<[0-9]\+\>\|\<0[xX][0-9a-fA-F]\+\>\|\<0[oO][0-7]\+\>\|\<0[bB][10]\+\>"
72-
syn match haskellFloat "\<[0-9]\+\.[0-9]\+\([eE][-+]\=[0-9]\+\)\=\>"
71+
syn match haskellNumber "\<[0-9]\+\>\|\<[0-9_]\+\>\|\<0[xX][0-9a-fA-F_]\+\>\|\<0[oO][0-7_]\+\>\|\<0[bB][10_]\+\>"
72+
syn match haskellFloat "\<[0-9]\+\.[0-9_]\+\([eE][-+]\=[0-9_]\+\)\=\>"
7373
syn match haskellSeparator "[,;]"
7474
syn region haskellParens matchgroup=haskellDelimiter start="(" end=")" contains=TOP,haskellTypeSig,@Spell
7575
syn region haskellBrackets matchgroup=haskellDelimiter start="\[" end="]" contains=TOP,haskellTypeSig,@Spell

0 commit comments

Comments
 (0)