orbitalquark / scintillua

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.
https://orbitalquark.github.io/scintillua
MIT License
51 stars 20 forks source link

Move tr literal to regex rule in perl lexer #106

Closed snoopy closed 10 months ago

snoopy commented 10 months ago

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.

orbitalquark commented 10 months ago

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.

orbitalquark commented 10 months ago

Committed in https://github.com/orbitalquark/scintillua/commit/6c45f3bc2c3256195282318a8b34549b3041c4c0.