Permalink
Browse files

close #113

  • Loading branch information...
1 parent bcd2f02 commit 29fe82726f039e24a495bc4df84aee7eb8f757f5 @bjouhier bjouhier committed Jul 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 deps/narcissus/lib/jslex.js
@@ -299,6 +299,7 @@ Narcissus.lexer = (function() {
throw this.newSyntaxError("Unterminated string literal");
if (ch === '\\') {
hasEscapes = true;
+ if (input[this.cursor] === '\n') this.lineno++; // fix for escaped newline
if (++this.cursor == input.length)
throw this.newSyntaxError("Unterminated string literal");
}

0 comments on commit 29fe827

Please sign in to comment.