Improve Ruby Syntax (#10255)

Release Notes:

fixes #9995  being able to target constants
<img width="336" alt="image"
src="https://github.com/zed-industries/zed/assets/7274458/9e8cc438-10c4-441f-9140-3f4b418bd3bd">

Adds highlighting for parameters In blocks
<img width="318" alt="image"
src="https://github.com/zed-industries/zed/assets/7274458/4fa45fbe-104b-4778-994b-3b6d6ba930d4">
This commit is contained in:
Ben Hamment
2024-04-08 13:12:24 +02:00
committed by GitHub
parent 4f9ad300a7
commit ce5bc399df
+5 -3
View File
@@ -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)