mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Update grammars (#167938)
This commit is contained in:
@@ -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/davidrios/pug-tmbundle/commit/8d7e93262a949afca023ee67ca8bb01a3b43e607",
|
||||
"version": "https://github.com/davidrios/pug-tmbundle/commit/aee5f096dac969fe09afac55f05f3f4e774f61a3",
|
||||
"name": "Pug",
|
||||
"scopeName": "text.pug",
|
||||
"patterns": [
|
||||
@@ -60,7 +60,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(script)((\\.$)|(?=[^\\n]*(text|application)/javascript.*\\.$))",
|
||||
"begin": "^(\\s*)(script)((\\.$)|(?=[^\\n]*((text|application)/javascript|module).*\\.$))",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.pug"
|
||||
@@ -145,6 +145,24 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(scss)(?=\\(|$)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "constant.language.name.scss.filter.pug"
|
||||
}
|
||||
},
|
||||
"end": "^(?!(\\1\\s)|\\s*$)",
|
||||
"name": "source.css.scss.filter.pug",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_attributes"
|
||||
},
|
||||
{
|
||||
"include": "source.css.scss"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(less)(?=\\(|$)",
|
||||
"beginCaptures": {
|
||||
@@ -198,6 +216,24 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(uglify-js)(?=\\(|$)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "constant.language.name.js.filter.pug"
|
||||
}
|
||||
},
|
||||
"end": "^(?!(\\1\\s)|\\s*$)",
|
||||
"name": "source.js.filter.pug",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_attributes"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)((:(?=.))|(:$))",
|
||||
"beginCaptures": {
|
||||
@@ -233,7 +269,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(?=[\\w.#].*?\\.$)(?=(?:(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*)(?:(?:(?::\\s+)|(?<=\\)))(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*))*)\\.$)(?:(?:(#[\\w-]+)|(\\.[\\w-]+))|((?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))",
|
||||
"begin": "^(\\s*)(?:(?=\\.$)|(?:(?=[\\w.#].*?\\.$)(?=(?:(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*)(?:(?:(?::\\s+)|(?<=\\)))(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*))*)\\.$)(?:(?:(#[\\w-]+)|(\\.[\\w-]+))|((?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))))",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "entity.other.attribute-name.id.pug"
|
||||
@@ -248,6 +284,10 @@
|
||||
"end": "^(?!(\\1\\s)|\\s*$)",
|
||||
"comment": "Generated from dot_block_tag.py",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\.$",
|
||||
"name": "storage.type.function.pug.dot-block-dot"
|
||||
},
|
||||
{
|
||||
"include": "#tag_attributes"
|
||||
},
|
||||
@@ -301,6 +341,9 @@
|
||||
{
|
||||
"include": "#flow_control"
|
||||
},
|
||||
{
|
||||
"include": "#flow_control_each"
|
||||
},
|
||||
{
|
||||
"include": "#case_conds"
|
||||
},
|
||||
@@ -471,7 +514,7 @@
|
||||
]
|
||||
},
|
||||
"flow_control": {
|
||||
"begin": "(for|if|else if|else|each|until|while|unless|case)(\\s+|$)",
|
||||
"begin": "(for|if|else if|else|until|while|unless|case)(\\s+|$)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.pug"
|
||||
@@ -493,6 +536,32 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"flow_control_each": {
|
||||
"begin": "(each)(\\s+|$)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.pug"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "meta.control.flow.pug.each",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([\\w$_]+)(?:\\s*,\\s*([\\w$_]+))?",
|
||||
"name": "variable.other.pug.each-var"
|
||||
},
|
||||
{
|
||||
"begin": "",
|
||||
"end": "$",
|
||||
"name": "js.embedded.control.flow.pug",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"case_when_paren": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
@@ -549,6 +618,11 @@
|
||||
"complete_tag": {
|
||||
"begin": "(?=[\\w.#])|(:\\s*)",
|
||||
"end": "(\\.?$)|(?=:.)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.pug.dot-block-dot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#blocks_and_includes"
|
||||
@@ -562,6 +636,9 @@
|
||||
{
|
||||
"include": "#flow_control"
|
||||
},
|
||||
{
|
||||
"include": "#flow_control_each"
|
||||
},
|
||||
{
|
||||
"match": "(?<=:)\\w.*$",
|
||||
"name": "invalid.illegal.name.tag.pug"
|
||||
@@ -656,7 +733,7 @@
|
||||
},
|
||||
{
|
||||
"begin": "=\\s*",
|
||||
"end": "$|(?=,|(?:\\s+[^!%&*\\-+~|<>:?/])|\\))",
|
||||
"end": "$|(?=,|(?:\\s+[^!%&*\\-+~|<>?/])|\\))",
|
||||
"name": "attribute_value",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -678,7 +755,7 @@
|
||||
},
|
||||
{
|
||||
"begin": "(?<=[%&*\\-+~|<>:?/])\\s+",
|
||||
"end": "$|(?=,|(?:\\s+[^!%&*\\-+~|<>:?/])|\\))",
|
||||
"end": "$|(?=,|(?:\\s+[^!%&*\\-+~|<>?/])|\\))",
|
||||
"name": "attribute_value2",
|
||||
"patterns": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user