1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

It’s not that kind of range.

This commit is contained in:
Rob Rix 2015-10-21 16:59:38 -04:00
parent 34951a109d
commit 23fbde27a2

View File

@ -61,7 +61,7 @@
this.range = json.extract;
this.syntax = syntax(json.unwrap, function(x) { return new Term(x, source); });
if (this.syntax instanceof Leaf) {
this.syntax.textContent = source.substr(this.range[0], this.range[1] - this.range[0]);
this.syntax.textContent = source.substr(this.range[0], this.range[1]);
}
return this;
}