Suppressed highlighting errors

This commit is contained in:
n1474335 2020-03-18 13:40:16 +00:00
parent cecae671d8
commit f864a5f31e
1 changed files with 6 additions and 1 deletions

View File

@ -146,7 +146,12 @@ class Chef {
const func = direction === "forward" ? highlights[i].f : highlights[i].b;
if (typeof func == "function") {
pos = func(pos, highlights[i].args);
try {
pos = func(pos, highlights[i].args);
} catch (err) {
// Throw away highlighting errors
pos = [];
}
}
}