mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-09 09:11:00 +08:00
- Fix extract_defs.c declarator chain traversal for C-family function_definition nodes (off-by-one in field name length, missing depth traversal) - Add resolve_func_name() support for CommonLisp defun, Makefile rule, VimScript, Julia, Elm value_declaration, Groovy field_function methods - Add config linker pipeline: 3 strategies linking config keys to code symbols, dependency manifest entries to imports, and config file path references - Add regression tests (~150 cases across 50+ languages), language failure tests, and config extraction tests - Refactor discover.go, configures.go, configlink_strategies.go to reduce cognitive complexity (extract helpers for gocognit compliance) - Fix Louvain community detection: use map lookup instead of O(N) scan
14 lines
364 B
Go
14 lines
364 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: Makefile,
|
|
FileExtensions: []string{".mk"},
|
|
FunctionNodeTypes: []string{"rule"},
|
|
ModuleNodeTypes: []string{"makefile"},
|
|
CallNodeTypes: []string{"function_call"},
|
|
ImportNodeTypes: []string{"include_directive"},
|
|
VariableNodeTypes: []string{"variable_assignment"},
|
|
})
|
|
}
|