Skip to content

Fix Lua 5.5 compatibility and Penlight deprecation warnings#422

Closed
KritzelKratzel wants to merge 1 commit intolunarmodules:masterfrom
KritzelKratzel:master
Closed

Fix Lua 5.5 compatibility and Penlight deprecation warnings#422
KritzelKratzel wants to merge 1 commit intolunarmodules:masterfrom
KritzelKratzel:master

Conversation

@KritzelKratzel
Copy link
Contributor

  • ldoc/doc.lua: Switched pl.text to pl.stringx to resolve Penlight 1.11+ deprecation warnings *)
  • ldoc/html.lua: Resolved "attempt to assign to const variable" by renaming/shadowing loop iterators (tag, name).
  • ldoc/html/ldoc_ltp.lua: Updated HTML templates to prevent illegal re-assignment of loop variables (kind, type).
  • ldoc/markdown.lua: Fixed illegal re-assignment of iterator 'k' in unescape_special_chars function.

*) Lua warning: [Penlight 1.15.0] the contents of module 'pl.text' has moved into 'pl.stringx' (deprecated after 1.11.0, scheduled for removal in 2.0.0)

- ldoc/doc.lua: Switched pl.text to pl.stringx to resolve Penlight 1.11+
  deprecation warnings.
- ldoc/html.lua: Resolved "attempt to assign to const variable" by
  renaming/shadowing loop iterators (tag, name).
- ldoc/html/ldoc_ltp.lua: Updated HTML templates to prevent illegal
  re-assignment of loop variables (kind, type).
- ldoc/markdown.lua: Fixed illegal re-assignment of iterator 'k' in
  unescape_special_chars function.
Copy link
Member

@Tieske Tieske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for the PR. Shouldn't we also update the CI workflows? they should be updated to run against the Luarocks actions instead of Leafo's (see Penlight for examples). And most importantly, the doc builder should probably run against Lua 5.5 to ensure it works.

@KritzelKratzel
Copy link
Contributor Author

Sure, but I'd better leave that decision to you. My expertise in this area is unfortunately too limited.

@Tieske Tieske mentioned this pull request Feb 17, 2026
@Tieske
Copy link
Member

Tieske commented Feb 17, 2026

replaced by #423

Thx @KritzelKratzel 👍

@Tieske Tieske closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants