-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly determine end of snippet parameters with TS annotations
fixes #455
- Loading branch information
1 parent
0c5692a
commit a1a3f92
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
||
{#snippet test1(arg: string)} | ||
foo | ||
{/snippet} | ||
|
||
{#snippet test2(arg: (typeof obj)["key"])} | ||
foo | ||
{/snippet} | ||
|
||
{#snippet test3({ onselect }: { onselect: (value: string) => void })} | ||
foo | ||
{/snippet} |