File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
; Assume all-caps names are constants
4
4
((identifier) @constant
5
- (match? @constant "^[A-Z][A-Z\\d_]+$'"))
5
+ (# match? @constant "^[A-Z][A-Z\\d_]+$'"))
6
6
7
7
; Assume that uppercase names in paths are types
8
8
((scoped_identifier
9
9
path: (identifier) @type )
10
- (match? @type "^[A-Z]"))
10
+ (# match? @type "^[A-Z]"))
11
11
((scoped_identifier
12
12
path: (scoped_identifier
13
13
name: (identifier) @type ))
14
- (match? @type "^[A-Z]"))
14
+ (# match? @type "^[A-Z]"))
15
15
16
16
; Assume other uppercase names are enum constructors
17
17
((identifier) @constructor
18
- (match? @constructor "^[A-Z]"))
18
+ (# match? @constructor "^[A-Z]"))
19
19
20
20
; Function calls
21
21
Original file line number Diff line number Diff line change 1
1
((macro_invocation
2
2
(token_tree) @injection.content )
3
- (set! injection.language "rust")
4
- (set! injection.include-children))
3
+ (# set! injection.language "rust")
4
+ (# set! injection.include-children))
5
5
6
6
((macro_rule
7
7
(token_tree) @injection.content )
8
- (set! injection.language "rust")
9
- (set! injection.include-children))
8
+ (# set! injection.language "rust")
9
+ (# set! injection.include-children))
You can’t perform that action at this time.
0 commit comments