Closed TruncatedDinoSour closed 2 years ago
This code rendered correctly in my environment.
Maybe rainbow breaks some other syntax plugin for C.
This code rendered correctly in my environment.
![]()
Maybe rainbow breaks some other syntax plugin for C.
Odd, it's broken for me but if I disable it it works... let me try to debug
t_Co=256
No idea what else could it be... removing rainbow though fixes it:
<img alt="image" width="223" src="https://user-images.githubusercontent.com/71613062/162203248-fbff7f2a-8950-4716-812a-6f66c529e379.jpg" even just the rainbow plugin does this
Maybe it's my syntax file by any chance? https://pastebin.com/YdugFeYA
oddly these examples are fine
I'm pretty sure it's <
that is causing the issues...
It's definally <
@luochen1990 ping
You can disable all other plugins and enable rainbow to check if rainbow works alone. And to find out which plugin cause this compatibility issue, you can enable them one by one (or bisect) and test the result.
You can disable all other plugins and enable rainbow to check if rainbow works alone. And to find out which plugin cause this compatibility issue, you can enable them one by one (or bisect) and test the result.
I did though... check the images:
@luochen1990 ping
@luochen1990 ping2
Have you read this: https://github.com/luochen1990/rainbow#troubleshooting
Please use the tool to check the syntax name and definitions under the cursor
Have you read this: https://github.com/luochen1990/rainbow#troubleshooting
Please use the tool to check the syntax name and definitions under the cursor
f1: cParenError
f2: hi<cParenError> trans<cParenError> lo<Error>
f3: ['cRainbow_lv0_r3', 'cRainbow_lv1_r1', 'cRainbow_lv2_r0', 'cParenError']
f4:
--- Syntax items ---
cParenError xxx match /[\])]/ display
links to cError
@luochen1990 ping
The information you provided is not enough to find the issue. You have to check them before and after the buggy position, and find out which syntax rule cause the bug yourself ...
The information you provided is not enough to find the issue. You have to check them before and after the buggy position, and find out which syntax rule cause the bug yourself ...
I'm confused, what do I do...?
@TruncatedDinosour You can probably not solve this issue if you know little about vim syntax highlighting mechanism, maybe read about :h syntax-highlighting
will help.
And if your issue is about "how to make <
inside parentheses highlighted", then this might help you as a configuration reference.
@TruncatedDinosour You can probably not solve this issue if you know little about vim syntax highlighting mechanism, maybe read about
:h syntax-highlighting
will help.And if your issue is about "how to make
<
inside parentheses highlighted", then this might help you as a configuration reference.
I'm confused sorry
closing it since I cannot reproduce it. you can reopen it if you find someway to reproduce it on some other environment
Describe the bug
C and C++ syntax breaking on < if () is around it
To Reproduce
.. (... > ...)
File:
bug.c
, filetype=cExpected behavior
For it to work
Screenshots
https://imgur.com/a/SeILTUC
Additional context