mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Lua 5.4 support and const and close shortcut
This commit is contained in:
parent
7add585c03
commit
10be62a2fe
6 changed files with 5205 additions and 4272 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#import("candran.util")
|
||||
#import("candran.cmdline")
|
||||
|
||||
#import("compiler.lua54")
|
||||
#import("compiler.lua53")
|
||||
#import("compiler.luajit")
|
||||
#import("compiler.lua51")
|
||||
|
|
@ -11,12 +12,12 @@
|
|||
#import("candran.can-parser.parser")
|
||||
|
||||
local candran = {
|
||||
VERSION = "0.12.0"
|
||||
VERSION = "0.13.0"
|
||||
}
|
||||
|
||||
--- Default options.
|
||||
candran.default = {
|
||||
target = "lua53",
|
||||
target = "lua54",
|
||||
indentation = "",
|
||||
newline = "\n",
|
||||
variablePrefix = "__CAN_",
|
||||
|
|
@ -32,6 +33,10 @@ if _VERSION == "Lua 5.1" then
|
|||
else
|
||||
candran.default.target = "lua51"
|
||||
end
|
||||
elseif _VERSION == "Lua 5.2" then
|
||||
candran.default.target = "lua51"
|
||||
elseif _VERSION == "Lua 5.3" then
|
||||
--candran.default.target = "lua53"
|
||||
end
|
||||
|
||||
--- Run the preprocessor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue