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 Syntax (#10255)

Ben Hammentce5bc399df0d
diff --git a/crates/languages/src/ruby/highlights.scm b/crates/languages/src/ruby/highlights.scm
index 5178006cc49..17dbb4b07d5 100644
--- a/crates/languages/src/ruby/highlights.scm
+++ b/crates/languages/src/ruby/highlights.scm
@@ -55,6 +55,8 @@
(keyword_parameter [name: (identifier) (":")] @variable.parameter)
])
+(block_parameters (identifier) @variable.parameter)
+
; Identifiers
((identifier) @constant.builtin
@@ -68,13 +70,13 @@
"**" @operator
) @constant.builtin
-((constant) @constant
- (#match? @constant "^[A-Z\\d_]+$"))
-
(global_variable) @constant
(constant) @type
+((constant) @constant
+ (#match? @constant "^[A-Z\\d_]+$"))
+
(superclass
(constant) @type.super)