csslint: fix crashing on unclosed calc() at eof
This commit is contained in:
parent
279149b8b8
commit
2468784eb3
12
csslint/WARNING.txt
Normal file
12
csslint/WARNING.txt
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
1. Until https://github.com/CSSLint/parser-lib/issues/229 is fixed, manually replace:
|
||||||
|
|
||||||
|
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN) {
|
||||||
|
|
||||||
|
in "_function: function()" with
|
||||||
|
|
||||||
|
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN && lt !== Tokens.EOF) {
|
||||||
|
|
||||||
|
2. Apply our hacks unless supported natively:
|
||||||
|
|
||||||
|
* Support :any(), :-webkit-any(), :-moz-any()
|
||||||
|
* Support @supports inside @-moz-document
|
|
@ -2781,7 +2781,7 @@ Parser.prototype = function() {
|
||||||
|
|
||||||
//functionText += this._term();
|
//functionText += this._term();
|
||||||
lt = tokenStream.peek();
|
lt = tokenStream.peek();
|
||||||
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN) {
|
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN && lt !== Tokens.EOF) {
|
||||||
tokenStream.get();
|
tokenStream.get();
|
||||||
functionText += tokenStream.token().value;
|
functionText += tokenStream.token().value;
|
||||||
lt = tokenStream.peek();
|
lt = tokenStream.peek();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user