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

Whitespaces in a property name do not fail #3051

Open
seven-phases-max opened this issue Apr 19, 2017 · 2 comments
Open

Whitespaces in a property name do not fail #3051

seven-phases-max opened this issue Apr 19, 2017 · 2 comments

Comments

@seven-phases-max
Copy link
Member

seven-phases-max commented Apr 19, 2017

Example:

.for-each {
    me is not: a loop;
}

CSS output:

.for-each {
    meisnot: a loop;
}

Expected result:

a error message

This seems to be a regression of v2.0.0 (v1.7.5 works as expected).

@matthew-dean
Copy link
Member

Had a look but couldn't spot anything obvious here: https://github.com/less/less.js/blob/master/lib/less/parser/parser.js#L1939

Maybe the match loop below? 🤔

@seven-phases-max
Copy link
Member Author

seven-phases-max commented Jun 4, 2018

At quick glance I guess it's about the match function at L1946
(original strict regex vs. whitespace-skipping-parser-function).

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

No branches or pull requests

2 participants