Dear Werner, there is a useful piece of software called luacheck <https://github.com/mpeterv/luacheck> that you can use to go over your Lua code and point out any and all stylewise gaffes it comes across. I use it as part of continuous integration of my LuaTeX package and it has definitely improved my code and helped me discover bugs that would have otherwise gone unnoticed.
Best, Vit ne 18. 12. 2022 v 20:59 odesílatel Werner LEMBERG <[email protected]> napsal: > > Folks, > > > attached is my first serious attempt to write a 'hyphenate' callback > (to be used for LilyPond's Texinfo documentation). It is actually my > first Lua program ever. Fortunately, initial tests indicate that it > works aas expected :-) > > Please have a quick look and check whether you can see any big > problems – mainly stylewise (besides using two spaces for indentation > instead of three) but perhaps codewise, too. > > Thanks in advance. > > > Werner >
