Skip to content

Conversation

@CamonZ
Copy link

@CamonZ CamonZ commented Dec 1, 2025

Adds support for chunking elixir using tree-sitter-elixir

Add tree-sitter based parsing for Elixir files (.ex, .exs):

- defmodule, defprotocol, defimpl → Module chunks
- def, defp, defmacro, defmacrop, defguard, defguardp, defdelegate → Function chunks
- defstruct, defexception → Class chunks

Includes comprehensive tests for modules, protocols, GenServer callbacks, and macros.
…, @behaviour

Extends Elixir tree-sitter queries to capture module attributes:
- @SPEC - function type specifications
- @type, @TypeP, @opaque - type definitions
- @callback, @optional_callbacks, @macrocallback - behaviour callbacks
- @behaviour/@behavior - behaviour declarations (both spellings)

These constructs are indexed as Text chunks, making type information
and behaviour contracts searchable alongside function definitions.

Adds comprehensive tests for module attribute detection.
feat: Add Elixir language support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant