Improve Ruby grammar to recognize method parameters (#8284)
Release Notes: - Improved Ruby Grammar to recognise various method parameters  
This commit is contained in:
parent
011ae8536c
commit
7d0c515be9
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@
|
|||
(setter (identifier) @function.method)
|
||||
(method name: [(identifier) (constant)] @function.method)
|
||||
(singleton_method name: [(identifier) (constant)] @function.method)
|
||||
(method_parameters [
|
||||
(identifier) @variable.parameter
|
||||
(optional_parameter name: (identifier) @variable.parameter)
|
||||
(keyword_parameter [name: (identifier) (":")] @variable.parameter)
|
||||
])
|
||||
|
||||
; Identifiers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue