Skip to content

purescript-font-lock.el: highlight docstrings unconditionally #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

Hi-Angel
Copy link
Member

@Hi-Angel Hi-Angel commented May 9, 2025

The variable was introduced to avoid highlighting docstrings for Emacs versions where font-lock-doc-face didn't exist, that is prior to 21.

It's a variable from very old times and nowadays we support Emacs 25.1+ which has font-lock-doc-face. So remove the variable and the condition.

For the safe case I did search over Github, and the variable isn't mentioned anywhere except the literal copies of the font-lock.el file.

@Hi-Angel Hi-Angel force-pushed the rm-docstring-var branch from 8d320ec to d9b934b Compare May 9, 2025 08:33
The variable was introduced to avoid highlighting docstrings for Emacs
versions where `font-lock-doc-face` didn't exist, that is prior to 21.

It's a variable from very old times and nowadays we support Emacs
25.1+ which has font-lock-doc-face. So remove the variable and the
condition.

For the safe case I did search over Github, and the variable isn't
mentioned anywhere except the literal copies of the font-lock.el file.
@Hi-Angel Hi-Angel force-pushed the rm-docstring-var branch from d9b934b to 861e13d Compare May 13, 2025 19:21
@Hi-Angel Hi-Angel merged commit 023cdf2 into purescript-emacs:master May 13, 2025
5 checks passed
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