Skip to content

Highlight the contextual plots keyword in figure and layer fields - #107

Merged
shunichironomura merged 1 commit into
mainfrom
highlight-plots-keyword
Oct 2, 2026
Merged

shunichironomura merged 1 commit into
mainfrom
highlight-plots-keyword

Conversation

@shunichironomura

Copy link
Copy Markdown
Member

Warning

This content was written by an AI agent and must be verified by a human developer. After human verification, this alert may be removed.

Summary

Companion to graphcal-lang/tree-sitter-graphcal#80 and graphcal-lang/zed-graphcal#39.

  • Add a plots-keyword TextMate rule, next to mark-keyword / encode-keyword, that scopes plots as keyword.other.plots.graphcal in plots: [name, ...] fields of figure and layer declarations.
  • Like mark / encode, the rule is context-free in TextMate; it engages only when plots: is followed by a [ list, so param plots: Length, plots + 1, and subplots: [...] are not highlighted.
  • Add tests/plots.test.mjs covering positive and negative cases.

Validation

  • vp test: 2 test files, 2 tests pass.
  • vp check: formatting, lint, and type checks pass.

AI assistance

  • AI used: yes — TextMate rule, test, and validation.
  • Human review of AI-assisted code: pending.

Breaking changes

  • No breaking changes
  • Breaking changes; the breaking change label is applied

@shunichironomura
shunichironomura force-pushed the highlight-plots-keyword branch from ec0f275 to 458f549 Compare October 2, 2026 04:00
@shunichironomura
shunichironomura merged commit 7923665 into main Oct 2, 2026
2 checks passed
@shunichironomura
shunichironomura deleted the highlight-plots-keyword branch October 2, 2026 04:03
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