Skip to content

Commit edadade

Browse files
committed
update query files according to grammar changes
1 parent e9329c3 commit edadade

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

anycode-typescript/queries/locals.scm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
(method_definition) @scope
22
(function_declaration) @scope
3-
(function_expression) @scope
3+
;; (function_expression) @scope
4+
(function) @scope
45
(arrow_function) @scope
56
[(class_body) (enum_body)] @scope
6-
(interface_declaration body: (interface_body) @scope)
7+
;; (interface_declaration body: (interface_body) @scope)
8+
(interface_declaration body: (object_type) @scope)
79
(for_statement) @scope
810
(if_statement consequence: (_) @scope)
911
(if_statement alternative: (_) @scope)
@@ -13,7 +15,8 @@
1315
(statement_block) @scope
1416

1517
(function_declaration name: (identifier) @local.escape)
16-
(function_expression name: (identifier) @local.escape)
18+
;; (function_expression name: (identifier) @local.escape)
19+
(function name: (identifier) @local.escape)
1720
(required_parameter (identifier) @local)
1821
(optional_parameter (identifier) @local)
1922
(catch_clause parameter: (identifier) @local)

0 commit comments

Comments
 (0)