mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
Fix missing ^, causing parse error. Fixes #2154
This commit is contained in:
@@ -1413,7 +1413,7 @@ less.Parser = function Parser(env) {
|
||||
|
||||
if (c === '/') {
|
||||
save();
|
||||
var slashedCombinator = $re(/\/[a-z]+\//i);
|
||||
var slashedCombinator = $re(/^\/[a-z]+\//i);
|
||||
if (slashedCombinator) {
|
||||
forget();
|
||||
return new(tree.Combinator)(slashedCombinator);
|
||||
|
||||
@@ -55,6 +55,9 @@
|
||||
.test {
|
||||
color: 1px;
|
||||
}
|
||||
.sr-only-focusable {
|
||||
clip: auto;
|
||||
}
|
||||
#last {
|
||||
color: #0000ff;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,13 @@
|
||||
}
|
||||
.mixin_def_with_colors();
|
||||
|
||||
// .s when
|
||||
//R/2
|
||||
|
||||
.sr-only-focusable {
|
||||
clip: auto;
|
||||
}
|
||||
|
||||
#last { color: blue }
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user