docs: fix article typo (an extract_<lang>) in ARCHITECTURE.md

This commit is contained in:
nelsondeleonc-source
2026-08-12 20:56:28 +01:00
committed by safishamsi
parent 28aaf20197
commit 39beeb9b4b
+1 -1
View File
@@ -57,7 +57,7 @@ Every extractor returns:
## Adding a new language extractor
1. Add a `extract_<lang>(path: Path) -> dict` function in `extract.py` following the existing pattern (tree-sitter parse → walk nodes → collect `nodes` and `edges` → call-graph second pass for INFERRED `calls` edges).
1. Add an `extract_<lang>(path: Path) -> dict` function in `extract.py` following the existing pattern (tree-sitter parse → walk nodes → collect `nodes` and `edges` → call-graph second pass for INFERRED `calls` edges).
2. Register the file suffix in `extract()` dispatch and `collect_files()`.
3. Add the suffix to `CODE_EXTENSIONS` in `detect.py` and `_WATCHED_EXTENSIONS` in `watch.py`.
4. Add the tree-sitter package to `pyproject.toml` dependencies.