@@ -1,16 +1,95 @@
1+; things surrounded by ({[]})
2− (class_body)
3+ (template_substitution)
3− (function_body)
4+ (list_literal)
4− (function_expression_body)
5+ (set_or_map_literal)
5− (declaration)
6+ (parenthesized_expression)
6− (initializers)
7+ (arguments)
10+ (assertion_arguments)
7 (switch_block)
11 (switch_block)
8− (if_statement)
12+ (catch_parameters)
14+ (configuration_uri_condition)
18+ (parameter_type_list)
19+ (optional_positional_parameter_types)
20+ (named_parameter_types)
9 (formal_parameter_list)
21 (formal_parameter_list)
10− (formal_parameter)
22+ (optional_formal_parameters)
11− (list_literal)
23+] @indent
25+; control flow statement which accept one line as body
29+ (#not-kind-eq? @indent block)
30+ (#set! "scope" "all")
35+ (#not-kind-eq? @indent block)
36+ (#set! "scope" "all")
41+ (#not-kind-eq? @indent block)
42+ (#set! "scope" "all")
46+ consequence: _ @indent
47+ (#not-kind-eq? @indent block)
48+ (#set! "scope" "all")
51+ alternative: _ @indent
52+ (#not-kind-eq? @indent if_statement)
53+ (#not-kind-eq? @indent block)
54+ (#set! "scope" "all")
58+ alternative: (if_statement) @indent
59+ (#not-same-line? @indent @else)
60+ (#set! "scope" "all")
64+ consequence: _ @indent
65+ (#set! "scope" "all")
68+ alternative: _ @indent
69+ (#not-kind-eq? @indent if_element)
70+ (#set! "scope" "all")
74+ alternative: (if_element) @indent
75+ (#not-same-line? @indent @else)
76+ (#set! "scope" "all")
81+ (#set! "scope" "all")
86+ (local_variable_declaration)
12 (return_statement)
89 (return_statement)
13− (arguments)
90+ (yield_statement)
91+ (yield_each_statement)
92+ (expression_statement)
@@ -18,3 +97,4 @@