Issue #748 -- trailing reserved idenitifer.

This commit is contained in:
Jeremy Ashkenas
2010-10-10 11:42:25 -04:00
parent 45ed62931b
commit f6ca5d814c
3 changed files with 12 additions and 3 deletions

View File

@@ -563,7 +563,7 @@
};
Lexer.prototype.unfinished = function() {
var prev, value;
return (prev = last(this.tokens, 1)) && prev[0] !== '.' && (value = this.value()) && NO_NEWLINE.test(value) && !CODE.test(value) && !ASSIGNED.test(this.chunk);
return (prev = last(this.tokens, 1)) && prev[0] !== '.' && (value = this.value()) && !value.reserved && NO_NEWLINE.test(value) && !CODE.test(value) && !ASSIGNED.test(this.chunk);
};
Lexer.prototype.escapeLines = function(str, heredoc) {
return str.replace(MULTILINER, heredoc ? '\\n' : '');