Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "more-css", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "a css pre-compiler & agressive compressor", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -65,3 +65,4 @@ var Class = require('../util/Class'), | ||
//����less | ||
if(this.tokens[this.index] && this.tokens[this.index].content() == ':') { | ||
var next = this.tokens[this.index]; | ||
if(next && (next.content() == ':' || next.content() == '=')) { | ||
this.look.type(Token.VARS); | ||
@@ -205,3 +206,5 @@ return this.vars(); | ||
node.add(this.match()); | ||
node.add(this.match(':')); | ||
if([':', '='].indexOf(this.look.content()) > -1) { | ||
node.add(this.match()); | ||
} | ||
node.add(this.match([Token.STRING, Token.NUMBER])); | ||
@@ -208,0 +211,0 @@ node.add(this.match(';')); |
@@ -66,3 +66,4 @@ define(function(require, exports, module) { | ||
//����less | ||
if(this.tokens[this.index] && this.tokens[this.index].content() == ':') { | ||
var next = this.tokens[this.index]; | ||
if(next && (next.content() == ':' || next.content() == '=')) { | ||
this.look.type(Token.VARS); | ||
@@ -206,3 +207,5 @@ return this.vars(); | ||
node.add(this.match()); | ||
node.add(this.match(':')); | ||
if([':', '='].indexOf(this.look.content()) > -1) { | ||
node.add(this.match()); | ||
} | ||
node.add(this.match([Token.STRING, Token.NUMBER])); | ||
@@ -209,0 +212,0 @@ node.add(this.match(';')); |
Sorry, the diff of this file is not supported yet
8996
396469