@@ -468,13 +468,14 @@ hi link ocamlTypeSumAnnot ocamlTypeCatchAll
468
468
syn region ocamlTypeDefImpl
469
469
\ matchgroup= ocamlKeyword start = " \< of\> "
470
470
\ matchgroup= ocamlKeyChar start = " :="
471
+ \ matchgroup= ocamlKeyChar start = " +="
471
472
\ matchgroup= ocamlKeyChar start = " :"
472
473
\ 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\>\| )\| ]\| }\| ;\| ;;\| = \ )\@ ="
474
475
\ matchgroup= NONE end = " \(\< and\>\)\@ ="
475
476
\ contained skipwhite skipempty
476
477
\ contains= @o camlTypeExpr,ocamlTypePrivate,ocamlTypeDefDots,ocamlTypeRecordDecl,ocamlTypeSumDecl,ocamlComment,ocamlPpx
477
- \ nextgroup= ocamlTypeDefAnd
478
+ \ nextgroup= ocamlTypeDefImpl, ocamlTypeDefAnd
478
479
hi link ocamlTypeDefImpl ocamlTypeCatchAll
479
480
480
481
" Type context opened by “type” (type definition) and “constraint” (type
@@ -484,7 +485,7 @@ hi link ocamlTypeDefImpl ocamlTypeCatchAll
484
485
syn region ocamlTypeDef
485
486
\ matchgroup= ocamlKeyword start = " \< type\>\(\_ s\+\< nonrec\>\)\?\|\< constraint\> "
486
487
\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
487
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
488
+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
488
489
\ skipwhite skipempty
489
490
\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
490
491
@@ -495,15 +496,15 @@ syn region ocamlTypeDef
495
496
syn region ocamlTypeDefAnd
496
497
\ matchgroup= ocamlKeyword start = " \< and\> "
497
498
\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
498
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
499
+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
499
500
\ skipwhite skipempty
500
501
\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
501
502
502
503
" Exception definitions. Like ocamlTypeDef, jump into ocamlTypeDefImpl.
503
504
syn region ocamlExceptionDef
504
505
\ matchgroup= ocamlKeyword start = " \< exception\> "
505
506
\ matchgroup= ocamlConstructor end = " \u\(\w\| '\) *\> "
506
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar
507
+ \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx
507
508
\ skipwhite skipempty
508
509
\ nextgroup= ocamlTypeDefImpl
509
510
0 commit comments