From 172ec6621afd5a70395aff316a3d2ae9e711bf97 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Fri, 4 Oct 2024 18:32:15 +0200 Subject: [PATCH] Fix source.astro scopes --- Snippets/component.sublime-snippet | 2 +- Snippets/page_html.sublime-snippet | 2 +- Snippets/page_layout.sublime-snippet | 2 +- tests/syntax_test_astro.astro | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Snippets/component.sublime-snippet b/Snippets/component.sublime-snippet index 2f8b516..3f58c1f 100644 --- a/Snippets/component.sublime-snippet +++ b/Snippets/component.sublime-snippet @@ -6,6 +6,6 @@ $1 $0 ]]> component - text.html.astro + source.astro Component diff --git a/Snippets/page_html.sublime-snippet b/Snippets/page_html.sublime-snippet index f457b1b..f8b334f 100644 --- a/Snippets/page_html.sublime-snippet +++ b/Snippets/page_html.sublime-snippet @@ -16,6 +16,6 @@ $1 ]]> page_html - text.html.astro + source.astro Page with full HTML diff --git a/Snippets/page_layout.sublime-snippet b/Snippets/page_layout.sublime-snippet index b8a5776..dbae2f9 100644 --- a/Snippets/page_layout.sublime-snippet +++ b/Snippets/page_layout.sublime-snippet @@ -8,6 +8,6 @@ import ${1:Layout} from "../layouts/$1.astro" ]]> page_layout - text.html.astro + source.astro Page from Layout diff --git a/tests/syntax_test_astro.astro b/tests/syntax_test_astro.astro index f53f179..f8941f5 100644 --- a/tests/syntax_test_astro.astro +++ b/tests/syntax_test_astro.astro @@ -197,7 +197,7 @@ // ^^ punctuation.definition.tag.end.astro -//^^^^^^^^^^^ text.html.astro meta.tag.component.end.astro - text.html.markdown.astro - meta.tag.component meta.tag.component +//^^^^^^^^^^^ source.astro meta.tag.component.end.astro - text.html.markdown.astro - meta.tag.component meta.tag.component //^^ punctuation.definition.tag.begin.astro // ^^^^^^^^ entity.name.tag.component.astro support.class.component.astro // ^ punctuation.definition.tag.end.astro