2022-08-03 09:09:44 +04:00
|
|
|
(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
|
2024-03-31 20:53:15 +04:00
|
|
|
|
|
|
|
(array
|
|
|
|
(_) @entry.around)
|
|
|
|
|
|
|
|
(pair
|
|
|
|
(_) @entry.inside) @entry.around
|
|
|
|
|
|
|
|
(pair_pattern
|
|
|
|
(_) @entry.inside) @entry.around
|