Update grammars (#270045)

This commit is contained in:
Alex Ross
2025-10-06 18:03:06 +02:00
committed by GitHub
parent c2af8f92a0
commit e6cffb2136
8 changed files with 3564 additions and 3329 deletions

View File

@@ -6,7 +6,7 @@
"git": { "git": {
"name": "dotnet/csharp-tmLanguage", "name": "dotnet/csharp-tmLanguage",
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage", "repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
"commitHash": "1381bedfb087c18aca67af8278050d11bc9d9349" "commitHash": "c32388ec18690abefb37cbaffa687a338c87d016"
} }
}, },
"license": "MIT", "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.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/1381bedfb087c18aca67af8278050d11bc9d9349", "version": "https://github.com/dotnet/csharp-tmLanguage/commit/c32388ec18690abefb37cbaffa687a338c87d016",
"name": "C#", "name": "C#",
"scopeName": "source.cs", "scopeName": "source.cs",
"patterns": [ "patterns": [
@@ -3423,7 +3423,7 @@
] ]
}, },
"interpolation": { "interpolation": {
"name": "meta.interpolation.cs", "name": "meta.embedded.interpolation.cs",
"begin": "(?<=[^\\{]|^)((?:\\{\\{)*)(\\{)(?=[^\\{])", "begin": "(?<=[^\\{]|^)((?:\\{\\{)*)(\\{)(?=[^\\{])",
"beginCaptures": { "beginCaptures": {
"1": { "1": {
@@ -3578,7 +3578,7 @@
} }
}, },
"raw-interpolation": { "raw-interpolation": {
"name": "meta.interpolation.cs", "name": "meta.embedded.interpolation.cs",
"begin": "(?<=[^\\{]|^)((?:\\{)*)(\\{)(?=[^\\{])", "begin": "(?<=[^\\{]|^)((?:\\{)*)(\\{)(?=[^\\{])",
"beginCaptures": { "beginCaptures": {
"1": { "1": {
@@ -3601,7 +3601,7 @@
] ]
}, },
"double-raw-interpolation": { "double-raw-interpolation": {
"name": "meta.interpolation.cs", "name": "meta.embedded.interpolation.cs",
"begin": "(?<=[^\\{][^\\{]|^)((?:\\{)*)(\\{\\{)(?=[^\\{])", "begin": "(?<=[^\\{][^\\{]|^)((?:\\{)*)(\\{\\{)(?=[^\\{])",
"beginCaptures": { "beginCaptures": {
"1": { "1": {

View File

@@ -6,7 +6,7 @@
"git": { "git": {
"name": "ionide/ionide-fsgrammar", "name": "ionide/ionide-fsgrammar",
"repositoryUrl": "https://github.com/ionide/ionide-fsgrammar", "repositoryUrl": "https://github.com/ionide/ionide-fsgrammar",
"commitHash": "be3c51d2c28d3aaacd89ecd067e766bebe387f89" "commitHash": "0cb968a4b8fdb2e0656b95342cdffbeff04a1248"
} }
}, },
"license": "MIT", "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.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/ionide/ionide-fsgrammar/commit/be3c51d2c28d3aaacd89ecd067e766bebe387f89", "version": "https://github.com/ionide/ionide-fsgrammar/commit/0cb968a4b8fdb2e0656b95342cdffbeff04a1248",
"name": "fsharp", "name": "fsharp",
"scopeName": "source.fsharp", "scopeName": "source.fsharp",
"patterns": [ "patterns": [
@@ -1831,7 +1831,7 @@
"patterns": [ "patterns": [
{ {
"name": "keyword.control.directive.fsharp", "name": "keyword.control.directive.fsharp",
"match": "\\s?(#if|#elif|#elseif|#else|#endif|#light|#nowarn)", "match": "\\s?(#if|#elif|#elseif|#else|#endif|#light|#nowarn|#warnon)",
"captures": {} "captures": {}
} }
] ]

View File

@@ -6,11 +6,11 @@
"git": { "git": {
"name": "jlelong/vscode-latex-basics", "name": "jlelong/vscode-latex-basics",
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics", "repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
"commitHash": "e5d3d4b46731ed37119a5296c12eee7669284eeb" "commitHash": "84ce12aa6be384369ff218ac25efb27e6f34e78c"
} }
}, },
"license": "MIT", "license": "MIT",
"version": "1.14.0", "version": "1.15.0",
"description": "The files in syntaxes/ were originally part of https://github.com/James-Yu/LaTeX-Workshop. They have been extracted in the hope that they can useful outside of the LaTeX-Workshop extension.", "description": "The files in syntaxes/ were originally part of https://github.com/James-Yu/LaTeX-Workshop. They have been extracted in the hope that they can useful outside of the LaTeX-Workshop extension.",
"licenseDetail": [ "licenseDetail": [
"Copyright (c) vscode-latex-basics authors", "Copyright (c) vscode-latex-basics authors",

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@
"git": { "git": {
"name": "jtbandes/swift-tmlanguage", "name": "jtbandes/swift-tmlanguage",
"repositoryUrl": "https://github.com/jtbandes/swift-tmlanguage", "repositoryUrl": "https://github.com/jtbandes/swift-tmlanguage",
"commitHash": "0897d8939a82ddcf6533e9f318e5942b1265416b" "commitHash": "45ac01d47c6d63402570c2c36bcfbadbd1c7bca6"
} }
}, },
"license": "MIT" "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.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/jtbandes/swift-tmlanguage/commit/0897d8939a82ddcf6533e9f318e5942b1265416b", "version": "https://github.com/jtbandes/swift-tmlanguage/commit/45ac01d47c6d63402570c2c36bcfbadbd1c7bca6",
"name": "Swift", "name": "Swift",
"scopeName": "source.swift", "scopeName": "source.swift",
"comment": "See swift.tmbundle/grammar-test.swift for test cases.", "comment": "See swift.tmbundle/grammar-test.swift for test cases.",
@@ -939,6 +939,17 @@
{ {
"include": "#declarations-available-types" "include": "#declarations-available-types"
}, },
{
"include": "#literals-numeric"
},
{
"name": "support.variable.inferred.swift",
"match": "\\b_\\b"
},
{
"name": "keyword.other.inline-array.swift",
"match": "(?<=\\s)\\bof\\b(?=\\s+[\\p{L}_\\d\\p{N}\\p{M}\\[(])"
},
{ {
"begin": ":", "begin": ":",
"end": "(?=\\]|[>){}])", "end": "(?=\\]|[>){}])",
@@ -980,28 +991,24 @@
}, },
"declarations-extension": { "declarations-extension": {
"name": "meta.definition.type.$1.swift", "name": "meta.definition.type.$1.swift",
"begin": "\\b(extension)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))", "begin": "\\b(extension)\\s+",
"end": "(?<=\\})", "end": "(?<=\\})",
"beginCaptures": { "beginCaptures": {
"1": { "1": {
"name": "storage.type.$1.swift" "name": "storage.type.$1.swift"
}
}, },
"2": { "patterns": [
{
"name": "entity.name.type.swift", "name": "entity.name.type.swift",
"begin": "\\G(?!\\s*[:{\\n])",
"end": "(?=\\s*[:{\\n])|(?!\\G)(?=\\s*where\\b)",
"patterns": [ "patterns": [
{ {
"include": "#declarations-available-types" "include": "#declarations-available-types"
} }
] ]
}, },
"3": {
"name": "punctuation.definition.identifier.swift"
},
"4": {
"name": "punctuation.definition.identifier.swift"
}
},
"patterns": [
{ {
"include": "#comments" "include": "#comments"
}, },
@@ -1159,8 +1166,8 @@
}, },
"patterns": [ "patterns": [
{ {
"match": "\\bsending\\b", "name": "storage.modifier.swift",
"name": "storage.modifier.swift" "match": "\\bsending\\b"
}, },
{ {
"include": "#declarations-available-types" "include": "#declarations-available-types"
@@ -1754,8 +1761,8 @@
"end": "(?=[,)])", "end": "(?=[,)])",
"patterns": [ "patterns": [
{ {
"match": "\\bsending\\b", "name": "storage.modifier.swift",
"name": "storage.modifier.swift" "match": "\\bsending\\b"
}, },
{ {
"include": "#declarations-available-types" "include": "#declarations-available-types"
@@ -2834,6 +2841,10 @@
"name": "keyword.control.loop.swift", "name": "keyword.control.loop.swift",
"match": "(?<!\\.)\\b(?:while|for|in|each)\\b" "match": "(?<!\\.)\\b(?:while|for|in|each)\\b"
}, },
{
"name": "keyword.other.inline-array.swift",
"match": "(?<=\\s)\\bof\\b(?=\\s+[\\p{L}_\\d\\p{N}\\p{M}\\[(])"
},
{ {
"name": "keyword.other.operator.type.existential.swift", "name": "keyword.other.operator.type.existential.swift",
"match": "\\bany\\b(?=\\s*`?[\\p{L}_])" "match": "\\bany\\b(?=\\s*`?[\\p{L}_])"
@@ -3992,7 +4003,7 @@
"contentName": "source.swift", "contentName": "source.swift",
"name": "meta.embedded.line.swift", "name": "meta.embedded.line.swift",
"begin": "\\\\#\\(", "begin": "\\\\#\\(",
"end": "(\\))", "end": "\\)",
"beginCaptures": { "beginCaptures": {
"0": { "0": {
"name": "punctuation.section.embedded.begin.swift" "name": "punctuation.section.embedded.begin.swift"
@@ -4001,9 +4012,6 @@
"endCaptures": { "endCaptures": {
"0": { "0": {
"name": "punctuation.section.embedded.end.swift" "name": "punctuation.section.embedded.end.swift"
},
"1": {
"name": "source.swift"
} }
}, },
"patterns": [ "patterns": [
@@ -4037,7 +4045,7 @@
"contentName": "source.swift", "contentName": "source.swift",
"name": "meta.embedded.line.swift", "name": "meta.embedded.line.swift",
"begin": "\\\\\\(", "begin": "\\\\\\(",
"end": "(\\))", "end": "\\)",
"beginCaptures": { "beginCaptures": {
"0": { "0": {
"name": "punctuation.section.embedded.begin.swift" "name": "punctuation.section.embedded.begin.swift"
@@ -4046,9 +4054,6 @@
"endCaptures": { "endCaptures": {
"0": { "0": {
"name": "punctuation.section.embedded.end.swift" "name": "punctuation.section.embedded.end.swift"
},
"1": {
"name": "source.swift"
} }
}, },
"patterns": [ "patterns": [