File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
/* .sublime- *
5
5
/.run
6
- /wiki /
7
6
8
7
/tests /quickTest.lua
9
8
/tests /quickTest.meta.lua
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
LuaPreprocess
3
3
4
+ v1.14 (2021-07-13)
5
+ Library:
6
+ - !(), !!() and @insert now work in macros.
7
+ - Macro names can now contain lookups.
8
+ - Updated string serialization, including for newToken("string").
9
+ - Fixed error in output for '@line..""'.
10
+ - Improved some error messages.
11
+
4
12
v1.13.2 (2021-05-30)
5
13
Command line program:
6
14
- Fixed internal error when reporting a user error.
Original file line number Diff line number Diff line change 44
44
!... The line will simply run during preprocessing. The line can span multiple actual lines if it contains brackets.
45
45
!!... The line will appear in both the metaprogram and the final program. The line must be an assignment.
46
46
!(...) The result of the parenthesis will be outputted as a literal if it's an expression, otherwise it'll just run.
47
- !!(...) The expression in the parenthesis will be outputted as Lua code. The expression must result in a string.
47
+ !!(...) The result of the expression in the parenthesis will be outputted as Lua code. The result must be a string.
48
48
49
49
Short examples:
50
50
58
58
59
59
local font = !!(isDeveloper and "loadDevFont()" or "loadUserFont()")
60
60
61
+ -- See the full documentation for additional features:
62
+ -- http://luapreprocess.refreezed.com/docs/extra-functionality/
63
+
61
64
----------------------------------------------------------------
62
65
63
66
-- Example program:
112
115
-- Though in this specific case a preprocessor line (without the parenthesis) would be nicer:
113
116
!func()
114
117
115
- -- For the full documentation, see: http://luapreprocess.refreezed.com/docs/
118
+ -- For the full documentation, see:
119
+ -- http://luapreprocess.refreezed.com/docs/
116
120
117
121
--============================================================]]
118
122
119
123
120
124
121
- local PP_VERSION = " 1.13.2 "
125
+ local PP_VERSION = " 1.14.0 "
122
126
123
127
local MAX_DUPLICATE_FILE_INSERTS = 1000 -- @Incomplete: Make this a parameter for processFile()/processString().
124
128
You can’t perform that action at this time.
0 commit comments