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

オープン
#468 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
emacs-lisp
領域
tooling

調査の方向性

最新の pristine な clojure-mode を使って ::kws.grid/column-settings の fontification を再現し、その解析された faces を例と比較します。namespace-qualified keywords の処理を追跡し、完成した挙動が clojure-keyword-face のみを適用し、部分的な font-lock-type-face を適用しないことを検証します。

索引モデルが issue の本文から書いたものです。

説明

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

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

主要言語
Emacs Lisp
スター
1k
フォーク
249
平均マージ
1日 6時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

clojure-emacs/clojure-mode のほかの issue

clojure-emacs/clojure-mode の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。