Skip to content

Commit 09cf05e

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 1fb629c commit 09cf05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/ocaml.vim

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

0 commit comments

Comments
 (0)