File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Core Grammars:
13
13
- enh(erlang) OTP 27 doc attribute [ nixxquality] [ ]
14
14
- enh(erlang) OTP 27 Sigil type [ nixxquality] [ ]
15
15
- enh(erlang) OTP25/27 maybe statement [ nixxquality] [ ]
16
+ - enh(dart) Support digit-separators in number literals [ Sam Rawlins] [ ]
16
17
17
18
New Grammars:
18
19
@@ -33,6 +34,7 @@ CONTRIBUTORS
33
34
[ BaliBalo ] : https://github.com/BaliBalo
34
35
[ William Wilkinson ] : https://github.com/wilkinson4
35
36
[ nixxquality ] : https://github.com/nixxquality
37
+ [ srawlins ] : https://github.com/srawlins
36
38
37
39
38
40
## Version 11.10.0
Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ export default function(hljs) {
25
25
keywords : 'true false null this is new super'
26
26
} ;
27
27
28
+ const NUMBER = {
29
+ className : 'number' ,
30
+ relevance : 0 ,
31
+ variants : [
32
+ { match : / \b [ 0 - 9 ] [ 0 - 9 _ ] * ( \. [ 0 - 9 ] [ 0 - 9 _ ] * ) ? ( [ e E ] [ + - ] ? [ 0 - 9 ] [ 0 - 9 _ ] * ) ? \b / } ,
33
+ { match : / \b 0 [ x X ] [ 0 - 9 A - F a - f ] [ 0 - 9 A - F a - f _ ] * \b / }
34
+ ]
35
+ } ;
36
+
28
37
const STRING = {
29
38
className : 'string' ,
30
39
variants : [
@@ -87,7 +96,7 @@ export default function(hljs) {
87
96
]
88
97
} ;
89
98
BRACED_SUBST . contains = [
90
- hljs . C_NUMBER_MODE ,
99
+ NUMBER ,
91
100
STRING
92
101
] ;
93
102
@@ -248,7 +257,7 @@ export default function(hljs) {
248
257
hljs . UNDERSCORE_TITLE_MODE
249
258
]
250
259
} ,
251
- hljs . C_NUMBER_MODE ,
260
+ NUMBER ,
252
261
{
253
262
className : 'meta' ,
254
263
begin : '@[A-Za-z]+'
You can’t perform that action at this time.
0 commit comments