Skip to content

Commit 3699da3

Browse files
committed
Highlight numbers that have numeric underscores
Signed-off-by: Michal Terepeta <[email protected]>
1 parent b1ac468 commit 3699da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/haskell.vim

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

0 commit comments

Comments
 (0)