Skip to content

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.

2 participants