diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 16:51:19 -0800 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 16:51:19 -0800 | 
| commit | 99450139d6c41d6c8d6bc02b0d2fd825be4c6dbb (patch) | |
| tree | 2f658d0ae0e80491b42311ea6b715b90decc7835 | |
| parent | c5da0cc4f84211ebefc189771deabfec9e9eb8ed (diff) | |
Moved place where we increment line number.
| -rw-r--r-- | js/lib/blocks.js | 2 | 
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) { | 
