Skip to content

Commit

Permalink
Use the correct argument
Browse files Browse the repository at this point in the history
  • Loading branch information
PhelypeOleinik authored and josephwright committed Aug 31, 2022
1 parent c0ec433 commit ef91377
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions base/ltcmd.dtx
Expand Up @@ -4064,15 +4064,15 @@
{
\quark_if_recursion_tail_stop_do:Nn #3
{ \tl_set:Nn \ProcessedArgument { #1 = {#2} } }
\str_if_eq:nnTF {#1} { = }
\str_if_eq:nnTF {#3} { = }
{
\use_i_delimit_by_q_recursion_stop:nw
{ \tl_set:Nn \ProcessedArgument {#2} }
}
{
\bool_lazy_or:nnTF
{ \str_if_eq_p:nn {#1} { $ } }
{ \str_if_eq_p:nn {#1} { \( } }
{ \str_if_eq_p:nn {#3} { $ } }
{ \str_if_eq_p:nn {#3} { \( } }
{ \@@_arg_to_keyvalue_math:nnw {#1} {#2} }
{ \@@_arg_to_keyvalue_loop:nnw {#1} {#2} }
}
Expand All @@ -4094,8 +4094,8 @@
\quark_if_recursion_tail_stop_do:Nn #3
{ \tl_set:Nn \ProcessedArgument { #1 = {#2} } }
\bool_lazy_or:nnTF
{ \str_if_eq_p:nn {#1} { $ } }
{ \str_if_eq_p:nn {#1} { \) } }
{ \str_if_eq_p:nn {#3} { $ } }
{ \str_if_eq_p:nn {#3} { \) } }
{ \@@_arg_to_keyvalue_loop:nnw {#1} {#2} }
{ \@@_arg_to_keyvalue_math:nnw {#1} {#2} }
}
Expand Down
4 changes: 2 additions & 2 deletions base/testfiles-ltcmd/ltcmd008.lvt
Expand Up @@ -46,8 +46,8 @@
\catcode`\[=1
\catcode`\]=2
\tl_rescan:nn
{ \char_set_catcode_group_begin:N \[ \char_set_catcode_group_end:N \] }
{ \char_set_catcode_group_begin:N \[ \char_set_catcode_group_end:N \] }
{ \foo [ [ baz ] ] }
}

\END
\END
8 changes: 4 additions & 4 deletions base/testfiles-ltcmd/ltcmd008.tlg
Expand Up @@ -11,19 +11,19 @@ TEST 1: Basic definitions using ={...}
TEST 2: Collecting keyvals
============================================================
(TOC-entry={bong})(baz)
(TOC-entry={bong=bang})(baz)
(bong=bang)(baz)
(bong)(baz)
(TOC-entry={bong=bang})(baz)
(bong=bang)(baz)
(TOC-entry={$y=mx+c$})(baz)
(TOC-entry={\(y=mx+c\)})(baz)
(TOC-entry={math=$y\mathbin {=}mx+c$})(baz)
(math=$y\mathbin {=}mx+c$)(baz)
============================================================
============================================================
TEST 3: Mixed argument types using ={...}
============================================================
(TOC-entry={bar})
(TOC-entry={baz})
(TOC-entry={bong=bing})
(bong=bing)
============================================================
============================================================
TEST 4: Awkward catcodes
Expand Down

0 comments on commit ef91377

Please sign in to comment.