Skip to content

Commit

Permalink
add 'rad' 'grad' 'turn' units
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jul 26, 2010
1 parent e17314e commit 0f769a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/parser.js
Expand Up @@ -569,7 +569,7 @@ less.Parser = function Parser(env) {
var value, c = input.charCodeAt(i);
if ((c > 57 || c < 45) || c === 47) return;

if (value = $(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm)?/)) {
if (value = $(/^(-?\d*\.?\d+)(px|%|em|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/)) {
return new(tree.Dimension)(value[1], value[2]);
}
},
Expand Down

0 comments on commit 0f769a0

Please sign in to comment.