rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Wrong color priority in ruby files

Open dominikduda opened this issue 8 years ago • 4 comments

Hello,

Colors mess up in ruby files inside methods and classes.

image

That is pretty annyoing, because I want first level of parentheses to be text color.

In other file types it works correctly.

My config:

let g:rainbow_conf = {
    \   'ctermfgs': ['red', 'green', 'blue', 'black', 'orange', 'magenta'],
    \   'operators': '_,_',
    \   'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'],
    \}

Is that fixable?

dominikduda avatar Feb 10 '17 14:02 dominikduda

Im experiencing this issue as well

bartoszmaka avatar Feb 10 '17 14:02 bartoszmaka

I'm not sure what effect you are expecting, you want to fix the outmost color to blue, is that right ?

luochen1990 avatar Apr 21 '17 10:04 luochen1990

I'm expecting that all the parentheses will be colored as set in settings - same as in line 4, 5, and 6.

Yet inside methods, it breaks - first color is magenta instead of red.

dominikduda avatar Apr 21 '17 10:04 dominikduda

Yes, I can reproduce this issue, but only for ruby files, I still can't figure out the problem ...

luochen1990 avatar Apr 21 '17 15:04 luochen1990