Disable syntax highlighting in doc comments

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

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

評価

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

調査の方向性

Start by reading the syntax highlighting change in commit b508cb149da34209cce089a7f483a86c07534567 and the discussion in issue #248. The report asks for a vimrc workaround to disable highlighting in Rust doc comments; determine whether the syntax rules expose a switch and document or implement a way to control it. Done means users can distinguish doc comments from code at a glance.

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

説明

Is there a way to disable syntax highlighting in doc comments? I see this feature was introduced in b508cb149da34209cce089a7f483a86c07534567 and for the most part can be very useful. However, when working with heavily doc-commented codebases -- especially the standard library -- things tend to blur into one and I struggle at a glance to differentiate between code and comments.

#248 suggests such a switch doesn't exist. However, I'm hoping there might be some sort of hack I can add to my vimrc in the meantime to prevent this part of syntax highlighting from loading. Would you be able to point me in the right direction?

Thanks

主要言語
Vim Script
スター
4.2k
フォーク
323
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

rust-lang/rust.vim のほかの issue

rust-lang/rust.vim の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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