diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2014-06-08 13:18:33 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2014-06-08 13:18:33 +0200 |
commit | 45273d44d4b1bd9a1be431c1a98f9046ed3a5c79 (patch) | |
tree | 7b8fa566b3da949b422804c3bb9eaf9c51b9b69e /autoload/htmlcomplete.vim | |
parent | e961fa80374369c9e299b333639db0dc43d1f126 (diff) | |
download | vim-polyglot-45273d44d4b1bd9a1be431c1a98f9046ed3a5c79.tar.gz vim-polyglot-45273d44d4b1bd9a1be431c1a98f9046ed3a5c79.zip |
Major update
Diffstat (limited to 'autoload/htmlcomplete.vim')
-rw-r--r-- | autoload/htmlcomplete.vim | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim index 6da9be24..8b4492e4 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -7,9 +7,11 @@ " Last Change: 2010 Sep 25 if !exists('g:aria_attributes_complete') - let g:aria_attributes_complete = 1 + let g:aria_attributes_complete = 1 endif +let b:html_omni_flavor = 'html5' + function! htmlcomplete#CompleteTags(findstart, base) if a:findstart " locate the start of the word @@ -167,11 +169,11 @@ function! htmlcomplete#CompleteTags(findstart, base) "runtime! autoload/xml/xhtml10s.vim call htmlcomplete#LoadData() endif - if g:aria_attributes_complete == 1 && !exists("b:aria_omni") - call htmlcomplete#LoadAria() - endif + if g:aria_attributes_complete == 1 && !exists("b:aria_omni") + call htmlcomplete#LoadAria() + endif - let entities = b:html_omni['vimxmlentities'] + let entities = b:html_omni['vimxmlentities'] if len(a:base) == 1 for m in entities @@ -469,9 +471,9 @@ function! htmlcomplete#CompleteTags(findstart, base) "runtime! autoload/xml/xhtml10s.vim call htmlcomplete#LoadData() endif - if g:aria_attributes_complete == 1 && !exists("b:aria_omni") - call htmlcomplete#LoadAria() - endif + if g:aria_attributes_complete == 1 && !exists("b:aria_omni") + call htmlcomplete#LoadAria() + endif " }}} if attrname == 'href' " Now we are looking for local anchors defined by name or id @@ -551,9 +553,9 @@ function! htmlcomplete#CompleteTags(findstart, base) if !exists("b:html_omni") call htmlcomplete#LoadData() endif - if g:aria_attributes_complete == 1 && !exists("b:aria_omni") - call htmlcomplete#LoadAria() - endif + if g:aria_attributes_complete == 1 && !exists("b:aria_omni") + call htmlcomplete#LoadAria() + endif " }}} if has_key(b:html_omni, tag) @@ -658,9 +660,9 @@ function! htmlcomplete#CompleteTags(findstart, base) "runtime! autoload/xml/xhtml10s.vim call htmlcomplete#LoadData() endif - if g:aria_attributes_complete == 1 && !exists("b:aria_omni") - call htmlcomplete#LoadAria() - endif + if g:aria_attributes_complete == 1 && !exists("b:aria_omni") + call htmlcomplete#LoadAria() + endif " }}} " Tag completion {{{ " Deal with tag completion. @@ -763,9 +765,9 @@ endfunction function! htmlcomplete#LoadData() " {{{ if !exists("b:html_omni_flavor") if &filetype == 'html' - let b:html_omni_flavor = 'html401t' + let b:html_omni_flavor = 'html5' else - let b:html_omni_flavor = 'xhtml10s' + let b:html_omni_flavor = 'html5' endif endif " With that if we still have bloated memory but create new buffer |