Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Escape the same characters in the highlighter
A lexer may hand back the bytes of one separator, or the CR and LF of a line ending, in different tokens, so line endings become line feeds before lexing and the separators are escaped once the tokens are joined.
Diffstat (limited to 'custom')
-rw-r--r--custom/extensions/syntax-highlight.lua45
1 file changed, 39 insertions, 6 deletions