@@ -475,13 +475,14 @@ hi link ocamlTypeSumAnnot ocamlTypeCatchAll
475
475
syn region ocamlTypeDefImpl
476
476
\ matchgroup= ocamlKeyword start = " \< of\> "
477
477
\ matchgroup= ocamlKeyChar start = " :="
478
+ \ matchgroup= ocamlKeyChar start = " +="
478
479
\ matchgroup= ocamlKeyChar start = " :"
479
480
\ matchgroup= ocamlKeyChar start = " ="
480
- \ matchgroup= NONE end = " \(\< type\>\|\< exception\>\|\< val\>\|\< module\>\|\< class\>\|\< method\>\|\< constraint\>\|\< inherit\>\|\< object\>\|\< struct\>\|\< open\>\|\< include\>\|\< let\>\|\< external\>\|\< in\>\|\< end\>\| )\| ]\| }\| ;\| ;;\)\@ ="
481
+ \ matchgroup= NONE end = " \(\< type\>\|\< exception\>\|\< val\>\|\< module\>\|\< class\>\|\< method\>\|\< constraint\>\|\< inherit\>\|\< object\>\|\< struct\>\|\< open\>\|\< include\>\|\< let\>\|\< external\>\|\< in\>\|\< end\>\| )\| ]\| }\| ;\| ;;\| = \ )\@ ="
481
482
\ matchgroup= NONE end = " \(\< and\>\)\@ ="
482
483
\ contained skipwhite skipempty
483
484
\ contains= @o camlTypeExpr,ocamlTypePrivate,ocamlTypeDefDots,ocamlTypeRecordDecl,ocamlTypeSumDecl,ocamlComment,ocamlPpx
484
- \ nextgroup= ocamlTypeDefAnd
485
+ \ nextgroup= ocamlTypeDefImpl, ocamlTypeDefAnd
485
486
hi link ocamlTypeDefImpl ocamlTypeCatchAll
486
487
487
488
" Type context opened by “type” (type definition) and “constraint” (type
@@ -491,7 +492,7 @@ hi link ocamlTypeDefImpl ocamlTypeCatchAll
491
492
syn region ocamlTypeDef
492
493
\ matchgroup= ocamlKeyword start = " \< type\>\(\_ s\+\< nonrec\>\)\?\|\< constraint\> "
493
494
\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
494
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
495
+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
495
496
\ skipwhite skipempty
496
497
\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
497
498
@@ -502,15 +503,15 @@ syn region ocamlTypeDef
502
503
syn region ocamlTypeDefAnd
503
504
\ matchgroup= ocamlKeyword start = " \< and\> "
504
505
\ matchgroup= ocamlTypeIdentifier end = " \<\l\(\w\| '\) *\> "
505
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlWhite
506
+ \ contains= @o camlTypeExpr, @ o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx ,ocamlWhite
506
507
\ skipwhite skipempty
507
508
\ nextgroup= ocamlTypeDefImpl,ocamlTypeDefAnd
508
509
509
510
" Exception definitions. Like ocamlTypeDef, jump into ocamlTypeDefImpl.
510
511
syn region ocamlExceptionDef
511
512
\ matchgroup= ocamlKeyword start = " \< exception\> "
512
513
\ matchgroup= ocamlConstructor end = " \u\(\w\| '\) *\> "
513
- \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar
514
+ \ contains= @o camlAllErrs,ocamlComment,ocamlTypeVariance,ocamlTypeVar,ocamlPpx
514
515
\ skipwhite skipempty
515
516
\ nextgroup= ocamlTypeDefImpl
516
517
0 commit comments