Skip to content

Commit 84360d3

Browse files
feat(html/svelte): parsing of new blocks (biomejs#8023)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 15ff612 commit 84360d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2400
-54
lines changed

.changeset/all-tips-hang.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
6+
Added support Svelte syntax `{@html}`. Biome now is able to parse and format the Svelte syntax [`{@html}`](https://svelte.dev/docs/svelte/@html):
7+
8+
```diff
9+
-{@html 'div'}
10+
+{@html 'div'}
11+
```
12+
The contents of the expressions inside the `{@html <expression>}` aren't formatted yet.

.changeset/brown-poets-sit.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added support Svelte syntax `{@render}`. Biome now is able to parse and format the Svelte syntax [`{@render}`](https://svelte.dev/docs/svelte/@render):
6+
7+
```diff
8+
-{@render sum(1, 2) }
9+
+{@render sum(1, 2)}
10+
```
11+
12+
The contents of the expressions inside the `{@render <expression>}` aren't formatted yet.

.changeset/icy-planes-leave.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added support Svelte syntax `{@attach}`. Biome now is able to parse and format the Svelte syntax [`{@attach}`](https://svelte.dev/docs/svelte/@attach):
6+
7+
```diff
8+
-<div {@attach myAttachment }>...</div>
9+
+<div {@attach myAttachment}>...</div>
10+
```
11+
The contents of the expressions inside the `{@attach <expression>}` aren't formatted yet.

.changeset/light-toys-check.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Added support Svelte syntax `{#key}`. Biome now is able to parse and format the
1010
+ <div></div>
1111
+{/key}
1212
```
13+
The contents of the expressions inside the `{#key <expression>}` aren't formatted yet.

.changeset/mean-carrots-peel.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Added support Svelte syntax `{@const}`. Biome now is able to parse and format the Svelte syntax [`{@const}`](https://svelte.dev/docs/svelte/@const):
6+
7+
```diff
8+
-{@const name = value}
9+
+{@const name = value}
10+
```
11+
12+
The contents of the expressions inside the `{@const <expression>}` aren't formatted yet.

crates/biome_html_factory/src/generated/node_factory.rs

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/biome_html_factory/src/generated/syntax_factory.rs

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)