[Pkg-javascript-commits] [less.js] 18/25: Fix missing ^, causing parse error. Fixes #2154
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:23:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.5
in repository less.js.
commit c4ed7069e7e63e85e22d8bd4b680116d9e295418
Author: Luke Page <luke.a.page at gmail.com>
Date: Sun Aug 24 22:43:11 2014 +0100
Fix missing ^, causing parse error. Fixes #2154
---
lib/less/parser.js | 2 +-
test/css/comments.css | 3 +++
test/less/comments.less | 7 +++++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/lib/less/parser.js b/lib/less/parser.js
index 0c925d1..6bfa5f2 100644
--- a/lib/less/parser.js
+++ b/lib/less/parser.js
@@ -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);
diff --git a/test/css/comments.css b/test/css/comments.css
index b85f5b4..58b78ea 100644
--- a/test/css/comments.css
+++ b/test/css/comments.css
@@ -55,6 +55,9 @@
.test {
color: 1px;
}
+.sr-only-focusable {
+ clip: auto;
+}
#last {
color: #0000ff;
}
diff --git a/test/less/comments.less b/test/less/comments.less
index 7859911..3e5578b 100644
--- a/test/less/comments.less
+++ b/test/less/comments.less
@@ -77,6 +77,13 @@
}
.mixin_def_with_colors();
+// .s when
+//R/2
+
+.sr-only-focusable {
+ clip: auto;
+}
+
#last { color: blue }
//
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list