Skip to content

Added Python, JavaScript, and Go support to the structural engine - #1

Merged
kridaydave merged 10 commits into
mainfrom
feat/multi-language-engine
Aug 20, 2026
Merged

kridaydave merged 10 commits into
mainfrom
feat/multi-language-engine

Conversation

@kridaydave

Copy link
Copy Markdown
Contributor

PR made by deepseek-v4-flash from opencode on behalf of Kriday.

The engine only understood Rust before. Now it diffs Python, JavaScript, and Go the same way, so a bad merge gets caught no matter what language it is.

Summary:

  • Added the Python, JS, and Go tree-sitter grammars on the existing 0.23 stack
  • New language registry (src/engine/language.rs) maps extensions to grammars and their function node kinds
  • Catches JavaScript named arrows, both const f = () => {} and f = () => {}
  • Diff logic and dispute severities unchanged; only parsing and extraction became language-aware
  • Tests for each language plus a mixed-language snapshot and 3-way conflict

Ready For Review !!

@kridaydave
kridaydave merged commit 171f639 into main Aug 20, 2026
4 checks passed
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