@@ -468,13 +468,14 @@ hi link ocamlTypeSumAnnot ocamlTypeCatchAll
468468syn region ocamlTypeDefImpl
469469\ matchgroup= ocamlKeyword start = " \< of\> "
470470\ matchgroup= ocamlKeyChar start = " :="
471+ \ matchgroup= ocamlKeyChar start = " +="
471472\ matchgroup= ocamlKeyChar start = " :"
472473\ matchgroup= ocamlKeyChar start = " ="
473- \ matchgroup= NONE end = " \(\< type\>\|\< exception\>\|\< val\>\|\< module\>\|\< class\>\|\< method\>\|\< constraint\>\|\< inherit\>\|\< object\>\|\< struct\>\|\< open\>\|\< include\>\|\< let\>\|\< external\>\|\< in\>\|\< end\>\| )\| ]\| }\| ;\| ;;\)\@ ="
474+ \ matchgroup= NONE end = " \(\< type\>\|\< exception\>\|\< val\>\|\< module\>\|\< class\>\|\< method\>\|\< constraint\>\|\< inherit\>\|\< object\>\|\< struct\>\|\< open\>\|\< include\>\|\< let\>\|\< external\>\|\< in\>\|\< end\>\| )\| ]\| }\| ;\| ;;\| = \ )\@ ="
474475\ matchgroup= NONE end = " \(\< and\>\)\@ ="
475476\ contained skipwhite skipempty
476477\ contains= @o camlTypeExpr,ocamlTypePrivate,ocamlTypeDefDots,ocamlTypeRecordDecl,ocamlTypeSumDecl,ocamlComment,ocamlPpx
477- \ nextgroup= ocamlTypeDefAnd
478+ \ nextgroup= ocamlTypeDefImpl, ocamlTypeDefAnd
478479hi link ocamlTypeDefImpl ocamlTypeCatchAll
479480
480481" Type context opened by “type” (type definition) and “constraint” (type
@@ -484,7 +485,7 @@ hi link ocamlTypeDefImpl ocamlTypeCatchAll
484485syn region ocamlTypeDef
485486\ matchgroup= ocamlKeyword start = " \< type\>\(\_ s\+\< nonrec\>\)\?\|\< constraint\> "
486487\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
487- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
488+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
488489\ skipwhite skipempty
489490\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
490491
@@ -495,15 +496,15 @@ syn region ocamlTypeDef
495496syn region ocamlTypeDefAnd
496497\ matchgroup= ocamlKeyword start = " \< and\> "
497498\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
498- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
499+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
499500\ skipwhite skipempty
500501\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
501502
502503" Exception definitions. Like ocamlTypeDef, jump into ocamlTypeDefImpl.
503504syn region ocamlExceptionDef
504505\ matchgroup= ocamlKeyword start = " \< exception\> "
505506\ matchgroup= ocamlConstructor end = " \u\(\w\| '\) *\> "
506- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar
507+ \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx
507508\ skipwhite skipempty
508509\ nextgroup= ocamlTypeDefImpl
509510
0 commit comments