forked from enlightenment/efl
gendoc: Update to latest eolian syntax
This commit is contained in:
parent
1503fb5359
commit
6cdcaf846b
|
@ -9,6 +9,7 @@ local dutil = require("docgen.util")
|
||||||
local writer
|
local writer
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
local eos = eolian:new()
|
||||||
|
|
||||||
local get_cache = function(o, nm)
|
local get_cache = function(o, nm)
|
||||||
local ret = o[nm]
|
local ret = o[nm]
|
||||||
|
@ -1501,26 +1502,26 @@ M.DocTokenizer = Node:clone {
|
||||||
|
|
||||||
M.scan_directory = function(dir)
|
M.scan_directory = function(dir)
|
||||||
if not dir then
|
if not dir then
|
||||||
if not eolian.system_directory_scan() then
|
if not eos:system_directory_scan() then
|
||||||
error("failed scanning system directory")
|
error("failed scanning system directory")
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not eolian.directory_scan(dir) then
|
if not eos:directory_scan(dir) then
|
||||||
error("failed scanning directory: " .. dir)
|
error("failed scanning directory: " .. dir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.parse = function(st)
|
M.parse = function(st)
|
||||||
if not eolian.all_eot_files_parse() then
|
if not eos:all_eot_files_parse() then
|
||||||
error("failed parsing eo type files")
|
error("failed parsing eo type files")
|
||||||
end
|
end
|
||||||
if st and st:match("%.") then
|
if st and st:match("%.") then
|
||||||
if not eolian.file_parse(st:gsub("%.", "_"):lower() .. ".eo") then
|
if not eos:file_parse(st:gsub("%.", "_"):lower() .. ".eo") then
|
||||||
error("failed parsing eo file")
|
error("failed parsing eo file")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not eolian.all_eo_files_parse() then
|
if not eos:all_eo_files_parse() then
|
||||||
error("failed parsing eo files")
|
error("failed parsing eo files")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue