mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-03 08:03:38 +08:00
- Replace Go-binding tree-sitter with vendored C grammars compiled via CGo (internal/cbm/); eliminates all Go module/linker fragility - Add 32 new languages: Clojure, CMake, COBOL, Common Lisp, CUDA, Elm, Emacs Lisp, Fortran, F#, GLSL, GraphQL, INI, JSON, Julia, Makefile, Markdown, Meson, Nix, Protobuf, Svelte, Verilog, Vim Script, Vue, XML (plus C, C#, Erlang, SQL, YAML quality improvements) - Adaptive worker concurrency and mmap prefetch for faster indexing - Graph buffer: batched SQLite writes for 3-5x throughput improvement - Fix cancellation test: use 50ms timeout (pipeline now indexes 212-file Erlang repo in ~400ms, well under the old 2s deadline) - Fix isTestFunction: add "Test" prefix for C#, "test" prefix for Scala
16 lines
447 B
Go
16 lines
447 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: VimScript,
|
|
FileExtensions: []string{".vim", ".vimrc"},
|
|
FunctionNodeTypes: []string{"function_definition"},
|
|
ModuleNodeTypes: []string{"script_file"},
|
|
CallNodeTypes: []string{"call_expression"},
|
|
BranchingNodeTypes: []string{
|
|
"if_statement", "for_statement", "while_statement", "try_statement",
|
|
},
|
|
VariableNodeTypes: []string{"let_statement"},
|
|
})
|
|
}
|