mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
add test file
This commit is contained in:
committed by
Stephan Seitz
parent
4547a3687c
commit
bbd7ecb25d
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>
|
||||
Reference in New Issue
Block a user