Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "more-css", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "a css pre-compiler & agressive compressor", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -135,2 +135,5 @@ var CssLexer = require('./lexer/CssLexer'), | ||
} | ||
else if(s.indexOf('-o-') == 0) { | ||
s = s.slice(3); | ||
} | ||
else if(/^[*_-]/.test(s)) { | ||
@@ -137,0 +140,0 @@ s = s.slice(1); |
@@ -61,2 +61,8 @@ var Lexer = require('./Lexer'), | ||
} | ||
//-o- | ||
else if(token.content().indexOf('-o-') == 0) { | ||
if(this.rule.keyWords().hasOwnProperty(token.content().slice(3))) { | ||
token.type(Token.KEYWORD); | ||
} | ||
} | ||
//ie hackҲ��ؼ��� | ||
@@ -63,0 +69,0 @@ else if(/^[*\-_]/.test(token.content().charAt(0))) { |
@@ -73,3 +73,3 @@ var Rule = require('./Rule'), | ||
self.addMatch(new CompleteEqual(Token.ID, '@page:right')); | ||
self.addMatch(new RegMatch(Token.ID, /^::?(?:-(?:moz|webkit|ms)-)?(?:placeholder|clear)/)); | ||
self.addMatch(new RegMatch(Token.ID, /^::?(?:-(?:moz|webkit|ms|o)-)?(?:placeholder|clear)/)); | ||
self.addMatch(new CompleteEqual(Token.ID, '&')); | ||
@@ -76,0 +76,0 @@ |
@@ -136,2 +136,5 @@ define(function(require, exports) { | ||
} | ||
else if(s.indexOf('-o-') == 0) { | ||
s = s.slice(3); | ||
} | ||
else if(/^[*_-]/.test(s)) { | ||
@@ -138,0 +141,0 @@ s = s.slice(1); |
@@ -62,2 +62,8 @@ define(function(require, exports, module) { | ||
} | ||
//-o- | ||
else if(token.content().indexOf('-o-') == 0) { | ||
if(this.rule.keyWords().hasOwnProperty(token.content().slice(3))) { | ||
token.type(Token.KEYWORD); | ||
} | ||
} | ||
//ie hackҲ��ؼ��� | ||
@@ -64,0 +70,0 @@ else if(/^[*\-_]/.test(token.content().charAt(0))) { |
@@ -74,3 +74,3 @@ define(function(require, exports, module) { | ||
self.addMatch(new CompleteEqual(Token.ID, '@page:right')); | ||
self.addMatch(new RegMatch(Token.ID, /^::?(?:-(?:moz|webkit|ms)-)?(?:placeholder|clear)/)); | ||
self.addMatch(new RegMatch(Token.ID, /^::?(?:-(?:moz|webkit|ms|o)-)?(?:placeholder|clear)/)); | ||
self.addMatch(new CompleteEqual(Token.ID, '&')); | ||
@@ -77,0 +77,0 @@ |
418085
9665