lua-users home
lua-l archive

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


I have been recently using RiciLake pre-processor:

http://lua-users.org/wiki/SlightlyLessSimpleLuaPreprocessor

Has anyone thought of extending (or already extended) it to have
comment-like behavior for # instead of requiring lines to start with
#?

Example:

local x = 1.0 # <text for preprocessor here>

#[===[
<text for preprocessor here>
]===]

The first one may not seem immediately useful but it allows cases like
# preceded by a space (happens when the pre-processed text uses the
preprocessor as well).


Thanks

Stefano