Skip to content

Commit

Permalink
Merge branch 'st4126'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Nov 2, 2024
2 parents 1429d1f + 097a5a7 commit 3e21c2b
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
12 changes: 11 additions & 1 deletion Snippets/component.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ $1
$0
]]></content>
<tabTrigger>component</tabTrigger>
<scope>source.astro</scope>
<scope>
source.astro
- source.astro meta.tag
- source.astro meta.embedded
- source.astro meta.interpolation
- source.astro meta.string
- source.astro comment
- source.astro source
- source.astro string
- (text.html.markdown - markup.raw.code-fence source.astro)
</scope>
<description>Component</description>
</snippet>
12 changes: 11 additions & 1 deletion Snippets/page_html.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ $1
</html>
]]></content>
<tabTrigger>page_html</tabTrigger>
<scope>source.astro</scope>
<scope>
source.astro
- source.astro meta.tag
- source.astro meta.embedded
- source.astro meta.interpolation
- source.astro meta.string
- source.astro comment
- source.astro source
- source.astro string
- (text.html.markdown - markup.raw.code-fence source.astro)
</scope>
<description>Page with full HTML</description>
</snippet>
12 changes: 11 additions & 1 deletion Snippets/page_layout.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import ${1:Layout} from "../layouts/$1.astro"
</$1>
]]></content>
<tabTrigger>page_layout</tabTrigger>
<scope>source.astro</scope>
<scope>
source.astro
- source.astro meta.tag
- source.astro meta.embedded
- source.astro meta.interpolation
- source.astro meta.string
- source.astro comment
- source.astro source
- source.astro string
- (text.html.markdown - markup.raw.code-fence source.astro)
</scope>
<description>Page from Layout</description>
</snippet>
3 changes: 2 additions & 1 deletion Syntaxes/HTML (Astro).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ contexts:

main:
- meta_include_prototype: false
- meta_scope: text.html.astro meta.template.astro
- match: ''
set: [html, frontmatter]
push: [html, frontmatter]

frontmatter:
- meta_include_prototype: false
Expand Down
2 changes: 2 additions & 0 deletions tests/syntax_test_astro.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// SYNTAX TEST "HTML (Astro).sublime-syntax"

// <- source.astro text.html.astro meta.template.astro

<? <html>
//^^^^^^^^^ comment.block.astro
//^^ punctuation.definition.comment.begin.astro
Expand Down

0 comments on commit 3e21c2b

Please sign in to comment.