Update grammars (#239483)

Fixes #239353
This commit is contained in:
Alex Ross
2025-02-04 10:29:01 +01:00
committed by GitHub
parent 01e36597fe
commit c9948b69ee
13 changed files with 1564 additions and 400 deletions

View File

@@ -6,7 +6,7 @@
"git": {
"name": "dotnet/csharp-tmLanguage",
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
"commitHash": "d63e2661d4e0c83b6c7810eb1d0eedc5da843b04"
"commitHash": "62026a70f9fcc42d9222eccfec34ed5ee0784f3d"
}
},
"license": "MIT",

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/d63e2661d4e0c83b6c7810eb1d0eedc5da843b04",
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/62026a70f9fcc42d9222eccfec34ed5ee0784f3d",
"name": "C#",
"scopeName": "source.cs",
"patterns": [
@@ -4206,7 +4206,7 @@
]
},
"invocation-expression": {
"begin": "(?x)\n(?:\n (?:(\\?)\\s*)? # preceding null-conditional operator?\n (\\.)\\s*| # preceding dot?\n (->)\\s* # preceding pointer arrow?\n)?\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # method name\n(\n <\n (?<type_args>\n [^<>()]++|\n <\\g<type_args>*+>|\n \\(\\g<type_args>*+\\)\n )*+\n >\\s*\n)? # type arguments\n(?=\\() # open paren of argument list",
"begin": "(?x)\n(?:\n (?:(\\?)\\s*)? # preceding null-conditional operator?\n (\\.)\\s*| # preceding dot?\n (->)\\s* # preceding pointer arrow?\n)?\n(@?[_[:alpha:]][_[:alnum:]]*)\\s* # method name\n(\n <\n (?<type_args>\n [^<>()]|\n \\((?:[^<>()]|<[^<>()]*>|\\([^<>()]*\\))*\\)|\n <\\g<type_args>*>\n )*\n >\\s*\n)? # type arguments\n(?=\\() # open paren of argument list",
"beginCaptures": {
"1": {
"name": "keyword.operator.null-conditional.cs"