aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index c3b9c6cb1..2b608d3cc 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -125,9 +125,12 @@
"__callee__" "__dir__" "__id__" "__method__" "__send__" "__ENCODING__" "__FILE__" "__LINE__"))
((identifier) @function.builtin
- (#any-of? @function.builtin
- "include" "extend" "prepend" "attr_reader" "attr_writer" "attr_accessor" "module_function"
- "refine" "using"))
+ (#any-of? @function.builtin "attr_reader" "attr_writer" "attr_accessor" "module_function"))
+
+((call
+ !receiver
+ method: (identifier) @function.builtin)
+ (#any-of? @function.builtin "include" "extend" "prepend" "refine" "using"))
((identifier) @keyword.exception
(#any-of? @keyword.exception "raise" "fail" "catch" "throw"))