othree / html5.vim

HTML5 omnicomplete and syntax
http://www.vim.org/scripts/script.php?script_id=3236
934 stars 76 forks source link

Add <use/> tag #79

Closed edi9999 closed 7 years ago

edi9999 commented 7 years ago

Currently, <use/> which can be used inside <svg> tags breaks indentation (gg=G) when used as a selfclosing tag (<use/>)

edi9999 commented 7 years ago

Thanks !

othree commented 7 years ago

Do you know is there any other self closing svg tags?

othree commented 7 years ago

And thanks for your contribution

edi9999 commented 7 years ago

I've just searched a bit for a source that would list all self closing svg tags, but I haven't found such a list sadly ...

edi9999 commented 7 years ago

If I find other tags, I will submit a new PR

othree commented 7 years ago

Looks like every svg tag can be self closing..

othree commented 7 years ago

https://www.w3.org/TR/html-markup/syntax.html#svg-mathml

edi9999 commented 7 years ago

yes, I think too.