Created VSCode Extension, some updates from LinkedLives in the field
This commit is contained in:
135
VSCode/syntaxes/es6-inline-css.json
Normal file
135
VSCode/syntaxes/es6-inline-css.json
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
|
||||
"injections": {
|
||||
"L:source": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(\\s*(addStyle\\())(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.html"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.css"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
},
|
||||
{
|
||||
"include": "string.quoted.other.template.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s?\\/\\*\\s?(css|inline-css)\\s?\\*\\/\\s?)(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.css"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s*(css|inline-css))(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.css"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
},
|
||||
{
|
||||
"include": "string.quoted.other.template.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(css|inline-css)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.line"
|
||||
}
|
||||
},
|
||||
"end": "(`).*",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\G)",
|
||||
"end": "(`)"
|
||||
},
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(\\${)",
|
||||
"end": "(})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-css"
|
||||
}
|
||||
112
VSCode/syntaxes/es6-inline-glsl.json
Normal file
112
VSCode/syntaxes/es6-inline-glsl.json
Normal file
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
|
||||
"injections": {
|
||||
"L:source": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(\\s?\\/\\*\\s?(glsl|inline-glsl)\\s?\\*\\/\\s?)(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.glsl"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s*(glsl|inline-glsl))(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.glsl"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
},
|
||||
{
|
||||
"include": "string.quoted.other.template.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(glsl|inline-glsl)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.line"
|
||||
}
|
||||
},
|
||||
"end": "(`).*",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\G)",
|
||||
"end": "(`)"
|
||||
},
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.glsl"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(\\${)",
|
||||
"end": "(})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-glsl"
|
||||
}
|
||||
135
VSCode/syntaxes/es6-inline-html.json
Normal file
135
VSCode/syntaxes/es6-inline-html.json
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
|
||||
"injections": {
|
||||
"L:source": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(\\s*(html\\())(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.html"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
},
|
||||
{
|
||||
"include": "string.quoted.other.template.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s?\\/\\*\\s?(html|template|inline-html|inline-template)\\s?\\*\\/\\s?)(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s*(html|template|inline-html|inline-template))(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
},
|
||||
{
|
||||
"include": "inline.es6-htmlx#template"
|
||||
},
|
||||
{
|
||||
"include": "string.quoted.other.template.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(html|template|inline-html|inline-template)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.line"
|
||||
}
|
||||
},
|
||||
"end": "(`).*",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\G)",
|
||||
"end": "(`)"
|
||||
},
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(\\${)",
|
||||
"end": "(})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-html"
|
||||
}
|
||||
78
VSCode/syntaxes/es6-inline-sql.json
Normal file
78
VSCode/syntaxes/es6-inline-sql.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
|
||||
"injections": {
|
||||
"L:source": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(\\s*(sql))(`)",
|
||||
"end": "(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.parameter"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{ "include": "source.ts#template-substitution-element" },
|
||||
{ "include": "source.ts#string-character-escape" },
|
||||
{ "include": "source.sql" },
|
||||
{ "include": "source.plpgsql.postgres" },
|
||||
{ "match": "." }
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s?\\/?\\*?\\s?(sql|inline-sql)\\s?\\*?\\/?\\s?)(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{ "include": "source.ts#template-substitution-element" },
|
||||
{ "include": "source.ts#string-character-escape" },
|
||||
{ "include": "source.sql" },
|
||||
{ "include": "source.plpgsql.postgres" },
|
||||
{ "match": "." }
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(sql|inline-sql)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.line"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\G)",
|
||||
"end": "(`)"
|
||||
},
|
||||
{ "include": "source.ts#template-substitution-element" },
|
||||
{ "include": "source.ts#string-character-escape" },
|
||||
{ "include": "source.sql" },
|
||||
{ "include": "source.plpgsql.postgres" },
|
||||
{ "match": "." }
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-sql"
|
||||
}
|
||||
72
VSCode/syntaxes/es6-inline-xml.json
Normal file
72
VSCode/syntaxes/es6-inline-xml.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
|
||||
"injections": {
|
||||
"L:source": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(\\s?\\/\\*\\s?(xml|svg|inline-svg|inline-xml)\\s?\\*\\/\\s?)(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.xml"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\s*(xml|inline-xml))(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.block"
|
||||
}
|
||||
},
|
||||
"end": "(`)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.xml"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(xml|svg|inline-svg|inline-xml)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment.line"
|
||||
}
|
||||
},
|
||||
"end": "(`).*",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\G)",
|
||||
"end": "(`)"
|
||||
},
|
||||
{
|
||||
"include": "text.xml"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-xml"
|
||||
}
|
||||
19
VSCode/syntaxes/es6-js-injection.json
Normal file
19
VSCode/syntaxes/es6-js-injection.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
"html",
|
||||
"vue",
|
||||
"svelte",
|
||||
"php"
|
||||
],
|
||||
"injectionSelector": "L:source.js (string.quoted.double.html, string.quoted.single.html), L:source.jsx (string.quoted.double.html, string.quoted.single.html), L:source.js.jsx (string.quoted.double.html, string.quoted.single.html), L:source.ts (string.quoted.double.html, string.quoted.single.html), L:source.tsx (string.quoted.double.html, string.quoted.single.html)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts#template-substitution-element"
|
||||
}
|
||||
],
|
||||
"scopeName": "inline.es6-js-injection"
|
||||
}
|
||||
Reference in New Issue
Block a user