Backtrack on invalid zoom. Fixes #290
This commit is contained in:
parent
b18f162d87
commit
2ead8dafa2
@ -596,6 +596,9 @@ carto.Parser = function Parser(env) {
|
|||||||
(op = $(this.entities.comparison)) &&
|
(op = $(this.entities.comparison)) &&
|
||||||
(val = $(this.entities.variable) || $(this.entities.dimension)) && $(']')) {
|
(val = $(this.entities.variable) || $(this.entities.dimension)) && $(']')) {
|
||||||
return new tree.Zoom(op, val, memo);
|
return new tree.Zoom(op, val, memo);
|
||||||
|
} else {
|
||||||
|
// backtrack
|
||||||
|
restore();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user