diff options
| author | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2024-05-28 12:49:55 +0200 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-30 05:52:27 -0600 |
| commit | a7aac1044856abc4d1f133c6563fc604d7fe6295 (patch) | |
| tree | 8b77c14267785920d49f9ec3e44b9e699c420fda /doc | |
| parent | 9bfb31fcbee028eaecce75a743f2a0bd50b5807c (diff) | |
| download | vis-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 'doc')
0 files changed, 0 insertions, 0 deletions
