summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Caleb Jasik <calebjasik@jasik.xyz> 2021-07-28 16:34:06 -0500
committerGravatar GitHub <noreply@github.com> 2021-07-28 17:34:06 -0400
commitcb7c9d5f82c9b557665299b2ec5f08e3da8606c5 (patch)
tree04185c31169835f9aec3d74cb4328c0962509e69
parent72898e3cd6ceb9075f8a680b8c0d86c780598713 (diff)
downloadastro-cb7c9d5f82c9b557665299b2ec5f08e3da8606c5.tar.gz
astro-cb7c9d5f82c9b557665299b2ec5f08e3da8606c5.tar.zst
astro-cb7c9d5f82c9b557665299b2ec5f08e3da8606c5.zip
Add tmlanguage schema to textmate language files + fix the errors hopefully. (#926)
This might
-rw-r--r--tools/vscode/syntaxes/astro-markdown.tmLanguage.json1
-rw-r--r--tools/vscode/syntaxes/astro.tmLanguage.json79
2 files changed, 41 insertions, 39 deletions
diff --git a/tools/vscode/syntaxes/astro-markdown.tmLanguage.json b/tools/vscode/syntaxes/astro-markdown.tmLanguage.json
index 7d6b68129..be230cc62 100644
--- a/tools/vscode/syntaxes/astro-markdown.tmLanguage.json
+++ b/tools/vscode/syntaxes/astro-markdown.tmLanguage.json
@@ -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"],
"name": "Astro Markdown",
"scopeName": "text.html.markdown.astro",
diff --git a/tools/vscode/syntaxes/astro.tmLanguage.json b/tools/vscode/syntaxes/astro.tmLanguage.json
index 3418b2ffb..8100fbe03 100644
--- a/tools/vscode/syntaxes/astro.tmLanguage.json
+++ b/tools/vscode/syntaxes/astro.tmLanguage.json
@@ -1,4 +1,5 @@
{
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"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)",
"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": "<!--",
- "captures": [
- {
+ "captures": {
+ "0": {
"name": "punctuation.definition.comment.html"
}
- ],
+ },
"end": "--\\s*>",
"name": "comment.block.html",
"patterns": [
@@ -89,11 +90,11 @@
},
{
"begin": "<!",
- "captures": [
- {
+ "captures": {
+ "0": {
"name": "punctuation.definition.tag.html"
}
- ],
+ },
"end": ">",
"name": "meta.tag.sgml.html",
"patterns": [
@@ -392,11 +393,11 @@
},
{
"begin": "/\\*",
- "captures": [
- {
+ "captures": {
+ "0": {
"name": "punctuation.definition.comment.js"
}
- ],
+ },
"end": "\\*/|(?=</script)",
"name": "comment.block.js"
},
@@ -583,17 +584,17 @@
},
"string-double-quoted": {
"begin": "\"",
- "beginCaptures": [
- {
+ "beginCaptures": {
+ "0": {
"name": "punctuation.definition.string.begin.html"
}
- ],
+ },
"end": "\"",
- "endCaptures": [
- {
+ "endCaptures": {
+ "0": {
"name": "punctuation.definition.string.end.html"
}
- ],
+ },
"name": "string.quoted.double.html",
"patterns": [
{
@@ -603,17 +604,17 @@
},
"string-single-quoted": {
"begin": "'",
- "beginCaptures": [
- {
+ "beginCaptures": {
+ "0": {
"name": "punctuation.definition.string.begin.html"
}
- ],
+ },
"end": "'",
- "endCaptures": [
- {
+ "endCaptures": {
+ "0": {
"name": "punctuation.definition.string.end.html"
}
- ],
+ },
"name": "string.quoted.single.html",
"patterns": [
{
@@ -640,18 +641,18 @@
"patterns": [
{
"begin": "\"",
- "beginCaptures": [
- {
+ "beginCaptures": {
+ "0": {
"name": "punctuation.definition.string.begin.html"
}
- ],
+ },
"contentName": "meta.toc-list.id.html",
"end": "\"",
- "endCaptures": [
- {
+ "endCaptures": {
+ "0": {
"name": "punctuation.definition.string.end.html"
}
- ],
+ },
"name": "string.quoted.double.html",
"patterns": [
{
@@ -664,18 +665,18 @@
},
{
"begin": "'",
- "beginCaptures": [
- {
+ "beginCaptures": {
+ "0": {
"name": "punctuation.definition.string.begin.html"
}
- ],
+ },
"contentName": "meta.toc-list.id.html",
"end": "'",
- "endCaptures": [
- {
+ "endCaptures": {
+ "0": {
"name": "punctuation.definition.string.end.html"
}
- ],
+ },
"name": "string.quoted.single.html",
"patterns": [
{
@@ -749,17 +750,17 @@
"patterns": [
{
"begin": "\\{",
- "beginCaptures": [
- {
+ "beginCaptures": {
+ "0": {
"name": "punctuation.definition.generic.begin.html"
}
- ],
+ },
"end": "\\}",
- "endCaptures": [
- {
+ "endCaptures": {
+ "0": {
"name": "punctuation.definition.generic.end.html"
}
- ],
+ },
"name": "expression.embbeded.astro",
"patterns": [
{