File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ syn region haskellBrackets matchgroup=haskellDelimiter start="\[" end="]" contai
71
71
syn region haskellBlock matchgroup =haskellDelimiter start =" {" end =" }" contains =TOP,@Spell
72
72
syn keyword haskellInfix infix infixl infixr
73
73
syn keyword haskellBottom undefined error
74
- syn match haskellOperators " [- !#$%&\*\+ /<=>\? @\\ ^|~:. ]\+\|\< _\> "
74
+ syn match haskellOperators " \% ([A-Z][a-zA-Z0-9_']* \.\) *[- !#$%&\*\+ /<=>\? @\\ ^|~:]\+\|\< _\>\|\<\. \>"
75
75
syn match haskellQuote " \< '\+ " contained
76
- syn match haskellQuotedType " [A-Z][a-zA-Z0-9_']*\> " contained
77
- syn region haskellQuoted start =" \< '\+ " end =" \> "
76
+ syn match haskellQuotedType " \% ([A-Z][a-zA-Z0-9_']* \.\) * [A-Z][a-zA-Z0-9_']*\> " contained
77
+ syn region haskellQuoted start =" \< '\+ " end =" \> " skip = " \. "
78
78
\ contains=
79
79
\ haskellType,
80
80
\ haskellQuote,
@@ -90,9 +90,9 @@ syn match haskellLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$"
90
90
syn match haskellBacktick " `[A-Za-z_][A-Za-z0-9_\. ']*#\? `"
91
91
syn region haskellString start =+ "+ skip =+ \\\\\|\\ "+ end =+ "+
92
92
\ contains= @S pell
93
- syn match haskellIdentifier " [_a-z][a-zA-z0-9_']*" contained
93
+ syn match haskellIdentifier " \% ([A-Z][a-zA-Z_']* \.\) * [_a-z][a-zA-z0-9_']*" contained
94
94
syn match haskellChar " \< '[^'\\ ]'\| '\\ .'\| '\\ u[0-9a-fA-F]\{ 4}'\> "
95
- syn match haskellType " \< [A-Z][a-zA-Z0-9_']*\> "
95
+ syn match haskellType " \< [A-Z][a-zA-Z0-9_']*\% ( \. [A-Z][a-zA-Z0-9_']* \) * \.\@ ! \ >"
96
96
syn region haskellBlockComment start =" {-" end =" -}"
97
97
\ contains=
98
98
\ haskellBlockComment,
You can’t perform that action at this time.
0 commit comments