1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Display Fixed nodes.

This commit is contained in:
Rob Rix 2015-10-26 09:35:54 -04:00
parent 53cea24ddc
commit ec06db7c08

View File

@ -103,11 +103,12 @@
if (syntax.leaf != null) {
element = document.createElement("span");
element.textContent = source.substr(range[0], range[1]);
} else if (syntax.indexed != null) {
} else if (syntax.indexed != null || syntax.fixed != null) {
var values = syntax.indexed || syntax.fixed;
element = document.createElement("ul");
var previous = range[0];
for (i in syntax.indexed) {
var child = syntax.indexed[i];
for (i in values) {
var child = values[i];
if (child.pure == "") continue;
var childRange = getRange(child);
element.appendChild(document.createTextNode(source.substr(previous, childRange[0] - previous)));