zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.15k stars 75 forks source link

[bug]: Comments are invisible #54

Open basilioss opened 1 year ago

basilioss commented 1 year ago

Describe the bug

Comments are invisible.

Steps to reproduce

  1. Install and source ~/path/to/fsh/fast-syntax-highlighting.plugin.zsh.
  2. Open the terminal prompt and type # comment.

Expected behavior

There should be an option to change comment highlight style but I haven't found it.

Screenshots and recordings

No response

Operating System & Version

linux-gnu | pc | x86_64 | x86_64 | x86_64 unknown

Zsh version

zsh 5.9 (x86_64-pc-linux-gnu)

Terminal emulator

alacritty

If using WSL on Windows, which version of WSL

None

Additional context

I tried to use different themes with the fast-theme -t command, but it doesn't change the comment color. I also tried to look at the source code and find an alternative to ZSH_HIGHLIGHT_STYLES[comment]='fg=#414868' but FAST_HIGHLIGHT_STYLES[comment]='fg=#414868' also does not work.

mcornella commented 11 months ago

For me the following worked:

FAST_HIGHLIGHT_STYLES[comment]='fg=006'