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/funC bindings, macros, type aliases,requireimports getter/setter/propertyaccessor macros as properties (how a Crystal type declares most of its attributes)- inheritance,
include/extendmixins, and call edges — including parenthesis-less calls andReceiver.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.
Source: colbymchenry/codegraph