Skip to content

Commit 845ba2f

Browse files
committed
record updates should not highlight recordfields
1 parent a090266 commit 845ba2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax/haskell.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ syn match haskellChar "\s\+'[^'\\]'\|'\\.'\|'\\u[0-9a-fA-F]\{4}'\s\+"
5050
syn match haskellTopLevelDecl "^\s*\([_a-z][a-zA-z0-9_]*'*,\?\s*\)\+::" contains=haskellIdentifier,haskellOperators,haskellDelimiter
5151
syn match haskellRecordField "[_a-z][a-zA-z0-9_]*'*\s*::" contains=haskellIdentifier,haskellOperators contained
5252
syn region haskellRecordBlock start="[A-Z][a-zA-Z0-9]*'*\s\+{" end="}" keepend
53-
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellRecordField
53+
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellRecordField,haskellString,haskellChar,haskellFloat,haskellNumber,haskellBacktick,haskellLineComment, haskellBlockComment,haskellBottom,haskellConditional,haskellStatement
54+
syn region haskellRecordUpdate start="[a-z][a-zA-Z0-9]*'*\s\+{" end="}" keepend
55+
\ contains=haskellType,haskellDelimiter,haskellOperators,haskellDot,haskellString,haskellChar,haskellFloat,haskellNumber,haskellBacktick,haskellLineComment, haskellBlockComment,haskellBottom,haskellConditional,haskellStatement
5456

5557
if exists('g:haskell_enable_typeroles')
5658
syn keyword haskellTypeRoles type role phantom representational nominal contained

0 commit comments

Comments
 (0)