Lines Matching refs:block
198 " Add a block tag, that is a tag with a different kind of indenting.
255 " Return non-zero when "tagname" is an opening tag, not being a block tag, for
285 let s:block = 0 " assume starting outside of a block
294 " Store the result in s:curind and s:nextrel. Update b:hi_newstate.block.
298 let s:block = b:hi_newstate.block
300 if s:block == 3
303 let b:hi_newstate.block = s:block
317 if s:block != 0
318 " ignore itag within a block
328 if s:block != 0
333 " block-tag (opening or closing)
344 " a block starts here
345 if s:block != 0
346 " already in a block (nesting) - ignore
350 let s:block = a:ind " block type
362 let s:block = 0
363 " we get here if starting and closing a block-tag on the same line
379 if s:block != 0
380 " ignore ctag within a block
390 if s:block != 0
415 " TODO: this should be split up in detecting the block type and computing the
416 " indent for the block type, so that when we do not know the indent we do
417 " not need to clear the whole state and re-detect the block type again.
420 " block = 0 a:lnum located within special tag: 0:none, 2:<pre>,
423 " autoindent (if block==0)
424 " scripttype = '' type attribute of a script tag (if block==3)
426 " blocktag (if block!=0)
427 " blocklnr lnum of starting blocktag (if block!=0)
433 let state.block = 0
447 " assume a:lnum within block
461 if has_key(b:hi_indent, 'block') && b:hi_indent.block > 5
470 " opening tag found, assume a:lnum within block
471 let state.block = s:indent_tags[blocktag]
472 if state.block == 3
502 let state.block = (found == 3 ? 5 : 6)
570 " Indent inside a <pre> block: Keep indent as-is.
576 " Return the indent inside a <script> block for javascript.
600 " Return the indent inside a <style> block.
610 " Indending inside a <style> block. Returns the indent.
994 " Do not keep the state. TODO: could keep the block type.
1012 if b:hi_indent.block >= 2
1013 " within block
1014 let endtag = s:endtags[b:hi_indent.block]
1017 " block ends here
1018 let b:hi_newstate.block = 0
1021 if swendtag && b:hi_indent.block != 5
1025 let indent = s:Alien{b:hi_indent.block}()
1029 " block continues
1031 let indent = s:Alien{b:hi_indent.block}()
1034 " not within a block - within usual html
1035 let b:hi_newstate.block = b:hi_indent.block