summaryrefslogtreecommitdiff
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
parenta31bd39a40c368889fb55201dbc999aa7fde445e (diff)
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 eb41fbb2..9a956e60 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