File tree Expand file tree Collapse file tree 6 files changed +21
-4
lines changed Expand file tree Collapse file tree 6 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ repository:
644
644
645
645
numeric-literal :
646
646
name : constant.numeric.ts
647
- match : \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
647
+ match : \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|( ([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
648
648
649
649
boolean-literal :
650
650
name : constant.language.boolean.ts
Original file line number Diff line number Diff line change 901
901
<key >numeric-literal </key >
902
902
<dict >
903
903
<key >match </key >
904
- <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
904
+ <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|( ([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
905
905
<key >name </key >
906
906
<string >constant.numeric.ts </string >
907
907
</dict >
Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ repository:
633
633
634
634
numeric-literal :
635
635
name : constant.numeric.tsx
636
- match : \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
636
+ match : \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|( ([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
637
637
638
638
boolean-literal :
639
639
name : constant.language.boolean.tsx
Original file line number Diff line number Diff line change 1267
1267
<key >numeric-literal </key >
1268
1268
<dict >
1269
1269
<key >match </key >
1270
- <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
1270
+ <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(0(o|O)[0-7]+)|(0(b|B)(0|1)+)|( ([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
1271
1271
<key >name </key >
1272
1272
<string >constant.numeric.tsx </string >
1273
1273
</dict >
Original file line number Diff line number Diff line change
1
+ [4, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
2
+ [5, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
3
+ [6, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
4
+ [7, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
5
+ [8, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
6
+ [9, 9]: source.ts meta.var.expr.ts meta.var-single-variable.expr.ts constant.numeric.ts
7
+ [10, 1]: source.ts
Original file line number Diff line number Diff line change
1
+
2
+ /* Testing octals */
3
+
4
+ var x = ^ ^ 123 ;
5
+ var y = ^ ^ 0x123 ;
6
+ var z = ^ ^ 0b10101 ;
7
+ var z = ^ ^ 0B00000 ;
8
+ var j = ^ ^ 0o474774 ;
9
+ var w = ^ ^ 0O767 ;
10
+ ^ ^
You can’t perform that action at this time.
0 commit comments