Lines Matching refs:b

11     let b:html_omni_flavor = 'xhtml10s'
13 let b:html_omni_flavor = 'html401t'
26 let b:html_omni_flavor = 'html32'
28 let b:html_omni_flavor = 'xhtml11'
31 let b:html_omni_flavor = 'xhtml10'
33 let b:html_omni_flavor = 'html401'
35 let b:html_omni_flavor = 'html40'
38 let b:html_omni_flavor .= 't'
40 let b:html_omni_flavor .= 'f'
42 let b:html_omni_flavor .= 's'
60 let b:entitiescompl = 1
61 let b:compl_context = ''
71 let b:csscompl = 1
84 let b:jscompl = 1
85 let b:jsrange = [scriptstart, scriptend]
94 let b:js_extfiles = []
102 let b:js_extfiles += readfile(sname)
114 let b:js_extfiles += js_scripttags
120 if !exists("b:csscompl") && !exists("b:jscompl")
121 let b:compl_context = getline('.')[0:(compl_begin)]
122 if b:compl_context !~ '<[^>]*$'
129 let context_lines = getline(curline-i, curline-1) + [b:compl_context]
130 let b:compl_context = join(context_lines, ' ')
135 let b:compl_context = ''
143 let b:compl_context = matchstr(b:compl_context, '.*\zs<.*')
147 if b:compl_context =~? 'on[a-z]*\s*=\s*\(''[^'']*\|"[^"]*\)$'
153 " If b:compl_context begins with <? we are inside of PHP code. It
155 if &filetype =~? 'php' && b:compl_context =~ '^<?'
156 let b:phpcompl = 1
163 let b:compl_context = getline('.')[0:compl_begin]
171 let context = b:compl_context
175 if exists("b:csscompl")
176 unlet! b:csscompl
177 let context = b:compl_context
178 unlet! b:compl_context
180 elseif exists("b:jscompl")
181 unlet! b:jscompl
183 elseif exists("b:phpcompl")
184 unlet! b:phpcompl
185 let context = b:compl_context
188 if len(b:compl_context) == 0 && !exists("b:entitiescompl")
191 let context = matchstr(b:compl_context, '.\zs.*')
193 unlet! b:compl_context
195 if exists("b:entitiescompl")
196 unlet! b:entitiescompl
198 if !exists("b:html_doctype")
201 if !exists("b:html_omni")
206 let entities = b:html_omni['vimxmlentities']
236 let b:jsrange = [line('.'), search('<\/script\>', 'nW')]
402 " 3b. And split them to be sure each id is in separate item
446 let b:js_extfiles = []
454 let b:js_extfiles += readfile(sname)
467 let b:js_extfiles += js_scripttags
473 let b:compl_context = context
474 let b:jsrange = [l, l]
496 if !exists("b:html_doctype")
499 if !exists("b:html_omni")
516 if has_key(b:html_omni, tag) && has_key(b:html_omni[tag][1], attrname)
517 let values = b:html_omni[tag][1][attrname]
557 if !exists("b:html_doctype")
560 if !exists("b:html_omni")
565 if has_key(b:html_omni, tag)
566 let attrs = keys(b:html_omni[tag][1])
579 if has_key(b:html_omni, 'vimxmlattrinfo')
583 if has_key(b:html_omni['vimxmlattrinfo'], item)
584 let m_menu = b:html_omni['vimxmlattrinfo'][item][0]
585 let m_info = b:html_omni['vimxmlattrinfo'][item][1]
590 if len(b:html_omni[tag][1][item]) > 0 && b:html_omni[tag][1][item][0] =~ '^\(BOOL\|'.item.'\)$'
602 if len(b:html_omni[tag][1][item]) > 0 && b:html_omni[tag][1][item][0] =~ '^\(BOOL\|'.item.'\)$'
617 let b:unaryTagsStack = "base meta link hr br param img area input col"
622 let opentag = xmlcomplete#GetLastOpenTag("b:unaryTagsStack")
628 if !exists("b:html_doctype")
631 if !exists("b:html_omni")
638 let opentag = tolower(xmlcomplete#GetLastOpenTag("b:unaryTagsStack"))
641 if opentag == '' || &filetype == 'php' && !has_key(b:html_omni, opentag)
646 let tags = keys(b:html_omni)
649 if has_key(b:html_omni, opentag)
650 let tags = b:html_omni[opentag][0]
685 if has_key(b:html_omni, 'vimxmltaginfo')
689 if has_key(b:html_omni['vimxmltaginfo'], item)
690 let m_menu = b:html_omni['vimxmltaginfo'][item][0]
691 let m_info = b:html_omni['vimxmltaginfo'][item][1]
716 if !exists("b:html_omni_flavor")
718 let b:html_omni_flavor = 'html401t'
720 let b:html_omni_flavor = 'xhtml10s'
726 if exists('g:xmldata_'.b:html_omni_flavor)
727 exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor
729 exe 'runtime! autoload/xml/'.b:html_omni_flavor.'.vim'
730 exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor
735 if exists('b:html_omni_flavor')
736 let old_flavor = b:html_omni_flavor
744 let b:html_omni_flavor = 'html32'
745 let b:html_doctype = 1
748 let b:html_omni_flavor = 'html40t'
749 let b:html_doctype = 1
752 let b:html_omni_flavor = 'html40f'
753 let b:html_doctype = 1
756 let b:html_omni_flavor = 'html40s'
757 let b:html_doctype = 1
760 let b:html_omni_flavor = 'html401t'
761 let b:html_doctype = 1
764 let b:html_omni_flavor = 'html401f'
765 let b:html_doctype = 1
768 let b:html_omni_flavor = 'html401s'
769 let b:html_doctype = 1
772 let b:html_omni_flavor = 'xhtml10t'
773 let b:html_doctype = 1
776 let b:html_omni_flavor = 'xhtml10f'
777 let b:html_doctype = 1
780 let b:html_omni_flavor = 'xhtml10s'
781 let b:html_doctype = 1
784 let b:html_omni_flavor = 'xhtml11'
785 let b:html_doctype = 1
790 if !exists("b:html_doctype")
793 " Tie g:xmldata with b:html_omni this way we need to sourca data file only
795 if old_flavor == b:html_omni_flavor
798 if exists('g:xmldata_'.b:html_omni_flavor)
799 exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor
801 exe 'runtime! autoload/xml/'.b:html_omni_flavor.'.vim'
802 exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor