genoma / language-pug

A Pug (was Jade) syntax highlighting for Atom, derived from https://github.com/davidrios/jade-tmbundle
MIT License
26 stars 8 forks source link

In .vue files the syntax highlighting messes up the rest of the component #21

Open thomhos opened 7 years ago

thomhos commented 7 years ago

Using the lang="pug" attribute somehow seems to think the whole document is written in pug.

Any plans on updating this, or am I doing something wrong here?

capture
danieltian commented 7 years ago

Remove the extra line between the last element of the template and the </template> to fix the issue. This might be a bug with language-pug, not 100% sure.

viktor-yang commented 7 years ago

Same here, all vue files which my colleague writed have a empty line before </template>. The empty line cause this issue. Hope fix it, thanks.