Lines Matching refs:tag
39 " Needed for % to work when finding start/end of a tag.
58 " Pattern to match the name of a tag, including custom elements.
103 " Syntax names indicating being inside a tag.
164 " 1 opening tag
170 " -1 closing tag
180 " Add a list of tag names for a pair of <tag> </tag> to "tags".
189 " Take a list of tag name pairs that are not to be used as tag pairs.
198 " Add a block tag, that is a tag with a different kind of indenting.
199 func s:AddBlockTag(tag, id, ...) argument
205 let s:indent_tags[a:tag] = a:id
207 let s:indent_tags['/' . a:tag] = -a:id
208 let s:endtags[a:id] = "</" . a:tag . ">"
215 " Add known tag pairs.
255 " Return non-zero when "tagname" is an opening tag, not being a block tag, for
256 " which there should be a closing tag. Can be used by scripts that include
310 " a:itag can be "tag" or "/tag" or "<!--" or "-->"
316 " closing tag
327 " opening tag
333 " block-tag (opening or closing)
335 " else ind==0 (other tag found): keep indent
363 " we get here if starting and closing a block-tag on the same line
371 " Returns 1 if ctag is the tag for a custom element, 0 otherwise.
372 " a:ctag can be "tag" or "/tag" or "<!--" or "-->"
378 " closing tag
389 " opening tag
420 " block = 0 a:lnum located within special tag: 0:none, 2:<pre>,
424 " scripttype = '' type attribute of a script tag (if block==3)
428 " inattr line {lnum} starts with attributes of a tag
446 " if opening tag found,
470 " opening tag found, assume a:lnum within block
533 " Check if the previous line starts with end tag.
536 " If previous line ended in a closing tag, line up with the opening tag.
544 " check for tags before the matching opening tag.
557 " Else: no comments. Skip backwards to find the tag we're inside.
559 " Check if that line starts with end tag.
581 " Skip over comments to avoid that cindent() aligns with the <script> tag
629 " Just below the <style> tag, indent for first content line after comments.
724 " tag:
725 " tag: blah
726 " tag: blah &&
727 " tag: blah ||
854 " - a flag indicating whether we found the end of a tag.
870 " Find the unclosed start tag from the current cursor position.
873 " The cursor must be on or before a closing tag.
887 " Call this with the cursor on the "<" of a start tag.
888 " This will move the cursor to the ">" of the matching end tag or, when it's
889 " a self-closing tag, to the matching ">".
896 " tag with a closing tag, find matching "</tag>"
899 " self-closing tag, find the ">"
904 " Indenting inside a start tag. Return the correct indent or -1 if unknown.
934 " <tag attr=
935 " text<tag attr=
936 " <tag>text</tag>text<tag attr=
945 " try <tag attr
949 " after just "<tag" indent two levels more
979 " When syntax HL is enabled, detect we are inside a tag. Indenting inside
980 " a tag works very differently. Do not do this when the line starts with
981 " "<", it gets the "htmlTag" ID but we are not inside a tag then.
991 " Yes, we are inside a tag.
1002 " does the line start with a closing tag?
1037 " The current line starts with an end tag, align with its start tag.
1041 " check for the line starting with something inside a tag: