CSSLint: function contents may start with a whitespace

#397
This commit is contained in:
tophf 2018-06-12 12:51:04 +03:00
parent 2b268fc589
commit a762d47795

View File

@ -4944,10 +4944,12 @@ self.parserlib = (() => {
_function({asText} = {}) {
const stream = this._tokenStream;
if (!stream.match(Tokens.FUNCTION)) return null;
this._ws();
const start = stream._token;
const name = start.value.slice(0, -1);
this._ws();
const expr = this._expr(lower(name));
const ieFilter = this.options.ieFilters && stream.peek() === Tokens.EQUALS ?
this._functionIeFilter() : '';