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