summaryrefslogtreecommitdiff
path: root/tex/context/base/l-aux.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/l-aux.lua')
-rw-r--r--tex/context/base/l-aux.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/tex/context/base/l-aux.lua b/tex/context/base/l-aux.lua
index 03a5c2bbf..fdcc88e46 100644
--- a/tex/context/base/l-aux.lua
+++ b/tex/context/base/l-aux.lua
@@ -48,6 +48,10 @@ do
return lpeg.match(pattern,str)
end
+ function aux.add_settings_to_array(t,str)
+ return table.merge(t, lpeg.match(pattern,str))
+ end
+
end
function aux.hash_to_string(h,separator,yes,no,strict,omit)
@@ -86,3 +90,14 @@ function aux.array_to_string(a,separator)
return ""
end
end
+
+-- temporary here
+
+function aux.getparameters(self,class,parentclass,settings)
+ local sc = self[class]
+ if not sc then
+ sc = table.clone(self[parent])
+ self[class] = sc
+ end
+ aux.add_settings_to_array(sc, settings)
+end