stevedonovan/Penlight — Issue #22: lexer.lua Not correctly processes some lines
Author: AMSUser
Created: 2012-02-17 16:19:16+00:00
State: open

Sample code:

lexer = require 'pl.lexer'

lines = [[s = "Hello.\\";]]

for tp,val in lexer.lua(lines,{space=true,comments=false},{string=false}) do
print (val)
end

displays the result:

s
=
"
Hello
.
\
\
"
;

But it is necessary to:

s
=
"Hello.\\"
;