Skip to content

Commit

Permalink
fold & spell problem fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
luochen1990 committed Nov 27, 2014
1 parent 38f3e4b commit 6bbf980
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugin/rainbow.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"==============================================================================
"Script Title: rainbow parentheses improved
"Script Version: 3.3.0
"Script Version: 3.3.1
"Author: luochen1990
"Last Edited: 2014 Aug 9
"Last Edited: 2014 Nov 27
"Simple Configuration:
" first, put "rainbow.vim"(this file) to dir vimfiles/plugin or vim73/plugin
" second, add the follow sentences to your .vimrc or _vimrc :
Expand All @@ -26,14 +26,14 @@ let s:rainbow_conf = {
\ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'],
\ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'],
\ 'operators': '_,_',
\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/'],
\ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'],
\ 'separately': {
\ '*': {},
\ 'tex': {
\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/'],
\ },
\ 'vim': {
\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/', 'start=/(/ end=/)/ containedin=vimFuncBody', 'start=/\[/ end=/\]/ containedin=vimFuncBody', 'start=/{/ end=/}/ containedin=vimFuncBody'],
\ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/ fold', 'start=/(/ end=/)/ containedin=vimFuncBody', 'start=/\[/ end=/\]/ containedin=vimFuncBody', 'start=/{/ end=/}/ fold containedin=vimFuncBody'],
\ },
\ 'xml': {
\ 'parentheses': ['start=/\v\<\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'))?)*\>/ end=#</\z1># fold'],
Expand Down Expand Up @@ -79,7 +79,7 @@ func rainbow#load()
let conf.parentheses[i] = op != ''? printf('start=#%s# step=%s end=#%s#', p[0], op, p[-1]) : printf('start=#%s# end=#%s#', p[0], p[-1])
endif
endfor
let def_rg = 'syn region %s matchgroup=%s containedin=%s contains=%s %s'
let def_rg = 'syn region %s matchgroup=%s containedin=%s contains=%s,@Spell %s'
let def_op = 'syn match %s %s containedin=%s contained'

call rainbow#clear()
Expand Down

0 comments on commit 6bbf980

Please sign in to comment.