aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorRobin Björklin <robin.bjorklin@gmail.com>2022-10-24 22:30:35 -0700
committerChristian Clason <christian.clason@uni-due.de>2022-10-25 12:19:50 +0200
commit3ad2aa578a4cf6947d38dab9bcc50d7d6041b796 (patch)
tree340ed780fa6524aa407635c37dcc7949dbde3808 /queries
parenthighlights(python): add "except*" (diff)
downloadnvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar.gz
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar.bz2
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar.lz
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar.xz
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.tar.zst
nvim-treesitter-3ad2aa578a4cf6947d38dab9bcc50d7d6041b796.zip
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.
Diffstat (limited to 'queries')
-rw-r--r--queries/ocaml/highlights.scm14
1 files changed, 7 insertions, 7 deletions
diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm
index 9a956e607..e66729314 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
;------------