提交 106b6cbc 编写于 作者: M Martin Aeschlimann 提交者: GitHub

Merge pull request #23179 from DustinCampbell/update-csharp-grammar

Update to latest C# TextMate grammar
......@@ -1152,9 +1152,15 @@
"name": "keyword.other.set.cs",
"match": "\\b(set)\\b"
},
{
"include": "#comment"
},
{
"include": "#attribute-section"
},
{
"include": "#expression-body"
},
{
"include": "#block"
},
......@@ -1185,9 +1191,15 @@
"name": "keyword.other.remove.cs",
"match": "\\b(remove)\\b"
},
{
"include": "#comment"
},
{
"include": "#attribute-section"
},
{
"include": "#expression-body"
},
{
"include": "#block"
},
......@@ -3123,7 +3135,7 @@
"end": "(?=(,|\\)|\\]))",
"patterns": [
{
"include": "#expression"
"include": "#argument"
}
]
},
......@@ -3404,7 +3416,7 @@
"name": "keyword.operator.arrow.cs"
}
},
"end": "(?=\\)|;|})",
"end": "(?=\\)|;|}|,)",
"patterns": [
{
"include": "#block"
......@@ -3415,7 +3427,7 @@
]
},
{
"begin": "(?x)\n(?:\\b(async)\\b\\s*)?\n(\\(.*\\))\\s*\n(=>)",
"begin": "(?x)\n(?:\\b(async)\\b\\s*)?\n(\\(.*?\\))\\s*\n(=>)",
"beginCaptures": {
"1": {
"name": "storage.modifier.cs"
......@@ -3431,7 +3443,7 @@
"name": "keyword.operator.arrow.cs"
}
},
"end": "(?=\\)|;|})",
"end": "(?=\\)|;|}|,)",
"patterns": [
{
"include": "#block"
......@@ -3451,7 +3463,7 @@
"name": "keyword.other.delegate.cs"
}
},
"end": "(?=\\)|;|})",
"end": "(?=\\)|;|}|,)",
"patterns": [
{
"include": "#parenthesized-parameter-list"
......@@ -3467,13 +3479,13 @@
]
},
"lambda-parameter-list": {
"begin": "(\\()",
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "punctuation.parenthesis.open.cs"
}
},
"end": "(\\))",
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.parenthesis.close.cs"
......@@ -4175,5 +4187,5 @@
}
}
},
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/c6def572109a0c7323ea1d1ca66e5af020ab070e"
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/4d0e50c51f336645c98689737db1be321d212d3d"
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册