nvim-treesitter/tests/query/injections/vue/test-vue-injections.vue
2022-12-25 14:58:33 +01:00

41 lines
662 B
Vue

<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>