Skip to content

Support for variables in certain at-rules. - #1860

Merged
lukeapage merged 1 commit into
less:masterfrom
seven-phases-max:variables-in-atrules-2
Feb 11, 2014
Merged

lukeapage merged 1 commit into
less:masterfrom
seven-phases-max:variables-in-atrules-2

Conversation

@seven-phases-max

Copy link
Copy Markdown
Member

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

Comment thread lib/less/parser.js

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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