diff options
author | Marius <mariausol@gmail.com> | 2011-06-16 19:40:11 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-06-16 19:40:11 +0300 |
commit | a12c76dbfcdf2a4159ba03613ba990a57b9b1ce0 (patch) | |
tree | f8ee3d62b66d8a5fd8c9c598e477fce435e1cf43 /tex/generic | |
parent | f7430075a5d36ba3731ab77b157f6df498ef17e8 (diff) | |
download | context-a12c76dbfcdf2a4159ba03613ba990a57b9b1ce0.tar.gz |
beta 2011.06.16 18:20
Diffstat (limited to 'tex/generic')
-rw-r--r-- | tex/generic/context/luatex-fonts-merged.lua | 9 |
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 |