vim: add ruby lambda syntax definition for switch.vim

master
Guillaume DOTT 2013-11-13 11:23:44 +01:00
parent 79239e945b
commit f2fc96972b
1 changed files with 8 additions and 0 deletions

View File

@ -188,6 +188,14 @@ let Tlist_Ctags_Cmd="ctags"
" Doxygen
let g:DoxygenToolkit_authorName="Guillaume DOTT"
autocmd FileType ruby let b:switch_custom_definitions =
\ [
\ {
\ 'lambda { |\([^|]\+\)|': '->(\1) {',
\ '->(\([^)]\+\)) {': 'lambda { |\1|',
\ },
\ ]
" }
" FILETYPES