diff --git a/src/ol/expression/lexer.js b/src/ol/expression/lexer.js index 881fb26361..a107995764 100644 --- a/src/ol/expression/lexer.js +++ b/src/ol/expression/lexer.js @@ -728,6 +728,21 @@ ol.expression.Lexer.prototype.scanStringLiteral_ = function() { }; +/** + * Skip all whitespace. + * @private + */ +ol.expression.Lexer.prototype.skipWhitespace_ = function() { + var code; + while (this.index_ < this.length_) { + code = this.getCurrentCharCode_(); + if (this.isWhitespace_(code)) { + this.increment_(1); + } + } +}; + + /** * Peek at the next token, but don't advance the index. *