summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-ref.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-02-25 17:26:17 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-02-25 17:26:17 +0100
commita616b343d8dfe81008c9e8aee253cf31f088f35b (patch)
treeced45226ad64ca20c507fc062c2fcab8f8bf6693 /tex/context/base/mkiv/strc-ref.lua
parentb614515b957fb2283a848d1204952a72f31b0ac7 (diff)
downloadcontext-a616b343d8dfe81008c9e8aee253cf31f088f35b.tar.gz
2017-02-25 16:30:00
Diffstat (limited to 'tex/context/base/mkiv/strc-ref.lua')
-rw-r--r--tex/context/base/mkiv/strc-ref.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/strc-ref.lua b/tex/context/base/mkiv/strc-ref.lua
index 23aa79ed4..a9a7c7121 100644
--- a/tex/context/base/mkiv/strc-ref.lua
+++ b/tex/context/base/mkiv/strc-ref.lua
@@ -896,6 +896,26 @@ local function resolve(prefix,reference,args,set) -- we start with prefix,refere
if var then
var.reference = ri
local vo, vi = var.outer, var.inner
+ -- we catch this here .. it's a way to pass references with commas
+ if vi == "name" then
+ local arguments = var.arguments
+ if arguments then
+ vi = arguments
+ var.inner = arguments
+ var.reference = arguments
+ var.arguments = nil
+ end
+ elseif var.special == "name" then
+ local operation = var.operation
+ if operation then
+ vi = operation
+ var.inner = operation
+ var.reference = operation
+ var.operation = nil
+ var.special = nil
+ end
+ end
+ -- end of catch
if not vo and vi then
-- to be checked
d = defined[prefix][vi] or defined[""][vi]