From e2833b58533f3991fa68061a21486b1322239fe3 Mon Sep 17 00:00:00 2001 From: Daniel S Poulin Date: Sat, 29 Jan 2022 21:04:36 -0500 Subject: Add textobjects queries for php (#1601) * Add textobjects queries for php * Missing EOL fix * Update generated docs after adding textobjects to php--- runtime/queries/php/textobjects.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 runtime/queries/php/textobjects.scm (limited to 'runtime/queries/php') diff --git a/runtime/queries/php/textobjects.scm b/runtime/queries/php/textobjects.scm new file mode 100644 index 00000000..04ffefd2 --- /dev/null +++ b/runtime/queries/php/textobjects.scm @@ -0,0 +1,30 @@ +(class_declaration + body: (_) @class.inside) @class.around + +(interface_declaration + body: (_) @class.inside) @class.around + +(trait_declaration + body: (_) @class.inside) @class.around + +(enum_declaration + body: (_) @class.inside) @class.around + +(function_definition + body: (_) @function.inside) @function.around + +(method_declaration + body: (_) @function.inside) @function.around + +(arrow_function + body: (_) @function.inside) @function.around + +(anonymous_function_creation_expression + body: (_) @function.inside) @function.around + +(formal_parameters + [ + (simple_parameter) + (variadic_parameter) + (property_promotion_parameter) + ] @parameter.inside) -- cgit v1.2.3-70-g09d2