#1981·codegraph

Add Salam language support

Author: BaseMaxCreated Sep 26, 2026Updated Sep 26, 2026

CodeGraph doesn't index .salam files yet. Salam (https://github.com/SalamLang/Salam) is a statically typed language that compiles to C/LLVM, and it's unusual in a few ways: source can be written in English or Persian keywords, identifiers can be multi-word, and it has a layout/component DSL alongside the general language. None of that fits the existing tree-sitter grammars, so it needs its own extractor.

Would like to add:

  • Symbol extraction: functions, structs, interfaces, enums, impl blocks, generics, layout blocks/components, switch/case
  • Both English and Persian source, including @fa/@en name aliases
  • Cross-file resolution: imports (a package spans every file that declares it), typed receivers, switch labels linking to enum members