Skip to content

Commit 8f870c2

Browse files
modify test
1 parent 376e6d6 commit 8f870c2

File tree

2 files changed

+261
-62
lines changed

2 files changed

+261
-62
lines changed

packages/svelte/tests/parser-legacy/samples/javascript-comments/input.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script>
22
// a leading comment
3-
const a = true; // a trailing comment
3+
const a = 1; // a trailing comment
4+
const b = 2;
45
56
/** a comment */
67
function asd() {
@@ -14,4 +15,10 @@
1415
/* another comment */
1516
fn();
1617
}}
17-
></button>
18+
>
19+
{/* leading block comment */ a}
20+
</button>
21+
{ // leading line comment
22+
a + b // trailing line comment
23+
/* trailing block comment */
24+
}

0 commit comments

Comments
 (0)