mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Update grammars (#227249)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "dart-lang/dart-syntax-highlight",
|
||||
"repositoryUrl": "https://github.com/dart-lang/dart-syntax-highlight",
|
||||
"commitHash": "bb8f7eebf5a1028e70dbebcf35cfef738dddc7fe"
|
||||
"commitHash": "e8b053f9834cb44db0f49ac4a4567177bd943dbf"
|
||||
}
|
||||
},
|
||||
"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/bb8f7eebf5a1028e70dbebcf35cfef738dddc7fe",
|
||||
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/e8b053f9834cb44db0f49ac4a4567177bd943dbf",
|
||||
"name": "Dart",
|
||||
"scopeName": "source.dart",
|
||||
"patterns": [
|
||||
@@ -212,7 +212,7 @@
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.dart",
|
||||
"match": "(?<!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"
|
||||
"match": "(?<!\\$)\\b((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(([0-9][0-9_]*\\.?[0-9_]*)|(\\.[0-9][0-9_]*))((e|E)(\\+|-)?[0-9][0-9_]*)?)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"include": "#class-identifier"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "ionide/ionide-fsgrammar",
|
||||
"repositoryUrl": "https://github.com/ionide/ionide-fsgrammar",
|
||||
"commitHash": "7d1b695da917dc4c7a0f7fb4683f42da208f87a2"
|
||||
"commitHash": "b38420f8569aa662b4862beb407a02e527e866c1"
|
||||
}
|
||||
},
|
||||
"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/ionide/ionide-fsgrammar/commit/7d1b695da917dc4c7a0f7fb4683f42da208f87a2",
|
||||
"version": "https://github.com/ionide/ionide-fsgrammar/commit/b38420f8569aa662b4862beb407a02e527e866c1",
|
||||
"name": "fsharp",
|
||||
"scopeName": "source.fsharp",
|
||||
"patterns": [
|
||||
@@ -936,7 +936,7 @@
|
||||
"patterns": [
|
||||
{
|
||||
"name": "binding.fsharp",
|
||||
"begin": "\\b(let mutable|static let mutable|static let|let inline|let|and|member val|member inline|static member inline|static member|default|member|override|let!)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?",
|
||||
"begin": "\\b(let mutable|static let mutable|static let|let inline|let|and|member val|member inline|static member inline|static member val|static member|default|member|override|let!)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?",
|
||||
"end": "\\s*((with\\b)|(=|\\n+=|(?<=\\=)))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
@@ -1133,7 +1133,7 @@
|
||||
},
|
||||
{
|
||||
"name": "keyword.symbol.fsharp",
|
||||
"match": "(&&&|\\|\\|\\||\\^\\^\\^|~~~|~\\+|~\\-|<<<|>>>|\\|>|:>|:\\?>|:|\\[|\\]|\\;|<>|=|@|\\|\\||&&|&|%|{|}|\\||_|\\.\\.|\\,|\\+|\\-|\\*|\\/|\\^|\\!|\\>|\\>\\=|\\>\\>|\\<|\\<\\=|\\(|\\)|\\<\\<)"
|
||||
"match": "[.?]*(&&&|\\|\\|\\||\\^\\^\\^|~~~|~\\+|~\\-|<<<|>>>|\\|>|:>|:\\?>|:|\\[|\\]|\\;|<>|=|@|\\|\\||&&|&|%|{|}|\\||_|\\.\\.|\\,|\\+|\\-|\\*|\\/|\\^|\\!|\\>|\\>\\=|\\>\\>|\\<|\\<\\=|\\(|\\)|\\<\\<)[.?]*"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
"git": {
|
||||
"name": "go-syntax",
|
||||
"repositoryUrl": "https://github.com/worlpaker/go-syntax",
|
||||
"commitHash": "21f28840e04d4fa04682d19d6fe64de437f40b64"
|
||||
"commitHash": "b40fb01f2cf48bc24e6f4030373311b0402b158e"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"description": "The file syntaxes/go.tmLanguage.json is from https://github.com/worlpaker/go-syntax, which in turn was derived from https://github.com/jeff-hykin/better-go-syntax.",
|
||||
"version": "0.7.5"
|
||||
"version": "0.7.6"
|
||||
}
|
||||
],
|
||||
"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/worlpaker/go-syntax/commit/21f28840e04d4fa04682d19d6fe64de437f40b64",
|
||||
"version": "https://github.com/worlpaker/go-syntax/commit/b40fb01f2cf48bc24e6f4030373311b0402b158e",
|
||||
"name": "Go",
|
||||
"scopeName": "source.go",
|
||||
"patterns": [
|
||||
@@ -1845,7 +1845,7 @@
|
||||
},
|
||||
{
|
||||
"comment": "one type only",
|
||||
"match": "(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?<!\\,\\s*)(?:[\\w\\.\\*]+)\\s*(?:(?:(?:\".*\")|(?:\\`.*\\`))\\s*)?(?:/(?:/|\\*).*)?)$)",
|
||||
"match": "(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*]+)\\s*)(?:(?=\\`|\\/|\")|$))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
@@ -1862,7 +1862,7 @@
|
||||
},
|
||||
{
|
||||
"comment": "property variables and types",
|
||||
"match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))([^\\`]+))",
|
||||
"match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))([^\\`\"\\/]+))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
@@ -2007,29 +2007,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "one type only with multi line raw string",
|
||||
"begin": "(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?<!\\,\\s*)(?:[\\w\\.\\*]+)\\s*)(?=\\`))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-declarations"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=\\`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw_string_literals"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#parameter-variable-types"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "language-less",
|
||||
"repositoryUrl": "https://github.com/radium-v/Better-Less",
|
||||
"commitHash": "fb9c21917193746433743a7c971b70230b40bc2b"
|
||||
"commitHash": "63c0cba9792e49e255cce0f6dd03250fb30591e6"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "rust-syntax",
|
||||
"repositoryUrl": "https://github.com/dustypomerleau/rust-syntax",
|
||||
"commitHash": "cf3c686a50295380ce9994218138691f8767870c"
|
||||
"commitHash": "e90d3dbdb61b96e4afdce6f7a3572426b1a86d9d"
|
||||
}
|
||||
},
|
||||
"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/dustypomerleau/rust-syntax/commit/cf3c686a50295380ce9994218138691f8767870c",
|
||||
"version": "https://github.com/dustypomerleau/rust-syntax/commit/e90d3dbdb61b96e4afdce6f7a3572426b1a86d9d",
|
||||
"name": "Rust",
|
||||
"scopeName": "source.rust",
|
||||
"patterns": [
|
||||
@@ -482,10 +482,13 @@
|
||||
"name": "punctuation.brackets.angle.rust"
|
||||
}
|
||||
},
|
||||
"end": "\\{|;",
|
||||
"end": "(\\{)|(;)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"1": {
|
||||
"name": "punctuation.brackets.curly.rust"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.semi.rust"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
@@ -820,7 +823,7 @@
|
||||
{
|
||||
"comment": "dashrocket, skinny arrow",
|
||||
"name": "keyword.operator.arrow.skinny.rust",
|
||||
"match": "->"
|
||||
"match": "->|<-"
|
||||
},
|
||||
{
|
||||
"comment": "hashrocket, fat arrow",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"git": {
|
||||
"name": "RedCMD/YAML-Syntax-Highlighter",
|
||||
"repositoryUrl": "https://github.com/RedCMD/YAML-Syntax-Highlighter",
|
||||
"commitHash": "d4dca9f38a654ebbb13c1b72b7881e3c5864a778"
|
||||
"commitHash": "71a88711ec184b7dde5240c8f150ad3c2dbbd5f1"
|
||||
}
|
||||
},
|
||||
"licenseDetail": [
|
||||
@@ -21,7 +21,7 @@
|
||||
"THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
||||
],
|
||||
"license": "MIT",
|
||||
"version": "1.1.1"
|
||||
"version": "1.1.2"
|
||||
}
|
||||
],
|
||||
"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/RedCMD/YAML-Syntax-Highlighter/commit/dfd7e5f4f71f9695c5d8697ca57f81240165aa04",
|
||||
"version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/71a88711ec184b7dde5240c8f150ad3c2dbbd5f1",
|
||||
"name": "YAML 1.0",
|
||||
"scopeName": "source.yaml.1.0",
|
||||
"comment": "https://yaml.org/spec/1.0/",
|
||||
@@ -520,25 +520,22 @@
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator",
|
||||
"begin": "([\t ]*+)(?>(\\|)|(>))(?<chomp>[+-])?+((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
|
||||
"while": "\\G(?>(?>(?!\\6)|(?!\\7) |(?!\\8) {2}|(?!\\9) {3}|(?!\\10) {4}|(?!\\11) {5}|(?!\\12) {6}|(?!\\13) {7}|(?!\\14) {8}|(?!\\15) {9})| *+($|[^#]))",
|
||||
"begin": "(?>(\\|)|(>))(?<chomp>[+-])?+((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
|
||||
"while": "\\G(?>(?>(?!\\5)|(?!\\6) |(?!\\7) {2}|(?!\\8) {3}|(?!\\9) {4}|(?!\\10) {5}|(?!\\11) {6}|(?!\\12) {7}|(?!\\13) {8}|(?!\\14) {9})| *+($|[^#]))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.separator.yaml"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.literal.yaml"
|
||||
},
|
||||
"3": {
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.folded.yaml"
|
||||
},
|
||||
"4": {
|
||||
"3": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
},
|
||||
"5": {
|
||||
"4": {
|
||||
"name": "constant.numeric.indentation-indicator.yaml"
|
||||
},
|
||||
"16": {
|
||||
"15": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
}
|
||||
},
|
||||
@@ -576,19 +573,16 @@
|
||||
{
|
||||
"comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header",
|
||||
"//": "Soooooooo many edge cases",
|
||||
"begin": "([\t ]*+)(?>(\\|)|(>))([+-]?+)",
|
||||
"begin": "(?>(\\|)|(>))([+-]?+)",
|
||||
"while": "\\G",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.separator.yaml"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.literal.yaml"
|
||||
},
|
||||
"3": {
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.folded.yaml"
|
||||
},
|
||||
"4": {
|
||||
"3": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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/RedCMD/YAML-Syntax-Highlighter/commit/d4dca9f38a654ebbb13c1b72b7881e3c5864a778",
|
||||
"version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/71a88711ec184b7dde5240c8f150ad3c2dbbd5f1",
|
||||
"name": "YAML 1.2",
|
||||
"scopeName": "source.yaml.1.2",
|
||||
"comment": "https://yaml.org/spec/1.2.2",
|
||||
@@ -654,25 +654,22 @@
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator",
|
||||
"begin": "([\t ]*+)(?>(\\|)|(>))(?<chomp>[+-])?+((1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
|
||||
"while": "\\G(?>(?>(?!\\6) |(?!\\7) {2}|(?!\\8) {3}|(?!\\9) {4}|(?!\\10) {5}|(?!\\11) {6}|(?!\\12) {7}|(?!\\13) {8}|(?!\\14) {9})| *+($|[^#]))",
|
||||
"begin": "(?>(\\|)|(>))(?<chomp>[+-])?+((1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
|
||||
"while": "\\G(?>(?>(?!\\5) |(?!\\6) {2}|(?!\\7) {3}|(?!\\8) {4}|(?!\\9) {5}|(?!\\10) {6}|(?!\\11) {7}|(?!\\12) {8}|(?!\\13) {9})| *+($|[^#]))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.separator.yaml"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.literal.yaml"
|
||||
},
|
||||
"3": {
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.folded.yaml"
|
||||
},
|
||||
"4": {
|
||||
"3": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
},
|
||||
"5": {
|
||||
"4": {
|
||||
"name": "constant.numeric.indentation-indicator.yaml"
|
||||
},
|
||||
"15": {
|
||||
"14": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
}
|
||||
},
|
||||
@@ -710,19 +707,16 @@
|
||||
{
|
||||
"comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header",
|
||||
"//": "Soooooooo many edge cases",
|
||||
"begin": "([\t ]*+)(?>(\\|)|(>))([+-]?+)",
|
||||
"begin": "(?>(\\|)|(>))([+-]?+)",
|
||||
"while": "\\G",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.separator.yaml"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.literal.yaml"
|
||||
},
|
||||
"3": {
|
||||
"2": {
|
||||
"name": "keyword.control.flow.block-scalar.folded.yaml"
|
||||
},
|
||||
"4": {
|
||||
"3": {
|
||||
"name": "storage.modifier.chomping-indicator.yaml"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user