feat: Add Lua language support to TestRepoMapAllLanguages

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 15:11:31 -07:00
parent d74068464d
commit b54d800024
2 changed files with 26 additions and 0 deletions

25
tests/fixtures/languages/lua/test.lua vendored Normal file
View file

@ -0,0 +1,25 @@
-- Simple Lua module with a greeting function
-- Person class definition
local Person = {}
Person.__index = Person
function Person.new(name)
local self = setmetatable({}, Person)
self.name = name
return self
end
-- Main greeting function to be detected by ctags
function greet(person)
return "Hello, " .. person.name .. "!"
end
-- Example usage
local p = Person.new("World")
print(greet(p))
return {
Person = Person,
greet = greet
}