mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
Update grammars (#194614)
This commit is contained in:
parent
8f382227e0
commit
48e93f756b
|
@ -93,4 +93,4 @@
|
|||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "dotnet/csharp-tmLanguage",
|
||||
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
|
||||
"commitHash": "525e628edad54c0f7aa15b015310df240803ea66"
|
||||
"commitHash": "29a37e5e2d66deefe5a06afad793a820871f4fdf"
|
||||
}
|
||||
},
|
||||
"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/525e628edad54c0f7aa15b015310df240803ea66",
|
||||
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/29a37e5e2d66deefe5a06afad793a820871f4fdf",
|
||||
"name": "C#",
|
||||
"scopeName": "source.cs",
|
||||
"patterns": [
|
||||
|
@ -4437,7 +4437,7 @@
|
|||
]
|
||||
},
|
||||
"parameter": {
|
||||
"match": "(?x)\n(?:(?:\\b(ref|params|out|in|this)\\b)\\s+)?\n(?<type_name>\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^\\(\\)]|\\g<tuple>)+\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n)\\s+\n(\\g<identifier>)",
|
||||
"match": "(?x)\n(?:(?:\\b(ref|params|out|in|this)\\b)\\s+)?\n(?<type_name>\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^()]|\\g<tuple>)+\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n)\\s+\n(\\g<identifier>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.$1.cs"
|
||||
|
@ -4800,7 +4800,7 @@
|
|||
"anonymous-method-expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?x)\n((?:\\b(?:async|static)\\b\\s*)*)\n(@?[_[:alpha:]][_[:alnum:]]*)\\b\\s*\n(=>)",
|
||||
"begin": "(?x)\n((?:\\b(?:async|static)\\b\\s*)*)\n(?:\n (@?[_[:alpha:]][_[:alnum:]]*)\\b|\n (\\()\n (?<tuple>(?:[^()]|\\(\\g<tuple>\\))*)\n (\\))\n)\\s*\n(=>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -4814,59 +4814,69 @@
|
|||
"name": "entity.name.variable.parameter.cs"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.parenthesis.open.cs"
|
||||
},
|
||||
"4": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#explicit-anonymous-function-parameter"
|
||||
},
|
||||
{
|
||||
"include": "#implicit-anonymous-function-parameter"
|
||||
},
|
||||
{
|
||||
"include": "#default-argument"
|
||||
},
|
||||
{
|
||||
"include": "#punctuation-comma"
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.parenthesis.close.cs"
|
||||
},
|
||||
"6": {
|
||||
"name": "keyword.operator.arrow.cs"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\)|;|}|,)",
|
||||
"end": "(?=[,;)}])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block"
|
||||
"include": "#intrusive"
|
||||
},
|
||||
{
|
||||
"include": "#ref-modifier"
|
||||
"begin": "(?={)",
|
||||
"end": "(?=[,;)}])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"include": "#intrusive"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
"begin": "\\b(ref)\\b|(?=\\S)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.ref.cs"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,;)}])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?x)\n((?:\\b(?:async|static)\\b\\s*)*)\n(?<tuple>\n \\(\n (?:[^()]|\\g<tuple>)*\n \\)\n)\\s*\n(=>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "async|static",
|
||||
"name": "storage.modifier.$0.cs"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#lambda-parameter-list"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.arrow.cs"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\)|;|}|,)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"include": "#ref-modifier"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?x)\n((?:\\b(?:async|static)\\b\\s*)*)\n(?:\\b(delegate)\\b\\s*)",
|
||||
"begin": "(?x)\n((?:\\b(?:async|static)\\b\\s*)*)\n\\b(delegate)\\b\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -4880,10 +4890,35 @@
|
|||
"name": "storage.type.delegate.cs"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\)|;|}|,)",
|
||||
"end": "(?<=})|(?=[,;)}])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#parenthesized-parameter-list"
|
||||
"include": "#intrusive"
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.parenthesis.open.cs"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.parenthesis.close.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#intrusive"
|
||||
},
|
||||
{
|
||||
"include": "#explicit-anonymous-function-parameter"
|
||||
},
|
||||
{
|
||||
"include": "#punctuation-comma"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
|
@ -4892,36 +4927,8 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"lambda-parameter-list": {
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.parenthesis.open.cs"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.parenthesis.close.cs"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#attribute-section"
|
||||
},
|
||||
{
|
||||
"include": "#lambda-parameter"
|
||||
},
|
||||
{
|
||||
"include": "#punctuation-comma"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lambda-parameter": {
|
||||
"match": "(?x)\n(?:\\b(ref|out|in)\\b)?\\s*\n(?:(?<type_name>\n (?:\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^\\(\\)]|\\g<tuple>)+\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n)\\s+)?\n(\\g<identifier>)\\b\\s*\n(?=[,)])",
|
||||
"explicit-anonymous-function-parameter": {
|
||||
"match": "(?x)\n(?:\\b(ref|params|out|in)\\b\\s*)?\n(?<type_name>\n (?:\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args><(?:[^<>]|\\g<type_args>)*>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)* | # Are there any more names being dotted into?\n (?<tuple>\\s*\\((?:[^()]|\\g<tuple>)*\\))\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s* # array suffix?\n \\[\n (?:\\s*,\\s*)* # commata for multi-dimensional arrays\n \\]\n \\s*\n (?:\\?)? # arrays can be nullable reference types\n \\s*\n )*\n )\n)\\s*\n\\b(\\g<identifier>)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.$1.cs"
|
||||
|
@ -4938,6 +4945,24 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"implicit-anonymous-function-parameter": {
|
||||
"match": "\\@?[_[:alpha:]][_[:alnum:]]*\\b",
|
||||
"name": "entity.name.variable.parameter.cs"
|
||||
},
|
||||
"default-argument": {
|
||||
"begin": "=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.assignment.cs"
|
||||
}
|
||||
},
|
||||
"end": "(?=,|\\))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"patterns": [
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "dart-lang/dart-syntax-highlight",
|
||||
"repositoryUrl": "https://github.com/dart-lang/dart-syntax-highlight",
|
||||
"commitHash": "4670ad8a1f742ccfb122c2b01e588af78f3fc120"
|
||||
"commitHash": "bd0079ba7ca85cdd6400a8a467e532b539d0f285"
|
||||
}
|
||||
},
|
||||
"licenseDetail": [
|
||||
|
|
|
@ -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/dart-lang/dart-syntax-highlight/commit/4670ad8a1f742ccfb122c2b01e588af78f3fc120",
|
||||
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/bd0079ba7ca85cdd6400a8a467e532b539d0f285",
|
||||
"name": "Dart",
|
||||
"scopeName": "source.dart",
|
||||
"patterns": [
|
||||
|
@ -332,7 +332,7 @@
|
|||
},
|
||||
{
|
||||
"name": "keyword.declaration.dart",
|
||||
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|inline class|class|enum|extends|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
|
||||
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.dart",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "JuliaEditorSupport/atom-language-julia",
|
||||
"repositoryUrl": "https://github.com/JuliaEditorSupport/atom-language-julia",
|
||||
"commitHash": "7cbe6a7c4f2c8275e15f5b6e0722d285730ffb99"
|
||||
"commitHash": "85cf3ef2ddcb7bc9b2b17b2a5f1fc664e1f1e718"
|
||||
}
|
||||
},
|
||||
"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/7cbe6a7c4f2c8275e15f5b6e0722d285730ffb99",
|
||||
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/85cf3ef2ddcb7bc9b2b17b2a5f1fc664e1f1e718",
|
||||
"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/",
|
||||
|
@ -237,7 +237,7 @@
|
|||
}
|
||||
},
|
||||
"match": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?(?=\\([^#]*\\)(::[^\\s]+)?(\\s*\\bwhere\\b\\s+.+?)?\\s*?=(?![=>]))",
|
||||
"comment": "first group is function name\nSecond group is type parameters (e.g. {T<:Number, S})\nThen open parens\nThen a lookahead ensures that we are followed by:\n - anything (function argumnets)\n - 0 or more spaces\n - Finally an equal sign\nNegative lookahead ensures we don't have another equal sign (not `==`)"
|
||||
"comment": "first group is function name\nSecond group is type parameters (e.g. {T<:Number, S})\nThen open parens\nThen a lookahead ensures that we are followed by:\n - anything (function arguments)\n - 0 or more spaces\n - Finally an equal sign\nNegative lookahead ensures we don't have another equal sign (not `==`)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
"git": {
|
||||
"name": "jlelong/vscode-latex-basics",
|
||||
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
|
||||
"commitHash": "3ae82b457c28f0368cbbb47024b0245ef1ff3d33"
|
||||
"commitHash": "221a2443a5e8ac029685a0f872af39b23cc2b634"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "1.5.2",
|
||||
"version": "1.5.4",
|
||||
"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": [
|
||||
"Copyright (c) vscode-latex-basics authors",
|
||||
|
|
|
@ -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/66ea1422ac817ff7704359b8ec4934a987024aaa",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/221a2443a5e8ac029685a0f872af39b23cc2b634",
|
||||
"name": "LaTeX",
|
||||
"scopeName": "text.tex.latex",
|
||||
"patterns": [
|
||||
|
@ -2071,7 +2071,22 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\\\\)(\\`\\`)",
|
||||
"begin": "(,,)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.latex"
|
||||
}
|
||||
},
|
||||
"end": "(?<!\\\\)(\\`\\`)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.latex"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.latex"
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\\\\|\\\\catcode|\\\\string)(\\`\\`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.latex"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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/01814480aecb9e1280fce20b7302178630755da9",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/ff5e3f24ff5f242d62954cf9e124184f27bf24dd",
|
||||
"name": "Markdown",
|
||||
"scopeName": "text.tex.markdown_latex_combined",
|
||||
"patterns": [
|
||||
|
@ -45,6 +45,9 @@
|
|||
{
|
||||
"include": "#html"
|
||||
},
|
||||
{
|
||||
"include": "#table"
|
||||
},
|
||||
{
|
||||
"include": "#paragraph"
|
||||
}
|
||||
|
@ -2440,7 +2443,7 @@
|
|||
"while": "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)"
|
||||
},
|
||||
{
|
||||
"begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ \\t])",
|
||||
"begin": "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])",
|
||||
"beginCaptures": {
|
||||
"3": {
|
||||
"name": "punctuation.definition.list.begin.markdown"
|
||||
|
@ -2460,7 +2463,7 @@
|
|||
]
|
||||
},
|
||||
"paragraph": {
|
||||
"begin": "(^|\\G)[ ]{0,3}(?=\\S)",
|
||||
"begin": "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])",
|
||||
"name": "meta.paragraph.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -2473,7 +2476,7 @@
|
|||
"include": "#heading-setext"
|
||||
}
|
||||
],
|
||||
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))"
|
||||
"while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))"
|
||||
},
|
||||
"raw_block": {
|
||||
"begin": "(^|\\G)([ ]{4}|\\t)",
|
||||
|
@ -2494,6 +2497,42 @@
|
|||
],
|
||||
"end": "(^|\\G)-{3}|\\.{3}\\s*$"
|
||||
},
|
||||
"table": {
|
||||
"name": "markup.table.markdown",
|
||||
"begin": "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.table.markdown"
|
||||
}
|
||||
},
|
||||
"while": "(^|\\G)(?=\\|)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\|",
|
||||
"name": "punctuation.definition.table.markdown"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.table.markdown"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#inline"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"inline": {
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -2956,7 +2995,7 @@
|
|||
"name": "punctuation.definition.link.title.end.markdown"
|
||||
}
|
||||
},
|
||||
"match": "(?<![\\]\\\\])(\\[)(\\S+?)(\\])",
|
||||
"match": "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])",
|
||||
"name": "meta.link.reference.markdown"
|
||||
},
|
||||
"raw": {
|
||||
|
|
|
@ -639,4 +639,4 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,11 +6,11 @@
|
|||
"git": {
|
||||
"name": "trond-snekvik/vscode-rst",
|
||||
"repositoryUrl": "https://github.com/trond-snekvik/vscode-rst",
|
||||
"commitHash": "4f6f1a8f94e0d16e30dddc9c4e359d062b715408"
|
||||
"commitHash": "7f2d6bb4e20642b60f2979afcb594cfe4b48117a"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "1.5.2"
|
||||
"version": "1.5.3"
|
||||
}
|
||||
],
|
||||
"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/trond-snekvik/vscode-rst/commit/4f6f1a8f94e0d16e30dddc9c4e359d062b715408",
|
||||
"version": "https://github.com/trond-snekvik/vscode-rst/commit/7f2d6bb4e20642b60f2979afcb594cfe4b48117a",
|
||||
"scopeName": "source.rst",
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -253,7 +253,7 @@
|
|||
"name": "entity.name.tag"
|
||||
},
|
||||
"options-list": {
|
||||
"match": "^((?:-\\w|--[\\w-]+|/\\w+)(?:,? ?[\\w-]+)*)(?: |\\t|$)",
|
||||
"match": "(?:(?:^|,\\s+)(?:[-+]\\w|--?[a-zA-Z][\\w-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)",
|
||||
"name": "variable.parameter"
|
||||
},
|
||||
"blocks": {
|
||||
|
@ -341,7 +341,7 @@
|
|||
},
|
||||
"block": {
|
||||
"begin": "^(\\s*)(\\.{2}\\s+\\S+::)(.*)",
|
||||
"while": "^\\1(?=\\s)|^\\s*$",
|
||||
"end": "^(?!\\1\\s|\\s*$)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "keyword.control"
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
"git": {
|
||||
"name": "rust-syntax",
|
||||
"repositoryUrl": "https://github.com/dustypomerleau/rust-syntax",
|
||||
"commitHash": "20462d50ff97338f42c6b64c3f421c634fd60734"
|
||||
"commitHash": "328a68299533bc2b8c71028be741cce78a9e0d53"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"description": "A TextMate-style grammar for Rust.",
|
||||
"version": "0.5.0"
|
||||
"version": "0.6.1"
|
||||
}
|
||||
],
|
||||
"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/dustypomerleau/rust-syntax/commit/20462d50ff97338f42c6b64c3f421c634fd60734",
|
||||
"version": "https://github.com/dustypomerleau/rust-syntax/commit/328a68299533bc2b8c71028be741cce78a9e0d53",
|
||||
"name": "Rust",
|
||||
"scopeName": "source.rust",
|
||||
"patterns": [
|
||||
|
@ -362,7 +362,7 @@
|
|||
{
|
||||
"comment": "decimal integers and floats",
|
||||
"name": "constant.numeric.decimal.rust",
|
||||
"match": "\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E)([+-])([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",
|
||||
"match": "\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E|e)([+-]?)([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.dot.decimal.rust"
|
||||
|
|
Loading…
Reference in a new issue