Skip to content

Commit e5c5463

Browse files
Update queries for parse tree extension 0.35.0
1 parent 93df278 commit e5c5463

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

queries/php.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
(method_declaration) @namedFunction
7979
(expression_statement
8080
(assignment_expression
81-
right: (anonymous_function_creation_expression)
81+
right: (anonymous_function)
8282
) @namedFunction
8383
";" @_.trailing
8484
)
@@ -91,7 +91,7 @@
9191
] @namedFunction.domain
9292

9393
[
94-
(anonymous_function_creation_expression)
94+
(anonymous_function)
9595
(arrow_function)
9696
] @anonymousFunction
9797

queries/scm.scm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@
6060
(anonymous_node
6161
name: [
6262
"_" @type
63-
(identifier
64-
"\"" @type.start.endOf
65-
"\"" @type.end.startOf
63+
(string
64+
(string_content) @type
6665
)
6766
]
6867
) @_.domain
@@ -105,7 +104,7 @@
105104
":"
106105
(anonymous_node
107106
[
108-
(identifier)
107+
(string)
109108
"_"
110109
] @value.end
111110
(quantifier)? @value.end

0 commit comments

Comments
 (0)