feat: add support for the Odin programming language - #1000
Open
RainerXE wants to merge 4 commits into
Open
Conversation
Resolve conflicts in the language registry (types.ts, grammars.ts, languages/index.ts) by keeping the Odin support alongside the new upstream CFML/CFScript/CFQuery languages. Add an Odin changelog entry under [Unreleased].
Integrate the newly-added upstream COBOL language support alongside Odin, resolving conflicts in grammars.ts and the CHANGELOG so both languages are registered.
Author
|
I resolved the conflicts again and update for integration. Please be so kind and merge my commits. Thx Rainer |
|
you still have merge conflicts leftovers to fix, and you should remove the |
ivandrenjanin
added a commit
to ivandrenjanin/transcibr
that referenced
this pull request
Aug 5, 2026
The generated block tells an agent to reach for CodeGraph before grep, and degrades on the ABSENCE of a `.codegraph/` directory. This repository has one, so the advice reads as live when it is not: CodeGraph has no Odin support, and upstream PR colbymchenry/codegraph#1000 adding it has not landed. Measured rather than assumed -- `codegraph status` reports 1 file, 0 nodes, 0 edges, language `yaml`. It indexes this repository's YAML and none of its 80 `.odin` files. Two review passes reached that number independently, each after spending turns on a tool that cannot answer. The note sits OUTSIDE the CODEGRAPH_START/END markers, because what is between them is generated and a regeneration would take the correction with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for indexing and extracting code structure from the Odin programming language (
.odin).Summary of Changes
Odin Language Extractor:
tree-sitter-odin.wasmgrammar binary.Core Struct Field Bug Fix:
extractStructinsrc/extraction/tree-sitter.tsto leverage the customresolveBodyhook (similar to enums).bodyfield on the struct declaration nodes.Verification
Tested successfully against:
tarnrepository.RuiShin, indexing 11,970 Odin nodes and 21,294 Odin relations in under 40 seconds).