mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Added safe operators, if/while with assignement, method stubs
This commit is contained in:
parent
6be81267d2
commit
851e9f89d6
11 changed files with 3688 additions and 2845 deletions
|
|
@ -86,7 +86,7 @@ function candran.preprocess(input, options={})
|
|||
-- @tparam modpath string module path
|
||||
-- @tparam margs table preprocessor options to use when preprocessessing the module
|
||||
env.import = function(modpath, margs={})
|
||||
local filepath = assert(util.search(modpath), "No module named \""..modpath.."\"")
|
||||
local filepath = assert(util.search(modpath, {"can", "lua"}), "No module named \""..modpath.."\"")
|
||||
|
||||
-- open module file
|
||||
local f = io.open(filepath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue