Disable syntax highlighting in doc comments

Aperta
#407 1 commento 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust, vim

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Vim Script
Stelle
4.2k
Fork
323
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-lang/rust.vim

Tutte le issue di rust-lang/rust.vim

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.