mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
Update grammars (#305181)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "dotnet/csharp-tmLanguage",
|
||||
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
|
||||
"commitHash": "2e6860d87d4019b0b793b1e21e9e5c82185a01aa"
|
||||
"commitHash": "32ee13e806edf480ef9423adcf5ecf61ba39561b"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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/2e6860d87d4019b0b793b1e21e9e5c82185a01aa",
|
||||
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/32ee13e806edf480ef9423adcf5ecf61ba39561b",
|
||||
"name": "C#",
|
||||
"scopeName": "source.cs",
|
||||
"patterns": [
|
||||
@@ -5578,6 +5578,12 @@
|
||||
{
|
||||
"include": "#preprocessor-app-directive-property"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-app-directive-exclude"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-app-directive-include"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-app-directive-project"
|
||||
},
|
||||
@@ -5627,6 +5633,28 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"preprocessor-app-directive-exclude": {
|
||||
"match": "\\b(exclude)\\b\\s*(.*)?\\s*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.preprocessor.exclude.cs"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.unquoted.preprocessor.message.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preprocessor-app-directive-include": {
|
||||
"match": "\\b(include)\\b\\s*(.*)?\\s*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.preprocessor.include.cs"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.unquoted.preprocessor.message.cs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"preprocessor-app-directive-project": {
|
||||
"match": "\\b(project)\\b\\s*(.*)?\\s*",
|
||||
"captures": {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "JuliaEditorSupport/atom-language-julia",
|
||||
"repositoryUrl": "https://github.com/JuliaEditorSupport/atom-language-julia",
|
||||
"commitHash": "93454227ce9a7aa92f41b157c6a74f3971b4ae14"
|
||||
"commitHash": "25cc285b5e8accab4ff7725eeb8594f458b45ce4"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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/JuliaEditorSupport/atom-language-julia/commit/93454227ce9a7aa92f41b157c6a74f3971b4ae14",
|
||||
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/25cc285b5e8accab4ff7725eeb8594f458b45ce4",
|
||||
"name": "Julia",
|
||||
"scopeName": "source.julia",
|
||||
"comment": "This grammar is used by Atom (Oniguruma), GitHub (PCRE), and VSCode (Oniguruma),\nso all regexps must be compatible with both engines.\n\nSpecs:\n- https://github.com/kkos/oniguruma/blob/master/doc/RE\n- https://www.pcre.org/current/doc/html/",
|
||||
@@ -301,7 +301,7 @@
|
||||
"keyword": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?<![:_\\.])(?:function|mutable\\s+struct|struct|macro|quote|abstract\\s+type|primitive\\s+type|module|baremodule|where)\\b",
|
||||
"match": "\\b(?<![:_\\.])(?:function|mutable\\s+struct|struct|macro|quote|abstract\\s+type|primitive\\s+type|typegroup|module|baremodule|where)\\b",
|
||||
"name": "keyword.other.julia"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "jlelong/vscode-latex-basics",
|
||||
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
|
||||
"commitHash": "1f62731d63abfd134e03f4744fcbccadac4e0153"
|
||||
"commitHash": "76dc409348227db00f6779772f7763dc90cdf22e"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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/jlelong/vscode-latex-basics/commit/1f62731d63abfd134e03f4744fcbccadac4e0153",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/3eb98ef3aeceedbe3366d6a5192ad6d2948721e8",
|
||||
"name": "LaTeX",
|
||||
"scopeName": "text.tex.latex",
|
||||
"patterns": [
|
||||
@@ -3619,6 +3619,23 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"unbalanced-env": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\s*\\\\(?:begin|end)\\{(\\p{Alphabetic}+\\*?)\\})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#macro-with-args-tokenizer"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "meta.function.environment.general.latex"
|
||||
}
|
||||
]
|
||||
},
|
||||
"all-balanced-env": {
|
||||
"patterns": [
|
||||
{
|
||||
@@ -3878,6 +3895,9 @@
|
||||
{
|
||||
"include": "#documentclass-usepackage-macro"
|
||||
},
|
||||
{
|
||||
"include": "#unbalanced-env"
|
||||
},
|
||||
{
|
||||
"include": "#input-macro"
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "language-php",
|
||||
"repositoryUrl": "https://github.com/KapitanOczywisty/language-php",
|
||||
"commitHash": "a0f3d9a3b0d017181455ed515e48a36607a90e3b"
|
||||
"commitHash": "cd607a522b79c457fe78bf7a1b04511d1c49f693"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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/KapitanOczywisty/language-php/commit/a0f3d9a3b0d017181455ed515e48a36607a90e3b",
|
||||
"version": "https://github.com/KapitanOczywisty/language-php/commit/cd607a522b79c457fe78bf7a1b04511d1c49f693",
|
||||
"scopeName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -118,7 +118,7 @@
|
||||
"include": "#scope-resolution"
|
||||
},
|
||||
{
|
||||
"match": "(?xi)\n\\b(as)\n\\s+(final|abstract|public|private|protected|static)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)",
|
||||
"match": "(?xi)\n\\b(as)\n\\s+(\n (final|abstract)\n |(public|private|protected)\n |(static)\n)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.use-as.php"
|
||||
@@ -127,6 +127,15 @@
|
||||
"name": "storage.modifier.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.inheritance.${3:/downcase}.php"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.visibility.${4:/downcase}.php"
|
||||
},
|
||||
"5": {
|
||||
"name": "storage.modifier.static.php"
|
||||
},
|
||||
"6": {
|
||||
"name": "entity.other.alias.php"
|
||||
}
|
||||
}
|
||||
@@ -140,8 +149,19 @@
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^(?:final|abstract|public|private|protected|static)$",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?xi)\n\\b(?:\n (final|abstract)\n |(public|private|protected)\n |(static)\n)\\b",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.inheritance.${1:/downcase}.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.visibility.${2:/downcase}.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.static.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": ".+",
|
||||
@@ -299,12 +319,15 @@
|
||||
"contentName": "meta.enum.body.php",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)\\b(case)\\s*([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)",
|
||||
"match": "(?i)\\b((case))\\s*([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.enum.case.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.enum.php"
|
||||
}
|
||||
}
|
||||
@@ -320,17 +343,21 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?ix)\n(?:\n \\b((?:(?:final|abstract|readonly)\\s+)*)(class)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)\n |\\b(new)\\b\\s*(\\#\\[.*\\])?\\s*(?:(readonly)\\s+)?\\b(class)\\b # anonymous class\n)",
|
||||
"begin": "(?ix)\n(?:\n \\b((?:(?:final|abstract|readonly)\\s+)*)(class)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)\n |\\b(new)\\b\\s*(\\#\\[.*\\])?\\s*(?:((readonly))\\s+)?\\b(class)\\b # anonymous class\n)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "final|abstract",
|
||||
"name": "storage.modifier.${0:/downcase}.php"
|
||||
},
|
||||
{
|
||||
"match": "readonly",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?i)(final|abstract)|(readonly)",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.inheritance.${1:/downcase}.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.readonly.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -354,6 +381,9 @@
|
||||
"name": "storage.modifier.php"
|
||||
},
|
||||
"7": {
|
||||
"name": "storage.modifier.readonly.php"
|
||||
},
|
||||
"8": {
|
||||
"name": "storage.type.class.php"
|
||||
}
|
||||
},
|
||||
@@ -663,8 +693,16 @@
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "final|abstract|public|private|protected",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?i)(final|abstract)|(public|private|protected)",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.inheritance.${1:/downcase}.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.visibility.${2:/downcase}.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -703,8 +741,19 @@
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:public|private|protected)(?:\\(set\\))?|readonly",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?xi)\n\\b((public|private|protected)\\(set\\))\n|\\b(public|private|protected)\\b\n|\\b(readonly)\\b",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.visibility.set.${2:/downcase}.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.visibility.${3:/downcase}.php"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.readonly.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -755,8 +804,19 @@
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "final|abstract|public|private|protected|static",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?xi)\n(final|abstract)\n|(public|private|protected)\n|(static)",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.inheritance.${1:/downcase}.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.visibility.${2:/downcase}.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.static.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -814,8 +874,19 @@
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:public|private|protected)(?:\\(set\\))?|static|readonly",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?xi)\n\\b((public|private|protected)\\(set\\))\n|\\b(public|private|protected)\\b\n|\\b(readonly|static)\\b",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.visibility.set.${2:/downcase}.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.visibility.${3:/downcase}.php"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.${4:/downcase}.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -885,7 +956,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?i)(\\()\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\s*(\\))",
|
||||
"match": "(?ix)\n(\\()\n\\s*\n(\n (bool|int|float|string|array|object)\n |(binary|boolean|integer|double|real|unset)\n)\n\\s*\n(\\))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.storage-type.begin.bracket.round.php"
|
||||
@@ -894,6 +965,9 @@
|
||||
"name": "storage.type.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.cast.${3:/downcase}.php"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.storage-type.end.bracket.round.php"
|
||||
}
|
||||
}
|
||||
@@ -907,8 +981,22 @@
|
||||
"name": "storage.type.const.php"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(global|abstract|final|private|protected|public|static)\\b",
|
||||
"name": "storage.modifier.php"
|
||||
"match": "(?xi)\n\\b(?:\n (global)\n |(abstract|final)\n |(private|protected|public)\n |(static)\n)\\b",
|
||||
"name": "storage.modifier.php",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.global.php"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.inheritance.${2:/downcase}.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.visibility.${3:/downcase}.php"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.static.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
@@ -2823,14 +2911,17 @@
|
||||
"1": {
|
||||
"name": "keyword.other.phpdoc.php"
|
||||
},
|
||||
"3": {
|
||||
"2": {
|
||||
"name": "storage.modifier.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.visibility.${3:/downcase}.php"
|
||||
},
|
||||
"4": {
|
||||
"name": "invalid.illegal.wrong-access-type.phpdoc.php"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
|
||||
"match": "^\\s*\\*\\s*(@access)\\s+(?i:((public|private|protected))|(.+))\\s*$"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
@@ -3251,6 +3342,9 @@
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "N(?=')"
|
||||
},
|
||||
{
|
||||
"match": "`(?=((\\\\`)|[^`'])*('|$))",
|
||||
"name": "string.quoted.other.backtick.unclosed.sql"
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"git": {
|
||||
"name": "microsoft/vscode-mssql",
|
||||
"repositoryUrl": "https://github.com/microsoft/vscode-mssql",
|
||||
"commitHash": "5fd71951c51e0a8385fb546ccebf0716a549fedf"
|
||||
"commitHash": "c002f514dd81fa71fa304d4c36f8d2767dbf2f9d"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "1.34.0"
|
||||
"version": "1.0.0"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
|
||||
@@ -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/microsoft/vscode-mssql/commit/5fd71951c51e0a8385fb546ccebf0716a549fedf",
|
||||
"version": "https://github.com/microsoft/vscode-mssql/commit/c002f514dd81fa71fa304d4c36f8d2767dbf2f9d",
|
||||
"name": "SQL",
|
||||
"scopeName": "source.sql",
|
||||
"patterns": [
|
||||
@@ -528,7 +528,7 @@
|
||||
}
|
||||
},
|
||||
"comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
|
||||
"match": "(N)?(')[^']*(')",
|
||||
"match": "(?:(?<![a-zA-Z0-9_])(N))?(')[^']*(')",
|
||||
"name": "string.quoted.single.sql"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user