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 @@ -633,7 +633,7 @@ repository:
633
633
634
634
numeric-literal :
635
635
name : constant.numeric.ts
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.ts
Original file line number Diff line number Diff line change 879
879
<key >numeric-literal </key >
880
880
<dict >
881
881
<key >match </key >
882
- <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
882
+ <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 >
883
883
<key >name </key >
884
884
<string >constant.numeric.ts </string >
885
885
</dict >
Original file line number Diff line number Diff line change @@ -621,7 +621,7 @@ repository:
621
621
622
622
numeric-literal :
623
623
name : constant.numeric.tsx
624
- match : \b(?<=[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b
624
+ 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
625
625
626
626
boolean-literal :
627
627
name : constant.language.boolean.tsx
Original file line number Diff line number Diff line change 1245
1245
<key >numeric-literal </key >
1246
1246
<dict >
1247
1247
<key >match </key >
1248
- <string >\b(?< =[^$])((0(x|X)[0-9a-fA-F]+)|(([0-9]+(\.[0-9]+)?))([eE]([+-]?)[0-9]+(\.[0-9]+)?)?)\b </string >
1248
+ <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 >
1249
1249
<key >name </key >
1250
1250
<string >constant.numeric.tsx </string >
1251
1251
</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