added lua

This commit is contained in:
DarthMooMancer committed 2025-03-14 01:27:40 -04:00
1 parent df35fa4f61
commit dac1d42b2c
2 files changed
+129 -1

No files matched your search

+2 -1
View File
@@ -3,9 +3,10 @@ local M = {}
M.loaded_languages = {}
M.java = require("Polydev.java")
M.c = require("Polydev.c")
M.lua = require("Polydev.lua")
function M.load_language_module(lang)
if M.loaded_languages[lang] then return true end -- Prevent redundant loading
if M.loaded_languages[lang] then return true end
local ok, lang_module = pcall(require, "Polydev." .. lang)
if ok and lang_module.setup then