|
3816 | 3816 | <key>unicodeEscape</key>
|
3817 | 3817 | <dict>
|
3818 | 3818 | <key>comment</key>
|
3819 |
| - <string>`u{xxxx} added in PowerShell 6.0</string> |
| 3819 | + <string>`u{x} added in PowerShell 6.0 (x=1-6 hex digits, value ranging 0-10FFFF)</string> |
3820 | 3820 | <key>patterns</key>
|
3821 | 3821 | <array>
|
3822 | 3822 | <dict>
|
3823 | 3823 | <key>match</key>
|
3824 |
| - <string>`u\{(?:(?:10)?([0-9a-fA-F]){1,4}|0?\g<1>{1,5})}</string> |
| 3824 | + <string>`u\{(?:(?:10)\h{1,4}|0?\h{1,5})}</string> |
3825 | 3825 | <key>name</key>
|
3826 | 3826 | <string>constant.character.escape.powershell</string>
|
3827 | 3827 | </dict>
|
3828 | 3828 | <dict>
|
3829 | 3829 | <key>match</key>
|
3830 |
| - <string>`u(?:\{[0-9a-fA-F]{,6}.)?</string> |
| 3830 | + <string>`u(?:\{\h{,6}.)?</string> |
3831 | 3831 | <key>name</key>
|
3832 | 3832 | <string>invalid.character.escape.powershell</string>
|
3833 | 3833 | </dict>
|
|
4441 | 4441 | <key>name</key>
|
4442 | 4442 | <string>constant.numeric.integer.powershell</string>
|
4443 | 4443 | </dict>
|
4444 |
| - <key>2</key> |
| 4444 | + <key>3</key> |
4445 | 4445 | <dict>
|
4446 | 4446 | <key>name</key>
|
4447 | 4447 | <string>storage.modifier.long.powershell</string>
|
4448 | 4448 | </dict>
|
4449 | 4449 | <key>4</key>
|
4450 |
| - <dict> |
4451 |
| - <key>name</key> |
4452 |
| - <string>storage.modifier.long.powershell</string> |
4453 |
| - </dict> |
4454 |
| - <key>5</key> |
4455 | 4450 | <dict>
|
4456 | 4451 | <key>name</key>
|
4457 | 4452 | <string>constant.language.powershell</string>
|
4458 | 4453 | </dict>
|
4459 | 4454 | </dict>
|
4460 | 4455 | <key>begin</key>
|
4461 |
| - <string>(?>([+\x{2013}-\x{2015}-]?(?:[0-9]+(?i:(?![ed]|\.(?!\.))(l)?|(?:\.[0-9]*)?((?:(?i:e)[+\x{2013}-\x{2015}-]?[0-9]+)?(l)))|(?:\.[0-9]+)\g<3>))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
| 4456 | + <string>([+\x{2013}-\x{2015}-]?(?:\d+(?i:(?:\.\d*)?((?:e[+\x{2013}-\x{2015}-]?\d+)?(l))|(?!\.(?!\.)))|(?:\.\d+)\g<2>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4462 | 4457 | <key>end</key>
|
4463 | 4458 | <string>(?=.|$)</string>
|
4464 | 4459 | <key>applyEndPatternLast</key>
|
|
4491 | 4486 | </dict>
|
4492 | 4487 | </dict>
|
4493 | 4488 | <key>begin</key>
|
4494 |
| - <string>(?>([+\x{2013}-\x{2015}-]?0(?i:x[0-9a-f_]+(l)?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
| 4489 | + <string>([+\x{2013}-\x{2015}-]?0(?i:x\h+(l)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4495 | 4490 | <key>end</key>
|
4496 | 4491 | <string>(?=.|$)</string>
|
4497 | 4492 | <key>applyEndPatternLast</key>
|
|
4517 | 4512 | <key>name</key>
|
4518 | 4513 | <string>storage.modifier.decimal.powershell</string>
|
4519 | 4514 | </dict>
|
4520 |
| - <key>3</key> |
| 4515 | + <key>5</key> |
4521 | 4516 | <dict>
|
4522 | 4517 | <key>name</key>
|
4523 | 4518 | <string>constant.language.powershell</string>
|
4524 | 4519 | </dict>
|
4525 | 4520 | </dict>
|
4526 | 4521 | <key>begin</key>
|
4527 |
| - <string>(?>([+\x{2013}-\x{2015}-]?(?:(?:[0-9]+)|(?=\.[0-9]))(?:\.[0-9]*)?(?i:(?:e[+\x{2013}-\x{2015}-]?[0-9]+)?(?!l)(d)?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
| 4522 | + <string>([+\x{2013}-\x{2015}-]?(?i:\d+(?:(?:(d)|(?:(e[+\x{2013}-\x{2015}-]?\d+)\g<2>?))|\.\d*(\g<3>?\g<2>?))|\.\d+\g<4>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4528 | 4523 | <key>end</key>
|
4529 | 4524 | <string>(?=.|$)</string>
|
4530 | 4525 | <key>applyEndPatternLast</key>
|
|
4552 | 4547 | </dict>
|
4553 | 4548 | </dict>
|
4554 | 4549 | <key>comment</key>
|
4555 |
| - <string>(?>(?:(?<!\w)|\G)([+\x{2013}-\x{2015}-]?0(?i:b[01_]+l?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
| 4550 | + <string>([+\x{2013}-\x{2015}-]?0(?i:b[01_]+l?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4556 | 4551 | </dict>
|
4557 | 4552 | </array>
|
4558 | 4553 | <key>repository</key>
|
|
4624 | 4619 | <key>name</key>
|
4625 | 4620 | <string>constant.numeric.integer.powershell</string>
|
4626 | 4621 | </dict>
|
4627 |
| - <key>2</key> |
| 4622 | + <key>3</key> |
4628 | 4623 | <dict>
|
4629 | 4624 | <key>name</key>
|
4630 | 4625 | <string>storage.modifier.long.powershell</string>
|
4631 | 4626 | </dict>
|
4632 | 4627 | <key>4</key>
|
4633 |
| - <dict> |
4634 |
| - <key>name</key> |
4635 |
| - <string>storage.modifier.long.powershell</string> |
4636 |
| - </dict> |
4637 |
| - <key>5</key> |
4638 | 4628 | <dict>
|
4639 | 4629 | <key>name</key>
|
4640 | 4630 | <string>constant.language.powershell</string>
|
4641 | 4631 | </dict>
|
4642 | 4632 | </dict>
|
4643 | 4633 | <key>match</key>
|
4644 |
| - <string>(?>((?:[0-9]+(?i:(?![ed]|\.(?!\.))(l)?|(?:\.[0-9]*)?((?:(?i:e)[+\x{2013}-\x{2015}-]?[0-9]+)?(l)))|(?:\.[0-9]+)\g<2>)))((?i:[kmgtp]b)?)(?=[\s{(,;&|)}])</string> |
| 4634 | + <string>((?:\d+(?i:(?:\.\d*)?((?:e[+\x{2013}-\x{2015}-]?\d+)?(l))|(?!\.(?!\.)))|(?:\.\d+)\g<2>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
4645 | 4635 | </dict>
|
4646 | 4636 | <dict>
|
4647 | 4637 | <key>captures</key>
|
|
4663 | 4653 | </dict>
|
4664 | 4654 | </dict>
|
4665 | 4655 | <key>match</key>
|
4666 |
| - <string>(?>(0(?i:x[0-9a-f_]+(l)?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}])</string> |
| 4656 | + <string>(0(?i:x\h+(l)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
4667 | 4657 | </dict>
|
4668 | 4658 | <dict>
|
4669 | 4659 | <key>captures</key>
|
|
4678 | 4668 | <key>name</key>
|
4679 | 4669 | <string>storage.modifier.decimal.powershell</string>
|
4680 | 4670 | </dict>
|
4681 |
| - <key>3</key> |
| 4671 | + <key>5</key> |
4682 | 4672 | <dict>
|
4683 | 4673 | <key>name</key>
|
4684 | 4674 | <string>constant.language.powershell</string>
|
4685 | 4675 | </dict>
|
4686 | 4676 | </dict>
|
4687 | 4677 | <key>match</key>
|
4688 |
| - <string>(?>((?:(?:[0-9]+)|(?=\.[0-9]))(?:\.[0-9]*)?(?i:(?:e[+\x{2013}-\x{2015}-]?[0-9]+)?(?!l)(d)?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}])</string> |
| 4678 | + <string>((?i:\d+(?:(?:(d)|(?:(e[+\x{2013}-\x{2015}-]?\d+)\g<2>?))|\.\d*(\g<3>?\g<2>?))|\.\d+\g<4>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
4689 | 4679 | </dict>
|
4690 | 4680 | <dict>
|
4691 | 4681 | <key>captures</key>
|
|
4702 | 4692 | </dict>
|
4703 | 4693 | </dict>
|
4704 | 4694 | <key>comment</key>
|
4705 |
| - <string>(?>(?:(?<!\w)|\G)([+\x{2013}-\x{2015}-]?0(?i:b[01_]+l?))((?i:[kmgtp]b)?))(?=[\s{(,;&|)}])</string> |
| 4695 | + <string>(0(?i:b[01_]+l?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
4706 | 4696 | </dict>
|
4707 | 4697 | </array>
|
4708 | 4698 | </dict>
|
|
0 commit comments