mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
* tests(vue, svelte): strengthen tests * fix(html, vue, svelte): fix wrong test format * allow negative assertions in injection tests
24 lines
697 B
Svelte
24 lines
697 B
Svelte
<script> import Button from "./Button.svelte"; </script>
|
|
<!-- ^ javascript -->
|
|
<script lang="ts"> const foo: number = 1
|
|
</script>
|
|
<!-- ^ typescript -->
|
|
<!-- ^ !javascript -->
|
|
|
|
<style> main { font-family: sans-serif; text-align: center; } </style>
|
|
<!-- ^ css -->
|
|
<style lang="scss"> main { &:hover { } } </style>
|
|
<!-- ^ scss -->
|
|
<!-- ^ !css -->
|
|
|
|
<main>
|
|
<h1>Test file</h1>
|
|
{#each someItems as someItem}
|
|
<!-- ^ javascript
|
|
-->
|
|
<div>{someItem}</div>
|
|
<!-- ^ javascript
|
|
-->
|
|
{/each}
|
|
<Button />
|
|
<button on:click={() => foo++}></button>
|
|
</main>
|