Windows: Accept CRLF in msgpack-gen.lua grammar #3226

- MSVC generates output using Windows newlines (\r\n) instead of (\n).
This commit is contained in:
Rui Abreu Ferreira 2014-12-08 19:19:12 +00:00 committed by Justin M. Keyes
parent 45121a267f
commit 5066128d48

View File

@ -10,7 +10,7 @@ C, Ct, Cc, Cg = lpeg.C, lpeg.Ct, lpeg.Cc, lpeg.Cg
any = P(1) -- (consume one character)
letter = R('az', 'AZ') + S('_$')
alpha = letter + R('09')
nl = P('\n')
nl = P('\r\n') + P('\n')
not_nl = any - nl
ws = S(' \t') + nl
fill = ws ^ 0