Skip to content

Commit 60eeadc

Browse files
committed
feat(parser): add Lua language support with tree-sitter
- Add tree-sitter-lua dependency and register "lua" extension - Implement symbol extraction for functions, variables, and blocks - Support import resolution via require() calls - Extract module exports from return statements and tables
1 parent f9ca076 commit 60eeadc

File tree

5 files changed

+408
-0
lines changed

5 files changed

+408
-0
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tree-sitter-go = "0.23.4"
5959
tree-sitter-cpp = "0.23.4"
6060
tree-sitter-bash = "0.25.0"
6161
tree-sitter-css = "0.23.2"
62+
tree-sitter-lua = "0.2.0"
6263

6364
uuid = { version = "1.17.0", default-features = false, features = ["v4"] }
6465
tree-sitter-typescript = "0.23.2"

src/indexer/file_utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ impl FileUtils {
108108
"sh" | "bash" => Some("bash"),
109109
// Ruby
110110
"rb" => Some("ruby"),
111+
// Lua
112+
"lua" => Some("lua"),
111113
// JSON
112114
"json" => Some("json"),
113115
// Svelte

0 commit comments

Comments
 (0)