Skip whitespace

This commit is contained in:
Tim Schaub
2013-06-07 16:29:21 -06:00
parent 50f94911b1
commit 957b6db3d7

View File

@@ -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.
*