Update grammars

This commit is contained in:
Alex Ross
2021-11-02 15:27:57 +01:00
parent 0577803a09
commit 9efc116de0
24 changed files with 244 additions and 150 deletions

View File

@@ -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/5426265f1be3f8056a984b709fadf56b9ce4c400",
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/483d25bfa2b96474b55d2e9e4d1ca2acbd542034",
"name": "C#",
"scopeName": "source.cs",
"patterns": [
@@ -530,7 +530,7 @@
"name": "keyword.other.namespace.cs"
}
},
"end": "(?<=\\})",
"end": "(?<=\\})|(?=;)",
"patterns": [
{
"include": "#comment"
@@ -3075,27 +3075,27 @@
{
"include": "#tuple-literal-element"
},
{
"include": "#expression"
},
{
"include": "#punctuation-comma"
}
]
},
"tuple-literal-element": {
"begin": "(?x)\n(?:(@?[_[:alpha:]][_[:alnum:]]*)\\s*(:)\\s*)?\n(?![,)])",
"begin": "(?x)\n(@?[_[:alpha:]][_[:alnum:]]*)\\s*\n(?=:)",
"beginCaptures": {
"0": {
"name": "entity.name.variable.tuple-element.cs"
},
"1": {
"name": "punctuation.separator.colon.cs"
"name": "entity.name.variable.tuple-element.cs"
}
},
"end": "(?=[,)])",
"patterns": [
{
"include": "#expression"
"end": "(:)",
"endCaptures": {
"0": {
"name": "punctuation.separator.colon.cs"
}
]
}
},
"expression-operators": {
"patterns": [