Skip to content

Commit

Permalink
Fix type identifiers being recognized in lets
Browse files Browse the repository at this point in the history
It was missing from the ocamlTypeContained group.
  • Loading branch information
Julow committed Jul 5, 2023
1 parent 0871d88 commit 817e8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/ocaml.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 "}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 817e8f7

Please sign in to comment.