mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Merge pull request #2401 from SomMeri/interpolate-pseudo-selector-1294
Allow selector interpolation inside pseudoselectors. #1294
This commit is contained in:
@@ -862,7 +862,7 @@ var Parser = function Parser(context, imports, fileInfo) {
|
||||
c = this.combinator();
|
||||
|
||||
e = parserInput.$re(/^(?:\d+\.\d+|\d+)%/) || parserInput.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/) ||
|
||||
parserInput.$char('*') || parserInput.$char('&') || this.attribute() || parserInput.$re(/^\([^()@]+\)/) || parserInput.$re(/^[\.#](?=@)/) ||
|
||||
parserInput.$char('*') || parserInput.$char('&') || this.attribute() || parserInput.$re(/^\([^()@]+\)/) || parserInput.$re(/^[\.#:](?=@)/) ||
|
||||
this.entities.variableCurly();
|
||||
|
||||
if (! e) {
|
||||
|
||||
@@ -119,7 +119,7 @@ p a span {
|
||||
.bloodred {
|
||||
color: green;
|
||||
}
|
||||
#blood.blood.red.black {
|
||||
#blood.blood.red.black:blood {
|
||||
color: black;
|
||||
}
|
||||
:nth-child(3) {
|
||||
|
||||
@@ -117,7 +117,7 @@ a {
|
||||
color: green;
|
||||
}
|
||||
.red {
|
||||
#@{theme}.@{theme}&.black {
|
||||
#@{theme}.@{theme}&.black:@{theme} {
|
||||
color:black;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user