Skip to content

Leave punctuation in annotations uncolored - #6

Merged
aaronbcarlisle merged 1 commit into
mainfrom
claude/determined-sagan-2hjq47
Sep 26, 2026
Merged

aaronbcarlisle merged 1 commit into
mainfrom
claude/determined-sagan-2hjq47

Conversation

@aaronbcarlisle

@aaronbcarlisle aaronbcarlisle commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Brackets, commas and colons in annotations and def/class headers (pythonTypeBracket, pythonTypeComma, pythonTypeColon, pythonParams, pythonDefColon) were linked to Delimiter/Operator. In colorschemes with a bright Delimiter (e.g. retrobox, where it's #fe8019 orange), they drew more attention than the types themselves. They also looked different from the same punctuation in ordinary code (list(read(path)) stays plain). They're now unlinked, like the rest of Python's punctuation; the groups still exist for anyone who wants to link them.

Checklist

  • Syntax or plugin changes have assertions in tests/test_syntax.vim or tests/test_loading.vim that fail without the change (5 new link checks fail on main)
  • sh tests/run.sh passes (68 + 12 assertions, Vim 9.1 and Neovim 0.12.5)
  • User-visible changes are in the README, doc/python-syntax-enhanced.txt and its changelog

Brackets, commas and colons in annotations and def/class headers were
linked to Delimiter/Operator, so in colorschemes with a bright Delimiter
(retrobox, gruvbox) they stood out more than the types, and looked
different from the same punctuation in ordinary code. The groups still
exist for users who want to link them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NHGQAYx5m3Fs5HUYPdtUWt
@aaronbcarlisle
aaronbcarlisle marked this pull request as ready for review September 26, 2026 10:25
Copilot AI lite review requested due to automatic review settings September 26, 2026 10:25
@aaronbcarlisle
aaronbcarlisle merged commit 209a25e into main Sep 26, 2026
5 checks passed
@aaronbcarlisle
aaronbcarlisle deleted the claude/determined-sagan-2hjq47 branch September 26, 2026 10:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Only a minor README clarification remains, with no approval-blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Updates Python syntax highlighting so annotation and definition-header punctuation remains unlinked by default while preserving customization groups.

Changes:

  • Removes five default punctuation highlight links.
  • Adds loading assertions.
  • Updates README and help documentation.
File Reviewed change
tests/​test_loading.vim Verifies punctuation groups remain unlinked.
syntax/​python.vim Removes default punctuation links.
README.md Documents customization; clarify that guidance includes def/class headers.
doc/​python-syntax-enhanced.txt Updates highlight-group documentation and changelog.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants