From 1f45ebbbd423ac3f13ac8da097fbcfa668f6b5bc Mon Sep 17 00:00:00 2001 From: Kenta Sato Date: Sun, 7 Dec 2014 03:08:37 +0900 Subject: [PATCH] support the Julia language --- README.markdown | 2 +- plugin/endwise.vim | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 08f9d70..3c39123 100644 --- a/README.markdown +++ b/README.markdown @@ -4,7 +4,7 @@ This is a simple plugin that helps to end certain structures automatically. In Ruby, this means adding `end` after `if`, `do`, `def` and several other keywords. In Vimscript, this amounts to appropriately adding `endfunction`, `endif`, etc. There's also Bourne shell, VB -(don't ask), C/C++ preprocessor, and Lua support. +(don't ask), C/C++ preprocessor, Lua, and Julia support. A primary guiding principle in designing this plugin was that an erroneous insertion is never acceptable. The behavior is only triggered diff --git a/plugin/endwise.vim b/plugin/endwise.vim index 6c2c031..3a6b862 100644 --- a/plugin/endwise.vim +++ b/plugin/endwise.vim @@ -54,6 +54,10 @@ augroup endwise " {{{1 \ let b:endwise_addition = 'end' | \ let b:endwise_words = 'function,if,for' | \ let b:endwise_syngroups = 'matlabStatement,matlabFunction,matlabConditional,matlabRepeat' + autocmd FileType julia + \ let b:endwise_addition = 'end' | + \ let b:endwise_words = 'if,for,while,begin,function,macro,quote,type,immutable,let,do,module,baremodule,try' | + \ let b:endwise_syngroups = 'juliaConditional,juliaRepeat,juliaBlKeyword,juliaException' autocmd FileType * call s:abbrev() augroup END " }}}1