Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lists in macros #8

Open
01joja opened this issue Aug 3, 2023 · 1 comment
Open

Lists in macros #8

01joja opened this issue Aug 3, 2023 · 1 comment

Comments

@01joja
Copy link

01joja commented Aug 3, 2023

Hey!

I have this macro with lists:
#[task(binds=UART0, priority=1, local=[local_r], shared=[shared_r])]

And it seems to think the macro ends after the first "]" after local_r.

I think the problem is on line 11
, moredelim=[s][{\itshape\color[rgb]{0,0,0.75}}]{#[}{]}

But I don't know how to parse it better.

@01joja
Copy link
Author

01joja commented Aug 3, 2023

I think I have solved it for my use case.

I added this line and may need to add more to cover all my macros.

, moredelim=[s][{\itshape\color[rgb]{0,0,0.75}}]{#[t}{)]}%

So it start by looking for "#[t" and ends on ")]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant