mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Fixing the issue with arbitary property value keywords that contain a number not being parsed properly (for example -webkit-transform-style: preserve-3d;)
This commit is contained in:
@@ -465,7 +465,7 @@ less.Parser = function Parser(env) {
|
||||
//
|
||||
keyword: function () {
|
||||
var k;
|
||||
if (k = $(/^[A-Za-z-]+/)) { return new(tree.Keyword)(k) }
|
||||
if (k = $(/^[A-Za-z-][A-Za-z0-9-]*/)) { return new(tree.Keyword)(k) }
|
||||
},
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user