summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-05-24 12:57:33 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-05-24 12:57:33 -0500
commitf51b3a71e1225e0c1f38a203f9789cf022ad67f0 (patch)
tree265738bd5c568507a2a2bdbb0677041d7dbc6d0c
parent42f2d48d3176a6c54c1929c80024c64d071bf219 (diff)
downloadconf-f51b3a71e1225e0c1f38a203f9789cf022ad67f0.tar.gz
conf-f51b3a71e1225e0c1f38a203f9789cf022ad67f0.zip
don't try to color ocaml comments with rainbow parentheses
-rw-r--r--vim/plugin/rainbow_paren.vim7
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