diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-06-16 18:20:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-06-16 18:20:00 +0200 |
commit | 6a36a76d35fcc0f4fea1f492e0c31d57e126a014 (patch) | |
tree | 30d90db96322f644b428c28e2651b635550697bc /tex/generic | |
parent | c768d04a83193229af281526797c8fc4e64d589f (diff) | |
download | context-6a36a76d35fcc0f4fea1f492e0c31d57e126a014.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 |