-
Notifications
You must be signed in to change notification settings - Fork 0
/
typescript.scm
38 lines (37 loc) · 1.04 KB
/
typescript.scm
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
(call_expression
function: (member_expression
property: (property_identifier) @method (#match? @method "(boolean|variant)")
)
arguments: (arguments
(object
(pair
key: (property_identifier) @namespace_key (#eq? @namespace_key "namespaceKey")
value: (_) @namespace_value
)
(pair
key: (property_identifier) @flag_key (#eq? @flag_key "flagKey")
value: (string) @flag_value
)
)
) ? @args
) @call
(call_expression
function: (member_expression
object: (member_expression
property: (property_identifier) @property (#eq? @property "flags")
)
property: (property_identifier) @method (#eq? @method "get")
)
arguments: (arguments
(object
(pair
key: (property_identifier) @namespace_key (#eq? @namespace_key "namespaceKey")
value: (_) @namespace_value
)
(pair
key: (property_identifier) @flag_key (#eq? @flag_key "key")
value: (string) @flag_value
)
)
) ? @args
) @call