Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Wrong line numbers on swapping of macro arguments #17

Closed
matze-dd opened this issue Jul 25, 2019 · 0 comments
Closed

Wrong line numbers on swapping of macro arguments #17

matze-dd opened this issue Jul 25, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@matze-dd
Copy link
Owner

Assume declaration

Macro(name='swap', args='AA', repl=r'\2\1')

Then the input

\swap
{A}
{B}

correctly leads to output 'BA', but the corresponding line number from option --nums is '3+' instead of '2+'.

This only happens on swapping of arguments, and it apparently has been introduced with the simplification of mysub() in release 1.5.6.

@matze-dd matze-dd added the bug Something isn't working label Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant