arnodel / golua

A Lua compiler / runtime in Go
Apache License 2.0
93 stars 10 forks source link

Lua 5.4 forbid modifiers for %q specifier in format strings #59

Closed arnodel closed 2 years ago

arnodel commented 2 years ago

Since Lua 5.4, e.g. string.format("%10q", 1) returns an error (this is an undocumented change AFAICT, but tested in the Lua 5.4 Test Suite)

This PR implements the above and adds Lua tests for it.