← All changes
|
build/shiki/languages/javascript.tmLanguage.json
+16
-14
1.11.1
→
1.13.0
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | "This file has been converted from https://github.com/microsoft/TypeScript-TmLanguage/blob/master/TypeScriptReact.tmLanguage", |
| 4 | 4 | "If you want to provide a fix or improvement, please create a pull request against the original repository.", |
| 5 | 5 | "Once accepted there, we are happy to receive an update request." |
| 6 | 6 | ], |
| 7 | - "version": "https://github.com/microsoft/TypeScript-TmLanguage/commit/0dfae8cc4807fecfbf8f1add095d9817df824c95", | |
| 7 | + "version": "https://github.com/microsoft/TypeScript-TmLanguage/commit/359e091c0a83a45e20aefc13111ed4a19e201f97", | |
| 8 | 8 | "name": "javascript", |
| 9 | 9 | "scopeName": "source.js", |
| 10 | 10 | "patterns": [ |
| 11 | 11 | { |
| @@ -1861,9 +1861,9 @@ | ||
| 1861 | 1861 | "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" |
| 1862 | 1862 | }, |
| 1863 | 1863 | "property-accessor": { |
| 1864 | 1864 | "name": "storage.type.property.js", |
| 1865 | - "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(get|set)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" | |
| 1865 | + "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(accessor|get|set)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" | |
| 1866 | 1866 | }, |
| 1867 | 1867 | "async-modifier": { |
| 1868 | 1868 | "name": "storage.modifier.async.js", |
| 1869 | 1869 | "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(async)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))" |
| @@ -2673,9 +2673,9 @@ | ||
| 2673 | 2673 | }, |
| 2674 | 2674 | { |
| 2675 | 2675 | "name": "meta.object.member.js meta.object-literal.key.js", |
| 2676 | 2676 | "begin": "(?=[\\'\\\"\\`])", |
| 2677 | - "end": "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))", | |
| 2677 | + "end": "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as|satisifies)\\s+))))", | |
| 2678 | 2678 | "patterns": [ |
| 2679 | 2679 | { |
| 2680 | 2680 | "include": "#comment" |
| 2681 | 2681 | }, |
| @@ -2686,9 +2686,9 @@ | ||
| 2686 | 2686 | }, |
| 2687 | 2687 | { |
| 2688 | 2688 | "name": "meta.object.member.js meta.object-literal.key.js", |
| 2689 | 2689 | "begin": "(?x)(?=(\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)))", |
| 2690 | - "end": "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as\\s+))", | |
| 2690 | + "end": "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as|satisifies\\s+))", | |
| 2691 | 2691 | "patterns": [ |
| 2692 | 2692 | { |
| 2693 | 2693 | "include": "#comment" |
| 2694 | 2694 | }, |
| @@ -2777,15 +2777,18 @@ | ||
| 2777 | 2777 | } |
| 2778 | 2778 | }, |
| 2779 | 2779 | { |
| 2780 | 2780 | "name": "meta.object.member.js", |
| 2781 | - "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+", | |
| 2781 | + "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+", | |
| 2782 | 2782 | "beginCaptures": { |
| 2783 | 2783 | "1": { |
| 2784 | 2784 | "name": "keyword.control.as.js" |
| 2785 | + }, | |
| 2786 | + "2": { | |
| 2787 | + "name": "keyword.control.satisfies.js" | |
| 2785 | 2788 | } |
| 2786 | 2789 | }, |
| 2787 | - "end": "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))", | |
| 2790 | + "end": "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))", | |
| 2788 | 2791 | "patterns": [ |
| 2789 | 2792 | { |
| 2790 | 2793 | "include": "#type" |
| 2791 | 2794 | } |
| @@ -3052,9 +3055,9 @@ | ||
| 3052 | 3055 | "1": { |
| 3053 | 3056 | "name": "keyword.operator.expression.instanceof.js" |
| 3054 | 3057 | } |
| 3055 | 3058 | }, |
| 3056 | - "end": "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", | |
| 3059 | + "end": "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(===|!==|==|!=)|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", | |
| 3057 | 3060 | "patterns": [ |
| 3058 | 3061 | { |
| 3059 | 3062 | "include": "#type" |
| 3060 | 3063 | } |
| @@ -3076,9 +3079,9 @@ | ||
| 3076 | 3079 | } |
| 3077 | 3080 | ] |
| 3078 | 3081 | }, |
| 3079 | 3082 | { |
| 3080 | - "begin": "(?<=[(=,]|=>|^return|[^\\._$[:alnum:]]return)\\s*(async)?(?=\\s*((((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?\\()|(<))\\s*$)", | |
| 3083 | + "begin": "(?<=[(=,]|=>|^return|[^\\._$[:alnum:]]return)\\s*(async)?(?=\\s*((((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*))?\\()|(<)|((<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<]|\\<\\s*([_$[:alpha:]]|(\\{([^\\{\\}]|(\\{([^\\{\\}]|\\{[^\\{\\}]*\\})*\\}))*\\})|(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))|(\\[([^\\[\\]]|(\\[([^\\[\\]]|\\[[^\\[\\]]*\\])*\\]))*\\]))([^=<>]|=[^<])*\\>)*\\>)*>\\s*)))\\s*$)", | |
| 3081 | 3084 | "beginCaptures": { |
| 3082 | 3085 | "1": { |
| 3083 | 3086 | "name": "storage.modifier.async.js" |
| 3084 | 3087 | } |
| @@ -3304,15 +3307,18 @@ | ||
| 3304 | 3307 | } |
| 3305 | 3308 | } |
| 3306 | 3309 | }, |
| 3307 | 3310 | { |
| 3308 | - "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+", | |
| 3311 | + "begin": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+", | |
| 3309 | 3312 | "beginCaptures": { |
| 3310 | 3313 | "1": { |
| 3311 | 3314 | "name": "keyword.control.as.js" |
| 3315 | + }, | |
| 3316 | + "2": { | |
| 3317 | + "name": "keyword.control.satisfies.js" | |
| 3312 | 3318 | } |
| 3313 | 3319 | }, |
| 3314 | - "end": "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))", | |
| 3320 | + "end": "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+)|(\\s+\\<))", | |
| 3315 | 3321 | "patterns": [ |
| 3316 | 3322 | { |
| 3317 | 3323 | "include": "#type" |
| 3318 | 3324 | } |
| @@ -5810,12 +5816,8 @@ | ||
| 5810 | 5816 | "3": { |
| 5811 | 5817 | "name": "punctuation.definition.entity.js" |
| 5812 | 5818 | } |
| 5813 | 5819 | } |
| 5814 | - }, | |
| 5815 | - { | |
| 5816 | - "name": "invalid.illegal.bad-ampersand.js", | |
| 5817 | - "match": "&" | |
| 5818 | 5820 | } |
| 5819 | 5821 | ] |
| 5820 | 5822 | }, |
| 5821 | 5823 | "jsx-tag-attributes": { |