diff --git a/Changelog.txt b/Changelog.txt index c670b14..b9209f6 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,6 +1,15 @@ Changelog LuaPreprocess +v1.19 (2022-06-20) +Library: +- All uses of '!' now work in macros. +- Added functions: getIndentation(), getCurrentIndentationInOutput(), getOutputSoFarOnLine(), writeFile(). +- Added function readFile() as alias for getFileContents(). (The latter is now deprecated.) +- Added environment argument to evaluate(). +- pp.metaEnvironment is now only a shallow copy of _G (i.e. 'pp.metaEnvironment.io == _G.io' etc.). +- LuaJIT: Added support for binary numerals (i.e. 0b110010). + v1.18 (2022-03-19) Library: - Added functions: loadResource(), evaluate(), pairsSorted(), sortNatural() and compareNatural(). diff --git a/preprocess.lua b/preprocess.lua index a61e16a..18fa87e 100644 --- a/preprocess.lua +++ b/preprocess.lua @@ -1,6 +1,6 @@ --[[============================================================ --= ---= LuaPreprocess v1.18-dev - preprocessing library +--= LuaPreprocess v1.19 - preprocessing library --= by Marcus 'ReFreezed' Thunström --= --= License: MIT (see the bottom of this file) @@ -131,7 +131,7 @@ -local PP_VERSION = "1.18.0-dev" +local PP_VERSION = "1.19.0" local MAX_DUPLICATE_FILE_INSERTS = 1000 -- @Incomplete: Make this a parameter for processFile()/processString().