summaryrefslogtreecommitdiff
path: root/tex/context/base/util-prs.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-11-17 14:40:15 +0200
committerMarius <mariausol@gmail.com>2010-11-17 14:40:15 +0200
commit49a6126dc0cc532254edaeecec129961b132cac5 (patch)
treeddf1cef4731c0ac4c4954e577a11cafeb47e7389 /tex/context/base/util-prs.lua
parent7fc9b91bca833ba04496e8f819fb60dafd77f6e0 (diff)
downloadcontext-49a6126dc0cc532254edaeecec129961b132cac5.tar.gz
beta 2010.11.17 13:27
Diffstat (limited to 'tex/context/base/util-prs.lua')
-rw-r--r--tex/context/base/util-prs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/util-prs.lua b/tex/context/base/util-prs.lua
index 17a10201f..6ca7c3396 100644
--- a/tex/context/base/util-prs.lua
+++ b/tex/context/base/util-prs.lua
@@ -35,6 +35,8 @@ local nobrace = 1 - (lbrace+rbrace)
local nested = P { lbrace * (nobrace + V(1))^0 * rbrace }
local spaces = space^0
+lpeg.patterns.nested = nested
+
local value = P(lbrace * C((nobrace + nested)^0) * rbrace) + C((nested + (1-comma))^0)
local key = C((1-equal-comma)^1)