Lua code complete in Lua directives

This commit is contained in:
Zef Hemel
2025-02-08 20:28:58 +01:00
parent 772fe82e3a
commit d57792af6d
+1 -1
View File
@@ -39,7 +39,7 @@ event.listen {
local parents = e.data.parentNodes
local foundSpaceLua = false
for _, parent in ipairs(parents) do
if string.startswith(parent, "FencedCode:space-lua") then
if string.startswith(parent, "FencedCode:space-lua") or parent == "LuaDirective" then
foundSpaceLua = true
end
end