diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-08-29 21:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-08-29 21:15:04 +0200 |
commit | e85e42343c3d3ba4e84f39647060c075e8b4dedc (patch) | |
tree | dd5653b9178243d2b8038f20a2d335d64ffbb3bb /tex/context/base/back-exp.lua | |
parent | a28872f5892ba6134a63aead5cf48e0ad62a0731 (diff) | |
download | context-e85e42343c3d3ba4e84f39647060c075e8b4dedc.tar.gz |
2014-08-29 20:59:00
Diffstat (limited to 'tex/context/base/back-exp.lua')
-rw-r--r-- | tex/context/base/back-exp.lua | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua index 1210f6925..647a9a049 100644 --- a/tex/context/base/back-exp.lua +++ b/tex/context/base/back-exp.lua @@ -292,7 +292,7 @@ end -- local tagsplitter = C(precolon) * colon * C(predash) * dash * C(rest) + -- C(predash) * dash * Cc(nil) * C(rest) -local listdata = { } +local listdata = { } -- maybe do this otherwise function wrapups.hashlistdata() local c = structures.lists.collected @@ -1300,10 +1300,29 @@ do end end + -- todo: internal is already hashed + + function structurestags.setlist(tag,n) + local data = structures.lists.getresult(n) + if data then + referencehash[detailedtag("listitem",tag)] = data + end + end + + function extras.listitem(result,element,detail,n,fulltag,di) + local data = referencehash[fulltag] + if data then + extras.addreference(result,data.references) + return true + end + end + end do + -- todo: internal is already hashed + function structurestags.setregister(tag,n) local data = structures.registers.get(tag,n) if data then @@ -2883,3 +2902,4 @@ commands.settagcombination = structurestags.setcombination commands.settagtablecell = structurestags.settablecell commands.settagtabulatecell = structurestags.settabulatecell commands.settagregister = structurestags.setregister +commands.settaglist = structurestags.setlist |