Move 'misc' high-lighting to end of file
Turns out that order *matters* for queries. Tree-sitter will stop at the first match it seems. So I want the hyper-general 'identifier' matching right at the end to avoid overriding more specific rules.
This commit is contained in:
parent
752f941589
commit
67b555c381
|
@ -1,11 +1,3 @@
|
|||
; Misc {{{
|
||||
(comment) @comment
|
||||
|
||||
(type_identifier) @type
|
||||
(field_identifier) @property
|
||||
(identifier) @variable
|
||||
; }}}
|
||||
|
||||
; Keywords {{{
|
||||
[
|
||||
"array"
|
||||
|
@ -56,4 +48,12 @@
|
|||
] @punctuation.bracket
|
||||
; }}}
|
||||
|
||||
; Misc {{{
|
||||
(comment) @comment
|
||||
|
||||
(type_identifier) @type
|
||||
(field_identifier) @property
|
||||
(identifier) @variable
|
||||
; }}}
|
||||
|
||||
; vim: sw=2 foldmethod=marker
|
||||
|
|
Loading…
Reference in a new issue