mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
c924128771
commit
3ad2aa578a
1 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
;------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue