From 3ad2aa578a4cf6947d38dab9bcc50d7d6041b796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= Date: Mon, 24 Oct 2022 22:30:35 -0700 Subject: fix(ocaml): change query order for Variables By moving the Variables query higher it gives the @variable capture group a lower precedence when highlighting. This makes it possible to distinguish between @function and @variable. --- queries/ocaml/highlights.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'queries') diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm index 9a956e60..e6672931 100644 --- a/queries/ocaml/highlights.scm +++ b/queries/ocaml/highlights.scm @@ -18,6 +18,13 @@ [(constructor_name) (tag)] @constructor +; Variables +;---------- + +[(value_name) (type_variable)] @variable + +(value_pattern) @parameter + ; Functions ;---------- @@ -35,13 +42,6 @@ (method_name) @method -; Variables -;---------- - -[(value_name) (type_variable)] @variable - -(value_pattern) @parameter - ; Application ;------------ -- cgit v1.2.3