summaryrefslogtreecommitdiffstats
path: root/indent/elixir.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-03-16 14:48:30 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2014-03-16 14:48:30 +0100
commit95bc6710a4fd961ecc1d7d9f344e97fb690810b1 (patch)
tree16a822293039f8b7ce5a9bc3a9a34ad84ab8acb1 /indent/elixir.vim
parent94f72a68c3dccade13ec7203a284620040f930f1 (diff)
downloadvim-polyglot-95bc6710a4fd961ecc1d7d9f344e97fb690810b1.tar.gz
vim-polyglot-95bc6710a4fd961ecc1d7d9f344e97fb690810b1.zip
Update elixir, perl and rust
Diffstat (limited to 'indent/elixir.vim')
-rw-r--r--indent/elixir.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/indent/elixir.vim b/indent/elixir.vim
index c89f5887..fababe48 100644
--- a/indent/elixir.vim
+++ b/indent/elixir.vim
@@ -59,6 +59,10 @@ function! GetElixirIndent()
let ind += opened_symbol * &sw
+ if current_line =~ '^\s*\(\]\|}\)'
+ let ind -= &sw
+ endif
+
if last_line =~ s:indent_keywords
let ind += &sw
endif