mirror of https://github.com/microsoft/vscode.git
Update grammars (#245340)
This commit is contained in:
parent
4064f17252
commit
9a2c94d213
|
@ -6,12 +6,12 @@
|
|||
"git": {
|
||||
"name": "go-syntax",
|
||||
"repositoryUrl": "https://github.com/worlpaker/go-syntax",
|
||||
"commitHash": "fbdaec061157e98dda185c0ce771ce6a2c793045"
|
||||
"commitHash": "415b7167f2e5396284b65692ef8fd08a3475362a"
|
||||
}
|
||||
},
|
||||
"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.9"
|
||||
"version": "0.8.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/worlpaker/go-syntax/commit/fbdaec061157e98dda185c0ce771ce6a2c793045",
|
||||
"version": "https://github.com/worlpaker/go-syntax/commit/415b7167f2e5396284b65692ef8fd08a3475362a",
|
||||
"name": "Go",
|
||||
"scopeName": "source.go",
|
||||
"patterns": [
|
||||
|
@ -618,6 +618,10 @@
|
|||
{
|
||||
"match": "\\bany\\b",
|
||||
"name": "entity.name.type.any.go"
|
||||
},
|
||||
{
|
||||
"match": "\\bcomparable\\b",
|
||||
"name": "entity.name.type.comparable.go"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1757,7 +1761,7 @@
|
|||
"include": "#after_control_variables"
|
||||
},
|
||||
{
|
||||
"match": "(\\b[\\w\\.]+)(\\[(?:[^\\]]+)?\\])?(?=\\{)(?<!\\bstruct\\b|\\binterface\\b)",
|
||||
"match": "(\\b[\\w\\.]+)(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}]+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\{)(?<!\\bstruct\\b|\\binterface\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -1773,30 +1777,27 @@
|
|||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.begin.bracket.square.go"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.end.bracket.square.go"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-declarations"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
"include": "#type-declarations-without-brackets"
|
||||
},
|
||||
{
|
||||
"match": "\\[",
|
||||
"name": "punctuation.definition.begin.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\]",
|
||||
"name": "punctuation.definition.end.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\{",
|
||||
"name": "punctuation.definition.begin.bracket.curly.go"
|
||||
},
|
||||
{
|
||||
"match": "\\}",
|
||||
"name": "punctuation.definition.end.bracket.curly.go"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -3037,7 +3038,7 @@
|
|||
},
|
||||
"double_parentheses_types": {
|
||||
"comment": "double parentheses types",
|
||||
"match": "(?:(?<!\\w)(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())",
|
||||
"match": "(?:(?<!\\w)(\\((?:[\\[\\]\\*]+)?(?:[\\w\\.]+)(?:\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}]+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?\\))(?=\\())",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -3060,6 +3061,14 @@
|
|||
"match": "\\]",
|
||||
"name": "punctuation.definition.end.bracket.square.go"
|
||||
},
|
||||
{
|
||||
"match": "\\{",
|
||||
"name": "punctuation.definition.begin.bracket.curly.go"
|
||||
},
|
||||
{
|
||||
"match": "\\}",
|
||||
"name": "punctuation.definition.end.bracket.curly.go"
|
||||
},
|
||||
{
|
||||
"match": "\\w+",
|
||||
"name": "entity.name.type.go"
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
"git": {
|
||||
"name": "jlelong/vscode-latex-basics",
|
||||
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
|
||||
"commitHash": "df6ef817c932d24da5cc72927344a547e463cc65"
|
||||
"commitHash": "b46aaf9bf4d265e63e262ded4bf9beffe19d35b2"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "1.9.0",
|
||||
"version": "1.13.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.",
|
||||
"licenseDetail": [
|
||||
"Copyright (c) vscode-latex-basics authors",
|
||||
|
|
|
@ -4,217 +4,28 @@
|
|||
"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/c787db94a56bd93131ce0938046063320a02cc73",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/0fcf9283828cab2aa611072f54feb1e7d501c2b4",
|
||||
"name": "BibTeX",
|
||||
"scopeName": "text.bibtex",
|
||||
"comment": "Grammar based on description from https://github.com/aclements/biblib\n",
|
||||
"comment": "Grammar based on description from https://github.com/aclements/biblib",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "@(?i:comment)(?=[\\s{(])",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.bibtex"
|
||||
}
|
||||
},
|
||||
"match": "@(?i:comment)(?=[\\s{(])",
|
||||
"name": "comment.block.at-sign.bibtex"
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:preamble))\\s*(\\{)\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.preamble.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.preamble.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.preamble.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.preamble.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
"include": "#preamble"
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:preamble))\\s*(\\()\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.preamble.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.preamble.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.preamble.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.preamble.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\{)\\s*([^\\s,}]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,}])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\()\\s*([^\\s,]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,)])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"include": "#entry"
|
||||
},
|
||||
{
|
||||
"begin": "[^@\\n]",
|
||||
|
@ -223,6 +34,216 @@
|
|||
}
|
||||
],
|
||||
"repository": {
|
||||
"preamble": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((@)(?i:preamble))\\s*(\\{)\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.preamble.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.preamble.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.preamble.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.preamble.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:preamble))\\s*(\\()\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.preamble.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.preamble.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.preamble.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.preamble.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:string))\\s*(\\()\\s*([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"entry": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\{)\\s*([^\\s,}]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,}])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)[a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\()\\s*([^\\s,]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~][a-zA-Z0-9!$&*+\\-./:;<>?@\\[\\\\\\]^_`|~]*)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,)])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#field_value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"field_value": {
|
||||
"patterns": [
|
||||
{
|
||||
|
|
|
@ -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/7b75bae583f3f9802c533e021f882428872c572c",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/a39a1f5ec1dee1c7e6e564ea86ab2c8d8779aa07",
|
||||
"name": "LaTeX",
|
||||
"scopeName": "text.tex.latex",
|
||||
"patterns": [
|
||||
|
@ -121,7 +121,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"begin": "((?:\\s*)\\\\begin\\{songs\\}\\{.*\\})",
|
||||
"begin": "(\\s*\\\\begin\\{songs\\}\\{.*\\})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
@ -136,21 +136,45 @@
|
|||
"name": "meta.function.environment.songs.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\\\\\[",
|
||||
"end": "\\]",
|
||||
"name": "meta.chord.block.latex support.class.chord.block.environment.latex",
|
||||
"include": "text.tex.latex#songs-chords"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "This scope applies songs-environment coloring between \\\\beginsong and \\\\endsong. Useful in separate files without \\\\begin{songs}.",
|
||||
"begin": "\\s*((\\\\)beginsong)(?=\\{)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.be.latex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.function.latex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"end": "((\\\\)endsong)(?:\\s*\\n)?",
|
||||
"name": "meta.function.environment.song.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#multiline-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"include": "#multiline-optional-arg-no-highlight"
|
||||
},
|
||||
{
|
||||
"begin": "(?:\\G|(?<=\\]|\\}))\\s*",
|
||||
"end": "\\s*(?=\\\\endsong)",
|
||||
"contentName": "meta.data.environment.song.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
"include": "text.tex.latex#songs-chords"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\^",
|
||||
"name": "meta.chord.block.latex support.class.chord.block.environment.latex"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2198,7 +2222,7 @@
|
|||
"include": "#definition-label"
|
||||
},
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -2232,7 +2256,7 @@
|
|||
"include": "#definition-label"
|
||||
},
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -2349,11 +2373,11 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"contentName": "meta.embedded.internal_only_markdown_latex_combined",
|
||||
"contentName": "meta.embedded.markdown_latex_combined",
|
||||
"end": "(\\\\end\\{markdown\\})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.internal_only_markdown_latex_combined"
|
||||
"include": "text.tex.markdown_latex_combined"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2949,7 +2973,7 @@
|
|||
"name": "meta.function.verb.latex"
|
||||
},
|
||||
{
|
||||
"begin": "((\\\\)(?:directlua|luadirect))(\\{)",
|
||||
"begin": "((\\\\)(?:directlua|luadirect|luaexec))(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.verb.latex"
|
||||
|
@ -2994,7 +3018,7 @@
|
|||
"name": "meta.math.block.latex support.class.math.block.environment.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -3021,7 +3045,7 @@
|
|||
"name": "constant.character.escape.latex"
|
||||
},
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -3048,7 +3072,7 @@
|
|||
"name": "constant.character.escape.latex"
|
||||
},
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -3071,7 +3095,7 @@
|
|||
"name": "meta.math.block.latex support.class.math.block.environment.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex#math"
|
||||
"include": "text.tex#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -3250,7 +3274,7 @@
|
|||
]
|
||||
},
|
||||
"multiline-optional-arg-no-highlight": {
|
||||
"begin": "\\G\\[",
|
||||
"begin": "(?:\\G|(?<=\\}))\\s*\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.optional.begin.latex"
|
||||
|
@ -3269,6 +3293,26 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"multiline-arg-no-highlight": {
|
||||
"begin": "\\G\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.begin.latex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.latex"
|
||||
}
|
||||
},
|
||||
"name": "meta.parameter.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"optional-arg-bracket": {
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -3354,6 +3398,27 @@
|
|||
"name": "meta.parameter.optional.latex"
|
||||
}
|
||||
]
|
||||
},
|
||||
"songs-chords": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\\\\\[",
|
||||
"end": "\\]",
|
||||
"name": "meta.chord.block.latex support.class.chord.block.environment.latex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\^",
|
||||
"name": "meta.chord.block.latex support.class.chord.block.environment.latex"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,11 +4,57 @@
|
|||
"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/df6ef817c932d24da5cc72927344a547e463cc65",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/b46aaf9bf4d265e63e262ded4bf9beffe19d35b2",
|
||||
"name": "TeX",
|
||||
"scopeName": "text.tex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#iffalse-block"
|
||||
},
|
||||
{
|
||||
"include": "#macro-control"
|
||||
},
|
||||
{
|
||||
"include": "#catcode"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"match": "[\\[\\]]",
|
||||
"name": "punctuation.definition.brackets.tex"
|
||||
},
|
||||
{
|
||||
"include": "#dollar-math"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\\\",
|
||||
"name": "keyword.control.newline.tex"
|
||||
},
|
||||
{
|
||||
"include": "#macro-general"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"catcode": {
|
||||
"match": "((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.catcode.tex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.tex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.key-value.tex"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.numeric.category.tex"
|
||||
}
|
||||
},
|
||||
"name": "meta.catcode.tex"
|
||||
},
|
||||
"iffalse-block": {
|
||||
"begin": "(?<=^\\s*)((\\\\)iffalse)(?!\\s*[{}]\\s*\\\\fi)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
|
@ -40,109 +86,15 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"macro-control": {
|
||||
"match": "(\\\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![a-zA-Z@])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.keyword.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![a-zA-Z@])",
|
||||
"name": "keyword.control.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.catcode.tex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.tex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.key-value.tex"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.numeric.category.tex"
|
||||
}
|
||||
},
|
||||
"match": "((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)",
|
||||
"name": "meta.catcode.tex"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"match": "[\\[\\]]",
|
||||
"name": "punctuation.definition.brackets.tex"
|
||||
},
|
||||
{
|
||||
"begin": "(\\$\\$|\\$)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.tex"
|
||||
}
|
||||
},
|
||||
"end": "(\\1)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.tex"
|
||||
}
|
||||
},
|
||||
"name": "meta.math.block.tex support.class.math.block.tex",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\$",
|
||||
"name": "constant.character.escape.tex"
|
||||
},
|
||||
{
|
||||
"include": "#math"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\\\",
|
||||
"name": "keyword.control.newline.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\)_*[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
||||
"name": "support.class.general.latex3.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\.)[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
||||
"name": "support.class.general.latex3.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+))",
|
||||
"name": "support.function.general.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.keyword.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\)[^a-zA-Z@]",
|
||||
"name": "constant.character.escape.tex"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"braces": {
|
||||
"begin": "(?<!\\\\)\\{",
|
||||
"beginCaptures": {
|
||||
|
@ -206,7 +158,34 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"math": {
|
||||
"dollar-math": {
|
||||
"begin": "(\\$\\$|\\$)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.tex"
|
||||
}
|
||||
},
|
||||
"end": "(\\1)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.tex"
|
||||
}
|
||||
},
|
||||
"name": "meta.math.block.tex support.class.math.block.tex",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\$",
|
||||
"name": "constant.character.escape.tex"
|
||||
},
|
||||
{
|
||||
"include": "#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"math-content": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((\\\\)(?:text|mbox))(\\{)",
|
||||
|
@ -230,7 +209,7 @@
|
|||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#math"
|
||||
"include": "#math-content"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
|
@ -246,30 +225,30 @@
|
|||
"name": "punctuation.math.bracket.pair.big.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.constant.math.tex"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)(?![a-zA-Z@])",
|
||||
"name": "constant.character.math.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.constant.math.tex"
|
||||
}
|
||||
},
|
||||
"name": "constant.character.math.tex"
|
||||
},
|
||||
{
|
||||
"match": "(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b",
|
||||
"name": "constant.character.math.tex"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.constant.math.tex"
|
||||
}
|
||||
},
|
||||
"name": "constant.character.math.tex"
|
||||
},
|
||||
{
|
||||
"match": "(\\\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.constant.math.tex"
|
||||
}
|
||||
},
|
||||
"name": "constant.other.math.tex"
|
||||
},
|
||||
{
|
||||
|
@ -342,10 +321,50 @@
|
|||
"name": "constant.numeric.math.tex"
|
||||
},
|
||||
{
|
||||
"match": "[\\+\\*/_\\^-]",
|
||||
"match": "[\\+\\*/-]|(?:(?<!\\^)\\^(?!\\^))|(?:(?<!\\_)\\_(?!\\_))",
|
||||
"name": "punctuation.math.operator.tex"
|
||||
}
|
||||
]
|
||||
},
|
||||
"macro-general": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\\\)_*[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"name": "support.class.general.latex3.tex"
|
||||
},
|
||||
{
|
||||
"match": "(\\.)[\\p{Alphabetic}@]+(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"name": "support.class.general.latex3.tex"
|
||||
},
|
||||
{
|
||||
"match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.function.tex"
|
||||
}
|
||||
},
|
||||
"name": "support.function.general.tex"
|
||||
},
|
||||
{
|
||||
"match": "(\\\\)[^a-zA-Z@]",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.keyword.tex"
|
||||
}
|
||||
},
|
||||
"name": "constant.character.escape.tex"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,9 +4,9 @@
|
|||
"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/ed0a6d72377d89eb90280f4159f2d6cdbd63a3a3",
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/d689e50d5a02534f9385306b3d0225d78be4db85",
|
||||
"name": "Markdown",
|
||||
"scopeName": "text.tex.internal_only_markdown_latex_combined",
|
||||
"scopeName": "text.tex.markdown_latex_combined",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.tex.latex"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "language-php",
|
||||
"repositoryUrl": "https://github.com/KapitanOczywisty/language-php",
|
||||
"commitHash": "5e8f000cb5a20f44f7a7a89d07ad0774031c53f3"
|
||||
"commitHash": "26cf1ebee89d4b55bf5823eb47eaa6a6dfda9336"
|
||||
}
|
||||
},
|
||||
"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/5e8f000cb5a20f44f7a7a89d07ad0774031c53f3",
|
||||
"version": "https://github.com/KapitanOczywisty/language-php/commit/26cf1ebee89d4b55bf5823eb47eaa6a6dfda9336",
|
||||
"scopeName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
|
@ -2402,23 +2402,68 @@
|
|||
]
|
||||
},
|
||||
"instantiation": {
|
||||
"begin": "(?i)(new)\\s+(?!class\\b)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.new.php"
|
||||
}
|
||||
},
|
||||
"end": "(?i)(?=[^a-z0-9_\\x{7f}-\\x{10ffff}\\\\])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{10ffff}])",
|
||||
"name": "storage.type.php"
|
||||
"match": "(?i)(new)\\s+(?!class\\b)([$a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)(?![a-z0-9_\\x{7f}-\\x{10ffff}\\\\(])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.new.php"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{10ffff}])",
|
||||
"name": "storage.type.php"
|
||||
},
|
||||
{
|
||||
"include": "#class-name"
|
||||
},
|
||||
{
|
||||
"include": "#variable-name"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#class-name"
|
||||
},
|
||||
{
|
||||
"include": "#variable-name"
|
||||
"begin": "(?i)(new)\\s+(?!class\\b)([$a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)\\s*(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.new.php"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{10ffff}])",
|
||||
"name": "storage.type.php"
|
||||
},
|
||||
{
|
||||
"include": "#class-name"
|
||||
},
|
||||
{
|
||||
"include": "#variable-name"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.arguments.begin.bracket.round.php"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.bracket.round.php"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.function-call.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#named-arguments"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2784,6 +2829,10 @@
|
|||
},
|
||||
{
|
||||
"include": "#php_doc_types"
|
||||
},
|
||||
{
|
||||
"match": "[|&]",
|
||||
"name": "punctuation.separator.delimiter.php"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2803,7 +2852,7 @@
|
|||
]
|
||||
},
|
||||
"php_doc_types": {
|
||||
"match": "(?i)\\??[a-z_\\x{7f}-\\x{10ffff}\\\\][a-z0-9_\\x{7f}-\\x{10ffff}\\\\]*([|&]\\??[a-z_\\x{7f}-\\x{10ffff}\\\\][a-z0-9_\\x{7f}-\\x{10ffff}\\\\]*)*",
|
||||
"match": "(?i)\\??[a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+([|&]\\??[a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
|
@ -2821,14 +2870,6 @@
|
|||
{
|
||||
"match": "[|&]",
|
||||
"name": "punctuation.separator.delimiter.php"
|
||||
},
|
||||
{
|
||||
"match": "\\(",
|
||||
"name": "punctuation.definition.type.begin.bracket.round.php"
|
||||
},
|
||||
{
|
||||
"match": "\\)",
|
||||
"name": "punctuation.definition.type.end.bracket.round.php"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -2841,7 +2882,7 @@
|
|||
"name": "punctuation.definition.type.begin.bracket.round.phpdoc.php"
|
||||
}
|
||||
},
|
||||
"end": "(\\))(\\[\\])|(?=\\*/)",
|
||||
"end": "(\\))(\\[\\])?|(?=\\*/)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.type.end.bracket.round.phpdoc.php"
|
||||
|
@ -2867,7 +2908,7 @@
|
|||
]
|
||||
},
|
||||
"php_doc_types_array_single": {
|
||||
"match": "(?i)([a-z_\\x{7f}-\\x{10ffff}\\\\][a-z0-9_\\x{7f}-\\x{10ffff}\\\\]*)(\\[\\])",
|
||||
"match": "(?i)([a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)(\\[\\])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "rust-syntax",
|
||||
"repositoryUrl": "https://github.com/dustypomerleau/rust-syntax",
|
||||
"commitHash": "e90d3dbdb61b96e4afdce6f7a3572426b1a86d9d"
|
||||
"commitHash": "268fd42cfd4aa96a6ed9024a2850d17d6cd2dc7b"
|
||||
}
|
||||
},
|
||||
"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/e90d3dbdb61b96e4afdce6f7a3572426b1a86d9d",
|
||||
"version": "https://github.com/dustypomerleau/rust-syntax/commit/268fd42cfd4aa96a6ed9024a2850d17d6cd2dc7b",
|
||||
"name": "Rust",
|
||||
"scopeName": "source.rust",
|
||||
"patterns": [
|
||||
|
@ -52,7 +52,7 @@
|
|||
{
|
||||
"comment": "macro type metavariables",
|
||||
"name": "meta.macro.metavariable.type.rust",
|
||||
"match": "(\\$)((crate)|([A-Z][A-Za-z0-9_]*))((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",
|
||||
"match": "(\\$)((crate)|([A-Z]\\w*))(\\s*(:)\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\b)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.macro.dollar.rust"
|
||||
|
@ -79,7 +79,7 @@
|
|||
{
|
||||
"comment": "macro metavariables",
|
||||
"name": "meta.macro.metavariable.rust",
|
||||
"match": "(\\$)([a-z][A-Za-z0-9_]*)((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",
|
||||
"match": "(\\$)([a-z]\\w*)(\\s*(:)\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\b)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.macro.dollar.rust"
|
||||
|
|
Loading…
Reference in New Issue