File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -446,12 +446,6 @@ contexts:
446
446
447
447
generic-angles-contents :
448
448
- include : comments
449
- - match : \bextern\b
450
- scope : keyword.other.rust
451
- push :
452
- - include : strings
453
- - match : ' (?=\S)'
454
- pop : true
455
449
- include : type-slice
456
450
- match : ' (?=>)'
457
451
pop : true
@@ -512,6 +506,12 @@ contexts:
512
506
scope : punctuation.definition.type.end.rust
513
507
pop : true
514
508
- include : type-any-identifier
509
+ - match : \bextern\b
510
+ scope : keyword.other.rust
511
+ push :
512
+ - include : strings
513
+ - match : ' (?=\S)'
514
+ pop : true
515
515
- include : type
516
516
- include : type-slice
517
517
- match : ' \b_\b'
Original file line number Diff line number Diff line change @@ -78,18 +78,23 @@ struct Val (f64,);
78
78
// ^ punctuation.definition.group.end
79
79
// ^ punctuation.terminator
80
80
81
- // TODO: Fix extern.
82
81
struct F {
83
82
f : extern "C" fn ( x : u8 , ... /* comment */ ) ,
83
+ // ^^^^^^ meta.struct meta.block keyword.other
84
+ // ^^^ meta.struct meta.block string.quoted.double
85
+ // ^^ meta.struct meta.block storage.type.function
86
+ // ^^^^^^^^^^^^^ meta.struct meta.block meta.group comment.block
84
87
g : extern "C" fn ( x : u8 , /* comment */ ...) ,
88
+ // ^^^^^^^^^^^^^ meta.struct meta.block meta.group comment.block
85
89
h : extern "C" fn ( x : u8 , ...) ,
86
90
i : extern "C" fn (
87
91
x : u8 ,
92
+ // ^^ meta.struct meta.block meta.group storage.type
88
93
// comment 4
94
+ // ^^^^^^^^^^^^^ meta.struct meta.block meta.group comment.line.double-slash
89
95
y : String , // comment 3
96
+ // ^^^^^^^^^^^^^ meta.struct meta.block meta.group comment.line.double-slash
90
97
z : Foo ,
91
- // comment
92
- ... // comment 2
93
98
) ,
94
99
}
95
100
You can’t perform that action at this time.
0 commit comments