Skip to content

Commit 5c29efa

Browse files
committed
Fixed dot not being highlighted; identifiers no longer can be qualified
1 parent 5ad8af1 commit 5c29efa

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
@@ -76,7 +76,7 @@ syn region haskellBrackets matchgroup=haskellDelimiter start="\[" end="]" contai
7676
syn region haskellBlock matchgroup=haskellDelimiter start="{" end="}" contains=TOP,@Spell
7777
syn keyword haskellInfix infix infixl infixr
7878
syn keyword haskellBottom undefined error
79-
syn match haskellOperators "\%([A-Z][a-zA-Z0-9_']*\.\)*[-!#$%&\*\+/<=>\?@\\^|~:]\+\|\<_\>\|\<\.\>"
79+
syn match haskellOperators "\%([A-Z][a-zA-Z0-9_']*\.\)*[-!#$%&\*\+/<=>\?@\\^|~:]\+\|\<_\>\|\k\@<!\.\|\.\k\@!"
8080
syn match haskellQuote "\<'\+" contained
8181
syn match haskellQuotedType "\%([A-Z][a-zA-Z0-9_']*\.\)*[A-Z][a-zA-Z0-9_']*\>" contained
8282
syn region haskellQuoted start="\<'\+" end="\>" skip="\."
@@ -95,7 +95,7 @@ syn match haskellLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$"
9595
syn match haskellBacktick "`[A-Za-z_][A-Za-z0-9_\.']*#\?`"
9696
syn region haskellString start=+"+ skip=+\\\\\|\\"+ end=+"+
9797
\ contains=@Spell
98-
syn match haskellIdentifier "\%([A-Z][a-zA-Z0-9_']*\.\)*[_a-z][a-zA-z0-9_']*" contained
98+
syn match haskellIdentifier "[_a-z][a-zA-Z0-9_']*" contained
9999
syn match haskellChar "\<'[^'\\]'\|'\\.'\|'\\u[0-9a-fA-F]\{4}'\>"
100100
syn match haskellType "\<[A-Z][a-zA-Z0-9_']*\%(\.[A-Z][a-zA-Z0-9_']*\)*\.\@!\>"
101101
syn region haskellBlockComment start="{-" end="-}"

0 commit comments

Comments
 (0)