Skip to content

Comments

Font-lock function names in letfn bindings#696

Open
bbatsov wants to merge 1 commit intomasterfrom
font-lock-letfn-names
Open

Font-lock function names in letfn bindings#696
bbatsov wants to merge 1 commit intomasterfrom
font-lock-letfn-names

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Feb 20, 2026

Fixes #365

Adds a custom font-lock matcher that highlights function names in letfn binding vectors with font-lock-function-name-face, consistent with how defn and fn names are highlighted.

Uses a standalone MATCHER function (clojure--search-letfn-name) instead of an anchored matcher to avoid false positives from font-lock engine re-processing.

Add a custom font-lock MATCHER function that highlights function
names in letfn binding vectors with font-lock-function-name-face.
@bbatsov bbatsov force-pushed the font-lock-letfn-names branch from 5a13a31 to 9ed83f6 Compare February 20, 2026 20:57
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.

Font-lock function names in letfn

1 participant