summaryrefslogtreecommitdiff
path: root/lualibs-lpeg.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-06 23:45:24 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-06 23:45:24 +0200
commit924a46e15e5296f930159534d8a4e1385114e0e0 (patch)
tree678eb920c40cb2deacd92263dd90d1542226aafa /lualibs-lpeg.lua
parent9cd540ff33e3d707979ed445e17d059f7f7c743d (diff)
downloadlualibs-924a46e15e5296f930159534d8a4e1385114e0e0.tar.gz
sync with Context as of 2016-04-06
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('"')