disable logging
This commit is contained in:
parent
285afeb4f2
commit
5db6824f28
1 changed files with 5 additions and 4 deletions
|
|
@ -849,6 +849,7 @@ Folding.commonFoldingRules = {
|
||||||
// "th": 1
|
// "th": 1
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
// limited XML parsing to find matching tag
|
||||||
do {
|
do {
|
||||||
var token = iterator.getCurrentToken();
|
var token = iterator.getCurrentToken();
|
||||||
|
|
||||||
|
|
@ -870,7 +871,7 @@ Folding.commonFoldingRules = {
|
||||||
column: iterator.getCurrentTokenColumn() + (isBack ? 0 : value.length + 1)
|
column: iterator.getCurrentTokenColumn() + (isBack ? 0 : value.length + 1)
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("push", tagName)
|
// console.log("push", tagName)
|
||||||
stack.push(tagName);
|
stack.push(tagName);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -883,7 +884,7 @@ Folding.commonFoldingRules = {
|
||||||
|
|
||||||
if (close) {
|
if (close) {
|
||||||
if (stack[stack.length-1] == tagName) {
|
if (stack[stack.length-1] == tagName) {
|
||||||
console.log("pop", tagName)
|
// console.log("pop", tagName)
|
||||||
stack.pop();
|
stack.pop();
|
||||||
if (stack.length == 0) {
|
if (stack.length == 0) {
|
||||||
end = {
|
end = {
|
||||||
|
|
@ -897,11 +898,11 @@ Folding.commonFoldingRules = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.error("unmatched tags!", tagName, stack)
|
// console.error("unmatched tags!", tagName, stack)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("push", tagName)
|
// console.log("push", tagName)
|
||||||
stack.push(tagName);
|
stack.push(tagName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue