From 817e8f75a8d1324b2d28c0958534a742656d8350 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Wed, 5 Jul 2023 11:18:19 +0200 Subject: [PATCH] Fix type identifiers being recognized in lets It was missing from the ocamlTypeContained group. --- syntax/ocaml.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/ocaml.vim b/syntax/ocaml.vim index 88d347d..b91b7f7 100644 --- a/syntax/ocaml.vim +++ b/syntax/ocaml.vim @@ -48,6 +48,7 @@ syn match ocamlScript "^#\<\(quit\|labels\|warnings\|warn_error\|directory\|r " lowercase identifier - the standard way to match syn match ocamlLCIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ syn match ocamlTypeIdentifier /\<\(\l\|_\)\(\w\|'\)*\>/ +syn cluster ocamlTypeContained add=ocamlTypeIdentifier " Errors syn match ocamlBraceErr "}" @@ -511,7 +512,6 @@ syn region ocamlExceptionDef \ skipwhite skipempty \ nextgroup=ocamlTypeDefImpl -hi link ocamlTypeIdentifier ocamlLCIdentifier syn cluster ocamlTypeContained add=ocamlTypePrivate syn keyword ocamlTypePrivate contained private hi link ocamlTypePrivate ocamlKeyword