@@ -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 :
@@ -549,14 +549,14 @@ contexts:
549
549
pop : true
550
550
551
551
numeric-constant :
552
- - match : \b(0[bB])([01]*)({{long_suffix }}?{{unit_suffix}}?)\b
552
+ - match : \b(0[bB])([01]*)({{int_suffix }}?{{unit_suffix}}?)
553
553
scope : meta.number.integer.binary.powershell
554
554
captures :
555
555
1 : constant.numeric.base.powershell
556
556
2 : constant.numeric.value.powershell
557
557
3 : constant.numeric.suffix.powershell
558
558
push : members
559
- - match : \b(0[xX])(\h*)({{long_suffix }}?{{unit_suffix}}?)\b
559
+ - match : \b(0[xX])(\h*)({{int_suffix }}?{{unit_suffix}}?)
560
560
scope : meta.number.integer.hexadecimal.powershell
561
561
captures :
562
562
1 : constant.numeric.base.powershell
@@ -571,11 +571,11 @@ contexts:
571
571
# 1.2 1.2e-3 1.e2 1e2
572
572
| \d+ (?: (\.) \d+ {{dec_exponent}}? | (\.)? {{dec_exponent}} )
573
573
)
574
- ( {{dec_suffix }}? {{unit_suffix}}? )\b
574
+ ( {{float_suffix }}? {{unit_suffix}}? )
575
575
|
576
576
# 10.l 10.lGB 10.GB
577
577
( \d+ (\.) )
578
- ( {{dec_suffix }} {{unit_suffix}}? | {{unit_suffix}} )\b
578
+ ( {{float_suffix }} {{unit_suffix}}? | {{unit_suffix}} )
579
579
scope: meta.number.float.decimal.powershell
580
580
captures:
581
581
1: constant.numeric.value.powershell
@@ -587,13 +587,13 @@ contexts:
587
587
7: punctuation.separator.decimal.powershell
588
588
8: constant.numeric.suffix.powershell
589
589
push: members
590
- - match : \b(\d+)({{double_suffix }}{{unit_suffix}}?)\b
590
+ - match : \b(\d+)({{dec_suffix }}{{unit_suffix}}?)
591
591
scope : meta.number.float.decimal.powershell
592
592
captures :
593
593
1 : constant.numeric.value.powershell
594
594
2 : constant.numeric.suffix.powershell
595
595
push : members
596
- - match : \b(\d+)({{long_suffix }}?{{unit_suffix}}?)\b
596
+ - match : \b(\d+)({{int_suffix }}?{{unit_suffix}}?)
597
597
scope : meta.number.integer.decimal.powershell
598
598
captures :
599
599
1 : constant.numeric.value.powershell
0 commit comments