Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Find a script's lexer from its shebang line
Scintillua's detect reads the first line as well as the name, and without it hooks, bin scripts and anything else lacking an extension stayed plain.
-rw-r--r--custom/extensions/syntax-highlight.lua8
-rw-r--r--tests/extensions/fake-lexers/lexer.lua11
-rw-r--r--tests/extensions/test-syntax-highlight.lua4
3 files changed, 16 insertions, 7 deletions