Skip to content

Commit

Permalink
feat(vue): add context support
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritphyz authored Feb 20, 2024
1 parent 6a4b354 commit a5d16fd
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
- [x] `usd`
- [x] `verilog`
- [x] `vim`
- [x] `vue`
- [x] `xml`
- [x] `yaml`
- [x] `yang`
Expand Down Expand Up @@ -188,7 +189,6 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
- [ ] `v`
- [ ] `vala`
- [ ] `vhs`
- [ ] `vue`
- [ ] `wgsl`
- [ ] `wgsl_bevy`
- [ ] `yuck`
Expand Down
6 changes: 6 additions & 0 deletions queries/vue/context.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
([
(element)
(template_element)
(script_element)
(style_element)
] @context)
81 changes: 81 additions & 0 deletions test/test.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<template>
<main>





<ul v-for="(button, index) in buttonList">





<li :key="index">
{{ button.content }}





</li>
</ul>
</main>
</template>

<script setup>
export default {
data() {
return {
buttonList: [],
}
},
methods: {
handleClick(target = null) {
if (!target) {
} else {
}
},
},
}
</script>

<style lang="scss" scoped>
.header {
align-items: center;
background-color: #fff;
display: flex;
justify-content: center;
.title {
color: var(--color-blue);
font-size: 1.5rem;
font-weight: 200;
margin: 0;
padding: 1rem 0;
}
}
</style>

0 comments on commit a5d16fd

Please sign in to comment.