diff --git a/crates/zed/src/languages/ruby/highlights.scm b/crates/zed/src/languages/ruby/highlights.scm index 2610cfa1ccf07254c68c87d2e8013741d7d6969f..14703c4ff2860c0a41c31c28c8e6a369e1f0c804 100644 --- a/crates/zed/src/languages/ruby/highlights.scm +++ b/crates/zed/src/languages/ruby/highlights.scm @@ -30,8 +30,6 @@ "yield" ] @keyword -(identifier) @variable - ((identifier) @keyword (#match? @keyword "^(private|protected|public)$")) @@ -54,11 +52,6 @@ ; Identifiers -[ - (class_variable) - (instance_variable) -] @property - ((identifier) @constant.builtin (#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$")) @@ -73,11 +66,19 @@ ((constant) @constant (#match? @constant "^[A-Z\\d_]+$")) +(global_variable) @constant + (constant) @type (self) @variable.special (super) @variable.special +[ + (class_variable) + (instance_variable) +] @variable.member + + ; Literals [