summaryrefslogtreecommitdiff
path: root/lualibs-lpeg.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-09-03 13:25:54 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-09-03 13:25:54 +0200
commit5a4a4188ea6b7796cd4795c84866e8b0db553949 (patch)
tree0274fb1094de1786db3a814346c95fab097259fb /lualibs-lpeg.lua
parent36085526a0d2e5f35d0c6a9fc4daae0b6b69326f (diff)
downloadlualibs-5a4a4188ea6b7796cd4795c84866e8b0db553949.tar.gz
sync with Context as of 2013-09-03
Diffstat (limited to 'lualibs-lpeg.lua')
-rw-r--r--lualibs-lpeg.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lualibs-lpeg.lua b/lualibs-lpeg.lua
index b33df96..78b503b 100644
--- a/lualibs-lpeg.lua
+++ b/lualibs-lpeg.lua
@@ -109,11 +109,11 @@ local space = P(" ")
local period = P(".")
local comma = P(",")
-local utfbom_32_be = P('\000\000\254\255')
-local utfbom_32_le = P('\255\254\000\000')
-local utfbom_16_be = P('\255\254')
-local utfbom_16_le = P('\254\255')
-local utfbom_8 = P('\239\187\191')
+local utfbom_32_be = P('\000\000\254\255') -- 00 00 FE FF
+local utfbom_32_le = P('\255\254\000\000') -- FF FE 00 00
+local utfbom_16_be = P('\254\255') -- FE FF
+local utfbom_16_le = P('\255\254') -- FF FE
+local utfbom_8 = P('\239\187\191') -- EF BB BF
local utfbom = utfbom_32_be + utfbom_32_le
+ utfbom_16_be + utfbom_16_le
+ utfbom_8