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:
parent
34951a109d
commit
23fbde27a2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user