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>
This commit is contained in:
Pau Ruiz Safont 2022-04-29 14:14:56 +01:00 committed by Stephan Seitz
parent a31bd39a40
commit 09efcdb049

View file

@ -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