mirror of
https://github.com/notwa/lips
synced 2024-04-30 09:03:23 -07:00
actually implement path handling for .incasm
This commit is contained in:
parent
1540062a6f
commit
bfbe2845e6
|
@ -300,7 +300,10 @@ function Lexer:lex_include(_yield)
|
||||||
if self.options.path then
|
if self.options.path then
|
||||||
fn = self.options.path..fn
|
fn = self.options.path..fn
|
||||||
end
|
end
|
||||||
local sublexer = Lexer(util.readfile(fn), fn, self.options)
|
|
||||||
|
local new_options = setmetatable({}, {__index=self.options})
|
||||||
|
new_options.path = fn:match(".*/")
|
||||||
|
local sublexer = Lexer(util.readfile(fn), fn, new_options)
|
||||||
sublexer:lex(_yield)
|
sublexer:lex(_yield)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user