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.
This commit is contained in:
Pau Ruiz Safont 2021-02-27 20:11:32 +00:00 committed by Stephan Seitz
parent 633b42b2a2
commit 0df1803056

View file

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