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

js language broke style in certain cases #1

Open
ganchan opened this issue Jul 27, 2012 · 0 comments
Open

js language broke style in certain cases #1

ganchan opened this issue Jul 27, 2012 · 0 comments

Comments

@ganchan
Copy link

ganchan commented Jul 27, 2012

var BROKEN_ATTR_IMPLEMENTATIONS = ieVersion > 6 ? /[$^*]=(['"])\1/ : null;

in a line like this for example, the language do not understand that we are in a regular expression because of "ieVersion > 6 ?".
after that, all the code become green because of the ", that the language parse as a string, because it don't understand that we are in a regexp.
tnx.

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

1 participant