From 957b6db3d7d103fd0b6b9f3bfd63d2e733688f20 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 7 Jun 2013 16:29:21 -0600 Subject: [PATCH] Skip whitespace --- src/ol/expression/lexer.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. *