Cant you write your own metaparser for this to generate Lua code on the fly with the respective goto statements?
To cover all these skin-deep things for different taste a good idea for the next Lua goal might be meta programming.
As simple as allowing source maps to ease error searching (error messages printout original line numbers as code).
Or a bit bigger incooperate some ideas from metalua into the main stream while recoding the whole thing respecting the Lua-not-invented-here-syndrome.
Do it yourself like you want it to be would be a very lua-ish approach.