aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/tadoc.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2019-11-07 23:04:18 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2019-11-07 23:04:18 -0500
commite7d1e26a6db30304f61a59702cbca2f92d673af0 (patch)
treef35310bc03ac997178e00c50ee465fe0c8f4958d /modules/lua/tadoc.lua
parent8778e3c1864dcd8ef1ae6669be446bb1b2ee2d18 (diff)
downloadtextadept-e7d1e26a6db30304f61a59702cbca2f92d673af0.tar.gz
textadept-e7d1e26a6db30304f61a59702cbca2f92d673af0.zip
Split Lua and Textadept autocompletion and documentation files.
Textadept autocompletion and documentation is now only performed on Textadept files. Modified the LuaDoc doclet to only process "lua.luadoc" on its own, and updated the Makefile rule accordingly.
Diffstat (limited to 'modules/lua/tadoc.lua')
-rw-r--r--modules/lua/tadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/tadoc.lua b/modules/lua/tadoc.lua
index b964523c..04ff8ef5 100644
--- a/modules/lua/tadoc.lua
+++ b/modules/lua/tadoc.lua
@@ -134,7 +134,7 @@ function M.start(doc)
-- Convert module functions in the Lua luadoc into LuaDoc modules.
local lua_luadoc = files['../modules/lua/lua.luadoc']
- if lua_luadoc then
+ if lua_luadoc and #files == 1 then
for i = 1, #lua_luadoc.functions do
local f = lua_luadoc.functions[lua_luadoc.functions[i]]
local module_name = f.name:match('^([^%.:]+)[%.:]') or '_G'