othree / html5.vim

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

Syntax highligting not working for custom single word html5 tags #63

Closed pmcode closed 8 years ago

pmcode commented 9 years ago

Unfortunately this fix(https://github.com/othree/html5.vim/issues/54) only solves the problem partially. It still not working for custom "single word" thml5 tags. Examples (see pagination, tabs, progressbar etc directives) Could you please fix this issue.

othree commented 9 years ago

Based on the draft A custom element identifier must contains a -.

pmcode commented 9 years ago

That's true. But i think the syntastic (or any other html linter) should warn about invalid markup. Ок, if you think that the improper html5 tags should not be highlighted the same as regular... perhaps its make sense. But, please, indent them. ALL tags must be properly indented.

p/s. Look at the other IDE-like text editors (ST, Atom, Brackets). They are all highlight and indent custom tags properly.

othree commented 8 years ago

noend:

base, link, meta, hr, br, wbr, img, embed, param, source, track, area, col, input, keygen, menuitem

omittable:

p, caption, colgroup, tbody, thead, tfoot, tr, td, th, li, dt, dd, rb, rt, rtc, rp, optgroup, option