Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong attribute matching if name contains "-" #22

Open
dorny opened this issue Sep 7, 2012 · 1 comment
Open

wrong attribute matching if name contains "-" #22

dorny opened this issue Sep 7, 2012 · 1 comment

Comments

@dorny
Copy link

dorny commented Sep 7, 2012

Hi,

when attribute name contains "-", only second part is highlighted.
For example: in "data-bind" only "bind" si matched and highlighted

problem is here:
"patterns": [
{ "name": "attributes.tag.jade",
"begin": "([a-z]\w+)(=)",

should be:
"patterns": [
{ "name": "attributes.tag.jade",
"begin": "([a-z][A-Za-z0-9_-]+)(=)",

@efolio
Copy link

efolio commented Dec 6, 2012

don't forget the "?" at the end :)

"begin": "([a-z][A-Za-z0-9_-]+)(=)?",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants