summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua')
-rw-r--r--Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua
index 7ea32b0c64a..b05c93a2b53 100644
--- a/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua
+++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.lua
@@ -53,6 +53,15 @@ if luaotfload and luaotfload.set_transparent_colorstack then
local html = htmlcolor:match(value)
if html then return html end
+ local l3color_prop = token.get_macro(string.format('l__color_named_%s_prop', value))
+ if l3color_prop == nil or l3color_prop == '' then
+ local legacy_color_macro = token.create(string.format('\\color@%s', value))
+ if legacy_color_macro.cmdname ~= 'undefined_cs' then
+ token.put_next(legacy_color_macro)
+ return token.scan_argument()
+ end
+ end
+
tex.runtoks(function()
token.get_next()
color_export[6] = value