Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Drop the highlighter's extension fallback
The table of extensions and the second lookup served only a Scintillua with no detect(), which now leaves every file uncoloured but escaped. The fake detect() names a lexer after the file's suffix, so every test lexer is reached through it.
-rw-r--r--custom/extensions/syntax-highlight.lua55
-rw-r--r--tests/extensions/fake-lexers/lexer.lua14
-rw-r--r--tests/extensions/test-syntax-highlight.lua5
3 files changed, 13 insertions, 61 deletions