Skip to content

Backport lua 5.5 support, for loop variables are now const - #43

Open
alerque wants to merge 1 commit into
ToxicFrog:masterfrom
alerque:backport-lua55
Open

alerque wants to merge 1 commit into
ToxicFrog:masterfrom
alerque:backport-lua55

Conversation

@alerque

@alerque alerque commented Sep 12, 2026

Copy link
Copy Markdown

This is a backport of the Lua 5.5 fixes from #42 applied directly to the v2.2.0 release tag.

This could enable a v2.2.1 release without including the backrefs related feature(s) if that will speed up a Lua 5.5 compatible release.

In Lua 5.5 (latest stable lua), for loop variables are now const. This
fixes the code in ast/IO.lua to define a local variable within the loop
that can be modified. I believe this is the only change necessary to
support Lua 5.5, and it is backwards compatible.

This is a backport of the Lua 5.5 fixes for the v2.2.0 release tag.

Co-authored-by: Caleb Maclennan <caleb@alerque.com>
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