|
1010 | 1010 | <key>begin</key>
|
1011 | 1011 | <string>(?<=})(?![,)}\]])</string>
|
1012 | 1012 | <key>end</key>
|
1013 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 1013 | + <string>(?<![})])(?=[\n,})\]])</string> |
1014 | 1014 | <key>patterns</key>
|
1015 | 1015 | <array>
|
1016 | 1016 | <dict>
|
|
1206 | 1206 | <key>begin</key>
|
1207 | 1207 | <string>(?<=})(?![,)}\]])</string>
|
1208 | 1208 | <key>end</key>
|
1209 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 1209 | + <string>(?<![})])(?=[\n,})\]])</string> |
1210 | 1210 | <key>patterns</key>
|
1211 | 1211 | <array>
|
1212 | 1212 | <dict>
|
|
1383 | 1383 | <key>begin</key>
|
1384 | 1384 | <string>(?<=})(?![,)}\]])</string>
|
1385 | 1385 | <key>end</key>
|
1386 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 1386 | + <string>(?<![})])(?=[\n,})\]])</string> |
1387 | 1387 | <key>patterns</key>
|
1388 | 1388 | <array>
|
1389 | 1389 | <dict>
|
|
1679 | 1679 | <key>begin</key>
|
1680 | 1680 | <string>(?<=\))(?![,)}\]])</string>
|
1681 | 1681 | <key>end</key>
|
1682 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 1682 | + <string>(?<![})])(?=[\n,})\]])</string> |
1683 | 1683 | <key>patterns</key>
|
1684 | 1684 | <array>
|
1685 | 1685 | <dict>
|
|
4256 | 4256 | <key>begin</key>
|
4257 | 4257 | <string>(?<=})(?![,)}\]])</string>
|
4258 | 4258 | <key>end</key>
|
4259 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 4259 | + <string>(?<![})])(?=[\n,})\]])</string> |
4260 | 4260 | <key>patterns</key>
|
4261 | 4261 | <array>
|
4262 | 4262 | <dict>
|
|
4302 | 4302 | <key>comment</key>
|
4303 | 4303 | <string>next statement, return when safe to exit</string>
|
4304 | 4304 | <key>begin</key>
|
4305 |
| - <string>(?<=[}\)])(?![,)}\]])</string> |
| 4305 | + <string>(?:(?<=[})])|(?=\())(?![,)}\]])</string> |
4306 | 4306 | <key>end</key>
|
4307 |
| - <string>(?<![}\)])(?=[\n,})\]])</string> |
| 4307 | + <string>(?<![})])(?=[\n,})\]])</string> |
4308 | 4308 | <key>patterns</key>
|
4309 | 4309 | <array>
|
4310 | 4310 | <dict>
|
|
4456 | 4456 | <key>patterns</key>
|
4457 | 4457 | <array>
|
4458 | 4458 | <dict>
|
4459 |
| - <key>beginCaptures</key> |
4460 |
| - <dict> |
4461 |
| - <key>1</key> |
4462 |
| - <dict> |
4463 |
| - <key>name</key> |
4464 |
| - <string>constant.numeric.integer.powershell</string> |
4465 |
| - </dict> |
4466 |
| - <key>3</key> |
4467 |
| - <dict> |
4468 |
| - <key>name</key> |
4469 |
| - <string>storage.modifier.powershell</string> |
4470 |
| - </dict> |
4471 |
| - <key>4</key> |
4472 |
| - <dict> |
4473 |
| - <key>name</key> |
4474 |
| - <string>constant.language.powershell</string> |
4475 |
| - </dict> |
4476 |
| - </dict> |
4477 |
| - <key>begin</key> |
4478 |
| - <string>([+\x{2013}-\x{2015}-]?(?:\d+(?i:(?:\.\d*)?((?:e[+\x{2013}-\x{2015}-]?\d+)?([lsyn]|u[lsy]?))|(?!\.(?!\.)))|(?:\.\d+)\g<2>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4479 |
| - <key>end</key> |
4480 |
| - <string>(?=.|$)</string> |
4481 |
| - <key>applyEndPatternLast</key> |
4482 |
| - <true/> |
4483 |
| - <key>patterns</key> |
4484 |
| - <array> |
4485 |
| - <dict> |
4486 |
| - <key>include</key> |
4487 |
| - <string>#numeric_post</string> |
4488 |
| - </dict> |
4489 |
| - </array> |
4490 |
| - </dict> |
4491 |
| - <dict> |
4492 |
| - <key>beginCaptures</key> |
4493 |
| - <dict> |
4494 |
| - <key>1</key> |
4495 |
| - <dict> |
4496 |
| - <key>name</key> |
4497 |
| - <string>constant.numeric.hex.powershell</string> |
4498 |
| - </dict> |
4499 |
| - <key>2</key> |
4500 |
| - <dict> |
4501 |
| - <key>name</key> |
4502 |
| - <string>storage.modifier.powershell</string> |
4503 |
| - </dict> |
4504 |
| - <key>3</key> |
4505 |
| - <dict> |
4506 |
| - <key>name</key> |
4507 |
| - <string>constant.language.powershell</string> |
4508 |
| - </dict> |
4509 |
| - </dict> |
4510 | 4459 | <key>begin</key>
|
4511 |
| - <string>([+\x{2013}-\x{2015}-]?0(?i:x\h+(n|u?[lsy]?)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4512 |
| - <key>end</key> |
4513 |
| - <string>(?=.|$)</string> |
4514 |
| - <key>applyEndPatternLast</key> |
4515 |
| - <true/> |
4516 |
| - <key>patterns</key> |
4517 |
| - <array> |
4518 |
| - <dict> |
4519 |
| - <key>include</key> |
4520 |
| - <string>#numeric_post</string> |
4521 |
| - </dict> |
4522 |
| - </array> |
4523 |
| - </dict> |
4524 |
| - <dict> |
| 4460 | + <string>(?>(?i:[+\x{2013}-\x{2015}-]?(?:0(?:x\h+|b[01]+)|(?:\d+(?:\.(?!\.)\d*)?|\.\d+)(?:e[+\x{2013}-\x{2015}-]?\d+)?)(?:u?[lsy]|[dnu])?(?:[kmgtp]b)?))(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4525 | 4461 | <key>beginCaptures</key>
|
4526 | 4462 | <dict>
|
4527 |
| - <key>1</key> |
4528 |
| - <dict> |
4529 |
| - <key>name</key> |
4530 |
| - <string>constant.numeric.decimal.powershell</string> |
4531 |
| - </dict> |
4532 |
| - <key>2</key> |
4533 |
| - <dict> |
4534 |
| - <key>name</key> |
4535 |
| - <string>storage.modifier.decimal.powershell</string> |
4536 |
| - </dict> |
4537 |
| - <key>5</key> |
| 4463 | + <key>0</key> |
4538 | 4464 | <dict>
|
4539 |
| - <key>name</key> |
4540 |
| - <string>constant.language.powershell</string> |
| 4465 | + <key>patterns</key> |
| 4466 | + <array> |
| 4467 | + <dict> |
| 4468 | + <key>include</key> |
| 4469 | + <string>#numericConstant_capture</string> |
| 4470 | + </dict> |
| 4471 | + </array> |
4541 | 4472 | </dict>
|
4542 | 4473 | </dict>
|
4543 |
| - <key>begin</key> |
4544 |
| - <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> |
4545 | 4474 | <key>end</key>
|
4546 | 4475 | <string>(?=.|$)</string>
|
4547 | 4476 | <key>applyEndPatternLast</key>
|
|
4562 | 4491 | <key>match</key>
|
4563 | 4492 | <string>([\x{2013}-\x{2015}-]\.(?i:(?:e[+\x{2013}-\x{2015}-]?\d+)?(?:[dlsyn]|u[lsy]?)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string>
|
4564 | 4493 | </dict>
|
4565 |
| - <dict> |
4566 |
| - <key>captures</key> |
4567 |
| - <dict> |
4568 |
| - <key>1</key> |
4569 |
| - <dict> |
4570 |
| - <key>name</key> |
4571 |
| - <string>constant.numeric.binary.powershell</string> |
4572 |
| - </dict> |
4573 |
| - <key>2</key> |
4574 |
| - <dict> |
4575 |
| - <key>name</key> |
4576 |
| - <string>storage.modifier.powershell</string> |
4577 |
| - </dict> |
4578 |
| - <key>3</key> |
4579 |
| - <dict> |
4580 |
| - <key>name</key> |
4581 |
| - <string>constant.language.powershell</string> |
4582 |
| - </dict> |
4583 |
| - </dict> |
4584 |
| - <key>match</key> |
4585 |
| - <string>([+\x{2013}-\x{2015}-]?0(?i:b[01]+([dn]|u?[lsy]?)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}#\]<>.!+%*/=\x{2013}-\x{2015}-])</string> |
4586 |
| - </dict> |
4587 | 4494 | </array>
|
4588 | 4495 | <key>repository</key>
|
4589 | 4496 | <dict>
|
|
4642 | 4549 | </dict>
|
4643 | 4550 | </dict>
|
4644 | 4551 | </dict>
|
4645 |
| - <key>numericConstant_argumentMode</key> |
| 4552 | + <key>numericConstant_capture</key> |
4646 | 4553 | <dict>
|
4647 | 4554 | <key>patterns</key>
|
4648 | 4555 | <array>
|
|
4652 | 4559 | <key>1</key>
|
4653 | 4560 | <dict>
|
4654 | 4561 | <key>name</key>
|
4655 |
| - <string>constant.numeric.integer.powershell</string> |
| 4562 | + <string>constant.numeric.hex.powershell</string> |
4656 | 4563 | </dict>
|
4657 |
| - <key>3</key> |
| 4564 | + <key>2</key> |
4658 | 4565 | <dict>
|
4659 | 4566 | <key>name</key>
|
4660 | 4567 | <string>storage.modifier.powershell</string>
|
4661 | 4568 | </dict>
|
4662 |
| - <key>4</key> |
| 4569 | + <key>3</key> |
4663 | 4570 | <dict>
|
4664 | 4571 | <key>name</key>
|
4665 | 4572 | <string>constant.language.powershell</string>
|
4666 | 4573 | </dict>
|
4667 | 4574 | </dict>
|
4668 | 4575 | <key>match</key>
|
4669 |
| - <string>((?:\d+(?i:(?:\.\d*)?((?:e[+\x{2013}-\x{2015}-]?\d+)?([lsyn]|u[lsy]?))|(?!\.(?!\.)))|(?:\.\d+)\g<2>))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
| 4576 | + <string>([+\x{2013}-\x{2015}-]?0(?i:x\h+(u?[lsy]|[nu])?))((?i:[kmgtp]b))?$</string> |
4670 | 4577 | </dict>
|
4671 | 4578 | <dict>
|
4672 | 4579 | <key>captures</key>
|
4673 | 4580 | <dict>
|
4674 | 4581 | <key>1</key>
|
4675 | 4582 | <dict>
|
4676 | 4583 | <key>name</key>
|
4677 |
| - <string>constant.numeric.hex.powershell</string> |
| 4584 | + <string>constant.numeric.binary.powershell</string> |
4678 | 4585 | </dict>
|
4679 | 4586 | <key>2</key>
|
4680 | 4587 | <dict>
|
|
4688 | 4595 | </dict>
|
4689 | 4596 | </dict>
|
4690 | 4597 | <key>match</key>
|
4691 |
| - <string>(0(?i:x\h+(n|u?[lsy]?)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
| 4598 | + <string>([+\x{2013}-\x{2015}-]?0(?i:b[01]+(u?[lsy]|[dnu])?))((?i:[kmgtp]b))?$</string> |
4692 | 4599 | </dict>
|
4693 | 4600 | <dict>
|
4694 | 4601 | <key>captures</key>
|
|
4710 | 4617 | </dict>
|
4711 | 4618 | </dict>
|
4712 | 4619 | <key>match</key>
|
4713 |
| - <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> |
| 4620 | + <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))?$</string> |
4714 | 4621 | </dict>
|
4715 | 4622 | <dict>
|
4716 | 4623 | <key>captures</key>
|
4717 | 4624 | <dict>
|
4718 | 4625 | <key>1</key>
|
4719 | 4626 | <dict>
|
4720 | 4627 | <key>name</key>
|
4721 |
| - <string>constant.numeric.binary.powershell</string> |
| 4628 | + <string>constant.numeric.integer.powershell</string> |
4722 | 4629 | </dict>
|
4723 |
| - <key>2</key> |
| 4630 | + <key>3</key> |
4724 | 4631 | <dict>
|
4725 | 4632 | <key>name</key>
|
4726 | 4633 | <string>storage.modifier.powershell</string>
|
4727 | 4634 | </dict>
|
4728 |
| - <key>3</key> |
| 4635 | + <key>4</key> |
4729 | 4636 | <dict>
|
4730 | 4637 | <key>name</key>
|
4731 | 4638 | <string>constant.language.powershell</string>
|
4732 | 4639 | </dict>
|
4733 | 4640 | </dict>
|
4734 | 4641 | <key>match</key>
|
4735 |
| - <string>(0(?i:b[01]+(n|u?[lsy]?)?))((?i:[kmgtp]b))?(?=[\s{(,;&|)}])</string> |
| 4642 | + <string>([+\x{2013}-\x{2015}-]?(?:\d+(?i:(?:\.\d*)?((?:e[+\x{2013}-\x{2015}-]?\d+)?(u?[lsy]|[un])))?|(?:\.\d+)\g<2>))((?i:[kmgtp]b))?$</string> |
4736 | 4643 | </dict>
|
4737 | 4644 | </array>
|
4738 | 4645 | </dict>
|
| 4646 | + <key>numericConstant_argumentMode</key> |
| 4647 | + <dict> |
| 4648 | + <key>match</key> |
| 4649 | + <string>(?>(?i:(?:0(?:x\h+|b[01]+)|(?:\d+(?:\.(?!\.)\d*)?|\.\d+)(?:e[+\x{2013}-\x{2015}-]?\d+)?)(?:u?[lsy]|[dnu])?(?:[kmgtp]b)?))(?=[\s{(,;&|)}])</string> |
| 4650 | + <key>captures</key> |
| 4651 | + <dict> |
| 4652 | + <key>0</key> |
| 4653 | + <dict> |
| 4654 | + <key>patterns</key> |
| 4655 | + <array> |
| 4656 | + <dict> |
| 4657 | + <key>include</key> |
| 4658 | + <string>#numericConstant_capture</string> |
| 4659 | + </dict> |
| 4660 | + </array> |
| 4661 | + </dict> |
| 4662 | + </dict> |
| 4663 | + </dict> |
4739 | 4664 | <key>scriptblock</key>
|
4740 | 4665 | <dict>
|
4741 | 4666 | <key>begin</key>
|
|
0 commit comments