davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

[Feature Request] Support for dashes inside tags? #21

Closed cesarandreu closed 10 years ago

cesarandreu commented 10 years ago

If you're developing using something like shadow DOM or AngularJS directives, you can create tags that have dashes inside them.

An example:

<loading-indicator tracker-name="ServerRequest"></loading-indicator>

These tags are considered valid by browsers, and Jade compiles them perfectly fine.

However, the syntax highlighting appears to be a bit off for tag names with dashes in them. As seen here: loading-indicator in jade

It'd be great to add dashes to the regexp for tags. I'm not very familiarized with writing regexps, so it'd be great if you could add this.

If you're too busy or do not consider it worth doing, I would be willing to invest the time in figuring out how to do it. My question would then be, would you accept a PR for supporting dashes as part of tag names?

Please let me know what course of action you'd like to take. :smile:

davidrios commented 10 years ago

You're probably using the wrong repo or an outdated version, this one has supported that for a long time now. Try uninstalling and installing again.

cesarandreu commented 10 years ago

Got it to work, thanks! :D