File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,24 @@ contexts:
560
560
2 : punctuation.definition.numeric.base.powershell
561
561
3 : storage.type.numeric.powershell
562
562
4 : keyword.other.unit.powershell
563
+ - match : |-
564
+ (?x:
565
+ (
566
+ \b{{dec_digits}}
567
+ (?:
568
+ (?:
569
+ (?:(?:\.(?!\.))\d*) # No `_` after the `.`
570
+ {{dec_exponent}}?
571
+ | {{dec_exponent}}
572
+ )
573
+ (?:{{integer_suffix}})
574
+ )
575
+ )
576
+ ({{bytes_unit}}\b)?
577
+ )
578
+ captures:
579
+ 1: invalid.deprecated.powershell
580
+ 2: keyword.other.unit.powershell
563
581
- match : |-
564
582
(?x:
565
583
(
Original file line number Diff line number Diff line change @@ -476,8 +476,14 @@ There is no @platting here!
476
476
1.d
477
477
# ^^^ constant.numeric.float
478
478
1.l GB
479
- # ^^^ constant.numeric.float - unclear whether float or int
479
+ # ^^^ invalid.deprecated
480
480
# ^^ keyword.other.unit
481
+ 1. 2345e1LGB
482
+ # ^^^^^^^^^ invalid.deprecated
483
+ # ^^ keyword.other.unit
484
+ 1.2345e - 5L GB
485
+ # ^^^^^^^^^^ invalid.deprecated
486
+ # ^^ keyword.other.unit
481
487
1.d GB
482
488
# ^^^ constant.numeric.float
483
489
# ^^ keyword.other.unit
@@ -524,7 +530,7 @@ There is no @platting here!
524
530
# ^ keyword.operator
525
531
-10.002L
526
532
# ^ keyword.operator.unary
527
- # ^^^^^^^ constant.numeric.float - unclear whether float or int
533
+ # ^^^^^^^ invalid.deprecated
528
534
$x .. 5.40D
529
535
# ^ punctuation.definition.variable
530
536
# ^^ variable.other.readwrite
You can’t perform that action at this time.
0 commit comments