|
630 | 630 | "field": {
|
631 | 631 | "name": "meta.field.slice",
|
632 | 632 | "begin": "\\\\?\\w+",
|
633 |
| - "end": "(?=[,}])|$", |
| 633 | + "end": "(?=[,}\\)])|$", |
634 | 634 | "beginCaptures": {
|
635 | 635 | "0": {
|
636 | 636 | "name": "entity.name.variable.slice",
|
|
641 | 641 | {"include": "#standard"},
|
642 | 642 | {
|
643 | 643 | "begin": ":",
|
644 |
| - "end": "(?=[,}])|$", |
| 644 | + "end": "(?=[,}\\)])|$", |
645 | 645 | "beginCaptures": {
|
646 | 646 | "0": {"name": "punctuation.separator.colon.slice"}
|
647 | 647 | },
|
|
724 | 724 | "patterns": [
|
725 | 725 | {"include": "#standard"},
|
726 | 726 | {
|
727 |
| - "begin": "=", |
728 |
| - "end": "(?=[,}])|$", |
| 727 | + "begin": "\\(", |
| 728 | + "end": "\\)", |
729 | 729 | "beginCaptures": {
|
730 |
| - "0": {"name": "keyword.operator.assignment.slice"} |
| 730 | + "0": {"name": "punctuation.parenthesis.open.slice"} |
| 731 | + }, |
| 732 | + "endCaptures": { |
| 733 | + "0": {"name": "punctuation.parenthesis.close.slice"} |
731 | 734 | },
|
732 | 735 | "patterns": [
|
733 |
| - {"include": "#standard"}, |
| 736 | + {"include": "#tag"}, |
| 737 | + {"include": "#field"}, |
734 | 738 | {
|
735 |
| - "begin": "(?=-|\\b)[\\w-]+\\b", |
736 |
| - "end": "(?=[,}])|$", |
737 |
| - "beginCaptures": { |
738 |
| - "0": {"patterns": [{"include": "#integer-literal"}]} |
739 |
| - }, |
740 |
| - "patterns": [ |
741 |
| - {"include": "#standard"} |
742 |
| - ] |
| 739 | + "name": "punctuation.separator.comma.slice", |
| 740 | + "match": "," |
743 | 741 | },
|
744 |
| - {"include": "#error"} |
| 742 | + {"include": "#slice"} |
745 | 743 | ]
|
746 |
| - } |
| 744 | + }, |
| 745 | + {"include": "#enumerator-value"} |
| 746 | + ] |
| 747 | + }, |
| 748 | + "enumerator-value": { |
| 749 | + "begin": "=", |
| 750 | + "end": "(?=[,}])|$", |
| 751 | + "beginCaptures": { |
| 752 | + "0": {"name": "keyword.operator.assignment.slice"} |
| 753 | + }, |
| 754 | + "patterns": [ |
| 755 | + {"include": "#standard"}, |
| 756 | + { |
| 757 | + "begin": "(?=-|\\b)[\\w-]+\\b", |
| 758 | + "end": "(?=[,}])|$", |
| 759 | + "beginCaptures": { |
| 760 | + "0": {"patterns": [{"include": "#integer-literal"}]} |
| 761 | + }, |
| 762 | + "patterns": [ |
| 763 | + {"include": "#standard"} |
| 764 | + ] |
| 765 | + }, |
| 766 | + {"include": "#error"} |
747 | 767 | ]
|
748 | 768 | },
|
749 | 769 |
|
|
0 commit comments