Skip to content

Commit 462b31d

Browse files
committed
updated hsType syntax matching in syntax.vim
- added matching for type signatures that end with ticks e.g. b' :: a -> a - fixes dag#92
1 parent f2afd55 commit 462b31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/vim2hs/haskell/syntax.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ endfunction " }}}
103103

104104
function! vim2hs#haskell#syntax#types() " {{{
105105
syntax match hsType
106-
\ "^\(\s*\)\%(default\s\+\)\?\%(\k\+\|([^[:alnum:]]\+)\)\_s*\(::\|\).*\%(\n\1\s.*\)*"
106+
\ "^\(\s*\)\%(default\s\+\)\?\%(\k\+\|([^[:alnum:]]\+)\)'*\_s*\(::\|\).*\%(\n\1\s.*\)*"
107107
\ contains=TOP,@Spell
108108

109109
highlight default link hsType Type

0 commit comments

Comments
 (0)