diff options
| author | Pau Ruiz Safont <unduthegun@gmail.com> | 2022-04-29 14:14:56 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-05-06 10:31:12 +0200 |
| commit | 09efcdb0498b60f698aa1e879e4ad07d84d1c1a5 (patch) | |
| tree | 5e111b63480b1dd02af97bfe0f9e4d33b040d78e | |
| parent | a31bd39a40c368889fb55201dbc999aa7fde445e (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.scm | 3 |
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 |
