summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-12-08 10:59:43 +0000
committerAndy Williams <andy@andywilliams.me>2017-12-08 11:00:50 +0000
commit6cdcaf846b0df5747c2330c14b56dc000ce280d9 (patch)
treeb45adf13b34b5ca7628254c3a0ed8b7e5b6d1408 /src
parent1503fb53599602cda091d9bb7843de7056e95e1b (diff)
gendoc: Update to latest eolian syntax
Diffstat (limited to 'src')
-rw-r--r--src/scripts/elua/apps/docgen/doctree.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/scripts/elua/apps/docgen/doctree.lua b/src/scripts/elua/apps/docgen/doctree.lua
index 857165f0e1..3d761dd53a 100644
--- a/src/scripts/elua/apps/docgen/doctree.lua
+++ b/src/scripts/elua/apps/docgen/doctree.lua
@@ -9,6 +9,7 @@ local dutil = require("docgen.util")
9local writer 9local writer
10 10
11local M = {} 11local M = {}
12local eos = eolian:new()
12 13
13local get_cache = function(o, nm) 14local get_cache = function(o, nm)
14 local ret = o[nm] 15 local ret = o[nm]
@@ -1501,26 +1502,26 @@ M.DocTokenizer = Node:clone {
1501 1502
1502M.scan_directory = function(dir) 1503M.scan_directory = function(dir)
1503 if not dir then 1504 if not dir then
1504 if not eolian.system_directory_scan() then 1505 if not eos:system_directory_scan() then
1505 error("failed scanning system directory") 1506 error("failed scanning system directory")
1506 end 1507 end
1507 return 1508 return
1508 end 1509 end
1509 if not eolian.directory_scan(dir) then 1510 if not eos:directory_scan(dir) then
1510 error("failed scanning directory: " .. dir) 1511 error("failed scanning directory: " .. dir)
1511 end 1512 end
1512end 1513end
1513 1514
1514M.parse = function(st) 1515M.parse = function(st)
1515 if not eolian.all_eot_files_parse() then 1516 if not eos:all_eot_files_parse() then
1516 error("failed parsing eo type files") 1517 error("failed parsing eo type files")
1517 end 1518 end
1518 if st and st:match("%.") then 1519 if st and st:match("%.") then
1519 if not eolian.file_parse(st:gsub("%.", "_"):lower() .. ".eo") then 1520 if not eos:file_parse(st:gsub("%.", "_"):lower() .. ".eo") then
1520 error("failed parsing eo file") 1521 error("failed parsing eo file")
1521 end 1522 end
1522 else 1523 else
1523 if not eolian.all_eo_files_parse() then 1524 if not eos:all_eo_files_parse() then
1524 error("failed parsing eo files") 1525 error("failed parsing eo files")
1525 end 1526 end
1526 end 1527 end