summaryrefslogtreecommitdiff
path: root/lualibs-lpeg.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-08 19:13:51 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-08 19:13:51 +0200
commitf3495d7db72f854d8f7560a6ff11fa9012003062 (patch)
tree38b9ad5b0d15ccd5c8288be2221defc091eada64 /lualibs-lpeg.lua
parent233c885a37efeabaab00c68f1dd4262705a0ac9e (diff)
parent935306412b57f436fcb5307a14941ded3eb3168d (diff)
downloadlualibs-f3495d7db72f854d8f7560a6ff11fa9012003062.tar.gz
Merge pull request #29 from phi-gamma/master
version 2.4
Diffstat (limited to 'lualibs-lpeg.lua')
-rw-r--r--lualibs-lpeg.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualibs-lpeg.lua b/lualibs-lpeg.lua
index 5be1246..959ca55 100644
--- a/lualibs-lpeg.lua
+++ b/lualibs-lpeg.lua
@@ -110,7 +110,7 @@ local underscore = P("_")
local hexdigit = digit + lowercase + uppercase
local cr, lf, crlf = P("\r"), P("\n"), P("\r\n")
----- newline = crlf + S("\r\n") -- cr + lf
-local newline = P("\r") * (P("\n") + P(true)) + P("\n")
+local newline = P("\r") * (P("\n") + P(true)) + P("\n") -- P("\r")^-1 * P("\n")^-1
local escaped = P("\\") * anything
local squote = P("'")
local dquote = P('"')