Skip to content

Commit bed49ad

Browse files
n-osborneshym
andcommitted
Fix highlighting of module parameter
Disallow nested ocamlModParam. For some reason the ocamlModParam was opened twice, but closed only once. Co-authored-by: Samuel Hym <[email protected]>
1 parent 5d2b639 commit bed49ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/ocaml.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModPa
142142
" 2022-10: please document it?
143143
syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<_\|\u\(\w\|'\)*\>" contains=@ocamlAllErrs,@ocamlCommentLike skipwhite skipempty nextgroup=ocamlPreDef
144144
syn region ocamlPreDef start="."me=e-1 end="[a-z:=)]\@=" contained contains=@ocamlAllErrs,@ocamlCommentLike,ocamlModParam,ocamlGenMod,ocamlModTypeRestr nextgroup=ocamlModTypePre,ocamlModPreRHS
145-
syn region ocamlModParam start="(\*\@!" end=")" contained contains=ocamlGenMod,ocamlModParam,ocamlModParam1,ocamlSig,ocamlVal
145+
syn region ocamlModParam start="(\*\@!" end=")" contained contains=ocamlGenMod,ocamlModParam1,ocamlSig,ocamlVal
146146
syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty
147147
syn match ocamlGenMod "()" contained skipwhite skipempty
148148

0 commit comments

Comments
 (0)