File tree 4 files changed +19
-2
lines changed
4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Version 11.3.0 (most likely)
2
2
3
- enh(css/less/stylus/scss) improve consistency of function dispatch (#3301 ) [ Josh Goebel] [ ]
4
- enh(css/less/stylus/scss) detect block comments more fully (#3301 ) [ Josh Goebel] [ ]
3
+ - enh(css/less/stylus/scss) improve consistency of function dispatch (#3301 ) [ Josh Goebel] [ ]
4
+ - enh(css/less/stylus/scss) detect block comments more fully (#3301 ) [ Josh Goebel] [ ]
5
+ - fix(cpp) switch is a keyword (#3312 ) [ Josh Goebel] [ ]
5
6
- fix(cpp) fix ` xor_eq ` keyword highlighting. [ Denis Kovalchuk] [ ]
6
7
- enh(css/less/stylus/scss) add support for CSS Grid properties [ monochromer] [ ]
7
8
Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ export default function(hljs) {
411
411
/ (? ! d e c l t y p e ) / ,
412
412
/ (? ! i f ) / ,
413
413
/ (? ! f o r ) / ,
414
+ / (? ! s w i t c h ) / ,
414
415
/ (? ! w h i l e ) / ,
415
416
hljs . IDENT_RE ,
416
417
regex . lookahead ( / ( < [ ^ < > ] + > | ) \s * \( / ) )
Original file line number Diff line number Diff line change
1
+ <span class="hljs-keyword">if</span> (ch) {}
2
+
3
+ <span class="hljs-keyword">switch</span> (ch) {}
4
+
5
+ <span class="hljs-keyword">while</span> (ch) {}
6
+
7
+ <span class="hljs-keyword">for</span> (;;) {}
Original file line number Diff line number Diff line change
1
+
2
+ if (ch) {}
3
+
4
+ switch (ch) {}
5
+
6
+ while (ch) {}
7
+
8
+ for (;;) {}
You can’t perform that action at this time.
0 commit comments