#1958·codegraph

Crystal language support

Author: n-rodriguezCreated Sep 25, 2026Updated Sep 25, 2026

Crystal (.cr) is not indexed today, so a Crystal project gets no graph at all.

Crystal is a statically typed, compiled language with Ruby-like syntax, used for web frameworks (Kemal, Lucky, Amber), servers such as LavinMQ, and the Crystal compiler itself (~2,400 files).

PR #1458 implements it:

  • vendored ABI-15 grammar from crystal-lang-tools/tree-sitter-crystal (MIT) — no npm/wasm package exists
  • modules, classes, structs, enums, lib/fun C bindings, macros, type aliases, require imports
  • getter/setter/property accessor macros as properties (how a Crystal type declares most of its attributes)
  • inheritance, include/extend mixins, and call edges — including parenthesis-less calls and Receiver.method — resolved across files
  • validated on kemal, lavinmq and crystal-lang/crystal, with a with/without-codegraph agent A/B per the repo's language validation methodology

Opening this issue so the language request has a place to be tracked independently of the PR.