mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -04:00
add test file
This commit is contained in:
parent
4547a3687c
commit
bbd7ecb25d
1 changed files with 41 additions and 0 deletions
41
tests/query/injections/vue/test-vue-injections.vue
Normal file
41
tests/query/injections/vue/test-vue-injections.vue
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
<template>
|
||||||
|
<span>{{"Some text"}}</span>
|
||||||
|
<!-- ^ javascript
|
||||||
|
-->
|
||||||
|
|
||||||
|
<template lang="pug">
|
||||||
|
ul
|
||||||
|
li(v-for="item in items")
|
||||||
|
a(v-if="item.type == 'link'" :href="item.url") some link title:
|
||||||
|
<!-- ^ pug
|
||||||
|
-->
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template v-if="true"></template>
|
||||||
|
<!-- ^ javascript
|
||||||
|
-->
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
const foo = "1"
|
||||||
|
// ^ javascript
|
||||||
|
</script>
|
||||||
|
<script defer lang="js">
|
||||||
|
const foo = "1"
|
||||||
|
// ^ javascript
|
||||||
|
</script>
|
||||||
|
<script lang="ts">
|
||||||
|
const foo = "1"
|
||||||
|
// ^ typescript
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.bar {
|
||||||
|
/* ^ css*/
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss">
|
||||||
|
.bar {
|
||||||
|
&-baz {
|
||||||
|
// ^ scss
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue