Skip to content

Use font-lock-punctuation-face for deref @ marker#138

Open
bbatsov wants to merge 1 commit intomainfrom
fix-deref-face
Open

Use font-lock-punctuation-face for deref @ marker#138
bbatsov wants to merge 1 commit intomainfrom
fix-deref-face

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Mar 24, 2026

The @ deref marker is syntax punctuation, not a warning. Using font-lock-warning-face for it doesn't make much sense semantically, and warning faces tend to be bright red in many themes, which looks odd for a routine operator like deref.

font-lock-punctuation-face is a much better fit -- it's what tree-sitter modes typically use for syntax punctuation characters.

The @ deref marker is syntax punctuation, not a warning.
font-lock-warning-face tends to be bright red in many themes,
which looks odd for a routine operator.
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