}
while (!stream.look().eof) {
- console.log(tokens);
if (this.read_mlcomment(stream, tokens)) continue;
if (this.read_slcomment(stream, tokens)) continue;
if (this.read_dbquote(stream, tokens)) continue;
if (this.collapseWhite) {
found = "\n";
}
- if (this.keepWhite) {
- var last = tokens.pop();
+ if (this.keepWhite) {
+ var last = tokens ? tokens.pop() : false;
if (last && last.name != "WHIT") {
tokens.push(last);
}