Permalink
Browse files

Be more liberal with noticing continuations

- Accept pipe as a continuation character
- Accept braces and comments after continuation characters
  • Loading branch information...
Genki Sky authored and chrisbra committed Aug 8, 2017
1 parent 8da66a5 commit e4a04423d5ab39aaef02be0d52c15620de6a87e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 indent/sh.vim
View
@@ -117,7 +117,8 @@ function! GetShIndent()
endfunction
function! s:is_continuation_line(line)
return a:line =~ '\%(\%(^\|[^\\]\)\\\|&&\|||\)$'
return a:line =~ '\%(\%(^\|[^\\]\)\\\|&&\|||\||\)' .
\ '\s*\({\s*\)\=\(#.*\)\=$'
endfunction
function! s:find_continued_lnum(lnum)

0 comments on commit e4a0442

Please sign in to comment.