Skip to content

Odin support#530

Open
dviramontes wants to merge 2 commits into
modem-dev:mainfrom
dviramontes:odin-lang
Open

Odin support#530
dviramontes wants to merge 2 commits into
modem-dev:mainfrom
dviramontes:odin-lang

Conversation

@dviramontes

@dviramontes dviramontes commented Jul 12, 2026

Copy link
Copy Markdown

Context

What changed

  • Recognize .odin files during diff language detection
  • Register Shiki's Odin TextMate grammar through Pierre's custom-language API
  • Cover both extension detection and rendered syntax token colors
  • Updates Changelog

Why

Pierre's pinned Shiki 3 bundle does not include the Odin grammar, so .odin diffs previously fell back to plain text. Loading the current grammar separately preserves Pierre as the renderer while enabling syntax-aware Odin diff viewing.

Validation

  • Unit test

  • Manual file-pair review of representative Odin source

  printf 'package main\n\nmain :: proc() {}\n' > /tmp/before.odin
  printf 'package main\n\nmain :: proc() {\n  message := "hello"\n}\n' > /tmp/after.odin
  bun run src/main.tsx -- diff /tmp/before.odin /tmp/after.odin
Screenshot 2026-07-12 at 3 45 58 PM

@socket-security

socket-security Bot commented Jul 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​shikijs/​langs@​4.0.21001007997100

View full report

@dviramontes dviramontes marked this pull request as ready for review July 12, 2026 20:15
@greptile-apps

greptile-apps Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@dviramontes dviramontes changed the title feat: highlight Odin source files Odin support Jul 13, 2026
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