diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-24 12:57:33 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-05-24 12:57:33 -0500 |
commit | f51b3a71e1225e0c1f38a203f9789cf022ad67f0 (patch) | |
tree | 265738bd5c568507a2a2bdbb0677041d7dbc6d0c | |
parent | 42f2d48d3176a6c54c1929c80024c64d071bf219 (diff) | |
download | conf-f51b3a71e1225e0c1f38a203f9789cf022ad67f0.tar.gz conf-f51b3a71e1225e0c1f38a203f9789cf022ad67f0.zip |
don't try to color ocaml comments with rainbow parentheses
-rw-r--r-- | vim/plugin/rainbow_paren.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vim/plugin/rainbow_paren.vim b/vim/plugin/rainbow_paren.vim index b4f06fc..7cba326 100644 --- a/vim/plugin/rainbow_paren.vim +++ b/vim/plugin/rainbow_paren.vim @@ -60,7 +60,12 @@ if exists("g:rainbow") && g:rainbow != 0 " regex metachars (like what is done for brackets) if exists("g:rainbow_paren") && g:rainbow_paren != 0 - call s:DoSyn(i, a:count, "(", ")", "a") + " ocaml uses (* *) for comments; these shouldn't be highlighted + if &filetype == "ocaml" + call s:DoSyn(i, a:count, "(\\*\\@!", "\\*\\@<!)", "a") + else + call s:DoSyn(i, a:count, "(", ")", "a") + endif endif if exists("g:rainbow_brace") && g:rainbow_brace != 0 |