From a12c76dbfcdf2a4159ba03613ba990a57b9b1ce0 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 16 Jun 2011 19:40:11 +0300 Subject: beta 2011.06.16 18:20 --- tex/generic/context/luatex-fonts-merged.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tex/generic') 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 -- cgit v1.2.3