Suppressed highlighting errors

This commit is contained in:
n1474335 committed 2020-03-18 13:40:16 +00:00
1 parent cecae671d8
commit f864a5f31e
1 file changed
+6 -1
+6 -1
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 = [];
}
}
}