blob: 8bf7fab9a5e33813f19335b9de0204ca59c6b67c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/php/textobjects.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).
(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
body: (_) @function.inside) @function.around
(anonymous_class
body: (_) @class.inside) @class.around
(property_hook
body: (_) @function.inside) @function.around
(anonymous_function_use_clause
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(formal_parameters
([
(simple_parameter)
(variadic_parameter)
(property_promotion_parameter)
] @parameter.inside . ","? @parameter.around) @parameter.around)
(arguments
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside
(comment)+ @comment.around
(array_creation_expression
(array_element_initializer
(_) @entry.inside
) @entry.around @entry.movement)
(list_literal
(_) @entry.inside @entry.around @entry.movement)
[
(enum_case)
] @entry.around @entry.movement
|