File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ contexts:
28
28
- match : ' ;'
29
29
scope : punctuation.terminator
30
30
31
- - match : ' '' ( {{identifier}})\s*(:)'
31
+ - match : ' ( '' {{identifier}})\s*(:)'
32
32
captures :
33
33
1 : entity.name.label.rust
34
34
2 : punctuation.separator.rust
@@ -138,9 +138,14 @@ contexts:
138
138
- match : \b(crate|extern|use|where)\b
139
139
scope : keyword.other.rust
140
140
141
- - match : \b(break| else|for|if|loop|match|while|continue |yield)\b
141
+ - match : \b(else|for|if|loop|match|while|yield)\b
142
142
scope : keyword.control.rust
143
143
144
+ - match : ' \b(break|continue)(?:\s+('' {{identifier}}))?'
145
+ captures :
146
+ 1 : keyword.control.rust
147
+ 2 : entity.name.label.rust
148
+
144
149
- match : \breturn\b
145
150
scope : keyword.control.rust
146
151
Original file line number Diff line number Diff line change @@ -619,6 +619,23 @@ let big_n =
619
619
}
620
620
}
621
621
622
+ ' label1: for _ in 0 ..100 {
623
+ ' label2 : loop {
624
+ // ^^^^^^^ entity.name.label
625
+ // ^ punctuation.separator.rust
626
+ ' label3: while true {
627
+ // ^^^^^^^ entity.name.label
628
+ // ^ punctuation.separator
629
+ break ' label2;
630
+ // ^^^^^^^ entity.name.label
631
+ // ^ punctuation.terminator
632
+ }
633
+ continue ' label1;
634
+ // ^^^^^^^ entity.name.label
635
+ // ^ punctuation.terminator
636
+ }
637
+ }
638
+
622
639
while n < 50 {
623
640
//^^^ keyword.control
624
641
n = n * 2 ;
You can’t perform that action at this time.
0 commit comments