Feature request: as-> highlighting

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

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

評価

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

調査の方向性

ファイルやテストは指定されていません。まず clojure-mode の font-lock エントリポイントを見つけ、as-> フォーム内のシンボルがどのように認識されるかを調べてください。完了条件は、他のハイライトを変更せずに、例の形で束縛された値の名前に別のフォントフェイスが付くことです。

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

説明

I was recently having to write a rather complex set of threading code with as-> and it occurred to me that it would be useful if in an as-> sexp, we set the font-face of the name of the bound value to a different font face than normal so that it stood out a bit.

Example:

Instead of

(as-> {:cat 5} x
  (reduce some-fn
          x
          (mapcat someother-fn some-val))
  (assoc x :dog 27)
  (map weird-fn x)
  (map x some-coll))

font-locked x with some special font-face so we can make it stand out to make it easier to quickly parse out this information.

I would consider this to be very low priority, but might be a nice to have.

主要言語
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 を短くまとめたダイジェスト。