robertmeta / nofrils

An extremely minimalist colorscheme, even opting out of the second L in frills
MIT License
324 stars 44 forks source link

Rust Source Code #29

Closed ghost closed 4 years ago

ghost commented 4 years ago

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.

moorereason commented 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.

ghost commented 4 years ago

That was quick. Thanks a lot Cameron. Hope it gets merged soon.