@@ -463,148 +463,267 @@ There is no @platting here!
463
463
# <- string.quoted.double.heredoc
464
464
465
465
# Numeric constants
466
- -3
466
+
467
+ -3 +3 3 3l 3lm 3l mb
467
468
# ^ keyword.operator.unary
468
469
# ^ meta.number.integer.decimal constant.numeric.value
470
+ # ^ keyword.operator.unary
471
+ # ^ meta.number.integer.decimal constant.numeric.value
472
+ # ^ meta.number.integer.decimal constant.numeric.value
473
+ # ^ meta.number.integer.decimal constant.numeric.value
474
+ # ^ meta.number.integer.decimal constant.numeric.suffix
475
+ # ^^ meta.number.integer.decimal
476
+ # ^ - constant.numeric
477
+ # ^^^^ meta.number.integer.decimal
478
+ # ^ constant.numeric.value
479
+ # ^^^ constant.numeric.suffix
480
+
481
+ 3y 3uy 3s 3us 3u 3ul # PowerShell 6.2+
482
+ # ^^ meta.number.integer.decimal
483
+ # ^ constant.numeric.value
484
+ # ^ constant.numeric.suffix
485
+ # ^^^ meta.number.integer.decimal
486
+ # ^ constant.numeric.value
487
+ # ^^ constant.numeric.suffix
488
+ # ^^ meta.number.integer.decimal
489
+ # ^ constant.numeric.value
490
+ # ^ constant.numeric.suffix
491
+ # ^^^ meta.number.integer.decimal
492
+ # ^ constant.numeric.value
493
+ # ^^ constant.numeric.suffix
494
+ # ^^ meta.number.integer.decimal
495
+ # ^ constant.numeric.value
496
+ # ^ constant.numeric.suffix
497
+ # ^^^ meta.number.integer.decimal
498
+ # ^ constant.numeric.value
499
+ # ^^ constant.numeric.suffix
500
+
501
+ 3n # PowerShell 7.0+
502
+ # ^^ meta.number.integer.decimal
503
+ # ^ constant.numeric.value
504
+ # ^ constant.numeric.suffix
505
+
469
506
.5
470
- # ^^ meta.number.float.decimal.powershell constant.numeric.value.powershell - constant constant
471
- # ^ punctuation.separator.decimal.powershell
507
+ # ^^ meta.number.float.decimal constant.numeric.value - constant constant
508
+ # ^ punctuation.separator.decimal
509
+
472
510
+.5
473
- # ^ keyword.operator.unary.powershell
474
- # ^^ meta.number.float.decimal.powershell constant.numeric.value.powershell - constant constant
475
- # ^ punctuation.separator.decimal.powershell
511
+ # ^ keyword.operator.unary
512
+ # ^^ meta.number.float.decimal constant.numeric.value - constant constant
513
+ # ^ punctuation.separator.decimal
514
+
476
515
1 .
477
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
516
+ # ^ meta.number.integer.decimal constant.numeric.value
478
517
# ^ - meta.number - constant.numeric
479
- 1.f
480
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
481
- # ^ punctuation.accessor.dot.powershell
482
- # ^ variable.other.member.powershell
518
+
519
+ 1.f 1.f ()
520
+ # ^ meta.number.integer.decimal constant.numeric.value
521
+ # ^ punctuation.accessor.dot
522
+ # ^ variable.other.member
523
+ # ^ meta.number.integer.decimal constant.numeric.value
524
+ # ^ punctuation.accessor.dot
525
+ # @ reference
526
+ # ^ meta.function-call variable.function
527
+ # ^ meta.function-call.arguments punctuation.section.arguments.begin
528
+ # ^ meta.function-call.arguments punctuation.section.arguments.end
529
+
483
530
1.d
484
- # ^^^ meta.number.float.decimal.powershell - constant constant
485
- # ^^ constant.numeric.value.powershell
486
- # ^ punctuation.separator.decimal.powershell
487
- # ^ constant.numeric.suffix.powershell
531
+ # ^^^ meta.number.float.decimal - constant constant
532
+ # ^^ constant.numeric.value
533
+ # ^ punctuation.separator.decimal
534
+ # ^ constant.numeric.suffix
535
+
488
536
1.l GB
489
- # ^^^^^ meta.number.float.decimal.powershell
490
- # ^^ constant.numeric.value.powershell
491
- # ^ punctuation.separator.decimal.powershell
492
- # ^^^ constant.numeric.suffix.powershell
537
+ # ^^^^^ meta.number.float.decimal
538
+ # ^^ constant.numeric.value
539
+ # ^ punctuation.separator.decimal
540
+ # ^^^ constant.numeric.suffix
541
+
493
542
1.d GB
494
- # ^^^^^ meta.number.float.decimal.powershell
495
- # ^^ constant.numeric.value.powershell
496
- # ^ punctuation.separator.decimal.powershell
497
- # ^^^ constant.numeric.suffix.powershell
543
+ # ^^^^^ meta.number.float.decimal
544
+ # ^^ constant.numeric.value
545
+ # ^ punctuation.separator.decimal
546
+ # ^^^ constant.numeric.suffix
547
+
498
548
1.e + 12d
499
- # ^^^^^^^ meta.number.float.decimal.powershell
500
- # ^^^^^^ constant.numeric.value.powershell
501
- # ^ punctuation.separator.decimal.powershell
502
- # ^ constant.numeric.suffix.powershell
549
+ # ^^^^^^^ meta.number.float.decimal
550
+ # ^^^^^^ constant.numeric.value
551
+ # ^ punctuation.separator.decimal
552
+ # ^ constant.numeric.suffix
553
+
503
554
1e + 12d
504
- # ^^^^^^ meta.number.float.decimal.powershell
505
- # ^^^^^ constant.numeric.value.powershell
506
- # ^ constant.numeric.suffix.powershell
555
+ # ^^^^^^ meta.number.float.decimal
556
+ # ^^^^^ constant.numeric.value
557
+ # ^ constant.numeric.suffix
558
+
507
559
1.5
508
- # ^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
509
- # ^ punctuation.separator.decimal.powershell
560
+ # ^^^ meta.number.float.decimal constant.numeric.value
561
+ # ^ punctuation.separator.decimal
562
+
510
563
-1.5
511
- # ^ keyword.operator.unary.powershell
512
- # ^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
513
- # ^ punctuation.separator.decimal.powershell
564
+ # ^ keyword.operator.unary
565
+ # ^^^ meta.number.float.decimal constant.numeric.value
566
+ # ^ punctuation.separator.decimal
567
+
514
568
-3 + -2
515
- # ^ keyword.operator.unary.powershell
516
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
517
- # ^ keyword.operator.arithmetic.powershell
518
- # ^ keyword.operator.unary.powershell
519
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
569
+ # ^ keyword.operator.unary
570
+ # ^ meta.number.integer.decimal constant.numeric.value
571
+ # ^ keyword.operator.arithmetic
572
+ # ^ keyword.operator.unary
573
+ # ^ meta.number.integer.decimal constant.numeric.value
574
+
520
575
-3 + -2
521
- # ^ keyword.operator.unary.powershell
522
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
523
- # ^ keyword.operator.arithmetic.powershell
524
- # ^ keyword.operator.unary.powershell
525
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
576
+ # ^ keyword.operator.unary
577
+ # ^ meta.number.integer.decimal constant.numeric.value
578
+ # ^ keyword.operator.arithmetic
579
+ # ^ keyword.operator.unary
580
+ # ^ meta.number.integer.decimal constant.numeric.value
581
+
526
582
3 + +2
527
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
528
- # ^ keyword.operator.arithmetic.powershell
529
- # ^ keyword.operator.unary.powershell
530
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
583
+ # ^ meta.number.integer.decimal constant.numeric.value
584
+ # ^ keyword.operator.arithmetic
585
+ # ^ keyword.operator.unary
586
+ # ^ meta.number.integer.decimal constant.numeric.value
587
+
531
588
+2
532
- # ^ keyword.operator.unary.powershell
533
- # ^ meta.number.integer.decimal.powershell constant.numeric.value.powershell
589
+ # ^ keyword.operator.unary
590
+ # ^ meta.number.integer.decimal constant.numeric.value
591
+
534
592
-3 +-
535
593
# ^ keyword.operator.unary
536
594
# ^ meta.number.integer.decimal constant.numeric.value
537
595
# ^^ keyword.operator
596
+
538
597
10 / -10
539
598
# ^^ meta.number.integer.decimal constant.numeric.value
540
- # ^ keyword.operator.arithmetic.powershell
599
+ # ^ keyword.operator.arithmetic
541
600
# ^^ meta.number.integer.decimal constant.numeric.value
601
+
542
602
10 / -10D
543
603
# ^^ meta.number.integer.decimal constant.numeric.value
544
- # ^ keyword.operator.arithmetic.powershell
545
- # ^^^ meta.number.float.decimal.powershell
546
- # ^^ constant.numeric.value.powershell
547
- # ^ constant.numeric.suffix.powershell
604
+ # ^ keyword.operator.arithmetic
605
+ # ^^^ meta.number.float.decimal
606
+ # ^^ constant.numeric.value
607
+ # ^ constant.numeric.suffix
608
+
548
609
-10.002L
549
610
# ^ keyword.operator.unary
550
- # ^^^^^^^ meta.number.float.decimal.powershell
551
- # ^^^^^^ constant.numeric.value.powershell
552
- # ^ punctuation.separator.decimal.powershell
553
- # ^ constant.numeric.suffix.powershell
611
+ # ^^^^^^^ meta.number.float.decimal
612
+ # ^^^^^^ constant.numeric.value
613
+ # ^ punctuation.separator.decimal
614
+ # ^ constant.numeric.suffix
615
+
554
616
$x .. 5.40D
555
617
# ^ punctuation.definition.variable
556
618
# ^^ variable.other.readwrite
557
619
# ^^ keyword.operator.range
558
- # ^^^^^ meta.number.float.decimal.powershell
559
- # ^^^^ constant.numeric.value.powershell
560
- # ^ punctuation.separator.decimal.powershell
561
- # ^ constant.numeric.suffix.powershell
620
+ # ^^^^^ meta.number.float.decimal
621
+ # ^^^^ constant.numeric.value
622
+ # ^ punctuation.separator.decimal
623
+ # ^ constant.numeric.suffix
624
+
562
625
-500 .. -495
563
626
# ^ keyword.operator.unary
564
627
# ^^^ meta.number.integer.decimal constant.numeric.value
565
628
# ^^ keyword.operator.range
566
629
# ^ keyword.operator.unary
567
630
# ^^^ meta.number.integer.decimal constant.numeric.value
631
+
568
632
$true .. 3
569
633
# ^ punctuation.definition.variable
570
634
# ^^^^ constant.language
571
635
# ^^ keyword.operator.range
572
636
# ^ meta.number.integer.decimal constant.numeric.value
637
+
573
638
-2 .. $null
574
639
# ^ keyword.operator.unary
575
640
# ^ meta.number.integer.decimal constant.numeric.value
576
641
# ^^ keyword.operator.range
577
642
# ^^^^^ constant.language
578
643
# ^ punctuation.definition.variable
644
+
579
645
-3 .. 3
580
646
# ^ keyword.operator.unary
581
647
# ^ meta.number.integer.decimal constant.numeric.value
582
648
# ^ meta.number.integer.decimal constant.numeric.value
583
649
# ^^ keyword.operator.range
650
+
584
651
1 .. 3
585
652
# ^ meta.number.integer.decimal constant.numeric.value
586
653
# ^ meta.number.integer.decimal constant.numeric.value
587
654
# ^^ keyword.operator.range
655
+
588
656
6 , 10 , -3
589
657
# ^ meta.number.integer.decimal constant.numeric.value
590
658
# ^ punctuation.separator.sequence -constant
591
659
# ^^ meta.number.integer.decimal constant.numeric.value
592
660
# ^ punctuation.separator.sequence -constant
593
661
# ^ meta.number.integer.decimal constant.numeric.value
594
- 0x476
595
- # ^^^^^ meta.number.integer.hexadecimal.powershell
596
- # ^^ constant.numeric.base.powershell
597
- # ^^^ constant.numeric.value.powershell
598
- +0x20
599
- # ^ keyword.operator.unary.powershell
600
- # ^^^^ meta.number.integer.hexadecimal.powershell
601
- # ^^ constant.numeric.base.powershell
602
- # ^^ constant.numeric.value.powershell
603
- -0x20
604
- # ^ keyword.operator.unary.powershell
605
- # ^^^^ meta.number.integer.hexadecimal.powershell
606
- # ^^ constant.numeric.base.powershell
607
- # ^^ constant.numeric.value.powershell
662
+
663
+ 0x476 0X476 0x476l 0x47m 0x47 mb
664
+ # ^^^^^ meta.number.integer.hexadecimal
665
+ # ^^ constant.numeric.base
666
+ # ^^^ constant.numeric.value
667
+ # ^^^^^ meta.number.integer.hexadecimal
668
+ # ^^ constant.numeric.base
669
+ # ^^^ constant.numeric.value
670
+ # ^^^^^^ meta.number.integer.hexadecimal
671
+ # ^^ constant.numeric.base
672
+ # ^^^ constant.numeric.value
673
+ # ^ constant.numeric.suffix
674
+ # ^^^^ meta.number.integer.hexadecimal
675
+ # ^^ constant.numeric.base
676
+ # ^^ constant.numeric.value
677
+ # ^ - constant.numeric
678
+ # ^^^^ meta.number.integer.hexadecimal
679
+ # ^^ constant.numeric.base
680
+ # ^^ constant.numeric.value
681
+ # ^^ constant.numeric.suffix
682
+
683
+ +0x20 +0X20 +0x20l + 0x20m +0x20 mb
684
+ # ^ keyword.operator.unary
685
+ # ^^^^ meta.number.integer.hexadecimal
686
+ # ^^ constant.numeric.base
687
+ # ^^ constant.numeric.value
688
+ # ^ keyword.operator.unary
689
+ # ^^^^ meta.number.integer.hexadecimal
690
+ # ^^ constant.numeric.base
691
+ # ^^ constant.numeric.value
692
+ # ^^^^^ meta.number.integer.hexadecimal
693
+ # ^^ constant.numeric.base
694
+ # ^^ constant.numeric.value
695
+ # ^ constant.numeric.suffix
696
+ # ^^^^ meta.number.integer.hexadecimal
697
+ # ^^ constant.numeric.base
698
+ # ^^ constant.numeric.value
699
+ # ^ - constant.numeric
700
+ # ^^^^^^ meta.number.integer.hexadecimal
701
+ # ^^ constant.numeric.base
702
+ # ^^ constant.numeric.value
703
+ # ^^ constant.numeric.suffix
704
+
705
+ -0x20 -0X20 -0x20l - 0x20m -0x20 mb
706
+ # ^ keyword.operator.unary
707
+ # ^^^^ meta.number.integer.hexadecimal
708
+ # ^^ constant.numeric.base
709
+ # ^^ constant.numeric.value
710
+ # ^ keyword.operator.unary
711
+ # ^^^^ meta.number.integer.hexadecimal
712
+ # ^^ constant.numeric.base
713
+ # ^^ constant.numeric.value
714
+ # ^ keyword.operator.unary
715
+ # ^^^^^ meta.number.integer.hexadecimal
716
+ # ^^ constant.numeric.base
717
+ # ^^ constant.numeric.value
718
+ # ^ constant.numeric.suffix
719
+ # ^^^^ meta.number.integer.hexadecimal
720
+ # ^^ constant.numeric.base
721
+ # ^^ constant.numeric.value
722
+ # ^ - constant.numeric
723
+ # ^^^^^^ meta.number.integer.hexadecimal
724
+ # ^^ constant.numeric.base
725
+ # ^^ constant.numeric.value
726
+ # ^^ constant.numeric.suffix
608
727
609
728
# Types
610
729
[string ]
@@ -718,7 +837,7 @@ Invoke-Something -p1 value `
718
837
- p2 14.4 `
719
838
# ^ punctuation.definition.parameter
720
839
# ^^^ variable.parameter.option
721
- # ^^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
840
+ # ^^^^ meta.number.float.decimal constant.numeric.value
722
841
# ^ punctuation.separator.continuation
723
842
- p3 $value | Invoke-Something - verbose
724
843
# ^ punctuation.definition.parameter
@@ -995,7 +1114,7 @@ function Verb-Noun
995
1114
# ^^^^ constant.language
996
1115
# ^ punctuation.separator
997
1116
ValueFromPipeline = $true ,
998
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute.powershell
1117
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute
999
1118
# ^^^^^^^^^^^^^^^^^ variable.parameter.attribute
1000
1119
# ^ keyword.operator.assignment
1001
1120
# ^ punctuation.definition.variable
@@ -1334,7 +1453,7 @@ $b -cLike $c
1334
1453
# ^^ keyword.operator.string-format
1335
1454
(1.11 ).ToString(" #.#" )
1336
1455
# ^ punctuation.section.group.begin
1337
- # ^^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
1456
+ # ^^^^ meta.number.float.decimal constant.numeric.value
1338
1457
# ^ punctuation.section.group.begin
1339
1458
# ^ string.quoted.double
1340
1459
" {1,10} {0,10} {2,10:x}" -f " First" , " Second" , 255
@@ -1343,19 +1462,19 @@ $b -cLike $c
1343
1462
# ^^^ meta.number.integer.decimal constant.numeric.value
1344
1463
(" {0,6}" -f 4.99 ), (" {0,6:##.00}" -f 15.9 )
1345
1464
# ^^ keyword.operator.string-format
1346
- # ^^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
1465
+ # ^^^^ meta.number.float.decimal constant.numeric.value
1347
1466
# ^^^^^^^^^^^^^ string.quoted.double
1348
1467
# ^^ keyword.operator.string-format
1349
1468
" {0:R}" -f (1 mb / 2.0 )
1350
1469
# ^ keyword.operator.string-format
1351
1470
# ^ meta.number.integer.decimal constant.numeric.value
1352
- # ^^ meta.number.integer.decimal.powershell constant.numeric.suffix.powershell
1471
+ # ^^ meta.number.integer.decimal constant.numeric.suffix
1353
1472
" {0:00.0}" -f 4.12341234
1354
1473
# ^ keyword.operator.string-format
1355
1474
" {0:##.#}" -f 4.12341234
1356
1475
# ^ string.quoted.double
1357
1476
# ^ keyword.operator.string-format
1358
- # ^^^^^^^^^^ meta.number.float.decimal.powershell constant.numeric.value.powershell
1477
+ # ^^^^^^^^^^ meta.number.float.decimal constant.numeric.value
1359
1478
" {0:#,#.#}" -f 1234.121234
1360
1479
# ^ string.quoted.double
1361
1480
# ^ keyword.operator.string-format
@@ -1574,48 +1693,48 @@ get-thing | Out-WithYou > $null # destroy
1574
1693
# ^^^^^^^^^^^^^^^^ variable.language - punctuation
1575
1694
<#
1576
1695
. SYNOPSIS
1577
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1696
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1578
1697
#^^^^^^^^ keyword.other.documentation
1579
1698
. DESCRIPTION
1580
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1699
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1581
1700
#^^^^^^^^^^^ keyword.other.documentation
1582
1701
.PARAMETER
1583
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1702
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1584
1703
#^^^^^^^^ keyword.other.documentation
1585
1704
. EXAMPLE
1586
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1705
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1587
1706
#^^^^^^^ keyword.other.documentation
1588
1707
. INPUTS
1589
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1708
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1590
1709
#^^^^^^ keyword.other.documentation
1591
1710
. OUTPUTS
1592
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1711
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1593
1712
#^^^^^^^ keyword.other.documentation
1594
1713
. NOTES
1595
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1714
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1596
1715
#^^^^^ keyword.other.documentation
1597
1716
. LINK
1598
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1717
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1599
1718
#^^^^ keyword.other.documentation
1600
1719
. COMPONENT
1601
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1720
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1602
1721
#^^^^^^^^^ keyword.other.documentation
1603
1722
. ROLE
1604
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1723
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1605
1724
#^^^^ keyword.other.documentation
1606
1725
. FUNCTIONALITY
1607
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1726
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1608
1727
#^^^^^^^^^^^^^ keyword.other.documentation
1609
1728
.FORWARDHELPTARGETNAME
1610
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1729
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1611
1730
#^^^^^^^^^^^^^^^^^^^^^ keyword.other.documentation
1612
1731
.FORWARDHELPCATEGORY
1613
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1732
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1614
1733
#^^^^^^^^^^^^^^^^^^^ keyword.other.documentation
1615
1734
.REMOTEHELPRUNSPACE
1616
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1735
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1617
1736
#^^^^^^^^^^^^^^^^^^ keyword.other.documentation
1618
1737
.EXTERNALHELP
1619
- #<- comment.block.powershell comment.documentation.embedded.powershell punctuation.definition.keyword.documentation.powershell
1738
+ #<- comment.block comment.documentation.embedded punctuation.definition.keyword.documentation
1620
1739
#^^^^^^^^^^^^ keyword.other.documentation
1621
1740
#>
0 commit comments