-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turning on rainbow breaks cmake syntax highlighting #77
Comments
Yeah I'm seeing this issue here javascript. |
I'm experiencing something similar. Vim's cmake syntax highlighting (no third-party) is almost completely broken. augroup rainbow_off
au!
au FileType cmake RainbowToggleOff
augroup END |
Maybe this is helpful: #93 |
A workaround (as @luochen1990 already noted): Disable the rainbow plugin for CMake files. let g:rainbow_conf = {
\ 'separately': {
\ 'cmake': 0,
\ }
\} |
cincinnat
pushed a commit
to cincinnat/etc
that referenced
this issue
Oct 25, 2018
The plugin breaks syntax highlighting for CMakeLists.txt: luochen1990/rainbow#77
wanghaiqiangk
added a commit
to wanghaiqiangk/Simple_Vimrc
that referenced
this issue
Sep 22, 2024
Additionaly, the rainbow is disabled due to the problem of breaking syntax highlighting, not just for cmake, but some other file types. See pboettch/vim-cmake-syntax#5 and luochen1990/rainbow#77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there is a variable inside a string in cmake, then syntax highlighting is broken after that if rainbow is turned on. It happens with both the stock cmake highlighting and with nickhutchinson/vim-cmake-syntax. An example here:
It looks like everything is treated as string after that first line.
The text was updated successfully, but these errors were encountered: