Where do the highlights for C come from? #226
-
They don't seem to match the VSCode theme. For instance, macros seem to have the same color as functions for me. Wanted to know if this was intended behavior or not. Otherwise I will customize them on my side. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Must be coming from Tree-sitter as there are no custom C highlights in the plugin. If you share some code I'll be happy to take a look at the highlighting |
Beta Was this translation helpful? Give feedback.
-
Neovim: VSCode: I am a heavy C user FWIW, so I can definitely help match C up with VSCode if I know where to look! |
Beta Was this translation helpful? Give feedback.
-
@olimorris I was wondering what the stance on the project is when a theme diverges from VSCode. Is it a bug if they don't match? I was just looking at a Markdown file which is colored quite differently from VSCode. |
Beta Was this translation helpful? Give feedback.
Really good question. Generally speaking, I try and stay as close to the VS Code theme as possible but Markdown is currently an exception. I can't recall when it diverged so much but it's quite a bit different now.
It feels a bit strong to call the divergence a bug but technically it is so would be open to any pull requests (and for Markdown I will fix that myself). The theme makes it easy for users to apply their own custom highlights anyway.