lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


There are languages like Fennel (https://fennel-lang.org) and MoonScript (https://moonscript.org) that compile to Lua. Going that route would be much, much easier than changing Lua.

On Oct 2, 2023 at 5:24:49 AM, Claudio Grondi <claudio.grondi@freenet.de> wrote:

Lua provides support for multi-line string literals invoked by `[[` and
finalized with `]]` and for multi-line comments invoked with `--[[`,
`--[=[`, ...

I have searched Lua C-code for `--[[`, `--[=` and `[[` but failed to
find this patterns which I would like to replace for custom purposes
with another ones.

Any hints towards where to look and what to change?