summaryrefslogtreecommitdiff
path: root/tex/generic
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-06-16 18:20:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-06-16 18:20:00 +0200
commit6a36a76d35fcc0f4fea1f492e0c31d57e126a014 (patch)
tree30d90db96322f644b428c28e2651b635550697bc /tex/generic
parentc768d04a83193229af281526797c8fc4e64d589f (diff)
downloadcontext-6a36a76d35fcc0f4fea1f492e0c31d57e126a014.tar.gz
beta 2011.06.16 18:20
Diffstat (limited to 'tex/generic')
-rw-r--r--tex/generic/context/luatex-fonts-merged.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/generic/context/luatex-fonts-merged.lua b/tex/generic/context/luatex-fonts-merged.lua
index d2e14b55d..54ef6442e 100644
--- a/tex/generic/context/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : luatex-fonts-merged.lua
-- parent file : luatex-fonts.lua
--- merge date : 06/16/11 12:50:49
+-- merge date : 06/16/11 18:20:55
do -- begin closure to overcome local limits and interference
@@ -1261,6 +1261,13 @@ end
lpeg.splitat = splitat
lpeg.tsplitat = tsplitat
+function string.splitup(str,separator)
+ if not separator then
+ separator = ","
+ end
+ return match(splitters_m[separator] or splitat(separator),str)
+end
+
--~ local p = splitat("->",false) print(match(p,"oeps->what->more")) -- oeps what more
--~ local p = splitat("->",true) print(match(p,"oeps->what->more")) -- oeps what->more
--~ local p = splitat("->",false) print(match(p,"oeps")) -- oeps