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

Support for variables in certain at-rules. #1860

Merged
merged 1 commit into from
Feb 11, 2014
Merged

Support for variables in certain at-rules. #1860

merged 1 commit into from
Feb 11, 2014

Conversation

seven-phases-max
Copy link
Member

Minimalistic support as discussed in #1845, i.e. @keyframes @var {...}.
Directives affected:
@keyframes
@namespace
@charset

error("expected " + name + " expression");
}
} else if (hasUnknown) {
value = ($re(/^[^{;]+/) || '').trim();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

; has to be in the regex otherwise we have the following issue (1.6.3):

@supports magic;

.mixin {
    color: grey;
}

div {
    .mixin; // Err, not found because it was parsed as a part of the directive: `@supports magic;\n.mixin {...}`
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot

@lukeapage
Copy link
Member

great work, thanks

lukeapage added a commit that referenced this pull request Feb 11, 2014
Support for variables in certain at-rules.
@lukeapage lukeapage merged commit 55ce309 into less:master Feb 11, 2014
@seven-phases-max seven-phases-max deleted the variables-in-atrules-2 branch February 15, 2014 13:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants