Scintillua enables Scintilla lexers to be written in Lua, particularly using LPeg. It can also be used as a standalone Lua library for syntax highlighting support.
y/a/b/ should be highlighted as a regex, same as tr/a/b/. Technically, this should already work but it doesn't (at least not for me).
Moving lit_tr to the regex rule fixes this for me.
Thanks for this. When testing, I found a match error unrelated to this PR caused when 'y' is at the end of input. I'll try and diagnose when I have some time before committing this along with a fix.
y/a/b/
should be highlighted as a regex, same astr/a/b/
. Technically, this should already work but it doesn't (at least not for me). Movinglit_tr
to the regex rule fixes this for me.