fix(ocaml): change query order for Variables

By moving the Variables query higher it gives the @variable capture
group a lower precedence when highlighting.
This makes it possible to distinguish between @function and @variable.
This commit is contained in:
Robin Björklin 2022-10-24 22:30:35 -07:00 committed by Christian Clason
parent c924128771
commit 3ad2aa578a

View file

@ -18,6 +18,13 @@
[(constructor_name) (tag)] @constructor
; Variables
;----------
[(value_name) (type_variable)] @variable
(value_pattern) @parameter
; Functions
;----------
@ -35,13 +42,6 @@
(method_name) @method
; Variables
;----------
[(value_name) (type_variable)] @variable
(value_pattern) @parameter
; Application
;------------