Version 1.6
Changes:
- Added backtick strings (see below).
- Added more functions for handling tokens (
removeUselessTokens(),eachToken(),isToken()). - Renamed the command line program (
main.lua) topreprocess-cl.lua.
Backtick strings, enabled with params.backtickStrings, allows the backtick character (`) to be used as string literal delimiters. This hack can be nice if you, for example, have Lua code inside strings and want to trick your text editor to apply syntax highlighting to the string contents as if it was normal Lua.
local functionString = `function sayHello() print("Hello!") end`
outputLua(functionString)