Browse files

add support for c curly braces

  • Loading branch information...
1 parent 74306aa commit 85f9c9e8f84cc7e042760edbb32b983e4da114e4 @thedjinn committed Jan 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/endwise.vim
View
5 plugin/endwise.vim
@@ -11,6 +11,11 @@ let g:loaded_endwise = 1
augroup endwise " {{{1
autocmd!
+ autocmd FileType c,cpp,objc
+ \ let b:endwise_addition = '}' |
+ \ let b:endwise_words = '{' |
+ \ let b:endwise_pattern = '\%(else\s*\)\@<!{\s*$' |
+ \ let b:endwise_syngroups = '.*'
autocmd FileType lua
\ let b:endwise_addition = '\=submatch(0)=="{" ? "}" : "end"' |
\ let b:endwise_words = 'function,do,then' |

0 comments on commit 85f9c9e

Please sign in to comment.