diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-23 22:40:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-23 22:40:29 +0000 |
commit | 4a85b4156098a30daf5b15a7fb7587a1c7c99f94 (patch) | |
tree | a1874218752c56897f955c24b012836b8c9e80f8 | |
parent | eb3593b38b7b6b658e93ad05d6caf76d58cc0c35 (diff) |
updated for version 7.0e07v7.0e07
32 files changed, 3685 insertions, 224 deletions
diff --git a/runtime/autoload/htmlcomplete.vim b/runtime/autoload/htmlcomplete.vim index 248426801e..733fff5215 100644 --- a/runtime/autoload/htmlcomplete.vim +++ b/runtime/autoload/htmlcomplete.vim @@ -1,7 +1,7 @@ " Vim completion script " Language: HTML and XHTML " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) -" Last Change: 2006 Apr 20 +" Last Change: 2006 Apr 22 function! htmlcomplete#CompleteTags(findstart, base) if a:findstart @@ -10,7 +10,7 @@ function! htmlcomplete#CompleteTags(findstart, base) let start = col('.') - 1 let curline = line('.') let compl_begin = col('.') - 2 - while start >= 0 && line[start - 1] =~ '\(\k\|[:.-]\)' + while start >= 0 && line[start - 1] =~ '\(\k\|[!:.-]\)' let start -= 1 endwhile " Handling of entities {{{ @@ -94,12 +94,6 @@ function! htmlcomplete#CompleteTags(findstart, base) break endif let i += 1 - " We reached first line and no tag approached - " Prevents endless loop - "if i > curline - "let b:compl_context = '' - "break - "endif endwhile " Make sure we don't have counter unlet! i @@ -133,6 +127,8 @@ function! htmlcomplete#CompleteTags(findstart, base) let res2 = [] " a:base is very short - we need context let context = b:compl_context + let g:ab = a:base + let g:co = context " Check if we should do CSS completion inside of <style> tag " or JS completion inside of <script> tag or PHP completion in case of <? " tag AND &ft==php @@ -210,14 +206,15 @@ function! htmlcomplete#CompleteTags(findstart, base) let tag = '' else let tag = split(context)[0] - if tag =~ '[A-Z]' + " Detect if tag is uppercase to return in proper case, + " we need to make it lowercase for processing + if tag =~ '^[A-Z]*$' let uppercase_tag = 1 let tag = tolower(tag) else let uppercase_tag = 0 endif endif - let g:ta = tag " Get last word, it should be attr name let attr = matchstr(context, '.*\s\zs.*') " Possible situations where any prediction would be difficult: @@ -568,7 +565,7 @@ function! htmlcomplete#CompleteTags(findstart, base) let opentag = tolower(xmlcomplete#GetLastOpenTag("b:unaryTagsStack")) " MM: TODO: GLOT works always the same but with some weird situation it " behaves as intended in HTML but screws in PHP - if opentag == '' || &ft == 'php' && !has_key(b:html_omni, opentag) + if opentag == '' || &filetype == 'php' && !has_key(b:html_omni, opentag) " Hack for sometimes failing GetLastOpenTag. " As far as I tested fail isn't GLOT fault but problem " of invalid document - not properly closed tags and other mish-mash. @@ -587,6 +584,23 @@ function! htmlcomplete#CompleteTags(findstart, base) if exists("uppercase_tag") && uppercase_tag == 1 let context = tolower(context) endif + " Handle XML keywords: DOCTYPE and CDATA. + if opentag == '' || opentag ==? 'head' + let tags += [ + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', + \ '!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/1999/xhtml">', + \ '!CDATA' + \ ] + endif for m in sort(tags) if m =~ '^'.context @@ -596,6 +610,7 @@ function! htmlcomplete#CompleteTags(findstart, base) endif endfor let menu = res + res2 + let g:me = menu if has_key(b:html_omni, 'vimxmltaginfo') let final_menu = [] for i in range(len(menu)) @@ -607,10 +622,15 @@ function! htmlcomplete#CompleteTags(findstart, base) let m_menu = '' let m_info = '' endif - if &ft == 'html' && exists("uppercase_tag") && uppercase_tag == 1 + if &filetype == 'html' && exists("uppercase_tag") && uppercase_tag == 1 && item !~ 'DOCTYPE' let item = toupper(item) endif - let final_menu += [{'word':item, 'menu':m_menu, 'info':m_info}] + if item =~ 'DOCTYPE' + let abbr = 'DOCTYPE '.matchstr(item, 'DTD \zsX\?HTML .\{-}\ze\/\/') + else + let abbr = item + endif + let final_menu += [{'abbr':abbr, 'word':item, 'menu':m_menu, 'info':m_info}] endfor else let final_menu = menu @@ -623,7 +643,7 @@ endfunction function! htmlcomplete#LoadData() " {{{ if !exists("b:html_omni_flavor") - if &ft == 'html' + if &filetype == 'html' let b:html_omni_flavor = 'html401t' else let b:html_omni_flavor = 'xhtml10s' @@ -636,14 +656,13 @@ function! htmlcomplete#LoadData() " {{{ exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor else exe 'runtime! autoload/xml/'.b:html_omni_flavor.'.vim' - exe 'let b:html_omni = g:xmldata_'.b:html_omni_flavor endif " This repetition is necessary because we don't know if " b:html_omni_flavor file exists and was sourced " Proper checking for files would require iterating through 'rtp' " and could introduce OS dependent mess. if !exists("g:xmldata_".b:html_omni_flavor) - if &ft == 'html' + if &filetype == 'html' let b:html_omni_flavor = 'html401t' else let b:html_omni_flavor = 'xhtml10s' diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index f0767abeaa..c2c34dfd62 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -1,7 +1,7 @@ " netrw.vim: Handles file transfer and remote directory listing across a network " AUTOLOAD PORTION " Date: Apr 21, 2006 -" Version: 91 +" Version: 92 " Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. {{{1 @@ -23,7 +23,7 @@ if &cp || exists("g:loaded_netrw") finish endif -let g:loaded_netrw = "v91" +let g:loaded_netrw = "v92" if v:version < 700 echohl WarningMsg | echo "***netrw*** you need vim version 7.0 or later for version ".g:loaded_netrw." of netrw" | echohl None finish @@ -3523,10 +3523,15 @@ fun! netrw#Explore(indx,dosplit,style,...) endif norm! 0 - if a:1 =~ '\*/' + if a:1 =~ '^\*/' " Explore */pattern let pattern= substitute(a:1,'^\*/\(.*\)$','\1','') -" call Decho("Explore */".pattern) +" call Decho("Explore */pat: a:1<".a:1."> -> pattern<".pattern.">") + elseif a:1 =~ '^\*\*//' + " Explore **//pattern + let pattern = substitute(a:1,'^\*\*//','','') + let starstarpat = 1 +" call Decho("Explore **//pat: a:1<".a:1."> -> pattern<".pattern.">") endif if a:1 == "" && a:indx >= 0 @@ -3556,39 +3561,62 @@ fun! netrw#Explore(indx,dosplit,style,...) let w:netrw_explore_indx= 0 endif let indx = a:indx -" call Decho("input indx=".indx) +" call Decho("set indx=".indx) " if indx == -1 + "Nexplore if !exists("w:netrw_explore_list") " sanity check echohl WarningMsg | echo "***netrw*** using Nexplore or <s-down> improperly; see help for netrw-starstar" | echohl None call inputsave()|call input("Press <cr> to continue")|call inputrestore() " call Dret("Explore") return endif - let indx= w:netrw_explore_indx + 1 -" call Decho("indx= [w:netrw_explore_indx=".w:netrw_explore_indx."]=".indx) + let indx = w:netrw_explore_indx + let curfile= w:netrw_explore_list[indx] + while indx < w:netrw_explore_listlen && curfile == w:netrw_explore_list[indx] + let indx= indx + 1 +" call Decho("indx=".indx) + endwhile +" call Decho("Nexplore: indx= [w:netrw_explore_indx=".w:netrw_explore_indx."]=".indx) elseif indx == -2 + "Pexplore if !exists("w:netrw_explore_list") " sanity check echohl WarningMsg | echo "***netrw*** using Pexplore or <s-up> improperly; see help for netrw-starstar" | echohl None call inputsave()|call input("Press <cr> to continue")|call inputrestore() " call Dret("Explore") return endif - let indx= w:netrw_explore_indx - 1 -" call Decho("indx= [w:netrw_explore_indx=".w:netrw_explore_indx."]=".indx) + let indx = w:netrw_explore_indx + let curfile= w:netrw_explore_list[indx] + while indx > 0 && curfile == w:netrw_explore_list[indx] + let indx= indx - 1 + endwhile +" call Decho("Pexplore: indx= [w:netrw_explore_indx=".w:netrw_explore_indx."]=".indx) else + " Explore -- initialize " build list of files to Explore with Nexplore/Pexplore - let w:netrw_explore_indx = 0 +" call Decho("Explore -- initialize") + let w:netrw_explore_indx= 0 if !exists("b:netrw_curdir") let b:netrw_curdir= getcwd() endif " call Decho("b:netrw_curdir<".b:netrw_curdir.">") if exists("pattern") " call Decho("building list based on pattern<".pattern."> cwd<".getcwd().">") - exe "vimgrep /".pattern."/gj ".b:netrw_curdir."/*" - let w:netrw_explore_list = map(getqflist(),'b:netrw_curdir.bufname(v:val.bufnr)') + if exists("starstarpat") + exe "vimgrep /".pattern."/gj "."**/*" + let s:netrw_curdir= b:netrw_curdir + let w:netrw_explore_list = map(getqflist(),'s:netrw_curdir."/".bufname(v:val.bufnr)') + else + exe "vimgrep /".pattern."/gj ".b:netrw_curdir."/*" + if (has("win32") || has("win95") || has("win64") || has("win16")) + let w:netrw_explore_list = map(getqflist(),'bufname(v:val.bufnr)') + else + let w:netrw_explore_list = map(getqflist(),'b:netrw_curdir.bufname(v:val.bufnr)') + endif + endif else " call Decho("building list based on ".b:netrw_curdir."/".a:1) let w:netrw_explore_list= split(expand(b:netrw_curdir."/".a:1),'\n') diff --git a/runtime/autoload/xml/html32.vim b/runtime/autoload/xml/html32.vim new file mode 100644 index 0000000000..e975bad936 --- /dev/null +++ b/runtime/autoload/xml/html32.vim @@ -0,0 +1,384 @@ +let g:xmldata_html32 = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Aring', 'Atilde', 'Auml', 'Ccedil', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Euml', 'Iacute', 'Icirc', 'Igrave', 'Iuml', 'Ntilde', 'Oacute', 'Ocirc', 'Ograve', 'Oslash', 'Otilde', 'Ouml', 'THORN', 'Uacute', 'Ucirc', 'Ugrave', 'Uuml', 'Yacute', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'amp', 'aring', 'atilde', 'auml', 'brvbar', 'ccedil', 'cedil', 'cent', 'copy', 'curren', 'deg', 'divide', 'eacute', 'ecirc', 'egrave', 'eth', 'euml', 'frac12', 'frac14', 'frac34', 'gt', 'iacute', 'icirc', 'iexcl', 'igrave', 'iquest', 'iuml', 'laquo', 'lt', 'macr', 'micro', 'middot', 'nbsp', 'not', 'ntilde', 'oacute', 'ocirc', 'ograve', 'ordf', 'ordm', 'oslash', 'otilde', 'ouml', 'para', 'plusmn', 'pound', 'raquo', 'reg', 'sect', 'shy', 'sup1', 'sup2', 'sup3', 'szlig', 'thorn', 'times', 'uacute', 'ucirc', 'ugrave', 'uml', 'uuml', 'yacute', 'yen', 'yuml'], +\ 'vimxmlroot': ['html'], +\ 'a': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'rel': [], 'href': [], 'name': [], 'rev': [], 'title': []} +\ ], +\ 'address': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p'], +\ { } +\ ], +\ 'applet': [ +\ ['param', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'width': [], 'vspace': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'name': [], 'height': [], 'hspace': [], 'codebase': [], 'code': []} +\ ], +\ 'area': [ +\ [], +\ { 'alt': [], 'coords': [], 'nohref': ['BOOL'], 'href': [], 'shape': ['rect', 'circle', 'poly']} +\ ], +\ 'b': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'base': [ +\ [], +\ { 'href': []} +\ ], +\ 'basefont': [ +\ [], +\ { 'size': []} +\ ], +\ 'big': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'blockquote': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { } +\ ], +\ 'body': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'link': [], 'vlink': [], 'background': [], 'alink': [], 'bgcolor': [], 'text': []} +\ ], +\ 'br': [ +\ [], +\ { 'clear': ['none', 'left', 'all', 'right', 'none']} +\ ], +\ 'caption': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['top', 'bottom']} +\ ], +\ 'center': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { } +\ ], +\ 'cite': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'code': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'dd': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table'], +\ { } +\ ], +\ 'dfn': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'dir': [ +\ ['li'], +\ { 'compact': ['BOOL']} +\ ], +\ 'div': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'dl': [ +\ ['dt', 'dd'], +\ { 'compact': ['BOOL']} +\ ], +\ 'dt': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'em': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'font': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'size': [], 'color': []} +\ ], +\ 'form': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'enctype': ['application/x-www-form-urlencoded'], 'action': [], 'method': ['GET', 'POST']} +\ ], +\ 'h1': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h2': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h3': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h4': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h5': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'h6': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'head': [ +\ ['title', 'isindex', 'base'], +\ { } +\ ], +\ 'hr': [ +\ [], +\ { 'width': [], 'align': ['left', 'right', 'center'], 'size': [], 'noshade': ['BOOL']} +\ ], +\ 'html': [ +\ ['head', 'body', 'plaintext'], +\ { 'version': ['-//W3C//DTD HTML 3.2 Final//EN']} +\ ], +\ 'i': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'img': [ +\ [], +\ { 'width': [], 'vspace': [], 'alt': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'usemap': [], 'ismap': ['BOOL'], 'src': [], 'height': [], 'border': [], 'hspace': []} +\ ], +\ 'input': [ +\ [], +\ { 'maxlength': [], 'align': ['top', 'middle', 'bottom', 'left', 'right'], 'value': [], 'src': [], 'name': [], 'size': [], 'checked': ['BOOL'], 'type': ['TEXT', 'PASSWORD', 'CHECKBOX', 'RADIO', 'SUBMIT', 'RESET', 'FILE', 'IMAGE']} +\ ], +\ 'isindex': [ +\ [], +\ { 'prompt': []} +\ ], +\ 'kbd': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'li': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table'], +\ { 'value': [], 'type': []} +\ ], +\ 'link': [ +\ [], +\ { 'rel': [], 'href': [], 'rev': [], 'title': []} +\ ], +\ 'listing': [ +\ [], +\ { } +\ ], +\ 'map': [ +\ ['area'], +\ { 'name': []} +\ ], +\ 'menu': [ +\ ['li'], +\ { 'compact': ['BOOL']} +\ ], +\ 'meta': [ +\ [], +\ { 'http-equiv': [], 'name': [], 'content': []} +\ ], +\ 'ol': [ +\ ['li'], +\ { 'compact': ['BOOL'], 'type': [], 'start': []} +\ ], +\ 'option': [ +\ [''], +\ { 'value': [], 'selected': ['BOOL']} +\ ], +\ 'p': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'align': ['left', 'center', 'right']} +\ ], +\ 'param': [ +\ [], +\ { 'value': [], 'name': []} +\ ], +\ 'plaintext': [ +\ [], +\ { } +\ ], +\ 'pre': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { 'width': ['#implied']} +\ ], +\ 'samp': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'script': [ +\ [''], +\ { } +\ ], +\ 'select': [ +\ ['option'], +\ { 'name': [], 'size': [], 'multiple': ['BOOL']} +\ ], +\ 'small': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'strike': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'strong': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'style': [ +\ [''], +\ { } +\ ], +\ 'sub': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'sup': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'table': [ +\ ['caption', 'tr'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'border': [], 'cellspacing': [], 'cellpadding': []} +\ ], +\ 'td': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'nowrap': ['BOOL'], 'valign': ['top', 'middle', 'bottom'], 'height': [], 'rowspan': ['1'], 'colspan': ['1']} +\ ], +\ 'textarea': [ +\ [''], +\ { 'name': [], 'rows': [], 'cols': []} +\ ], +\ 'th': [ +\ ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea', 'p', 'ul', 'ol', 'dir', 'menu', 'pre', 'xmp', 'listing', 'dl', 'div', 'center', 'blockquote', 'form', 'isindex', 'hr', 'table', 'address'], +\ { 'width': [], 'align': ['left', 'center', 'right'], 'nowrap': ['BOOL'], 'valign': ['top', 'middle', 'bottom'], 'height': [], 'rowspan': ['1'], 'colspan': ['1']} +\ ], +\ 'title': [ +\ [''], +\ { } +\ ], +\ 'tr': [ +\ ['th', 'td'], +\ { 'align': ['left', 'center', 'right'], 'valign': ['top', 'middle', 'bottom']} +\ ], +\ 'tt': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'u': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'ul': [ +\ ['li'], +\ { 'compact': ['BOOL'], 'type': ['disc', 'square', 'circle']} +\ ], +\ 'var': [ +\ ['tt', 'i', 'b', 'u', 'strike', 'big', 'small', 'sub', 'sup', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'a', 'img', 'applet', 'font', 'basefont', 'br', 'script', 'map', 'input', 'select', 'textarea'], +\ { } +\ ], +\ 'xmp': [ +\ [], +\ { } +\ ], +\ 'vimxmlattrinfo' : { +\ 'accept' : ['ContentType', ''], +\ 'accesskey' : ['Character', ''], +\ 'action' : ['*URI', ''], +\ 'align' : ['String', ''], +\ 'alt' : ['*Text', ''], +\ 'archive' : ['UriList', ''], +\ 'axis' : ['CDATA', ''], +\ 'border' : ['Pixels', ''], +\ 'cellpadding' : ['Length', ''], +\ 'cellspacing' : ['Length', ''], +\ 'char' : ['Character', ''], +\ 'charoff' : ['Length', ''], +\ 'charset' : ['LangCode', ''], +\ 'checked' : ['Bool', ''], +\ 'class' : ['CDATA', ''], +\ 'codetype' : ['ContentType', ''], +\ 'cols' : ['*Number', ''], +\ 'colspan' : ['Number', ''], +\ 'content' : ['*CDATA', ''], +\ 'coords' : ['Coords', ''], +\ 'data' : ['URI', ''], +\ 'datetime' : ['DateTime', ''], +\ 'declare' : ['Bool', ''], +\ 'defer' : ['Bool', ''], +\ 'dir' : ['String', ''], +\ 'disabled' : ['Bool', ''], +\ 'enctype' : ['ContentType', ''], +\ 'for' : ['ID', ''], +\ 'headers' : ['IDREFS', ''], +\ 'height' : ['Number', ''], +\ 'href' : ['*URI', ''], +\ 'hreflang' : ['LangCode', ''], +\ 'id' : ['ID', 'Unique string'], +\ 'ismap' : ['Bool', ''], +\ 'label' : ['*Text', ''], +\ 'lang' : ['LangCode', ''], +\ 'longdesc' : ['URI', ''], +\ 'maxlength' : ['Number', ''], +\ 'media' : ['MediaDesc', ''], +\ 'method' : ['String', ''], +\ 'multiple' : ['Bool', ''], +\ 'name' : ['CDATA', ''], +\ 'nohref' : ['Bool', ''], +\ 'onblur' : ['Script', ''], +\ 'onchange' : ['Script', ''], +\ 'onclick' : ['Script', ''], +\ 'ondblclick' : ['Script', ''], +\ 'onfocus' : ['Script', ''], +\ 'onkeydown' : ['Script', ''], +\ 'onkeypress' : ['Script', ''], +\ 'onkeyup' : ['Script', ''], +\ 'onload' : ['Script', ''], +\ 'onmousedown' : ['Script', ''], +\ 'onmousemove' : ['Script', ''], +\ 'onmouseout' : ['Script', ''], +\ 'onmouseover' : ['Script', ''], +\ 'onmouseup' : ['Script', ''], +\ 'onreset' : ['Script', ''], +\ 'onselect' : ['Script', ''], +\ 'onsubmit' : ['Script', ''], +\ 'onunload' : ['Script', ''], +\ 'profile' : ['URI', ''], +\ 'readonly' : ['Bool', ''], +\ 'rel' : ['LinkTypes', ''], +\ 'rev' : ['LinkTypes', ''], +\ 'rows' : ['*Number', ''], +\ 'rules' : ['String', ''], +\ 'scheme' : ['CDATA', ''], +\ 'selected' : ['Bool', ''], +\ 'shape' : ['Shape', ''], +\ 'size' : ['CDATA', ''], +\ 'span' : ['Number', ''], +\ 'src' : ['*URI', ''], +\ 'standby' : ['Text', ''], +\ 'style' : ['StyleSheet', ''], +\ 'summary' : ['*Text', ''], +\ 'tabindex' : ['Number', ''], +\ 'title' : ['Text', ''], +\ 'type' : ['*ContentType', ''], +\ 'usemap' : ['URI', ''], +\ 'valign' : ['String', ''], +\ 'valuetype' : ['String', ''], +\ 'width' : ['Number', ''], +\ 'xmlns' : ['URI', ''] +\ }, +\ 'vimxmltaginfo': { +\ 'area': ['/>', ''], +\ 'base': ['/>', ''], +\ 'basefont': ['/>', ''], +\ 'br': ['/>', ''], +\ 'hr': ['/>', ''], +\ 'img': ['/>', ''], +\ 'input': ['/>', ''], +\ 'isindex': ['/>', ''], +\ 'link': ['/>', ''], +\ 'meta': ['/>', ''], +\ 'param': ['/>', ''], +\ } +\ } +" vim:ft=vim:ff=unix diff --git a/runtime/autoload/xml/html401f.vim b/runtime/autoload/xml/html401f.vim new file mode 100644 index 0000000000..6c8937c598 --- /dev/null +++ b/runtime/autoload/xml/html401f.vim @@ -0,0 +1,469 @@ +let g:xmldata_html401f = { +\ 'vimxmlentities': ['AElig', 'Aacute', 'Acirc', 'Agrave', 'Alpha', 'Aring', 'Atilde', 'Auml', 'Beta', 'Ccedil', 'Chi', 'Dagger', 'Delta', 'ETH', 'Eacute', 'Ecirc', 'Egrave', 'Epsilon', 'Eta', 'Euml', 'Gamma', 'Iacute', 'Icirc', 'Igrave', 'Iota', 'Iuml', 'Kappa', 'Lambda', 'Mu', 'Ntilde', 'Nu', 'OElig', 'Oacute', 'Ocirc', 'Ograve', 'Omega', 'Omicron', 'Oslash', 'Otilde', 'Ouml', 'Phi', 'Pi', 'Prime', 'Psi', 'Rho', 'Scaron', 'Sigma', 'THORN', 'Tau', 'Theta', 'Uacute', 'Ucirc', 'Ugrave', 'Upsilon', 'Uuml', 'Xi', 'Yacute', 'Yuml', 'Zeta', 'aacute', 'acirc', 'acute', 'aelig', 'agrave', 'alefsym', 'alpha', 'amp', 'and', 'ang', 'apos', 'aring', 'asymp', 'atilde', 'auml', 'bdquo', 'beta', 'brvbar', 'bull', 'cap', 'ccedil', 'cedil', 'cent', 'chi', 'circ', 'clubs', 'cong', 'copy', 'crarr', 'cup', 'curren', 'dArr', 'dagger', 'darr', 'deg', 'delta', 'diams', 'divide', 'eacute', 'ecirc', 'egrave', 'empty', 'emsp', 'ensp', 'epsilon', 'equiv', 'eta', 'eth', 'euml', 'euro', 'exist', 'fnof', 'forall', 'frac12', 'frac14', 'frac34', 'frasl', 'gamma', 'ge', 'gt', 'hArr', 'harr', 'hearts', 'hellip', 'iacute', 'icirc', 'iexcl', 'igrave', 'image', 'infin', 'int', 'iota', 'iquest', 'isin', 'iuml', 'kappa', 'lArr', 'lambda', 'lang', 'laquo', 'larr', 'lceil', 'ldquo', 'le', 'lfloor', 'lowast', 'loz', 'lrm', 'lsaquo', 'lsquo', 'lt', 'macr', 'mdash', 'micro', 'middot', 'minus', 'mu', 'nabla', 'nbsp', 'ndash', 'ne', 'ni', 'not', 'notin', 'nsub', 'ntilde', 'nu', 'oacute', 'ocirc', 'oelig', 'ograve', 'oline', 'omega', 'omicron', 'oplus', 'or', 'ordf', 'ordm', 'oslash', 'otilde', 'otimes', 'ouml', 'para', 'part', 'permil', |