summaryrefslogtreecommitdiff
path: root/js/lib/blocks.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:51:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:51:19 -0800
commit99450139d6c41d6c8d6bc02b0d2fd825be4c6dbb (patch)
tree2f658d0ae0e80491b42311ea6b715b90decc7835 /js/lib/blocks.js
parentc5da0cc4f84211ebefc189771deabfec9e9eb8ed (diff)
Moved place where we increment line number.
Diffstat (limited to 'js/lib/blocks.js')
-rw-r--r--js/lib/blocks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index c12be92..60e8ca1 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -240,6 +240,7 @@ var incorporateLine = function(ln) {
var container = this.doc;
this.oldtip = this.tip;
this.offset = 0;
+ this.lineNumber += 1;
// replace NUL characters for security
if (ln.indexOf('\u0000') !== -1) {
@@ -664,7 +665,6 @@ var parse = function(input) {
if (this.options.time) { console.timeEnd("preparing input"); }
if (this.options.time) { console.time("block parsing"); }
for (var i = 0; i < len; i++) {
- this.lineNumber += 1;
this.incorporateLine(lines[i]);
}
while (this.tip) {