othree / html5.vim

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

Add more flexible custom tag naming #81

Closed kostacoffee closed 7 years ago

kostacoffee commented 7 years ago

Currently, the regex for htmlTagName requires a custom tag to have a dash - in it. This is not necessary since custom tags can be written without a dash.

A good regex match would allow for removal of all htmlTagName literals and instead allow the regex to do the work.

othree commented 7 years ago

- is required

https://www.w3.org/TR/custom-elements/#prod-potentialcustomelementname

othree commented 7 years ago

Current regexp is incorrect. I will fix it later.

kostacoffee commented 7 years ago

Made a start on this in #80. Just need to add the special characters now.

othree commented 7 years ago

80 is not ok.

You can send another PR if you have a new regexp match the spec.