Skip to content

Commit 052e9b9

Browse files
committed
syntax: fix module _ =
1 parent 4c907ef commit 052e9b9

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
@@ -129,7 +129,7 @@ syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModPa
129129

130130
" "module" - somewhat complicated stuff ;-)
131131
" 2022-10: please document it?
132-
syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef
132+
syn region ocamlModule matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<_\|\u\(\w\|'\)*\>" contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlPreDef
133133
syn region ocamlPreDef start="."me=e-1 end="[a-z:=)]\@=" contained contains=@ocamlAllErrs,ocamlComment,ocamlModParam,ocamlGenMod,ocamlModTypeRestr nextgroup=ocamlModTypePre,ocamlModPreRHS
134134
syn region ocamlModParam start="(\*\@!" end=")" contained contains=ocamlGenMod,ocamlModParam,ocamlModParam1,ocamlSig,ocamlVal
135135
syn match ocamlModParam1 "\<\u\(\w\|'\)*\>" contained skipwhite skipempty

0 commit comments

Comments
 (0)