1
0
mirror of synced 2025-02-17 18:59:23 +01:00

Suppressed highlighting errors

This commit is contained in:
n1474335 2020-03-18 13:40:16 +00:00
parent cecae671d8
commit f864a5f31e

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 = [];
}
}
}