|
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/878aefe73f942ac68dc4a46a0f154661bcb9eff4", |
| 7 | + "version": "https://github.com/dotnet/csharp-tmLanguage/commit/772323937fedd65c6dc1c8ce6ea41d97415ed7d1", |
8 | 8 | "name": "C#", |
9 | 9 | "scopeName": "source.cs", |
10 | 10 | "patterns": [ |
|
286 | 286 | { |
287 | 287 | "include": "#nameof-expression" |
288 | 288 | }, |
| 289 | + { |
| 290 | + "include": "#default-literal-expression" |
| 291 | + }, |
289 | 292 | { |
290 | 293 | "include": "#throw-expression" |
291 | 294 | }, |
|
298 | 301 | { |
299 | 302 | "include": "#verbatim-interpolated-string" |
300 | 303 | }, |
| 304 | + { |
| 305 | + "include": "#type-builtin" |
| 306 | + }, |
301 | 307 | { |
302 | 308 | "include": "#this-or-base-expression" |
303 | 309 | }, |
|
2733 | 2739 | } |
2734 | 2740 | ] |
2735 | 2741 | }, |
| 2742 | + "default-literal-expression": { |
| 2743 | + "match": "(?<!\\.)\\b(default)\\b", |
| 2744 | + "captures": { |
| 2745 | + "1": { |
| 2746 | + "name": "keyword.other.default.cs" |
| 2747 | + } |
| 2748 | + } |
| 2749 | + }, |
2736 | 2750 | "throw-expression": { |
2737 | 2751 | "match": "(?<!\\.)\\b(throw)\\b", |
2738 | 2752 | "captures": { |
|
3673 | 3687 | ] |
3674 | 3688 | }, |
3675 | 3689 | "object-creation-expression-with-parameters": { |
3676 | | - "begin": "(?x)\n(new)\\s+\n(?<type_name>\n (?:\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^\\(\\)]|\\g<tuple>)+\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n)\\s*\n(?=\\()", |
| 3690 | + "begin": "(?x)\n(new)(?:\\s+\n(?<type_name>\n (?:\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^\\(\\)]|\\g<tuple>)+\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n))?\\s*\n(?=\\()", |
3677 | 3691 | "beginCaptures": { |
3678 | 3692 | "1": { |
3679 | 3693 | "name": "keyword.other.new.cs" |
|
0 commit comments