mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
move the generic "constant" capture to the top
This commit is contained in:
parent
18adc9e176
commit
b4abf6b07d
1 changed files with 4 additions and 4 deletions
|
|
@ -39,6 +39,7 @@
|
|||
"while"
|
||||
] @repeat
|
||||
|
||||
(constant) @constant
|
||||
|
||||
((identifier) @keyword
|
||||
(#vim-match? @keyword "^(private|protected|public)$"))
|
||||
|
|
@ -52,7 +53,7 @@
|
|||
|
||||
(call
|
||||
[
|
||||
receiver: (constant) @constant
|
||||
receiver: (constant) @type
|
||||
method: [
|
||||
(identifier)
|
||||
(constant)
|
||||
|
|
@ -61,7 +62,7 @@
|
|||
|
||||
(method_call
|
||||
[
|
||||
receiver: (constant) @constant
|
||||
receiver: (constant) @type
|
||||
method: [
|
||||
(identifier)
|
||||
(constant)
|
||||
|
|
@ -85,6 +86,7 @@
|
|||
|
||||
(class name: (constant) @type)
|
||||
(module name: (constant) @type)
|
||||
(superclass (constant) @type)
|
||||
|
||||
; Identifiers
|
||||
[
|
||||
|
|
@ -98,8 +100,6 @@
|
|||
((constant) @constant.macro
|
||||
(#vim-match? @constant.macro "^[A-Z\\d_]+$"))
|
||||
|
||||
(constant) @constant
|
||||
|
||||
[
|
||||
(self)
|
||||
(super)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue