diff options
author | Marius <mariausol@gmail.com> | 2010-11-17 14:40:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-11-17 14:40:15 +0200 |
commit | 49a6126dc0cc532254edaeecec129961b132cac5 (patch) | |
tree | ddf1cef4731c0ac4c4954e577a11cafeb47e7389 /tex/context/base/util-prs.lua | |
parent | 7fc9b91bca833ba04496e8f819fb60dafd77f6e0 (diff) | |
download | context-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.lua | 2 |
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) |