8000 Merge pull request #341 from ttfkam/cloudhead_322 · websdotcom/less.js@ccfe84f · GitHub
[go: up one dir, main page]

Skip to content

Commit ccfe84f

Browse files
author
Alexis Sellier
committed
Merge pull request less#341 from ttfkam/cloudhead_322
patch for Issue 322
2 parents 703efe2 + 6d78b3f commit ccfe84f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

lib/less/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ less.Parser = function Parser(env) {
476476
//
477477
keyword: function () {
478478
var k;
479-
if (k = $(/^[A-Za-z-]+/)) { return new(tree.Keyword)(k) }
479+
if (k = $(/^[_A-Za-z-][_A-Za-z0-9-]*/)) { return new(tree.Keyword)(k) }
480480
},
481481

482482
//

test/css/css-3.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ form[data-disabled] {
4040
p::before {
4141
color: black;
4242
}
43+
#issue322 {
44+
-webkit-animation: anim2 7s infinite ease-in-out;
45+
}

test/less/css-3.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ form[data-disabled] {
5353
p::before {
5454
color: black;
5555
}
56+
57+
#issue322 {
58+
-webkit-animation: anim2 7s infinite ease-in-out;
59+
}

0 commit comments

Comments
 (0)
0