@@ -18,10 +18,10 @@ first_line_match: |-
18
18
19
19
variables :
20
20
dec_exponent : (?:[eE][-+]?\d*)
21
- dec_suffix : ' [dDlL ]'
22
- double_suffix : ' [dD ]'
23
- long_suffix : ' [lL] '
24
- unit_suffix : (?i:[kmgtp]b)
21
+ dec_suffix : ' [dD ]'
22
+ float_suffix : ' [dDlL ]'
23
+ int_suffix : (?i:u[lsy]?|[lnsy])
24
+ unit_suffix : (?i:[kmgtp]b\b )
25
25
kebab_break : (?![\w-])
26
26
27
27
contexts :
@@ -548,14 +548,14 @@ contexts:
548
548
pop : true
549
549
550
550
numeric-constant :
551
- - match : \b(0[bB])([01]*)({{long_suffix }}?{{unit_suffix}}?)\b
551
+ - match : \b(0[bB])([01]*)({{int_suffix }}?{{unit_suffix}}?)
552
552
scope : meta.number.integer.binary.powershell
553
553
captures :
554
554
1 : constant.numeric.base.powershell
555
555
2 : constant.numeric.value.powershell
556
556
3 : constant.numeric.suffix.powershell
557
557
push : members
558
- - match : \b(0[xX])(\h*)({{long_suffix }}?{{unit_suffix}}?)\b
558
+ - match : \b(0[xX])(\h*)({{int_suffix }}?{{unit_suffix}}?)
559
559
scope : meta.number.integer.hexadecimal.powershell
560
560
captures :
561
561
1 : constant.numeric.base.powershell
@@ -570,11 +570,11 @@ contexts:
570
570
# 1.2 1.2e-3 1.e2 1e2
571
571
| \d+ (?: (\.) \d+ {{dec_exponent}}? | (\.)? {{dec_exponent}} )
572
572
)
573
- ( {{dec_suffix }}? {{unit_suffix}}? )\b
573
+ ( {{float_suffix }}? {{unit_suffix}}? )
574
574
|
575
575
# 10.l 10.lGB 10.GB
576
576
( \d+ (\.) )
577
- ( {{dec_suffix }} {{unit_suffix}}? | {{unit_suffix}} )\b
577
+ ( {{float_suffix }} {{unit_suffix}}? | {{unit_suffix}} )
578
578
scope: meta.number.float.decimal.powershell
579
579
captures:
580
580
1: constant.numeric.value.powershell
@@ -586,13 +586,13 @@ contexts:
586
586
7: punctuation.separator.decimal.powershell
587
587
8: constant.numeric.suffix.powershell
588
588
push: members
589
- - match : \b(\d+)({{double_suffix }}{{unit_suffix}}?)\b
589
+ - match : \b(\d+)({{dec_suffix }}{{unit_suffix}}?)
590
590
scope : meta.number.float.decimal.powershell
591
591
captures :
592
592
1 : constant.numeric.value.powershell
593
593
2 : constant.numeric.suffix.powershell
594
594
push : members
595
- - match : \b(\d+)({{long_suffix }}?{{unit_suffix}}?)\b
595
+ - match : \b(\d+)({{int_suffix }}?{{unit_suffix}}?)
596
596
scope : meta.number.integer.decimal.powershell
597
597
captures :
598
598
1 : constant.numeric.value.powershell
0 commit comments