diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-11-06 11:04:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-06 11:04:13 +0900 |
| commit | 80f66cdef147bd8d8a619dfd9b18da37af5ceaf6 (patch) | |
| tree | 39de3655870beff9436fe89d7b5930ae29ede284 /tests/query/injections | |
| parent | Update parsers: awk, gleam, janet_simple, markdown, markdown_inline, wing (diff) | |
| download | nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar.gz nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar.bz2 nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar.lz nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar.xz nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.tar.zst nvim-treesitter-80f66cdef147bd8d8a619dfd9b18da37af5ceaf6.zip | |
injections(vue): inject typescript instead of js (#5577)
Interpolations (`{{valid js code}}`) and directive attributes
(`<element :directive="valid js code"`) can also be typescript code,
hence we can inject typescript instead of javascript here and still
be ok with highlights (bar some syntax differences between ts and js)
Diffstat (limited to 'tests/query/injections')
| -rw-r--r-- | tests/query/injections/vue/test-vue-injections.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/query/injections/vue/test-vue-injections.vue b/tests/query/injections/vue/test-vue-injections.vue index 75d3d831c..773e53a5f 100644 --- a/tests/query/injections/vue/test-vue-injections.vue +++ b/tests/query/injections/vue/test-vue-injections.vue @@ -1,12 +1,12 @@ <template> <span>{{"Text inside interpolation"}}</span> - <!-- ^ javascript --> + <!-- ^ typescript --> <template lang="pug"> a(:href="url") some link title in pug: </template> <!-- ^ pug --> <template v-if="'text inside directives'"></template> -<!-- ^ javascript --> +<!-- ^ typescript --> </template> <script> const foo = "1" </script> <!-- ^ javascript --> |
