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.
-rw-r--r--MANUAL.txt8
-rw-r--r--custom/extensions/syntax-highlight.lua45
-rw-r--r--tests/extensions/test-syntax-highlight.lua29
-rwxr-xr-xtests/t0502-syntax-highlight.sh11
4 files changed, 87 insertions, 6 deletions