diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2013-11-02 23:27:57 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-11-02 23:27:57 +0100 | 
| commit | 30c1920e4fa4e612238e1f435907c40ecfa47f33 (patch) | |
| tree | f88ffb408895a5baf93fe81fdd12acba17f32d44 /indent/html.vim | |
| parent | 57cfac7ae384466c3ff2543a9200319dc1d459a0 (diff) | |
| download | vim-polyglot-30c1920e4fa4e612238e1f435907c40ecfa47f33.tar.gz vim-polyglot-30c1920e4fa4e612238e1f435907c40ecfa47f33.zip | |
Massive update :)v1.4.1
Diffstat (limited to 'indent/html.vim')
| -rw-r--r-- | indent/html.vim | 42 | 
1 files changed, 21 insertions, 21 deletions
| diff --git a/indent/html.vim b/indent/html.vim index d5b7c837..466c6bd8 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -343,27 +343,27 @@ fun! HtmlIndentGet(lnum)      let lind = indent(lnum) -    for tags in s:omittable -      let tags_exp = '<\(' . join(tags, '\|') . '\)>' -      let close_tags_exp = '</\(' . join(tags, '\|') . '\)>' -      if getline(a:lnum) =~ tags_exp -        let block_start = search('^'.repeat(' ', lind + (&sw * ind - 1)).'\S'  , 'bnW') -        let prev_tag = search(tags_exp, 'bW', block_start) -        let prev_closetag = search(close_tags_exp, 'W', a:lnum) -        if prev_tag && !prev_closetag -          let ind = ind - 1 -        endif -      endif - -      if getline(a:lnum) =~ '</\w\+>' -        let block_start = search('^'.repeat(' ', lind + (&sw * ind - 1)).'\S'  , 'bnW') -        let prev_tag = search(tags_exp, 'bW', block_start) -        let prev_closetag = search(close_tags_exp, 'W', a:lnum) -        if prev_tag && !prev_closetag -          let ind = ind - 1 -        endif -      endif -    endfor +    " for tags in s:omittable +      " let tags_exp = '<\(' . join(tags, '\|') . '\)>' +      " let close_tags_exp = '</\(' . join(tags, '\|') . '\)>' +      " if getline(a:lnum) =~ tags_exp +        " let block_start = search('^'.repeat(' ', lind + (&sw * ind - 1)).'\S'  , 'bnW') +        " let prev_tag = search(tags_exp, 'bW', block_start) +        " let prev_closetag = search(close_tags_exp, 'W', a:lnum) +        " if prev_tag && !prev_closetag +          " let ind = ind - 1 +        " endif +      " endif + +      " if getline(a:lnum) =~ '</\w\+>' +        " let block_start = search('^'.repeat(' ', lind + (&sw * ind - 1)).'\S'  , 'bnW') +        " let prev_tag = search(tags_exp, 'bW', block_start) +        " let prev_closetag = search(close_tags_exp, 'W', a:lnum) +        " if prev_tag && !prev_closetag +          " let ind = ind - 1 +        " endif +      " endif +    " endfor      if restore_ic == 0          setlocal noic | 
