summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-10-01 12:00:13 +0300
committerMarius <mariausol@gmail.com>2011-10-01 12:00:13 +0300
commite4bd8545244428bdf7ffb5feba6680683aa8f68f (patch)
tree11b84c6ff3910b3c8ce2764a9e49a92ccee5839c /tex/context/base/strc-lst.lua
parent0526f4b53574cd916c133899b611422d487c6047 (diff)
downloadcontext-e4bd8545244428bdf7ffb5feba6680683aa8f68f.tar.gz
beta 2011.10.01 10:48
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua55
1 files changed, 31 insertions, 24 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index 1e54eddec..5b2297f0f 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -19,37 +19,38 @@ local lpegmatch = lpeg.match
local simple_hash_to_string, settings_to_hash = utilities.parsers.simple_hash_to_string, utilities.parsers.settings_to_hash
local allocate, checked = utilities.storage.allocate, utilities.storage.checked
-local trace_lists = false trackers.register("structures.lists", function(v) trace_lists = v end)
+local trace_lists = false trackers.register("structures.lists", function(v) trace_lists = v end)
-local report_lists = logs.reporter("structure","lists")
+local report_lists = logs.reporter("structure","lists")
-local structures = structures
-local lists = structures.lists
-local sections = structures.sections
-local helpers = structures.helpers
-local documents = structures.documents
-local pages = structures.pages
-local tags = structures.tags
-local references = structures.references
+local structures = structures
+local lists = structures.lists
+local sections = structures.sections
+local helpers = structures.helpers
+local documents = structures.documents
+local pages = structures.pages
+local tags = structures.tags
+local references = structures.references
-local collected = allocate()
-local tobesaved = allocate()
-local cached = allocate()
-local pushed = allocate()
+local collected = allocate()
+local tobesaved = allocate()
+local cached = allocate()
+local pushed = allocate()
-lists.collected = collected
-lists.tobesaved = tobesaved
+lists.collected = collected
+lists.tobesaved = tobesaved
-lists.enhancers = lists.enhancers or { }
-lists.internals = allocate(lists.internals or { }) -- to be checked
-lists.ordered = allocate(lists.ordered or { }) -- to be checked
-lists.cached = cached
-lists.pushed = pushed
+lists.enhancers = lists.enhancers or { }
+lists.internals = allocate(lists.internals or { }) -- to be checked
+lists.ordered = allocate(lists.ordered or { }) -- to be checked
+lists.cached = cached
+lists.pushed = pushed
-references.specials = references.specials or { }
+references.specials = references.specials or { }
-local variables = interfaces.variables
-local matchingtilldepth, numberatdepth = sections.matchingtilldepth, sections.numberatdepth
+local variables = interfaces.variables
+local matchingtilldepth = sections.matchingtilldepth
+local numberatdepth = sections.numberatdepth
-- -- -- -- -- --
@@ -121,6 +122,12 @@ function lists.push(t)
pushed[i] = p
r.listindex = p
end
+
+ local setcomponent = references.setcomponent
+ if setcomponent then
+ setcomponent(t) -- might move to the tex end
+ end
+
context(p)
end