Skip to content

Comments

Sync styx tree-sitter grammar from upstream#141

Merged
fasterthanlime merged 2 commits intomainfrom
sync-styx-grammar
Jan 18, 2026
Merged

Sync styx tree-sitter grammar from upstream#141
fasterthanlime merged 2 commits intomainfrom
sync-styx-grammar

Conversation

@fasterthanlime
Copy link
Collaborator

Summary

  • Updates grammar.js with improved sequence whitespace handling (_seq_ws rule)
  • Updates highlights.scm with better key/sequence highlighting
  • Adds brackets.scm for bracket matching
  • Adds indents.scm for indentation support

Test plan

  • CI should run grammar tests

Updates grammar.js and query files from ~/bearcove/styx/crates/tree-sitter-styx:
- grammar.js: Add _seq_ws rule for proper whitespace handling in sequences
- highlights.scm: Update key highlighting and add sequence item rules
- brackets.scm: New file for bracket matching
- indents.scm: New file for indentation
@fasterthanlime fasterthanlime added this pull request to the merge queue Jan 18, 2026
Merged via the queue into main with commit f12401b Jan 18, 2026
19 checks passed
@fasterthanlime fasterthanlime deleted the sync-styx-grammar branch January 18, 2026 10:52
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