aboutsummaryrefslogtreecommitdiff
path: root/event-basic.c
diff options
context:
space:
mode:
authorMichiel van den Heuvel <michielvdnheuvel@gmail.com>2024-05-28 12:49:55 +0200
committerRandy Palamar <randy@rnpnr.xyz>2024-05-30 05:52:27 -0600
commita7aac1044856abc4d1f133c6563fc604d7fe6295 (patch)
tree8b77c14267785920d49f9ec3e44b9e699c420fda /event-basic.c
parent9bfb31fcbee028eaecce75a743f2a0bd50b5807c (diff)
downloadvis-a7aac1044856abc4d1f133c6563fc604d7fe6295.tar.gz
vis-a7aac1044856abc4d1f133c6563fc604d7fe6295.tar.xz
Fail silently when syntax has no lexer
This'll patch vis.lexers.load to return nil when the lexer could not be found. Previously it would've errored out, which the load in lexer.lua still will as this is used in lexers themselves. Another possibility is to only patch set_syntax in vis.lua and the WIN_HIGHLIGHT handler in vis-std.lua, but as most references to vis.lexers.load already handle a nil return, this seems better.
Diffstat (limited to 'event-basic.c')
0 files changed, 0 insertions, 0 deletions