vim: add ruby lambda syntax definition for switch.vim
parent
79239e945b
commit
f2fc96972b
|
@ -188,6 +188,14 @@ let Tlist_Ctags_Cmd="ctags"
|
||||||
|
|
||||||
" Doxygen
|
" Doxygen
|
||||||
let g:DoxygenToolkit_authorName="Guillaume DOTT"
|
let g:DoxygenToolkit_authorName="Guillaume DOTT"
|
||||||
|
|
||||||
|
autocmd FileType ruby let b:switch_custom_definitions =
|
||||||
|
\ [
|
||||||
|
\ {
|
||||||
|
\ 'lambda { |\([^|]\+\)|': '->(\1) {',
|
||||||
|
\ '->(\([^)]\+\)) {': 'lambda { |\1|',
|
||||||
|
\ },
|
||||||
|
\ ]
|
||||||
" }
|
" }
|
||||||
|
|
||||||
" FILETYPES
|
" FILETYPES
|
||||||
|
|
Loading…
Reference in New Issue