added lua

This commit is contained in:
DarthMooMancer
2025-03-14 01:27:40 -04:00
parent df35fa4f61
commit dac1d42b2c
2 changed files with 129 additions and 1 deletions
+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