Search code examples
compiler-constructionluametalua

Indentation significant syntax


I'm looking for a way to enable white space significant indentation in Lua, like in the OCaml/F#/Python languages (it really hurts me to put end keywords everywhere...).

Have someone managed to do it? Maybe with metalua? Thanks!


Solution

  • I think that this Metalua example (pythonic) is exactly what you are looking for.

    Note that although Metalua allows you to modify Lua syntax, it does not work with LuaJIT.