Skip to content

Commit

Permalink
Merge branch 'lineCommentSemicolonInsertion' of https://github.com/Gr…
Browse files Browse the repository at this point in the history
…egorR/narcissus into GregorR-lineCommentSemicolonInsertion
  • Loading branch information
Gregor Richards committed Apr 21, 2011
2 parents e5c1fb4 + 120b57b commit 92f0a89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jslex.js
Expand Up @@ -177,7 +177,11 @@ Narcissus.lexer = (function() {
}

if (ch === '\n') {
this.lineno++;
if (this.scanNewlines) {
this.cursor--;
} else {
this.lineno++;
}
break;
}
}
Expand Down

0 comments on commit 92f0a89

Please sign in to comment.