Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve Ruby Grammar for superclasses (#8544)

Ben Hammentf3f2225a8e14
diff --git a/crates/languages/src/ruby/highlights.scm b/crates/languages/src/ruby/highlights.scm
index afbf7ca1779..5178006cc49 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
[