diff options
Diffstat (limited to 'tex/context/base/strc-ref.lua')
-rw-r--r-- | tex/context/base/strc-ref.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/strc-ref.lua b/tex/context/base/strc-ref.lua index 989bf5c23..413e245bd 100644 --- a/tex/context/base/strc-ref.lua +++ b/tex/context/base/strc-ref.lua @@ -1072,7 +1072,11 @@ local function identify_inner(set,var,prefix,collected,derived,tobesaved) -- foo:bar -> foo == prefix (first we try the global one) -- -:bar -> ignore prefix local p, i = prefix, nil - local splitprefix, splitinner = lpegmatch(prefixsplitter,inner) + local splitprefix, splitinner + -- the next test is a safeguard when references are auto loaded from outer + if inner then + splitprefix, splitinner = lpegmatch(prefixsplitter,inner) + end -- these are taken from other anonymous references if splitprefix and splitinner then if splitprefix == "-" then |