move the generic "constant" capture to the top

This commit is contained in:
TravonteD 2020-09-18 09:11:32 -04:00 committed by Thomas Vigouroux
parent 18adc9e176
commit b4abf6b07d

View file

@ -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)