You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Making ns-qualified keywords not have font-lock-type-face #468
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
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.
@Bost I think your ns font-locking changes addressed this, right?
Yes it does. (@vemv Bozo references to the 14d4221.)
A bit of an explanation - the ::kws.grid/column-settings is not a valid keyword. I assume we want to take a look at :kws.grid/column-settings, then:
Activity
vemv commentedon Jan 20, 2018
In case it helps, this is the culprit:
bbatsov commentedon Mar 28, 2018
@Bost I think your ns font-locking changes addressed this, right?
Bost commentedon Mar 28, 2018
Yes it does. (@vemv Bozo references to the 14d4221.)
A bit of an explanation - the
::kws.grid/column-settingsis not a valid keyword. I assume we want to take a look at:kws.grid/column-settings, then:And here is how is looks like:

So to answer:
Yea you were looking at a buggy feature implementation, now hopefully fixed. Please get the 14d4221 and have a look again.
vemv commentedon Mar 28, 2018
For the record: it is - if you
:requirex askws.grid, then::kws.grid/column-settingswill become a valid keyword in the current ns/context.Will checkout CIDER @ latest asap.
Thanks!
Bost commentedon Mar 28, 2018
What??? Egh...
egh... really. I think it would be a good idea to indicate it with some different font-face. @bbatsov?
vemv commentedon Mar 28, 2018
(namespace ::kws.grid/ufo)might be bit of an unfair example ;pOne normally aliases using close terms (e.g clojure -> clj)
Thus,
(namespace ::clj.cr/fn)returning:clojure.core/fnseems more defensible!So a different font-fact may be overkill.
MalloZup commentedon Aug 5, 2019
autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it