neoclide / coc-highlight

Document highlight and document colors LSP support for coc.nvim
226 stars 12 forks source link

Disable highlighting of color words #29

Closed noomly closed 4 years ago

noomly commented 4 years ago

In GLSL there's a tan function and coc-highlight interprets it as the color and highlights it. E.g. here return fract(tan(distance(xy * PHI, xy) * seed) * xy.x); the tan is highlighted even if it doesn't mean anything in the context. I think it'd make sense to add an option to disable the highlighting of color words ("blue", "red", ...) so that this kind of thing doesn't happen.