Skip to content

Commit dace9da

Browse files
authored
feat: add Lua language support (#57)
Add .lua files to DEFAULT_INCLUDED_PATTERNS to enable automatic indexing of Lua code. The underlying cocoindex library already supports Lua language detection, this change makes it available by default without requiring COCOINDEX_CODE_EXTRA_EXTENSIONS. Changes: - Add **/*.lua to DEFAULT_INCLUDED_PATTERNS in indexer.py - Add Lua to supported languages table in README.md
1 parent 0521330 commit dace9da

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ Returns matching code chunks with:
320320
| javascript | js | `.js` |
321321
| json | | `.json` |
322322
| kotlin | | `.kt`, `.kts` |
323+
| lua | | `.lua` |
323324
| markdown | md | `.md`, `.mdx` |
324325
| pascal | pas, dpr, delphi | `.pas`, `.dpr` |
325326
| php | | `.php` |

src/cocoindex_code/indexer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"**/*.txt", # Plain text
4343
"**/*.rst", # reStructuredText
4444
"**/*.php", # PHP
45+
"**/*.lua", # Lua
4546
]
4647

4748
INCLUDED_PATTERNS = DEFAULT_INCLUDED_PATTERNS + [f"**/*{ext}" for ext in config.extra_extensions]

0 commit comments

Comments
 (0)