Skip to content

Conversation

@TechHog8984
Copy link

This fixes an issue with the following code:

print((...)[...])

which would unparse to

print(...[...])

causing syntax error.

I also added parser support for if/else expressions. There is no compiler support (it should be quite easy to add it) so I won't mention any of the relevant issues yet.

TechHog8984 added 2 commits July 15, 2025 20:19
…xpression; add parser support for Luau if/else expression (no compiler support)
@levno-710
Copy link
Member

Looks good.

@levno-710 levno-710 merged commit 8b790c8 into prometheus-lua:master Jul 16, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants