Skip to content

Commit

Permalink
Change rule interface as discussed
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Aug 13, 2022
1 parent bd27ef5 commit 740636f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/ltluatex.dtx
Expand Up @@ -1850,7 +1850,7 @@ luatexbase.add_to_callback = add_to_callback
% \begin{macro}{declare_callback_rule}
% Add an ordering constraint between two callback implementations
% \begin{macrocode}
local function declare_callback_rule(name, desc1, desc2, relation)
local function declare_callback_rule(name, desc1, relation, desc2)
if not callbacktypes[name] or
not desc1 or not desc2 or
desc1 == "" or desc2 == "" then
Expand All @@ -1860,7 +1860,7 @@ local function declare_callback_rule(name, desc1, desc2, relation)
.. "declare_callback_rule(<callback>, <description_a>, <description_b>)"
)
end
if relation == 'before' or not relation then
if relation == 'before' then
relation = nil
elseif relation == 'after' then
desc2, desc1 = desc1, desc2
Expand Down

0 comments on commit 740636f

Please sign in to comment.