mirror of
https://github.com/helix-editor/helix.git
synced 2024-08-16 22:30:36 +03:00
Improve textobjects for parameter/argument for Dart (#9644)
Co-authored-by: Sébastien Blondiau <sebastien.blondiau@iot-d.com>
This commit is contained in:
parent
3e963b3c1b
commit
78c34194b5
@ -56,9 +56,34 @@
|
||||
|
||||
(documentation_comment)+ @comment.around
|
||||
|
||||
(formal_parameter) @parameter.inside
|
||||
(formal_parameter_list
|
||||
(
|
||||
(formal_parameter) @parameter.inside . ","? @parameter.around
|
||||
) @parameter.around
|
||||
)
|
||||
|
||||
(formal_parameter_list) @parameter.around
|
||||
(optional_formal_parameters
|
||||
(
|
||||
(formal_parameter) @parameter.inside . ","? @parameter.around
|
||||
) @parameter.around
|
||||
)
|
||||
|
||||
(arguments
|
||||
(
|
||||
[
|
||||
(argument) @parameter.inside
|
||||
(named_argument (label) . (_)* @parameter.inside)
|
||||
]
|
||||
. ","? @parameter.around
|
||||
) @parameter.around
|
||||
)
|
||||
|
||||
(type_arguments
|
||||
(
|
||||
((_) . ("." . (_) @parameter.inside @parameter.around)?) @parameter.inside
|
||||
. ","? @parameter.around
|
||||
) @parameter.around
|
||||
)
|
||||
|
||||
(expression_statement
|
||||
((identifier) @_name (#any-of? @_name "test" "testWidgets"))
|
||||
|
Loading…
Reference in New Issue
Block a user