From cb7c9d5f82c9b557665299b2ec5f08e3da8606c5 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Wed, 28 Jul 2021 16:34:06 -0500 Subject: [PATCH] Add tmlanguage schema to textmate language files + fix the errors hopefully. (#926) This might --- .../syntaxes/astro-markdown.tmLanguage.json | 1 + tools/vscode/syntaxes/astro.tmLanguage.json | 79 ++++++++++--------- 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|)$\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(\n|^(?!.*?$\n|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n|^[^{]*\\}\n)", @@ -73,11 +74,11 @@ }, { "begin": "