mirror of
https://github.com/tpope/vim-haml.git
synced 2025-12-06 09:14:25 +08:00
Indent after trailing do
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: HAML
|
" Language: HAML
|
||||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
|
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
" Last Change: 2007 Dec 16
|
" Last Change: 2008 Sep 11
|
||||||
|
|
||||||
if exists("b:did_indent")
|
if exists("b:did_indent")
|
||||||
finish
|
finish
|
||||||
@@ -55,7 +55,7 @@ function! GetHamlIndent()
|
|||||||
return increase
|
return increase
|
||||||
elseif line =~ '^:'
|
elseif line =~ '^:'
|
||||||
return increase
|
return increase
|
||||||
elseif line =~ '^'.s:tag.'[=~-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\<end\>\)\@!\|.*do |[^|]*|\s*$\)'
|
elseif line =~ '^'.s:tag.'[=~-]\s*\%(\%(if\|else\|elsif\|unless\|case\|when\|while\|until\|for\|begin\|module\|class\|def\)\>\%(.*\<end\>\)\@!\|.*do\%(\s*|[^|]*|\)\=\s*$\)'
|
||||||
return increase
|
return increase
|
||||||
elseif line == '-#'
|
elseif line == '-#'
|
||||||
return increase
|
return increase
|
||||||
|
|||||||
Reference in New Issue
Block a user