mirror of https://github.com/helix-editor/helix
Add textobjects queries for php (#1601)
* Add textobjects queries for php * Missing EOL fix * Update generated docs after adding textobjects to phppull/1602/head
parent
333c2949c2
commit
e2833b5853
|
@ -40,7 +40,7 @@
|
||||||
| ocaml | ✓ | | ✓ | |
|
| ocaml | ✓ | | ✓ | |
|
||||||
| ocaml-interface | ✓ | | | |
|
| ocaml-interface | ✓ | | | |
|
||||||
| perl | ✓ | ✓ | ✓ | |
|
| perl | ✓ | ✓ | ✓ | |
|
||||||
| php | ✓ | | ✓ | |
|
| php | ✓ | ✓ | ✓ | |
|
||||||
| prolog | | | | `swipl` |
|
| prolog | | | | `swipl` |
|
||||||
| protobuf | ✓ | | ✓ | |
|
| protobuf | ✓ | | ✓ | |
|
||||||
| python | ✓ | ✓ | ✓ | `pylsp` |
|
| python | ✓ | ✓ | ✓ | `pylsp` |
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue