From 60e097a14afab5f1a03366837f05c507c5c5c9e0 Mon Sep 17 00:00:00 2001 From: Pieter Goetschalckx Date: Mon, 21 Sep 2020 02:10:48 +0200 Subject: [PATCH] Improve OCaml highlights --- queries/ocaml/highlights.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm index be26fa6a4..ba0541818 100644 --- a/queries/ocaml/highlights.scm +++ b/queries/ocaml/highlights.scm @@ -8,7 +8,7 @@ ( (type_constructor) @type.builtin - (#contains? @type.builtin "int" "char" "bytes" "string" "float" "bool" "unit" "exn" "array" "list" "option" "int32" "int64" "nativeint" "format6" "lazy_t") + (#match? @type.builtin "^(int|char|bytes|string|float|bool|unit|exn|array|list|option|int32|int64|nativeint|format6|lazy_t)$") ) [(class_name) (class_type_name) (type_constructor)] @type @@ -38,8 +38,6 @@ [(value_name) (type_variable)] @variable (value_pattern) @parameter -(parameter (label_name) @parameter) -(function_type (typed_label (label_name) @parameter)) ; Application ;------------