Suppressed highlighting errors
This commit is contained in:
parent
cecae671d8
commit
f864a5f31e
@ -146,7 +146,12 @@ class Chef {
|
|||||||
const func = direction === "forward" ? highlights[i].f : highlights[i].b;
|
const func = direction === "forward" ? highlights[i].f : highlights[i].b;
|
||||||
|
|
||||||
if (typeof func == "function") {
|
if (typeof func == "function") {
|
||||||
|
try {
|
||||||
pos = func(pos, highlights[i].args);
|
pos = func(pos, highlights[i].args);
|
||||||
|
} catch (err) {
|
||||||
|
// Throw away highlighting errors
|
||||||
|
pos = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user