Increment after scanning >= and <= (and expect EOF in tests)

This commit is contained in:
Tim Schaub
2013-06-11 14:37:46 -06:00
parent 379ac82688
commit 40b12410f0
2 changed files with 17 additions and 6 deletions

View File

@@ -721,6 +721,7 @@ ol.expression.Lexer.prototype.scanPunctuator_ = function(code) {
if (code === ol.expression.Char.GREATER ||
code === ol.expression.Char.LESS) {
this.increment_(2);
return {
type: ol.expression.TokenType.PUNCTUATOR,
value: String.fromCharCode(code) + '='