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:
parent
4f9ad300a7
commit
ce5bc399df
1 changed files with 5 additions and 3 deletions
|
@ -55,6 +55,8 @@
|
||||||
(keyword_parameter [name: (identifier) (":")] @variable.parameter)
|
(keyword_parameter [name: (identifier) (":")] @variable.parameter)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
(block_parameters (identifier) @variable.parameter)
|
||||||
|
|
||||||
; Identifiers
|
; Identifiers
|
||||||
|
|
||||||
((identifier) @constant.builtin
|
((identifier) @constant.builtin
|
||||||
|
@ -68,13 +70,13 @@
|
||||||
"**" @operator
|
"**" @operator
|
||||||
) @constant.builtin
|
) @constant.builtin
|
||||||
|
|
||||||
((constant) @constant
|
|
||||||
(#match? @constant "^[A-Z\\d_]+$"))
|
|
||||||
|
|
||||||
(global_variable) @constant
|
(global_variable) @constant
|
||||||
|
|
||||||
(constant) @type
|
(constant) @type
|
||||||
|
|
||||||
|
((constant) @constant
|
||||||
|
(#match? @constant "^[A-Z\\d_]+$"))
|
||||||
|
|
||||||
(superclass
|
(superclass
|
||||||
(constant) @type.super)
|
(constant) @type.super)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue