Skip to content
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

Help with Fortran Colorizing #184

Open
mathomp4 opened this issue Jun 6, 2022 · 0 comments
Open

Help with Fortran Colorizing #184

mathomp4 opened this issue Jun 6, 2022 · 0 comments

Comments

@mathomp4
Copy link

mathomp4 commented Jun 6, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant