|
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/dotnet/csharp-tmLanguage/commit/16612717ccd557383c0c821d7b6ae6662492ffde", |
| 7 | + "version": "https://github.com/dotnet/csharp-tmLanguage/commit/5e7dd90d2af9817b0dfb614b21c79a3e81882d9f", |
8 | 8 | "name": "C#",
|
9 | 9 | "scopeName": "source.cs",
|
10 | 10 | "patterns": [
|
|
289 | 289 | {
|
290 | 290 | "include": "#throw-expression"
|
291 | 291 | },
|
| 292 | + { |
| 293 | + "include": "#raw-interpolated-string" |
| 294 | + }, |
292 | 295 | {
|
293 | 296 | "include": "#interpolated-string"
|
294 | 297 | },
|
|
571 | 574 | },
|
572 | 575 | "storage-modifier": {
|
573 | 576 | "name": "storage.modifier.cs",
|
574 |
| - "match": "(?<!\\.)\\b(new|public|protected|internal|private|abstract|virtual|override|sealed|static|partial|readonly|volatile|const|extern|async|unsafe|ref)\\b" |
| 577 | + "match": "(?<!\\.)\\b(new|public|protected|internal|private|abstract|virtual|override|sealed|static|partial|readonly|volatile|const|extern|async|unsafe|ref|required)\\b" |
575 | 578 | },
|
576 | 579 | "class-declaration": {
|
577 | 580 | "begin": "(?=\\bclass\\b)",
|
|
2780 | 2783 | }
|
2781 | 2784 | ]
|
2782 | 2785 | },
|
| 2786 | + "raw-interpolated-string": { |
| 2787 | + "patterns": [ |
| 2788 | + { |
| 2789 | + "include": "#raw-interpolated-string-five-or-more-quote-one-or-more-interpolation" |
| 2790 | + }, |
| 2791 | + { |
| 2792 | + "include": "#raw-interpolated-string-three-or-more-quote-three-or-more-interpolation" |
| 2793 | + }, |
| 2794 | + { |
| 2795 | + "include": "#raw-interpolated-string-quadruple-quote-double-interpolation" |
| 2796 | + }, |
| 2797 | + { |
| 2798 | + "include": "#raw-interpolated-string-quadruple-quote-single-interpolation" |
| 2799 | + }, |
| 2800 | + { |
| 2801 | + "include": "#raw-interpolated-string-triple-quote-double-interpolation" |
| 2802 | + }, |
| 2803 | + { |
| 2804 | + "include": "#raw-interpolated-string-triple-quote-single-interpolation" |
| 2805 | + } |
| 2806 | + ] |
| 2807 | + }, |
| 2808 | + "raw-interpolated-string-triple-quote-single-interpolation": { |
| 2809 | + "name": "string.quoted.double.cs", |
| 2810 | + "begin": "\\$\"\"\"", |
| 2811 | + "beginCaptures": { |
| 2812 | + "0": { |
| 2813 | + "name": "punctuation.definition.string.begin.cs" |
| 2814 | + } |
| 2815 | + }, |
| 2816 | + "end": "\"\"\"", |
| 2817 | + "endCaptures": { |
| 2818 | + "0": { |
| 2819 | + "name": "punctuation.definition.string.end.cs" |
| 2820 | + } |
| 2821 | + }, |
| 2822 | + "patterns": [ |
| 2823 | + { |
| 2824 | + "include": "#raw-interpolation" |
| 2825 | + } |
| 2826 | + ] |
| 2827 | + }, |
| 2828 | + "raw-interpolated-string-triple-quote-double-interpolation": { |
| 2829 | + "name": "string.quoted.double.cs", |
| 2830 | + "begin": "\\$\\$\"\"\"", |
| 2831 | + "beginCaptures": { |
| 2832 | + "0": { |
| 2833 | + "name": "punctuation.definition.string.begin.cs" |
| 2834 | + } |
| 2835 | + }, |
| 2836 | + "end": "\"\"\"", |
| 2837 | + "endCaptures": { |
| 2838 | + "0": { |
| 2839 | + "name": "punctuation.definition.string.end.cs" |
| 2840 | + } |
| 2841 | + }, |
| 2842 | + "patterns": [ |
| 2843 | + { |
| 2844 | + "include": "#double-raw-interpolation" |
| 2845 | + } |
| 2846 | + ] |
| 2847 | + }, |
| 2848 | + "raw-interpolated-string-quadruple-quote-single-interpolation": { |
| 2849 | + "name": "string.quoted.double.cs", |
| 2850 | + "begin": "\\$\"\"\"\"", |
| 2851 | + "beginCaptures": { |
| 2852 | + "0": { |
| 2853 | + "name": "punctuation.definition.string.begin.cs" |
| 2854 | + } |
| 2855 | + }, |
| 2856 | + "end": "\"\"\"\"", |
| 2857 | + "endCaptures": { |
| 2858 | + "0": { |
| 2859 | + "name": "punctuation.definition.string.end.cs" |
| 2860 | + } |
| 2861 | + }, |
| 2862 | + "patterns": [ |
| 2863 | + { |
| 2864 | + "include": "#raw-interpolation" |
| 2865 | + } |
| 2866 | + ] |
| 2867 | + }, |
| 2868 | + "raw-interpolated-string-quadruple-quote-double-interpolation": { |
| 2869 | + "name": "string.quoted.double.cs", |
| 2870 | + "begin": "\\$\\$\"\"\"\"", |
| 2871 | + "beginCaptures": { |
| 2872 | + "0": { |
| 2873 | + "name": "punctuation.definition.string.begin.cs" |
| 2874 | + } |
| 2875 | + }, |
| 2876 | + "end": "\"\"\"\"", |
| 2877 | + "endCaptures": { |
| 2878 | + "0": { |
| 2879 | + "name": "punctuation.definition.string.end.cs" |
| 2880 | + } |
| 2881 | + }, |
| 2882 | + "patterns": [ |
| 2883 | + { |
| 2884 | + "include": "#double-raw-interpolation" |
| 2885 | + } |
| 2886 | + ] |
| 2887 | + }, |
| 2888 | + "raw-interpolated-string-three-or-more-quote-three-or-more-interpolation": { |
| 2889 | + "name": "string.quoted.double.cs", |
| 2890 | + "begin": "\\$\\$\\$+\"\"\"+", |
| 2891 | + "beginCaptures": { |
| 2892 | + "0": { |
| 2893 | + "name": "punctuation.definition.string.begin.cs" |
| 2894 | + } |
| 2895 | + }, |
| 2896 | + "end": "\"\"\"+", |
| 2897 | + "endCaptures": { |
| 2898 | + "0": { |
| 2899 | + "name": "punctuation.definition.string.end.cs" |
| 2900 | + } |
| 2901 | + } |
| 2902 | + }, |
| 2903 | + "raw-interpolated-string-five-or-more-quote-one-or-more-interpolation": { |
| 2904 | + "name": "string.quoted.double.cs", |
| 2905 | + "begin": "\\$+\"\"\"\"\"+", |
| 2906 | + "beginCaptures": { |
| 2907 | + "0": { |
| 2908 | + "name": "punctuation.definition.string.begin.cs" |
| 2909 | + } |
| 2910 | + }, |
| 2911 | + "end": "\"\"\"\"\"+", |
| 2912 | + "endCaptures": { |
| 2913 | + "0": { |
| 2914 | + "name": "punctuation.definition.string.end.cs" |
| 2915 | + } |
| 2916 | + } |
| 2917 | + }, |
| 2918 | + "raw-interpolation": { |
| 2919 | + "name": "meta.interpolation.cs", |
| 2920 | + "begin": "(?<=[^\\{]|^)((?:\\{)*)(\\{)(?=[^\\{])", |
| 2921 | + "beginCaptures": { |
| 2922 | + "1": { |
| 2923 | + "name": "string.quoted.double.cs" |
| 2924 | + }, |
| 2925 | + "2": { |
| 2926 | + "name": "punctuation.definition.interpolation.begin.cs" |
| 2927 | + } |
| 2928 | + }, |
| 2929 | + "end": "\\}", |
| 2930 | + "endCaptures": { |
| 2931 | + "0": { |
| 2932 | + "name": "punctuation.definition.interpolation.end.cs" |
| 2933 | + } |
| 2934 | + }, |
| 2935 | + "patterns": [ |
| 2936 | + { |
| 2937 | + "include": "#expression" |
| 2938 | + } |
| 2939 | + ] |
| 2940 | + }, |
| 2941 | + "double-raw-interpolation": { |
| 2942 | + "name": "meta.interpolation.cs", |
| 2943 | + "begin": "(?<=[^\\{][^\\{]|^)((?:\\{)*)(\\{\\{)(?=[^\\{])", |
| 2944 | + "beginCaptures": { |
| 2945 | + "1": { |
| 2946 | + "name": "string.quoted.double.cs" |
| 2947 | + }, |
| 2948 | + "2": { |
| 2949 | + "name": "punctuation.definition.interpolation.begin.cs" |
| 2950 | + } |
| 2951 | + }, |
| 2952 | + "end": "\\}\\}", |
| 2953 | + "endCaptures": { |
| 2954 | + "0": { |
| 2955 | + "name": "punctuation.definition.interpolation.end.cs" |
| 2956 | + } |
| 2957 | + }, |
| 2958 | + "patterns": [ |
| 2959 | + { |
| 2960 | + "include": "#expression" |
| 2961 | + } |
| 2962 | + ] |
| 2963 | + }, |
2783 | 2964 | "literal": {
|
2784 | 2965 | "patterns": [
|
2785 | 2966 | {
|
|
2794 | 2975 | {
|
2795 | 2976 | "include": "#char-literal"
|
2796 | 2977 | },
|
| 2978 | + { |
| 2979 | + "include": "#raw-string-literal" |
| 2980 | + }, |
2797 | 2981 | {
|
2798 | 2982 | "include": "#string-literal"
|
2799 | 2983 | },
|
|
3055 | 3239 | "name": "constant.character.escape.cs",
|
3056 | 3240 | "match": "\"\""
|
3057 | 3241 | },
|
| 3242 | + "raw-string-literal": { |
| 3243 | + "patterns": [ |
| 3244 | + { |
| 3245 | + "include": "#raw-string-literal-more" |
| 3246 | + }, |
| 3247 | + { |
| 3248 | + "include": "#raw-string-literal-quadruple" |
| 3249 | + }, |
| 3250 | + { |
| 3251 | + "include": "#raw-string-literal-triple" |
| 3252 | + } |
| 3253 | + ] |
| 3254 | + }, |
| 3255 | + "raw-string-literal-triple": { |
| 3256 | + "name": "string.quoted.double.cs", |
| 3257 | + "begin": "\"\"\"", |
| 3258 | + "beginCaptures": { |
| 3259 | + "0": { |
| 3260 | + "name": "punctuation.definition.string.begin.cs" |
| 3261 | + } |
| 3262 | + }, |
| 3263 | + "end": "\"\"\"", |
| 3264 | + "endCaptures": { |
| 3265 | + "0": { |
| 3266 | + "name": "punctuation.definition.string.end.cs" |
| 3267 | + } |
| 3268 | + } |
| 3269 | + }, |
| 3270 | + "raw-string-literal-quadruple": { |
| 3271 | + "name": "string.quoted.double.cs", |
| 3272 | + "begin": "\"\"\"\"", |
| 3273 | + "beginCaptures": { |
| 3274 | + "0": { |
| 3275 | + "name": "punctuation.definition.string.begin.cs" |
| 3276 | + } |
| 3277 | + }, |
| 3278 | + "end": "\"\"\"\"", |
| 3279 | + "endCaptures": { |
| 3280 | + "0": { |
| 3281 | + "name": "punctuation.definition.string.end.cs" |
| 3282 | + } |
| 3283 | + } |
| 3284 | + }, |
| 3285 | + "raw-string-literal-more": { |
| 3286 | + "name": "string.quoted.double.cs", |
| 3287 | + "begin": "\"\"\"\"\"+", |
| 3288 | + "beginCaptures": { |
| 3289 | + "0": { |
| 3290 | + "name": "punctuation.definition.string.begin.cs" |
| 3291 | + } |
| 3292 | + }, |
| 3293 | + "end": "\"\"\"\"\"+", |
| 3294 | + "endCaptures": { |
| 3295 | + "0": { |
| 3296 | + "name": "punctuation.definition.string.end.cs" |
| 3297 | + } |
| 3298 | + } |
| 3299 | + }, |
3058 | 3300 | "tuple-literal": {
|
3059 | 3301 | "begin": "(\\()(?=.*[:,])",
|
3060 | 3302 | "beginCaptures": {
|
|
0 commit comments