forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
811 B
Scheme
37 lines
811 B
Scheme
2 years ago
|
(function_declaration
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(arrow_function
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(method_definition
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(generator_function_declaration
|
||
|
body: (_) @function.inside) @function.around
|
||
|
|
||
|
(class_declaration
|
||
|
body: (class_body) @class.inside) @class.around
|
||
|
|
||
|
(class
|
||
|
(class_body) @class.inside) @class.around
|
||
|
|
||
|
(export_statement
|
||
|
declaration: [
|
||
|
(function_declaration) @function.around
|
||
|
(class_declaration) @class.around
|
||
|
])
|
||
|
|
||
|
(formal_parameters
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(arguments
|
||
|
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
|
||
|
|
||
|
(comment) @comment.inside
|
||
|
|
||
|
(comment)+ @comment.around
|