blob: 106925ef23b6f79c831ce2e32b6022f8d8740e5c (
plain)
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
|
[
(arguments)
(array)
(binary_expression)
(class_body)
(export_clause)
(formal_parameters)
(named_imports)
(object)
(object_pattern)
(parenthesized_expression)
(return_statement)
(statement_block)
(switch_case)
(switch_statement)
(template_substitution)
(ternary_expression)
] @indent
(arguments (call_expression) @indent)
(binary_expression (call_expression) @indent)
(expression_statement (call_expression) @indent)
(arrow_function
body: (_) @_body
(#not-has-type? @_body statement_block)
) @indent
(assignment_expression
right: (_) @_right
(#not-has-type? @_right arrow_function function)
) @indent
(variable_declarator
value: (_) @_value
(#not-has-type? @_value arrow_function call_expression function)
) @indent
(arguments ")" @indent_end)
(object "}" @indent_end)
(statement_block "}" @indent_end)
[
(arguments (object))
")"
"}"
"]"
] @branch
(statement_block "{" @branch)
[
(comment)
(template_string)
] @ignore
|