Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Catch a lexer's failure in one place
filter_close already runs highlight under pcall and serves the escaped text when it fails, so the pcalls around detect, load and lex inside it only turned a raise into the same fallback a step earlier.
Diffstat (limited to 'custom')
-rw-r--r--custom/extensions/syntax-highlight.lua21
1 file changed, 9 insertions, 12 deletions