Add tmlanguage schema to textmate language files + fix the errors hopefully. (#926)
This might
This commit is contained in:
parent
72898e3cd6
commit
cb7c9d5f82
2 changed files with 41 additions and 39 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||||
"information_for_contributors": ["This file has been modified from https://github.com/microsoft/vscode-markdown-tm-grammar/commit/399ff6f608a7bef3f68713be23cdcb4c6d475804"],
|
"information_for_contributors": ["This file has been modified from https://github.com/microsoft/vscode-markdown-tm-grammar/commit/399ff6f608a7bef3f68713be23cdcb4c6d475804"],
|
||||||
"name": "Astro Markdown",
|
"name": "Astro Markdown",
|
||||||
"scopeName": "text.html.markdown.astro",
|
"scopeName": "text.html.markdown.astro",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||||
"fileTypes": ["astro"],
|
"fileTypes": ["astro"],
|
||||||
"foldingStartMarker": "(?x)\n(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\\b.*?>\n|<!--(?!.*--\\s*>)\n|^<!--\\ \\#tminclude\\ (?>.*?-->)$\n|<\\?(?:php)?.*\\b(if|for(each)?|while)\\b.+:\n|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n)",
|
"foldingStartMarker": "(?x)\n(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\\b.*?>\n|<!--(?!.*--\\s*>)\n|^<!--\\ \\#tminclude\\ (?>.*?-->)$\n|<\\?(?:php)?.*\\b(if|for(each)?|while)\\b.+:\n|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n)",
|
||||||
"foldingStopMarker": "(?x)\n(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)>\n|^(?!.*?<!--).*?--\\s*>\n|^<!--\\ end\\ tminclude\\ -->$\n|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n|^[^{]*\\}\n)",
|
"foldingStopMarker": "(?x)\n(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)>\n|^(?!.*?<!--).*?--\\s*>\n|^<!--\\ end\\ tminclude\\ -->$\n|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n|^[^{]*\\}\n)",
|
||||||
|
@ -73,11 +74,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"begin": "<!--",
|
"begin": "<!--",
|
||||||
"captures": [
|
"captures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.comment.html"
|
"name": "punctuation.definition.comment.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": "--\\s*>",
|
"end": "--\\s*>",
|
||||||
"name": "comment.block.html",
|
"name": "comment.block.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
@ -89,11 +90,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"begin": "<!",
|
"begin": "<!",
|
||||||
"captures": [
|
"captures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.tag.html"
|
"name": "punctuation.definition.tag.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": ">",
|
"end": ">",
|
||||||
"name": "meta.tag.sgml.html",
|
"name": "meta.tag.sgml.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
@ -392,11 +393,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"begin": "/\\*",
|
"begin": "/\\*",
|
||||||
"captures": [
|
"captures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.comment.js"
|
"name": "punctuation.definition.comment.js"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": "\\*/|(?=</script)",
|
"end": "\\*/|(?=</script)",
|
||||||
"name": "comment.block.js"
|
"name": "comment.block.js"
|
||||||
},
|
},
|
||||||
|
@ -583,17 +584,17 @@
|
||||||
},
|
},
|
||||||
"string-double-quoted": {
|
"string-double-quoted": {
|
||||||
"begin": "\"",
|
"begin": "\"",
|
||||||
"beginCaptures": [
|
"beginCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.begin.html"
|
"name": "punctuation.definition.string.begin.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": "\"",
|
"end": "\"",
|
||||||
"endCaptures": [
|
"endCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.end.html"
|
"name": "punctuation.definition.string.end.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"name": "string.quoted.double.html",
|
"name": "string.quoted.double.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@ -603,17 +604,17 @@
|
||||||
},
|
},
|
||||||
"string-single-quoted": {
|
"string-single-quoted": {
|
||||||
"begin": "'",
|
"begin": "'",
|
||||||
"beginCaptures": [
|
"beginCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.begin.html"
|
"name": "punctuation.definition.string.begin.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": "'",
|
"end": "'",
|
||||||
"endCaptures": [
|
"endCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.end.html"
|
"name": "punctuation.definition.string.end.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"name": "string.quoted.single.html",
|
"name": "string.quoted.single.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@ -640,18 +641,18 @@
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"begin": "\"",
|
"begin": "\"",
|
||||||
"beginCaptures": [
|
"beginCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.begin.html"
|
"name": "punctuation.definition.string.begin.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"contentName": "meta.toc-list.id.html",
|
"contentName": "meta.toc-list.id.html",
|
||||||
"end": "\"",
|
"end": "\"",
|
||||||
"endCaptures": [
|
"endCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.end.html"
|
"name": "punctuation.definition.string.end.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"name": "string.quoted.double.html",
|
"name": "string.quoted.double.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@ -664,18 +665,18 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"begin": "'",
|
"begin": "'",
|
||||||
"beginCaptures": [
|
"beginCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.begin.html"
|
"name": "punctuation.definition.string.begin.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"contentName": "meta.toc-list.id.html",
|
"contentName": "meta.toc-list.id.html",
|
||||||
"end": "'",
|
"end": "'",
|
||||||
"endCaptures": [
|
"endCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.string.end.html"
|
"name": "punctuation.definition.string.end.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"name": "string.quoted.single.html",
|
"name": "string.quoted.single.html",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
@ -749,17 +750,17 @@
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"begin": "\\{",
|
"begin": "\\{",
|
||||||
"beginCaptures": [
|
"beginCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.generic.begin.html"
|
"name": "punctuation.definition.generic.begin.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"end": "\\}",
|
"end": "\\}",
|
||||||
"endCaptures": [
|
"endCaptures": {
|
||||||
{
|
"0": {
|
||||||
"name": "punctuation.definition.generic.end.html"
|
"name": "punctuation.definition.generic.end.html"
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"name": "expression.embbeded.astro",
|
"name": "expression.embbeded.astro",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue