mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
@@ -4,7 +4,7 @@
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/16612717ccd557383c0c821d7b6ae6662492ffde",
|
||||
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/5e7dd90d2af9817b0dfb614b21c79a3e81882d9f",
|
||||
"name": "C#",
|
||||
"scopeName": "source.cs",
|
||||
"patterns": [
|
||||
@@ -289,6 +289,9 @@
|
||||
{
|
||||
"include": "#throw-expression"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string"
|
||||
},
|
||||
{
|
||||
"include": "#interpolated-string"
|
||||
},
|
||||
@@ -571,7 +574,7 @@
|
||||
},
|
||||
"storage-modifier": {
|
||||
"name": "storage.modifier.cs",
|
||||
"match": "(?<!\\.)\\b(new|public|protected|internal|private|abstract|virtual|override|sealed|static|partial|readonly|volatile|const|extern|async|unsafe|ref)\\b"
|
||||
"match": "(?<!\\.)\\b(new|public|protected|internal|private|abstract|virtual|override|sealed|static|partial|readonly|volatile|const|extern|async|unsafe|ref|required)\\b"
|
||||
},
|
||||
"class-declaration": {
|
||||
"begin": "(?=\\bclass\\b)",
|
||||
@@ -2780,6 +2783,184 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw-interpolated-string-five-or-more-quote-one-or-more-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string-three-or-more-quote-three-or-more-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string-quadruple-quote-double-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string-quadruple-quote-single-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string-triple-quote-double-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#raw-interpolated-string-triple-quote-single-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string-triple-quote-single-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string-triple-quote-double-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$\\$\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#double-raw-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string-quadruple-quote-single-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$\"\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string-quadruple-quote-double-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$\\$\"\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#double-raw-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-interpolated-string-three-or-more-quote-three-or-more-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$\\$\\$+\"\"\"+",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"+",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw-interpolated-string-five-or-more-quote-one-or-more-interpolation": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\\$+\"\"\"\"\"+",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"\"\"+",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw-interpolation": {
|
||||
"name": "meta.interpolation.cs",
|
||||
"begin": "(?<=[^\\{]|^)((?:\\{)*)(\\{)(?=[^\\{])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "string.quoted.double.cs"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.interpolation.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.interpolation.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"double-raw-interpolation": {
|
||||
"name": "meta.interpolation.cs",
|
||||
"begin": "(?<=[^\\{][^\\{]|^)((?:\\{)*)(\\{\\{)(?=[^\\{])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "string.quoted.double.cs"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.interpolation.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\\}\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.interpolation.end.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"literal": {
|
||||
"patterns": [
|
||||
{
|
||||
@@ -2794,6 +2975,9 @@
|
||||
{
|
||||
"include": "#char-literal"
|
||||
},
|
||||
{
|
||||
"include": "#raw-string-literal"
|
||||
},
|
||||
{
|
||||
"include": "#string-literal"
|
||||
},
|
||||
@@ -3055,6 +3239,64 @@
|
||||
"name": "constant.character.escape.cs",
|
||||
"match": "\"\""
|
||||
},
|
||||
"raw-string-literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw-string-literal-more"
|
||||
},
|
||||
{
|
||||
"include": "#raw-string-literal-quadruple"
|
||||
},
|
||||
{
|
||||
"include": "#raw-string-literal-triple"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw-string-literal-triple": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw-string-literal-quadruple": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\"\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"raw-string-literal-more": {
|
||||
"name": "string.quoted.double.cs",
|
||||
"begin": "\"\"\"\"\"+",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cs"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"\"\"+",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tuple-literal": {
|
||||
"begin": "(\\()(?=.*[:,])",
|
||||
"beginCaptures": {
|
||||
|
||||
Reference in New Issue
Block a user