leafOfTree / vim-vue-plugin

Vim syntax and indent plugin for .vue files
The Unlicense
177 stars 9 forks source link

no syntax highlighting after </template> #30

Closed maciejg-git closed 3 years ago

maciejg-git commented 3 years ago

vim-vue :echo GetVueTag() return empty after </template> inside template.

leafOfTree commented 3 years ago

Hi, thank you for the timely report. It's caused by the upgrade. I've adjusted the syntax pattern to fix it. Please update and see if it works.

maciejg-git commented 3 years ago

vue Thanks for the fix. I updated and still have some issues with nested templates. I'm using Neovim 5.0-dev. Edit: I made some tests and it works without new lines. test

alferguet commented 3 years ago

Having the same issue as well having just installed the plugin.

leafOfTree commented 3 years ago

Hey, folks. I only checked the situation without newlines last time. Now I've used a more strict syntax pattern to avoid this problem. Please check it out.

Screen Shot 2021-03-31 at 6 55 30 PM
alferguet commented 3 years ago

It works perfectly now, thanks for the update! Still need to experiment a little bit with the syntax options to tweak it but loving it so far 💯

maciejg-git commented 3 years ago

It works now, thanks.

leafOfTree commented 3 years ago

Great.