From 0df1803056ba5da4544ae16f09674f435ea35e8c Mon Sep 17 00:00:00 2001 From: Pau Ruiz Safont Date: Sat, 27 Feb 2021 20:11:32 +0000 Subject: highlights(ocaml): change order or captures This because the later captures have more priority in neovim, not less like in upstream. This fixes highlighting highlighting for let* and +, for example. --- queries/ocaml/highlights.scm | 48 ++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/queries/ocaml/highlights.scm b/queries/ocaml/highlights.scm index 7ae9194c..419d7ac7 100644 --- a/queries/ocaml/highlights.scm +++ b/queries/ocaml/highlights.scm @@ -85,30 +85,6 @@ (pretty_printing_indication) ] @punctuation.special -; Operators -;---------- - -(match_expression (match_operator) @keyword) - -(value_definition [(let_operator) (and_operator)] @keyword) - -[ - (prefix_operator) - (infix_operator) - (indexing_operator) - (let_operator) - (and_operator) - (match_operator) -] @operator - -(prefix_operator "!" @operator) - -(infix_operator ["&" "+" "-" "=" ">" "|" "%"] @operator) - -(signed_number ["+" "-"] @operator) - -["*" "#" "::" "<-"] @operator - ; Keywords ;--------- @@ -150,6 +126,30 @@ "->" ";;" ":>" "+=" ":=" ".." ] @punctuation.delimiter +; Operators +;---------- + +[ + (prefix_operator) + (infix_operator) + (indexing_operator) + (let_operator) + (and_operator) + (match_operator) +] @operator + +(match_expression (match_operator) @keyword) + +(value_definition [(let_operator) (and_operator)] @keyword) + +(prefix_operator "!" @operator) + +(infix_operator ["&" "+" "-" "=" ">" "|" "%"] @operator) + +(signed_number ["+" "-"] @operator) + +["*" "#" "::" "<-"] @operator + ; Attributes ;----------- -- cgit v1.2.3