Skip to content

Font-lock function names in letfn bindings#696

Merged
bbatsov merged 1 commit intomasterfrom
font-lock-letfn-names
Feb 27, 2026
Merged

Font-lock function names in letfn bindings#696
bbatsov merged 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.

@bbatsov bbatsov force-pushed the font-lock-letfn-names branch 2 times, most recently from 9ed83f6 to 6de04e5 Compare February 27, 2026 13:05
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 6de04e5 to 93d8d15 Compare February 27, 2026 13:29
@bbatsov bbatsov merged commit 876ef22 into master Feb 27, 2026
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