Update grammars (#235506)
parent
f7069b2fea
commit
8270a86019
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "dart-lang/dart-syntax-highlight",
|
||||
"repositoryUrl": "https://github.com/dart-lang/dart-syntax-highlight",
|
||||
"commitHash": "e8b053f9834cb44db0f49ac4a4567177bd943dbf"
|
||||
"commitHash": "e1ac5c446c2531343393adbe8fff9d45d8a7c412"
|
||||
}
|
||||
},
|
||||
"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/e8b053f9834cb44db0f49ac4a4567177bd943dbf",
|
||||
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/e1ac5c446c2531343393adbe8fff9d45d8a7c412",
|
||||
"name": "Dart",
|
||||
"scopeName": "source.dart",
|
||||
"patterns": [
|
||||
|
@ -66,6 +66,16 @@
|
|||
}
|
||||
],
|
||||
"repository": {
|
||||
"dartdoc-codeblock-triple": {
|
||||
"begin": "^\\s*///\\s*(?!\\s*```)",
|
||||
"end": "\n",
|
||||
"contentName": "variable.other.source.dart"
|
||||
},
|
||||
"dartdoc-codeblock-block": {
|
||||
"begin": "^\\s*\\*\\s*(?!(\\s*```|/))",
|
||||
"end": "\n",
|
||||
"contentName": "variable.other.source.dart"
|
||||
},
|
||||
"dartdoc": {
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -77,30 +87,31 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"match": "^ {4,}(?![ \\*]).*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.name.source.dart"
|
||||
"begin": "^\\s*///\\s*(```)",
|
||||
"end": "^\\s*///\\s*(```)|^(?!\\s*///)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#dartdoc-codeblock-triple"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"contentName": "variable.other.source.dart",
|
||||
"begin": "```.*?$",
|
||||
"end": "```"
|
||||
},
|
||||
{
|
||||
"match": "(`[^`]+?`)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.other.source.dart"
|
||||
"begin": "^\\s*\\*\\s*(```)",
|
||||
"end": "^\\s*\\*\\s*(```)|^(?=\\s*\\*/)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#dartdoc-codeblock-block"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(\\* (( ).*))$",
|
||||
"match": "`[^`\n]+`",
|
||||
"name": "variable.other.source.dart"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\*|\\/\\/)\\s{4,}(.*?)(?=($|\\*\\/))",
|
||||
"captures": {
|
||||
"2": {
|
||||
"1": {
|
||||
"name": "variable.other.source.dart"
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +165,7 @@
|
|||
{
|
||||
"name": "comment.block.documentation.dart",
|
||||
"begin": "///",
|
||||
"while": "^\\s*///",
|
||||
"end": "^(?!\\s*///)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#dartdoc"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "language-docker",
|
||||
"repositoryUrl": "https://github.com/moby/moby",
|
||||
"commitHash": "abd39744c6f3ed854500e423f5fabf952165161f"
|
||||
"commitHash": "c2029cb2574647e4bc28ed58486b8e85883eedb9"
|
||||
}
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
|
@ -15,4 +15,4 @@
|
|||
}
|
||||
],
|
||||
"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/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
|
||||
"version": "https://github.com/moby/moby/commit/c2029cb2574647e4bc28ed58486b8e85883eedb9",
|
||||
"name": "Dockerfile",
|
||||
"scopeName": "source.dockerfile",
|
||||
"patterns": [
|
||||
|
@ -41,6 +41,9 @@
|
|||
},
|
||||
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
|
||||
},
|
||||
{
|
||||
"include": "#string-character-escape"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
|
@ -57,8 +60,7 @@
|
|||
"name": "string.quoted.double.dockerfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escaped.dockerfile"
|
||||
"include": "#string-character-escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -78,8 +80,7 @@
|
|||
"name": "string.quoted.single.dockerfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escaped.dockerfile"
|
||||
"include": "#string-character-escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -98,5 +99,11 @@
|
|||
"comment": "comment.line",
|
||||
"match": "^(\\s*)((#).*$\\n?)"
|
||||
}
|
||||
]
|
||||
],
|
||||
"repository": {
|
||||
"string-character-escape": {
|
||||
"name": "constant.character.escaped.dockerfile",
|
||||
"match": "\\\\."
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,12 +6,12 @@
|
|||
"git": {
|
||||
"name": "go-syntax",
|
||||
"repositoryUrl": "https://github.com/worlpaker/go-syntax",
|
||||
"commitHash": "32bbaebcf218fa552e8f0397401e12f6e94fa3c5"
|
||||
"commitHash": "fbdaec061157e98dda185c0ce771ce6a2c793045"
|
||||
}
|
||||
},
|
||||
"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.8"
|
||||
"version": "0.7.9"
|
||||
}
|
||||
],
|
||||
"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/32bbaebcf218fa552e8f0397401e12f6e94fa3c5",
|
||||
"version": "https://github.com/worlpaker/go-syntax/commit/fbdaec061157e98dda185c0ce771ce6a2c793045",
|
||||
"name": "Go",
|
||||
"scopeName": "source.go",
|
||||
"patterns": [
|
||||
|
@ -97,7 +97,10 @@
|
|||
"comment": "all statements related to variables",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#var_const_assignment"
|
||||
"include": "#const_assignment"
|
||||
},
|
||||
{
|
||||
"include": "#var_assignment"
|
||||
},
|
||||
{
|
||||
"include": "#variable_assignment"
|
||||
|
@ -2645,12 +2648,12 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"var_const_assignment": {
|
||||
"comment": "variable assignment with var and const keyword",
|
||||
"var_assignment": {
|
||||
"comment": "variable assignment with var keyword",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "var and const with single type assignment",
|
||||
"match": "(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)",
|
||||
"comment": "single assignment",
|
||||
"match": "(?:(?<=\\bvar\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -2696,8 +2699,8 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"comment": "var and const with multi type assignment",
|
||||
"begin": "(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\())",
|
||||
"comment": "multi assignment",
|
||||
"begin": "(?:(?<=\\bvar\\b)(?:\\s*)(\\())",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.begin.bracket.round.go"
|
||||
|
@ -2763,6 +2766,124 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"const_assignment": {
|
||||
"comment": "constant assignment with const keyword",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "single assignment",
|
||||
"match": "(?:(?<=\\bconst\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#delimiters"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "variable.other.constant.go"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-declarations-without-brackets"
|
||||
},
|
||||
{
|
||||
"include": "#generic_types"
|
||||
},
|
||||
{
|
||||
"match": "\\(",
|
||||
"name": "punctuation.definition.begin.bracket.round.go"
|
||||
},
|
||||
{
|
||||
"match": "\\)",
|
||||
"name": "punctuation.definition.end.bracket.round.go"
|
||||
},
|
||||
{
|
||||
"match": "\\[",
|
||||
"name": "punctuation.definition.begin.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\]",
|
||||
"name": "punctuation.definition.end.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "multi assignment",
|
||||
"begin": "(?:(?<=\\bconst\\b)(?:\\s*)(\\())",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.begin.bracket.round.go"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.end.bracket.round.go"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:(?:^\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#delimiters"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "variable.other.constant.go"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-declarations-without-brackets"
|
||||
},
|
||||
{
|
||||
"include": "#generic_types"
|
||||
},
|
||||
{
|
||||
"match": "\\(",
|
||||
"name": "punctuation.definition.begin.bracket.round.go"
|
||||
},
|
||||
{
|
||||
"match": "\\)",
|
||||
"name": "punctuation.definition.end.bracket.round.go"
|
||||
},
|
||||
{
|
||||
"match": "\\[",
|
||||
"name": "punctuation.definition.begin.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\]",
|
||||
"name": "punctuation.definition.end.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable_assignment": {
|
||||
"comment": "variable assignment",
|
||||
"patterns": [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "jlelong/vscode-latex-basics",
|
||||
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
|
||||
"commitHash": "df6ef817c932d24da5cc72927344a547e463cc65"
|
||||
"commitHash": "59971565a7065dbb617576c04add9d891b056319"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "textmate/perl.tmbundle",
|
||||
"repositoryUrl": "https://github.com/textmate/perl.tmbundle",
|
||||
"commitHash": "a85927a902d6e5d7805f56a653f324d34dfad53a"
|
||||
"commitHash": "d9841a0878239fa43f88c640f8d458590f97e8f5"
|
||||
}
|
||||
},
|
||||
"licenseDetail": [
|
||||
|
|
Loading…
Reference in New Issue