mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -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"
|
"while"
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
|
(constant) @constant
|
||||||
|
|
||||||
((identifier) @keyword
|
((identifier) @keyword
|
||||||
(#vim-match? @keyword "^(private|protected|public)$"))
|
(#vim-match? @keyword "^(private|protected|public)$"))
|
||||||
|
|
@ -52,7 +53,7 @@
|
||||||
|
|
||||||
(call
|
(call
|
||||||
[
|
[
|
||||||
receiver: (constant) @constant
|
receiver: (constant) @type
|
||||||
method: [
|
method: [
|
||||||
(identifier)
|
(identifier)
|
||||||
(constant)
|
(constant)
|
||||||
|
|
@ -61,7 +62,7 @@
|
||||||
|
|
||||||
(method_call
|
(method_call
|
||||||
[
|
[
|
||||||
receiver: (constant) @constant
|
receiver: (constant) @type
|
||||||
method: [
|
method: [
|
||||||
(identifier)
|
(identifier)
|
||||||
(constant)
|
(constant)
|
||||||
|
|
@ -85,6 +86,7 @@
|
||||||
|
|
||||||
(class name: (constant) @type)
|
(class name: (constant) @type)
|
||||||
(module name: (constant) @type)
|
(module name: (constant) @type)
|
||||||
|
(superclass (constant) @type)
|
||||||
|
|
||||||
; Identifiers
|
; Identifiers
|
||||||
[
|
[
|
||||||
|
|
@ -98,8 +100,6 @@
|
||||||
((constant) @constant.macro
|
((constant) @constant.macro
|
||||||
(#vim-match? @constant.macro "^[A-Z\\d_]+$"))
|
(#vim-match? @constant.macro "^[A-Z\\d_]+$"))
|
||||||
|
|
||||||
(constant) @constant
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(self)
|
(self)
|
||||||
(super)
|
(super)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue