From b4abf6b07d1c4b99dd12118d16f72ffdc438fb53 Mon Sep 17 00:00:00 2001 From: TravonteD Date: Fri, 18 Sep 2020 09:11:32 -0400 Subject: move the generic "constant" capture to the top --- queries/ruby/highlights.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'queries/ruby') diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index cef3d1f54..20b0a0ef2 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -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) -- cgit v1.2.3-70-g09d2