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