Skip to content

Help with Fortran Colorizing #184

@mathomp4

Description

@mathomp4

All,

I think this is just a "I don't know what I'm doing" sort of question. I enabled rainbow recently and decided I'd like to have my first "set" of parentheses to be white. So, in my .vimrc I set:

" For rainbow parens
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
" https://github.com/luochen1990/rainbow#configure
let g:rainbow_conf = {
\       'ctermfgs': ['white', 'blue', 'yellow', 'cyan', 'magenta'],
\}

And if I type:

call foo(x(y(2)))

in a test F90 file, the first set are white, the second blue and the ones around the 2 are yellow. Which seems to match the color array above.

But, if I instead look at this in vim:

program test
   call foo(x(y(2)))
end program

Then the first set of parens are magenta, the second white, and the third (around the 2) are blue.
So it's like it's decided to "shift" the color array starting at the end.

Is there something about the program test block that I need to account for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions