File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 10
10
(source_code) @comment.iteration
11
11
12
12
;; Any foo = <expression> anywhere is a statement
13
- (binding) @statement
13
+ [
14
+ (inherit)
15
+ (binding)
16
+ ] @statement
14
17
(binding_set) @map.iteration @list.iteration @ifStatement.iteration
15
18
16
19
;; This matches assert statements as stand-alone statements. This
27
30
(#not-parent-type? @_.domain binding)
28
31
)
29
32
33
+ (
34
+ (with_expression) @statement
35
+ (#not-parent-type? @statement binding)
36
+ )
37
+
30
38
;; !! let
31
39
;; !! a = 1;
32
40
;; ! <******
110
118
;; ! ^^^^^^^^^^^ Func2 due to currying
111
119
(function_expression
112
120
[
121
+ (
122
+ ;; Match foo@{ a, b }: style
123
+ (identifier) @argumentOrParameter.start
124
+ "@"
125
+ (formals) @argumentOrParameter.end
126
+ )
113
127
;; Match a: style arg
114
- (identifier)
128
+ (identifier) @argumentOrParameter
129
+
115
130
;; Match { a, b }: style
116
- (formals)
117
- ] @argumentOrParameter
131
+ (formals) @argumentOrParameter
132
+ ]
133
+ .
118
134
body: (_) @anonymousFunction.interior
119
135
) @_.domain @anonymousFunction @argumentOrParameter.iteration
120
136
You can’t perform that action at this time.
0 commit comments