Skip to content

feat(parser): allow keywords as method names - #330

Merged
akonwi merged 3 commits into
mainfrom
feat/keyword-method-names
Jul 19, 2026
Merged

feat(parser): allow keywords as method names#330
akonwi merged 3 commits into
mainfrom
feat/keyword-method-names

Conversation

@akonwi

@akonwi akonwi commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • allow every Ard keyword in trait and implementation method-name positions
  • preserve keyword semantics outside contextual member names, including call arguments
  • distinguish fn mut() from mutating fn mut mut()
  • preserve static generic-call recovery for keyword member names
  • update Tree-sitter and Zed support for mutating keyword methods

Testing

  • cd compiler && go test ./...
  • gopls check on touched Go files
  • cd tree-sitter-ard && npm test
  • cd tree-sitter-ard && npm run test:binding
  • Tree-sitter parse and highlight query checks

Dependency

ampagent and others added 2 commits July 19, 2026 23:11
Co-authored-by: Akonwi Ngoh <akonwi@gmail.com>
Co-authored-by: Akonwi Ngoh <akonwi@gmail.com>
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ard-lang-dev Ready Ready Preview, Comment Jul 19, 2026 11:30pm

Co-authored-by: Akonwi Ngoh <akonwi@gmail.com>
@akonwi
akonwi enabled auto-merge (squash) July 19, 2026 23:32
@akonwi
akonwi disabled auto-merge July 19, 2026 23:43
@akonwi
akonwi merged commit 33a5523 into main Jul 19, 2026
3 of 7 checks passed
@akonwi
akonwi deleted the feat/keyword-method-names branch July 19, 2026 23:43
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.

2 participants