mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.43k stars 411 forks source link

Buggy completion in pug files #358

Open tuxitop opened 7 years ago

tuxitop commented 7 years ago

With the latest version installed, only a few of the functionality work in pug files. for example html:5 works, but ! which is it's alias doesn't seem to work. also things like input and link don't work. all of the above seem to be working fine with set ft=jade

mattn commented 7 years ago

do you mean !!! ?

tuxitop commented 7 years ago

hello, Thank you for considering this issue. No, I mean ! which according to emmet documentaion is an alias for html:5. I don't know about !!! but ! seems to work in jade files while it doesn't work in pug files.

mattn commented 7 years ago

please try https://github.com/mattn/emmet-vim/commit/e5d28f004ccc6f0cdd3e100b985ee30333b4ed83 If you still have problem, please reopen this.

tuxitop commented 7 years ago

Thank you for your patch @mattn. Although this patch solves the ‍‍‍! ssue, but there are still many things that don't work in a pug file. there's a, input, link and many other things. I think anything under the "default_atributes" of html, in the file you just edited doesn't work with pug. they all work in jade though.

tuxitop commented 7 years ago

I digged a little bit and found out that ebcf6d2 has broken the functionality some how. pug completion is fine before that commit. I can't figure out how to fix the problem though.