record updates should not highlight recordfields
This commit is contained in:
parent
a090266fe9
commit
845ba2f711
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ syn match haskellChar "\s\+'[^'\\]'\|'\\.'\|'\\u[0-9a-fA-F]\{4}'\s\+"
|
||||||
syn match haskellTopLevelDecl "^\s*\([_a-z][a-zA-z0-9_]*'*,\?\s*\)\+::" contains=haskellIdentifier,haskellOperators,haskellDelimiter
|
syn match haskellTopLevelDecl "^\s*\([_a-z][a-zA-z0-9_]*'*,\?\s*\)\+::" contains=haskellIdentifier,haskellOperators,haskellDelimiter
|
||||||
syn match haskellRecordField "[_a-z][a-zA-z0-9_]*'*\s*::" contains=haskellIdentifier,haskellOperators contained
|
syn match haskellRecordField "[_a-z][a-zA-z0-9_]*'*\s*::" contains=haskellIdentifier,haskellOperators contained
|
||||||
syn region haskellRecordBlock start="[A-Z][a-zA-Z0-9]*'*\s\+{" end="}" keepend
|
syn region haskellRecordBlock start="[A-Z][a-zA-Z0-9]*'*\s\+{" end="}" keepend
|
||||||
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellRecordField
|
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellRecordField,haskellString,haskellChar,haskellFloat,haskellNumber,haskellBacktick,haskellLineComment, haskellBlockComment,haskellBottom,haskellConditional,haskellStatement
|
||||||
|
syn region haskellRecordUpdate start="[a-z][a-zA-Z0-9]*'*\s\+{" end="}" keepend
|
||||||
|
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellString,haskellChar,haskellFloat,haskellNumber,haskellBacktick,haskellLineComment, haskellBlockComment,haskellBottom,haskellConditional,haskellStatement
|
||||||
|
|
||||||
if exists('g:haskell_enable_typeroles')
|
if exists('g:haskell_enable_typeroles')
|
||||||
syn keyword haskellTypeRoles type role phantom representational nominal contained
|
syn keyword haskellTypeRoles type role phantom representational nominal contained
|
||||||
|
|
Loading…
Reference in a new issue