File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Core Grammars:
22
22
- fix(diff) fix unified diff hunk header regex to allow unpaired numbers [ Chris Wilson] [ ]
23
23
- enh(php) support single line and hash comments in attributes, constructor and functions [ Antoine Musso] [ ]
24
24
- enh(json) add json5 support [ Kerry Shetline] [ ]
25
+ - fix(csharp) Support digit separators [ te-ing] [ ]
25
26
26
27
Documentation:
27
28
@@ -47,6 +48,7 @@ CONTRIBUTORS
47
48
[ Kerry Shetline ] : https://github.com/kshetline
48
49
[ Twineee1 ] : https://github.com/Twineee1
49
50
[ hbgl ] : https://github.com/hbgl
51
+ [ te-ing ] : https://github.com/te-ing
50
52
[ Anthony Martin ] : https://github.com/anthony-c-martin
51
53
52
54
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export default function(hljs) {
166
166
variants : [
167
167
{ begin : '\\b(0b[01\']+)' } ,
168
168
{ begin : '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)(u|U|l|L|ul|UL|f|F|b|B)' } ,
169
- { begin : '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)' }
169
+ { begin : '(-?)(\\b0[xX][a-fA-F0-9\'_ ]+|(\\b[\\d\'_ ]+(\\.[\\d\'_ ]*)?|\\.[\\d\'_ ]+)([eE][-+]?[\\d\'_ ]+)?)' }
170
170
] ,
171
171
relevance : 0
172
172
} ;
Original file line number Diff line number Diff line change 1
1
<span class="hljs-built_in">float</span> test = <span class="hljs-number">1.0f</span>;
2
2
<span class="hljs-built_in">float</span> test2 = <span class="hljs-number">1.f</span>;
3
3
<span class="hljs-built_in">float</span> test3 = <span class="hljs-number">1.0</span>;
4
- <span class="hljs-built_in">float</span> test4 = <span class="hljs-number">1</span>;
4
+ <span class="hljs-built_in">float</span> test4 = <span class="hljs-number">1</span>;
5
+ <span class="hljs-built_in">float</span> test5 = <span class="hljs-number">1_000</span>;
6
+
Original file line number Diff line number Diff line change 1
1
float test = 1.0f;
2
2
float test2 = 1.f;
3
3
float test3 = 1.0;
4
- float test4 = 1;
4
+ float test4 = 1;
5
+ float test5 = 1_000;
You can’t perform that action at this time.
0 commit comments