aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Ruiz Safont <unduthegun@gmail.com>2022-04-29 14:14:56 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-05-06 10:31:12 +0200
commit09efcdb0498b60f698aa1e879e4ad07d84d1c1a5 (patch)
tree5e111b63480b1dd02af97bfe0f9e4d33b040d78e
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar.gz
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar.bz2
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar.lz
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar.xz
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.tar.zst
nvim-treesitter-09efcdb0498b60f698aa1e879e4ad07d84d1c1a5.zip
highlights(ocaml): highlight units as such
Units were shadowed by the punctuation highlights in all situations. Restrict the context where parentheses are highlighted as punctuation so () can be highlighted as constants. Signed-off-by: Pau Ruiz Safont <unduthegun@gmail.com>
-rw-r--r--queries/ocaml/highlights.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm
index eb41fbb26..9a956e607 100644
--- a/queries/ocaml/highlights.scm
+++ b/queries/ocaml/highlights.scm
@@ -71,7 +71,8 @@
; Constants
;----------
-(unit) @constant.builtin
+; Don't let normal parens take priority over this
+((unit) @constant.builtin (#set! "priority" 105))
(boolean) @boolean