From f3f2225a8e14b195b1ee40d2c427510683d5a4dc Mon Sep 17 00:00:00 2001 From: Ben Hamment Date: Fri, 1 Mar 2024 23:08:03 +0000 Subject: [PATCH] Improve Ruby Grammar for superclasses (#8544) Release Notes: - Improved Ruby grammar to allow targeting of super classes including namespaces classes --- crates/languages/src/ruby/highlights.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/languages/src/ruby/highlights.scm b/crates/languages/src/ruby/highlights.scm index afbf7ca177..5178006cc4 100644 --- a/crates/languages/src/ruby/highlights.scm +++ b/crates/languages/src/ruby/highlights.scm @@ -75,6 +75,18 @@ (constant) @type +(superclass + (constant) @type.super) + +(superclass + (scope_resolution + (constant) @type.super)) + +(superclass + (scope_resolution + (scope_resolution + (constant) @type.super))) + (self) @variable.special (super) @variable.special @@ -169,6 +181,7 @@ "," ";" "." + "::" ] @punctuation.delimiter [