Closed ghost closed 4 years ago
It looks like the official Rust syntax file classifies doc comments as SpecialComment
types, which nofrils ignores.
A work-around:
hi rustCommentLineDoc term=NONE cterm=NONE ctermfg=242 ctermbg=NONE gui=NONE guifg=#6C6C6C guibg=NONE
From what I can tell, SpecialComment
is often used to refer to special items inside comments, so nofrils would normally ignore them. But since the entire Rust doc comment block is a SpecialComment
, it's not being treated as a comment.
Nofrils should probably highlight a SpecialComment
the same as a Comment
.
That was quick. Thanks a lot Cameron. Hope it gets merged soon.
There seems to be a problem when using doc comments (///) in rust code. Only when I activate another theme (e.g. nord) and switch back to nofrils doc comments are displayed correctly.