clojure-emacs / clojure-emacs/clojure-mode

Making ns-qualified keywords not have font-lock-type-face

Open
#468 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

Given a ns-qualified keyword such as:

`::kws.grid/column-settings`

I'd like only `clojure-keyword-face` to be applied to it. But also `font-lock-type-face` is partially applied to it:

**How it looks like**

![image](https://user-images.githubusercontent.com/1162994/35185631-13825ba6-fe08-11e7-8a5f-c3472a70b9ab.png)

**How it is parsed**

```
#("::kws.grid/column-settings" 0 6 (fontified t face (clojure-keyword-face)) 6 10 (fontified t face (font-lock-type-face clojure-keyword-face)) 10 11 (fontified t face (default clojure-keyword-face)) 11 25 (fontified t face (clojure-keyword-face)) 25 26 (fontified t font-lock-multiline t face (clojure-keyword-face)))
```

The problematic bit seems to be `(font-lock-type-face clojure-keyword-face)`.

I'm not sure if this is a feature. To me it looks buggy, because only `grid` gets the grey coloring. But in the example `grid` does not have a special meaning.

---

Using clojure-mode latest/pristine, no fork

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.