diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-06 18:54:19 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-06 18:54:19 +0200 |
commit | bc9757916ed09763d96283ee62dbed58bd713a11 (patch) | |
tree | 07fbb58e9a4f4cbf5206d89f61e4d570e64d2c1a /autoload | |
parent | c6fa4d2bf5eb5301f4d3f123031cf34839a5508d (diff) | |
download | vim-polyglot-bc9757916ed09763d96283ee62dbed58bd713a11.tar.gz vim-polyglot-bc9757916ed09763d96283ee62dbed58bd713a11.zip |
Add all vim filetypes
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/context.vim | 188 | ||||
-rw-r--r-- | autoload/polyglot/sleuth.vim | 386 | ||||
-rw-r--r-- | autoload/xml/xsd.vim | 134 |
3 files changed, 707 insertions, 1 deletions
diff --git a/autoload/context.vim b/autoload/context.vim new file mode 100644 index 00000000..43786463 --- /dev/null +++ b/autoload/context.vim @@ -0,0 +1,188 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'context') == -1 + +" Language: ConTeXt typesetting engine +" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> +" Latest Revision: 2016 Oct 21 + +let s:keepcpo= &cpo +set cpo&vim + +" Helper functions {{{ +function! s:context_echo(message, mode) + redraw + echo "\r" + execute 'echohl' a:mode + echomsg '[ConTeXt]' a:message + echohl None +endf + +function! s:sh() + return has('win32') || has('win64') || has('win16') || has('win95') + \ ? ['cmd.exe', '/C'] + \ : ['/bin/sh', '-c'] +endfunction + +" For backward compatibility +if exists('*win_getid') + + function! s:win_getid() + return win_getid() + endf + + function! s:win_id2win(winid) + return win_id2win(a:winid) + endf + +else + + function! s:win_getid() + return winnr() + endf + + function! s:win_id2win(winnr) + return a:winnr + endf + +endif +" }}} + +" ConTeXt jobs {{{ +if has('job') + + let g:context_jobs = [] + + " Print the status of ConTeXt jobs + function! context#job_status() + let l:jobs = filter(g:context_jobs, 'job_status(v:val) == "run"') + let l:n = len(l:jobs) + call s:context_echo( + \ 'There '.(l:n == 1 ? 'is' : 'are').' '.(l:n == 0 ? 'no' : l:n) + \ .' job'.(l:n == 1 ? '' : 's').' running' + \ .(l:n == 0 ? '.' : ' (' . join(l:jobs, ', ').').'), + \ 'ModeMsg') + endfunction + + " Stop all ConTeXt jobs + function! context#stop_jobs() + let l:jobs = filter(g:context_jobs, 'job_status(v:val) == "run"') + for job in l:jobs + call job_stop(job) + endfor + sleep 1 + let l:tmp = [] + for job in l:jobs + if job_status(job) == "run" + call add(l:tmp, job) + endif + endfor + let g:context_jobs = l:tmp + if empty(g:context_jobs) + call s:context_echo('Done. No jobs running.', 'ModeMsg') + else + call s:context_echo('There are still some jobs running. Please try again.', 'WarningMsg') + endif + endfunction + + function! context#callback(path, job, status) + if index(g:context_jobs, a:job) != -1 && job_status(a:job) != 'run' " just in case + call remove(g:context_jobs, index(g:context_jobs, a:job)) + endif + call s:callback(a:path, a:job, a:status) + endfunction + + function! context#close_cb(channel) + call job_status(ch_getjob(a:channel)) " Trigger exit_cb's callback for faster feedback + endfunction + + function! s:typeset(path) + call add(g:context_jobs, + \ job_start(add(s:sh(), context#command() . ' ' . shellescape(fnamemodify(a:path, ":t"))), { + \ 'close_cb' : 'context#close_cb', + \ 'exit_cb' : function(get(b:, 'context_callback', get(g:, 'context_callback', 'context#callback')), + \ [a:path]), + \ 'in_io' : 'null' + \ })) + endfunction + +else " No jobs + + function! context#job_status() + call s:context_echo('Not implemented', 'WarningMsg') + endfunction! + + function! context#stop_jobs() + call s:context_echo('Not implemented', 'WarningMsg') + endfunction + + function! context#callback(path, job, status) + call s:callback(a:path, a:job, a:status) + endfunction + + function! s:typeset(path) + execute '!' . context#command() . ' ' . shellescape(fnamemodify(a:path, ":t")) + call call(get(b:, 'context_callback', get(g:, 'context_callback', 'context#callback')), + \ [a:path, 0, v:shell_error]) + endfunction + +endif " has('job') + +function! s:callback(path, job, status) abort + if a:status < 0 " Assume the job was terminated + return + endif + " Get info about the current window + let l:winid = s:win_getid() " Save window id + let l:efm = &l:errorformat " Save local errorformat + let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory + " Set errorformat to parse ConTeXt errors + execute 'setl efm=' . escape(b:context_errorformat, ' ') + try " Set cwd to expand error file correctly + execute 'lcd' fnameescape(fnamemodify(a:path, ':h')) + catch /.*/ + execute 'setl efm=' . escape(l:efm, ' ') + throw v:exception + endtry + try + execute 'cgetfile' fnameescape(fnamemodify(a:path, ':r') . '.log') + botright cwindow + finally " Restore cwd and errorformat + execute s:win_id2win(l:winid) . 'wincmd w' + execute 'lcd ' . fnameescape(l:cwd) + execute 'setl efm=' . escape(l:efm, ' ') + endtry + if a:status == 0 + call s:context_echo('Success!', 'ModeMsg') + else + call s:context_echo('There are errors. ', 'ErrorMsg') + endif +endfunction + +function! context#command() + return get(b:, 'context_mtxrun', get(g:, 'context_mtxrun', 'mtxrun')) + \ . ' --script context --autogenerate --nonstopmode' + \ . ' --synctex=' . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0') + \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', '')) +endfunction + +" Accepts an optional path (useful for big projects, when the file you are +" editing is not the project's root document). If no argument is given, uses +" the path of the current buffer. +function! context#typeset(...) abort + let l:path = fnamemodify(strlen(a:000[0]) > 0 ? a:1 : expand("%"), ":p") + let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory + call s:context_echo('Typesetting...', 'ModeMsg') + execute 'lcd' fnameescape(fnamemodify(l:path, ":h")) + try + call s:typeset(l:path) + finally " Restore local working directory + execute 'lcd ' . fnameescape(l:cwd) + endtry +endfunction! +"}}} + +let &cpo = s:keepcpo +unlet s:keepcpo + +" vim: sw=2 fdm=marker + +endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index e2e37100..db1c70d1 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -18,6 +18,7 @@ let s:globs = { \ 'ampl': '*.run', \ 'ant': 'build.xml', \ 'apache': '.htaccess,access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf*', + \ 'apachestyle': 'proftpd.conf*', \ 'apiblueprint': '*.apib', \ 'applescript': '*.applescript,*.scpt', \ 'aptconf': 'apt.conf', @@ -29,209 +30,592 @@ let s:globs = { \ 'asn': '*.asn,*.asn1', \ 'aspperl': '*.asp', \ 'aspvbs': '*.asa,*.asp', + \ 'asterisk': '', + \ 'asteriskvm': '', \ 'atlas': '*.atl,*.as', \ 'autohotkey': '*.ahk,*.ahkl', \ 'autoit': '*.au3', - \ 'automake': '[Mm]akefile.am,GNUmakefile.am', + \ 'automake': '*.mak,*.dsp,*.mk,Makefile.am,makefile.am,GNUmakefile.am', \ 'ave': '*.ave', \ 'awk': '*.awk,*.gawk', \ 'b': '*.mch,*.ref,*.imp', \ 'basic': '*.basic', + \ 'bc': '*.bc', + \ 'bdf': '*.bdf', + \ 'bib': '*.bib', + \ 'bindzone': 'named.root', \ 'blade': '*.blade,*.blade.php', + \ 'blank': '*.bl', \ 'brewfile': 'Brewfile', + \ 'bsdl': '*.bsdl,*bsd', + \ 'bst': '*.bst', \ 'bzl': '*.bzl,*.bazel,*.BUILD,BUCK,BUILD,BUILD.bazel,Tiltfile,WORKSPACE', + \ 'bzr': 'bzr_log.*', \ 'c': '*.c,*.cats,*.h,*.idc,*.qc', + \ 'cabal': '*.cabal', \ 'caddyfile': 'Caddyfile', + \ 'calendar': 'calendar', \ 'carp': '*.carp', + \ 'catalog': 'catalog,sgml.catalog*', + \ 'cdl': '*.cdl', + \ 'cdrdaoconf': '.cdrdao', + \ 'cdrtoc': '*.toc', + \ 'cf': '*.cfm,*.cfi,*.cfc', + \ 'cfengine': 'cfengine.conf', + \ 'cfg': '*.cfg,*.hgrc,*hgrc', + \ 'ch': '*.chf', + \ 'chaiscript': '*.chai', + \ 'chaskell': '*.chs', + \ 'chill': '*..ch', + \ 'chordpro': '*.chopro,*.crd,*.cho,*.crdpro,*.chordpro', + \ 'cl': '*.eni', + \ 'clean': '*.dcl,*.icl', \ 'clojure': '*.clj,*.boot,*.cl2,*.cljc,*.cljs,*.cljs.hl,*.cljscm,*.cljx,*.hic,*.edn,riemann.config,build.boot,profile.boot', \ 'cmake': '*.cmake,*.cmake.in,CMakeLists.txt', + \ 'cmod': '*.cmod', + \ 'cmusrc': '', + \ 'cobol': '*.cbl,*.cob,*.lib', + \ 'coco': '*.atg', \ 'coffee': '*.coffee,*._coffee,*.cake,*.cjsx,*.iced,*.coffeekup,Cakefile', + \ 'conaryrecipe': '*.recipe', \ 'conf': '*.conf,auto.master,config', + \ 'config': 'configure.in,configure.ac,Pipfile', + \ 'context': '*.mkii,*.mkiv,*.mkvi', \ 'cpp': '*.cpp,*.c++,*.cc,*.cp,*.cxx,*.h,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.tcc,*.tpp,*.moc,*.tlh', \ 'cql': '*.cql', + \ 'crm': '*.crm', + \ 'crontab': 'crontab,crontab.*', \ 'cryptol': '*.cry,*.cyl,*.lcry,*.lcyl', \ 'crystal': '*.cr,Projectfile', + \ 'cs': '*.cs', + \ 'csc': '*.csc', + \ 'csdl': '*.csdl', + \ 'csp': '*.csp,*.fdr', + \ 'css': '*.css', \ 'csv': '*.csv,*.tsv,*.tab', + \ 'cterm': '*.con', \ 'cucumber': '*.feature,*.story', + \ 'cuda': '*.cu,*.cuh', \ 'cuesheet': '*.cue', + \ 'cupl': '*.pld', + \ 'cuplsim': '*.si', + \ 'cvs': 'cvs\d\+', + \ 'cvsrc': '.cvsrc', + \ 'cynpp': '*.cyn', \ 'd': '*.d,*.di', \ 'dart': '*.dart,*.drt', + \ 'datascript': '*.ds', + \ 'dcd': '*.dcd', \ 'dcov': '*.lst', \ 'dd': '*.dd', \ 'ddoc': '*.ddoc', + \ 'debchangelog': 'changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch', + \ 'debcontrol': '', + \ 'debcopyright': '', + \ 'debsources': '', + \ 'def': '*.def', + \ 'denyhosts': 'denyhosts.conf', + \ 'desc': '*.desc', + \ 'desktop': '*.desktop,*.directory', \ 'dhall': '*.dhall', + \ 'dictconf': 'dict.conf,.dictrc', + \ 'dictdconf': 'dictd.conf', + \ 'diff': '*.diff,*.rej', + \ 'dircolors': '.dir_colors,.dircolors', + \ 'dnsmasq': '', + \ 'dosbatch': '*.bat,*.sys', \ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,.editorconfig,.npmrc,php.ini-*', + \ 'dot': '*.dot,*.gv', + \ 'dracula': '*.drac,*.drc,*lvs,*lpe,drac.*', \ 'dsdl': '*.sdl', + \ 'dsl': '*.dsl', + \ 'dtd': '*.dtd', + \ 'dts': '*.dts,*.dtsi', \ 'dune': 'jbuild,dune,dune-project,dune-workspace', + \ 'dylan': '*.dylan', + \ 'dylanintr': '*.intr', + \ 'dylanlid': '*.lid', + \ 'ecd': '*.ecd', \ 'ecrystal': '*.ecr', + \ 'edif': '*.ed\(f\|if\|o\)', \ 'eelixir': '*.eex,*.leex', \ 'elf': '*.am', + \ 'elinks': 'elinks.conf', \ 'elixir': '*.ex,*.exs,mix.lock', \ 'elm': '*.elm', + \ 'elmfilt': 'filter-rules', \ 'embeddedpuppet': '*.epp', \ 'ember-script': '*.em,*.emberscript', \ 'emblem': '*.emblem,*.em', \ 'erlang': '*.erl,*.app.src,*.es,*.escript,*.hrl,*.xrl,*.yrl,*.app,*.yaws,Emakefile,rebar.config,rebar.config.lock,rebar.lock', \ 'eruby': '*.erb,*.erb.deface,*.rhtml', + \ 'esmtprc': '*esmtprc', + \ 'esqlc': '*.ec,*.EC', + \ 'esterel': '*.strl', + \ 'eterm': '', + \ 'exim': 'exim.conf', + \ 'expect': '*.exp', + \ 'exports': 'exports', + \ 'factor': '*.factor', + \ 'falcon': '*.fal', + \ 'fan': '*.fan,*.fwt', \ 'fbs': '*.fbs', \ 'fennel': '*.fnl', \ 'ferm': '*.ferm,ferm.conf', + \ 'fetchmail': '.fetchmailrc', + \ 'fgl': '*.4gl,*.4gh,*.m4gl', \ 'fish': '*.fish', \ 'flow': '*.flow', + \ 'focexec': '*.fex,*.focexec', \ 'forth': '*.fs,*.ft,*.fth', + \ 'fortran': '*.f,*.for,*.fortran,*.fpp,*.ftn,*.f77,*.f90,*.f95,*.f03,*.f08', + \ 'framescript': '*.fsl', \ 'freebasic': '*.fb,*.bi', \ 'fsharp': '*.fs,*.fsi,*.fsx', + \ 'fstab': 'fstab,mtab', + \ 'fvwm': '', + \ 'gdb': '.gdbinit', + \ 'gdmo': '*.mo,*.gdmo', \ 'gdscript3': '*.gd', + \ 'gedcom': '*.ged,lltxxxxx.txt', \ 'gitcommit': 'COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG', \ 'gitconfig': '*.gitconfig,.gitconfig,.gitmodules', \ 'gitignore': '.gitignore', + \ 'gitolite': 'gitolite.conf', \ 'gitrebase': 'git-rebase-todo', \ 'gitsendemail': '.gitsendemail.*', + \ 'gkrellmrc': 'gkrellmrc,gkrellmrc_?', \ 'glsl': '*.glsl,*.fp,*.frag,*.frg,*.fs,*.fsh,*.fshader,*.geo,*.geom,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader,*.comp', \ 'gmpl': '*.mod', + \ 'gnash': 'gnashrc,.gnashrc,gnashpluginrc,.gnashpluginrc', \ 'gnuplot': '*.gp,*.gnu,*.gnuplot,*.p,*.plot,*.plt,*.gpi', \ 'go': '*.go', \ 'gohtmltmpl': '*.tmpl', \ 'gomod': 'go.mod', + \ 'gp': '*.gp,.gprc', + \ 'gpg': '', + \ 'grads': '*.gs', \ 'graphql': '*.graphql,*.gql,*.graphqls', + \ 'gretl': '*.gretl', \ 'groovy': '*.groovy,*.grt,*.gtpl,*.gvy,*.gradle,Jenkinsfile', + \ 'group': '', \ 'grub': '', + \ 'gsp': '*.gsp', + \ 'gtkrc': '.gtkrc,gtkrc,.gtkrc*,gtkrc*', \ 'haml': '*.haml,*.haml.deface,*.hamlc,*.hamlbars', \ 'hamster': '*.hsc,*.hsm', \ 'haproxy': '*.cfg,haproxy.cfg,haproxy*.conf*', \ 'haskell': '*.hs,*.hs-boot,*.hsc,*.bpk,*.hsig', + \ 'haste': '*.ht', + \ 'hastepreproc': '*.htpp', \ 'haxe': '*.hx,*.hxsl', + \ 'hb': '*.hb', \ 'hcl': '*.hcl,*.nomad,*.workflow,Appfile', \ 'helm': '', \ 'help': '', + \ 'hercules': '*.vc,*.ev,*.sum,*.errsum', + \ 'hex': '*.hex,*.h32', + \ 'hgcommit': 'hg-editor-*.txt', \ 'hive': '*.q,*.hql,*.ql', + \ 'hog': '*.hog,snort.conf,vision.conf', + \ 'hollywood': '*.hws', + \ 'hostconf': '', + \ 'hostsaccess': '', \ 'html': '*.html,*.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml', \ 'html.handlebars': '*.handlebars,*.hbs,*.hdbs,*.hb', \ 'html.mustache': '*.mustache,*.hogan,*.hulk,*.hjs', \ 'html.twig': '*.twig', \ 'htmldjango': '*.jinja,*.j2,*.jinja2,*.njk', + \ 'htmlm4': '*.html.m4', + \ 'httest': '*.htt,*.htb', \ 'i3config': '*.i3.config,*.i3config,i3.config,i3config,.i3.config,.i3config', \ 'ibasic': '*.iba,*.ibi', \ 'icalendar': '*.ics', + \ 'icemenu': '', + \ 'icon': '*.icn', \ 'idris': '*.idr,*.lidr,idris-response', \ 'idris2': '*.idr,*.ipkg,idris-response', + \ 'indent': '.indent.pro,indentrc', + \ 'inform': '*.inf,*.INF', + \ 'initng': '*.ii', + \ 'inittab': 'inittab', \ 'ion': '*.ion', + \ 'ipfilter': 'ipf.conf,ipf6.conf,ipf.rules', + \ 'iss': '*.iss', + \ 'ist': '*.ist,*.mst', + \ 'j': '*.ijs', + \ 'jal': '*.jal,*.JAL', + \ 'jam': '*.jpl,*.jpr,Prl*.*,JAM*.*', + \ 'java': '*.java,*.jav', + \ 'javacc': '*.jj,*.jjt', \ 'javascript': '*.js,*._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,*.javascript,Jakefile', \ 'javascriptreact': '*.jsx', + \ 'jess': '*.clp', + \ 'jgraph': '*.jgr', + \ 'jovial': '*.jov,*.j73,*.jovial', + \ 'jproperties': '*.properties,*.properties_??,*.properties_??_??,*.properties_??_??_*', \ 'jq': '*.jq,.jqrc,.jqrc*', \ 'json': '*.json,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.JSON-tmLanguage,*.jsonl,*.mcmeta,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,*.jsonp,*.template,.arcconfig,.htmlhintrc,.tern-config,.tern-project,.watchmanconfig,composer.lock,mcmod.info,Pipfile.lock', \ 'json5': '*.json5', \ 'jsonnet': '*.jsonnet,*.libsonnet', + \ 'jsp': '*.jsp', \ 'jst': '*.ejs,*.ect,*.jst', \ 'julia': '*.jl', + \ 'kconfig': 'Kconfig,Kconfig.debug,Kconfig.*', + \ 'kivy': '*.kv', + \ 'kix': '*.kix', \ 'kotlin': '*.kt,*.ktm,*.kts', + \ 'kscript': '*.ks', + \ 'kwt': '*.k', + \ 'lace': '*.ace,*.ACE', + \ 'latte': '*.latte,*.lte', + \ 'ld': '*.ld', + \ 'ldif': '*.ldif', \ 'ledger': '*.ldg,*.ledger,*.journal', \ 'less': '*.less', + \ 'lex': '*.lex,*.l,*.lxx,*.l++', + \ 'lftp': 'lftp.conf,.lftprc', + \ 'lhaskell': '*.lhs', + \ 'libao': '', \ 'lidris2': '*.lidr', + \ 'lifelines': '*.ll', + \ 'lilo': 'lilo.conf,lilo.conf*', \ 'lilypond': '*.ly,*.ily', + \ 'limits': '', + \ 'liquid': '*.liquid', + \ 'lisp': '*.lsp,*.lisp,*.el,*.cl,.emacs,.sawfishrc,sbclrc,.sbclrc', \ 'litcoffee': '*.litcoffee,*.coffee.md', + \ 'lite': '*.lite,*.lt', + \ 'litestep': '', \ 'livescript': '*.ls,*._ls,Slakefile', \ 'llvm': '*.ll', \ 'log': '*.log,*.LOG,*_log,*_LOG', + \ 'logcheck': '', + \ 'loginaccess': '', + \ 'logindefs': '', + \ 'logtalk': '*.lgt', + \ 'lotos': '*.lot,*.lotos', + \ 'lout': '*.lou,*.lout', + \ 'lpc': '*.lpc,*.ulpc', + \ 'lprolog': '*.sig', + \ 'lsl': '*.lsl', + \ 'lss': '*.lss', \ 'lua': '*.lua,*.fcgi,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,.luacheckrc', + \ 'lynx': 'lynx.cfg', \ 'm4': '*.m4,*.at', + \ 'mail': '*.eml,snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt{ng,}-*-\w\+,mutt[[:alnum:]_-]\\\{6\},neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},ae\d\+.txt,{neo,}mutt[[:alnum:]._-]\\\{6\},reportbug-*', + \ 'mailaliases': '', + \ 'mailcap': '.mailcap,mailcap', \ 'mako': '*.mako,*.mao', + \ 'mallard': '*.page', + \ 'man': '*.man', + \ 'manconf': 'man.config', + \ 'map': '*.map', + \ 'maple': '*.mv,*.mpl,*.mws', \ 'markdown': '*.md,*.markdown,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.workbook,contents.lr', \ 'markdown.mdx': '*.mdx', \ 'mason': '*.mason,*.mhtml,*.comp', + \ 'master': '*.mas,*.master', + \ 'mel': '*.mel', \ 'meson': 'meson.build,meson_options.txt', + \ 'messages': '', + \ 'mf': '*.mf', + \ 'mgl': '*.mgl', + \ 'mgp': '*.mgp', + \ 'mib': '*.mib,*.my', + \ 'mix': '*.mix,*.mixal', \ 'mma': '*.mathematica,*.cdf,*.m,*.ma,*.mt,*.nb,*.nbp,*.wl,*.wlt,*.wls,*.mma', + \ 'mmp': '*.mmp', + \ 'modconf': '', + \ 'modula2': '*.m2,*.DEF,*.MOD,*.mi', + \ 'modula3': '*.[mi][3g]', + \ 'monk': '*.isc,*.monk,*.ssc,*.tsc', + \ 'moo': '*.moo', \ 'moon': '*.moon', + \ 'mp': '*.mp', + \ 'mplayerconf': 'mplayer.conf', + \ 'mrxvtrc': 'mrxvtrc,.mrxvtrc', + \ 'msidl': '*.odl,*.mof', + \ 'msql': '*.msql', + \ 'mupad': '*.mu', \ 'murphi': '*.m', + \ 'mush': '*.mush', + \ 'muttrc': '.mutt{ng,}rc*,mutt{ng,}rc*,Mutt{ng,}rc*,Mutt{ng,}rc', + \ 'mysql': '*.mysql', + \ 'n1ql': '*.n1ql,*.nql', + \ 'named': 'named*.conf,rndc*.conf,rndc*.key', + \ 'nanorc': '*.nanorc', + \ 'natural': '*.NS[ACGLMNPS]', + \ 'ncf': '*.ncf', + \ 'neomuttrc': 'Neomuttrc,.neomuttrc*,neomuttrc*,Neomuttrc*', + \ 'netrc': '.netrc', \ 'nginx': '*.nginx,*.nginxconf,*.vhost,nginx.conf,nginx*.conf,*nginx.conf', \ 'nim': '*.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg', + \ 'ninja': '*.ninja', \ 'nix': '*.nix', + \ 'nqc': '*.nqc', + \ 'nroff': '*.tr,*.nr,*.roff,*.tmac,*.mom,tmac.*', + \ 'nsis': '*.nsi,*.nsh', \ 'oasis': '_oasis', + \ 'obj': '*.obj', \ 'objc': '*.m,*.h', \ 'ocaml': '*.ml,*.eliom,*.eliomi,*.ml4,*.mli,*.mll,*.mly,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo,.ocamlinit', \ 'ocamlbuild_tags': '_tags', + \ 'occam': '*.occ', \ 'ocpbuild': '*.ocp', \ 'ocpbuildroot': '*.root', \ 'octave': '*.oct,*.m', \ 'odin': '*.odin', \ 'omake': '*.om,OMakefile,OMakeroot,OMakeroot.in', + \ 'omnimark': '*.xom,*.xin', \ 'opam': '*.opam,*.opam.template,opam', \ 'opencl': '*.cl,*.opencl', + \ 'openroad': '*.or', + \ 'opl': '*.[Oo][Pp][Ll]', + \ 'ora': '*.ora', + \ 'pamconf': '', + \ 'pamenv': 'pam_env.conf,.pam_environment', + \ 'papp': '*.papp,*.pxml,*.pxsl', + \ 'pascal': '*.pas,*.dpr', + \ 'passwd': '', + \ 'pccts': '*.g', + \ 'pcmk': '*.pcmk', + \ 'pdf': '*.pdf', \ 'perl': '*.pl,*.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.pm,*.psgi,*.t,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc,.gitolite.rc', + \ 'pf': 'pf.conf', + \ 'pfmain': 'main.cf', \ 'php': '*.php,*.aw,*.ctp,*.fcgi,*.inc,*.php3,*.php4,*.php5,*.phps,*.phpt,*.phtml,.php,.php_cs,.php_cs.dist,Phakefile', + \ 'pike': '*.pike,*.pmod', + \ 'pilrc': '*.rcp', + \ 'pine': '.pinerc,pinerc,.pinercex,pinercex', + \ 'pinfo': '', \ 'plantuml': '*.puml,*.iuml,*.plantuml,*.uml,*.pu', + \ 'pli': '*.pli,*.pl1', + \ 'plm': '*.plm,*.p36,*.pac', + \ 'plp': '*.plp', + \ 'plsql': '*.pls,*.plsql', + \ 'po': '*.po,*.pot', \ 'pod': '*.pod', \ 'pony': '*.pony', + \ 'postscr': '*.ps,*.pfa,*.afm,*.eps,*.epsf,*.epsi,*.ai', + \ 'pov': '*.pov', + \ 'povini': '.povrayrc', + \ 'ppd': '*.ppd', + \ 'ppwiz': '*.it,*.ih', + \ 'privoxy': '*.action', + \ 'proc': '*.pc', + \ 'procmail': '.procmail,.procmailrc', \ 'prolog': '*.pl,*.pro,*.prolog,*.yap,*.pdb', + \ 'promela': '*.pml', \ 'proto': '*.proto', + \ 'protocols': '', \ 'ps1': '*.ps1,*.psd1,*.psm1,*.pssc', \ 'ps1xml': '*.ps1xml', + \ 'psf': '*.psf', \ 'pug': '*.jade,*.pug', + \ 'pullrequest': 'PULLREQ_EDITMSG', \ 'puppet': '*.pp,Modulefile', \ 'purescript': '*.purs', + \ 'pyrex': '*.pyx,*.pxd', \ 'python': '*.py,*.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,*.ptl,.gclient,DEPS,SConscript,SConstruct,Snakefile,wscript,.pythonrc,.pythonstartup', \ 'qmake': '*.pro,*.pri', \ 'qml': '*.qml,*.qbs', + \ 'quake': '', \ 'r': '*.r,*.rsx,*.s,*.S,.Rprofile,expr-dist', \ 'racket': '*.rkt,*.rktd,*.rktl,*.scrbl', + \ 'radiance': '*.rad,*.mat', \ 'ragel': '*.rl', \ 'raku': '*.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl,*.pl6,*.pm,*.pm6,*.t,*.rakudoc,*.rakutest,*.raku,*.rakumod,*.pod6,*.t6', \ 'raml': '*.raml', + \ 'ratpoison': '.ratpoisonrc,ratpoisonrc', \ 'razor': '*.cshtml,*.razor', + \ 'rc': '*.rc,*.rch', + \ 'rcs': '*\,v', + \ 'readline': '.inputrc,inputrc', \ 'reason': '*.re,*.rei', + \ 'rego': '*.rego', + \ 'remind': '*.remind,*.rem,.reminders,.reminders*', \ 'requirements': '*.pip,*requirements.{txt,in},*require.{txt,in},constraints.{txt,in}', + \ 'resolv': 'resolv.conf', + \ 'reva': '*.frt', + \ 'rexx': '*.rex,*.orx,*.rxo,*.rxj,*.jrexx,*.rexxj,*.rexx,*.testGroup,*.testUnit', \ 'rhelp': '*.rd', + \ 'rib': '*.rib', + \ 'rmd': '*.rmd,*.smd', + \ 'rnc': '*.rnc', + \ 'rng': '*.rng', + \ 'rnoweb': '*.rnw,*.snw', + \ 'robots': 'robots.txt', + \ 'rpcgen': '*.x', + \ 'rpl': '*.rpl', + \ 'rrst': '*.rrst,*.srst', \ 'rst': '*.rst,*.rest,*.rest.txt,*.rst.txt', + \ 'rtf': '*.rtf', \ 'ruby': '*.rb,*.builder,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.pluginspec,*.podspec,*.rabl,*.rake,*.rbi,*.rbuild,*.rbw,*.rbx,*.ru,*.ruby,*.spec,*.thor,*.watchr,*.rxml,*.rjs,*.rant,*.axlsx,*.cap,*.opal,.irbrc,.pryrc,.simplecov,Appraisals,Berksfile,Buildfile,Capfile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,Mavenfile,Podfile,Puppetfile,Rakefile,Snapfile,Thorfile,Vagrantfile,buildfile,Rantfile,.autotest,Cheffile,KitchenSink,Routefile,.Guardfile,.Brewfile,vagrantfile,[Rr]akefile*,*_spec.rb', \ 'rust': '*.rs,*.rs.in', + \ 'samba': 'smb.conf', + \ 'sas': '*.sas', + \ 'sass': '*.sass', + \ 'sather': '*.sa', \ 'sbt.scala': '*.sbt', \ 'scala': '*.scala,*.kojo,*.sc', + \ 'scheme': '*.scm,*.ss,*.rkt', + \ 'scilab': '*.sci,*.sce', + \ 'screen': '.screenrc,screenrc', \ 'scss': '*.scss', + \ 'sd': '*.sd', + \ 'sdc': '*.sdc', + \ 'sdl': '*.sdl,*.pr', + \ 'sed': '*.sed', + \ 'sensors': '', + \ 'services': '', + \ 'setserial': '', \ 'sexplib': '*.sexp', \ 'sh': '*.sh,*.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh.in,*.tmux,*.tool,.bash_aliases,.bash_history,.bash_logout,.bash_profile,.bashrc,.cshrc,.env,.env.example,.flaskenv,.login,.profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile,zlogin,zlogout,zprofile,zshenv,zshrc', + \ 'sieve': '*.siv,*.sieve', + \ 'sil': '*.sil', + \ 'simula': '*.sim', + \ 'sinda': '*.sin,*.s85', + \ 'sisu': '*.sst,*.ssm,*.ssi,*.-sst,*._sst,*.sst.meta,*.-sst.meta,*._sst.meta', + \ 'skill': '*.il,*.ils,*.cdf', + \ 'slang': '*.sl', + \ 'slice': '*.ice', \ 'slim': '*.slim', \ 'slime': '*.slime', + \ 'slpconf': '', + \ 'slpreg': '', + \ 'slpspi': '', + \ 'slrnrc': '.slrnrc', + \ 'slrnsc': '*.score', + \ 'sm': 'sendmail.cf', + \ 'smarty': '*.tpl', + \ 'smcl': '*.hlp,*.ihlp,*.smcl', + \ 'smith': '*.smt,*.smith', + \ 'sml': '*.sml', \ 'smt2': '*.smt2,*.smt', + \ 'snobol4': '*.sno,*.spt', \ 'solidity': '*.sol', + \ 'spec': '*.spec', + \ 'spice': '*.sp,*.spice', + \ 'spup': '*.speedup,*.spdata,*.spd', + \ 'spyce': '*.spy,*.spi', \ 'sql': '*.pgsql,*.pls,*.bdy,*.ddl,*.fnc,*.pck,*.pkb,*.pks,*.plb,*.plsql,*.prc,*.spc,*.sql,*.tpb,*.tps,*.trg,*.vw,*.tyb,*.typ,*.tyc', + \ 'sqlj': '*.sqlj', + \ 'sqr': '*.sqr,*.sqi', + \ 'squid': 'squid.conf', + \ 'srec': '*.s19,*.s28,*.s37,*.mot,*.srec', + \ 'sshconfig': 'ssh_config', + \ 'sshdconfig': 'sshd_config', + \ 'st': '*.st', + \ 'stata': '*.ado,*.do,*.imata,*.mata', + \ 'stp': '*.stp', \ 'stylus': '*.styl,*.stylus', + \ 'sudoers': 'sudoers.tmp', \ 'svelte': '*.svelte', \ 'svg': '*.svg', + \ 'svn': 'svn-commit*.tmp', \ 'swift': '*.swift', + \ 'swiftgyb': '*.swift.gyb', \ 'sxhkdrc': '*.sxhkdrc,sxhkdrc', + \ 'sysctl': '', \ 'systemd': '*.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*.#*', + \ 'systemverilog': '*.sv,*.svh', \ 'tablegen': '*.td', \ 'tads': '*.t', + \ 'tags': 'tags', + \ 'tak': '*.tak', + \ 'taskdata': '{pending,completed,undo}.data', + \ 'taskedit': '*.task', + \ 'tcl': '*.tcl,*.tk,*.itcl,*.itk,*.jacl', + \ 'template': '*.tmpl', + \ 'teraterm': '*.ttl', + \ 'terminfo': '*.ti', \ 'terraform': '*.tf,*.tfvars', + \ 'tex': '*.latex,*.sty,*.dtx,*.ltx,*.bbl', + \ 'texinfo': '*.texinfo,*.texi,*.txi', + \ 'texmf': 'texmf.cnf', + \ 'text': '*.text,README', \ 'textile': '*.textile', + \ 'tf': '*.tf,.tfrc,tfrc', \ 'thrift': '*.thrift', + \ 'tidy': '.tidyrc,tidyrc', + \ 'tilde': '*.t.html', + \ 'tli': '*.tli', \ 'tmux': '.tmux*.conf', \ 'toml': '*.toml,Cargo.lock,Gopkg.lock,poetry.lock,Pipfile', + \ 'tpp': '*.tpp', \ 'tptp': '*.p,*.tptp,*.ax', \ 'trasys': '*.inp', + \ 'treetop': '*.treetop', + \ 'trustees': 'trustees.conf', + \ 'tsalt': '*.slt', + \ 'tsscl': '*.tsscl', + \ 'tssgm': '*.tssgm', + \ 'tssop': '*.tssop', \ 'tt2': '*.tt2', \ 'tt2html': '*.tt2', \ 'typescript': '*.ts', \ 'typescriptreact': '*.tsx', + \ 'uc': '*.uc', + \ 'udevconf': '', + \ 'udevperm': '', + \ 'uil': '*.uit,*.uil', \ 'unison': '*.u,*.uu', + \ 'updatedb': '', + \ 'upstart': '', + \ 'upstreamdat': '*.upstream.dat\c,upstream.dat\c,upstream.*.dat\c', + \ 'upstreaminstalllog': '*.upstreaminstall.log\c,upstreaminstall.log\c,upstreaminstall.*.log\c', + \ 'upstreamlog': '*.upstream.log\c,fdrupstream.log,upstream.log\c,upstream.*.log\c,UPSTREAM-*.log\c', + \ 'usserverlog': '*.usserver.log\c,usserver.log\c,usserver.*.log\c', + \ 'usw2kagtlog': '*.usw2kagt.log\c,usw2kagt.log\c,usw2kagt.*.log\c', \ 'vala': '*.vala,*.vapi,*.valadoc', \ 'vb': '*.bas,*.cls,*.frm,*.frx,*.vba,*.vbs,*.dsm,*.ctl,*.sba', \ 'vbnet': '*.vb,*.vbhtml', \ 'vcl': '*.vcl', \ 'velocity': '*.vm', + \ 'vera': '*.vr,*.vri,*.vrh', + \ 'verilog': '*.v', + \ 'verilogams': '*.va,*.vams', + \ 'vgrindefs': 'vgrindefs', + \ 'vhdl': '*.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho,*.vhdl_[0-9]*', + \ 'vim': '*.vim,*.vba,.exrc,_exrc,*vimrc*', + \ 'viminfo': '.viminfo,_viminfo', \ 'vlang': '*.v,*.vv,*.vsh', \ 'vmasm': '*.mar', + \ 'voscm': '*.cm', + \ 'vrml': '*.wrl', + \ 'vroom': '*.vroom', \ 'vue': '*.vue,*.wpy', + \ 'wast': '*.wast,*.wat', + \ 'webmacro': '*.wm', + \ 'wget': '.wgetrc,wgetrc', + \ 'winbatch': '*.wbt', + \ 'wml': '*.wml', + \ 'wsh': '*.ws[fc]', + \ 'wsml': '*.wsml', + \ 'wvdial': 'wvdial.conf,.wvdialrc', \ 'xdc': '*.xdc', + \ 'xdefaults': '*.ad,.Xdefaults,.Xpdefaults,.Xresources,xdm-config,Xresources*', + \ 'xhtml': '*.xhtml,*.xht', + \ 'xinetd': '', + \ 'xmath': '*.msc,*.msf', \ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config,*fglrxrc', \ 'xml.twig': '*.xml.twig', + \ 'xmodmap': '*Xmodmap,*xmodmap*', + \ 'xquery': '*.xq,*.xql,*.xqm,*.xquery,*.xqy', \ 'xs': '*.xs', + \ 'xsd': '*.xsd', \ 'xsl': '*.xslt,*.xsl', + \ 'xslt': '*.xsl,*.xslt', + \ 'yacc': '*.yy,*.yxx,*.y++', \ 'yaml': '*.yml,*.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml.mysql,.clang-format,.clang-tidy,.gemrc,glide.lock,yarn.lock,fish_history,fish_read_history', \ 'yaml.ansible': 'playbook.y{a,}ml,site.y{a,}ml,main.y{a,}ml,local.y{a,}ml,requirements.y{a,}ml,tasks.*.y{a,}ml,roles.*.y{a,}ml,handlers.*.y{a,}ml', \ 'yaml.docker-compose': 'docker-compose*.yaml,docker-compose*.yml', + \ 'z8a': '*.z8a', \ 'zephir': '*.zep', \ 'zig': '*.zig,*.zir', + \ 'zimbu': '*.zu', + \ 'zimbutempl': '*.zut', \ 'zir': '*.zir', \ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout,.zlog*,.zcompdump*,.zfbfmarks,.zsh*', \} diff --git a/autoload/xml/xsd.vim b/autoload/xml/xsd.vim new file mode 100644 index 00000000..572581a1 --- /dev/null +++ b/autoload/xml/xsd.vim @@ -0,0 +1,134 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xsd') == -1 + +" Author: Thomas Barthel +" Last change: 2007 May 8 +let g:xmldata_xsd = { + \ 'schema': [ + \ [ 'include', 'import', 'redefine', 'annotation', 'simpleType', 'complexType', 'element', 'attribute', 'attributeGroup', 'group', 'notation', 'annotation'], + \ { 'targetNamespace' : [], 'version' : [], 'xmlns' : [], 'finalDefault' : [], 'blockDefault' : [], 'id' : [], 'elementFormDefault' : [], 'attributeFormDefault' : [], 'xml:lang' : [] }], + \ 'redefine' : [ + \ ['annotation', 'simpleType', 'complexType', 'attributeGroup', 'group'], + \ {'schemaLocation' : [], 'id' : []} ], + \ 'include' : [ + \ ['annotation'], + \ {'namespace' : [], 'id' : []} ], + \ 'import' : [ + \ ['annotation'], + \ {'namespace' : [], 'schemaLocation' : [], 'id' : []} ], + \ 'complexType' : [ + \ ['annotation', 'simpleContent', 'complexContent', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'name' : [], 'id' : [], 'abstract' : [], 'final' : [], 'block' : [], 'mixed' : []} ], + \ 'complexContent' : [ + \ ['annotation', 'restriction', 'extension'], + \ {'mixed' : [], 'id' : [] } ], + \ 'simpleType' : [ + \ ['annotation', 'restriction', 'list', 'union'], + \ {'name' : [], 'final' : [], 'id' : []} ], + \ 'simpleContent' : [ + \ ['annotation', 'restriction', 'extension'], + \ {'id' : []} ], + \ 'element' : [ + \ ['annotation', 'complexType', 'simpleType', 'unique', 'key', 'keyref'], + \ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'minOccurs' : [], 'maxOccurs' : [], 'nillable' : [], 'substitutionGroup' : [], 'abstract' : [], 'final' : [], 'block' : [], 'default' : [], 'fixed' : [], 'form' : []} ], + \ 'attribute' : [ + \ ['annotation', 'simpleType'], + \ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'use' : [], 'default' : [], 'fixed' : [], 'form' : []} ], + \ 'group' : [ + \ ['annotation', 'all', 'choice', 'sequence'], + \ {'name' : [], 'ref' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'choice' : [ + \ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'sequence' : [ + \ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'all' : [ + \ ['annotation', 'element'], + \ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'any' : [ + \ ['annotation'], + \ {'namespace' : [], 'processContents' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ], + \ 'unique' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'id' : []} ], + \ 'key' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'id' : []} ], + \ 'keyref' : [ + \ ['annotation', 'selector', 'field'], + \ {'name' : [], 'refer' : [], 'id' : []} ], + \ 'selector' : [ + \ ['annotation'], + \ {'xpath' : [], 'id' : []} ], + \ 'field' : [ + \ ['annotation'], + \ {'xpath' : [], 'id' : []} ], + \ 'restriction' : [ + \ ['annotation', 'simpleType', 'minExclusive', 'maxExclusive', 'minInclusive', 'maxInclusive', 'totalDigits', 'fractionDigits', 'length', 'minLength', 'maxLength', 'enumeration', 'whiteSpace', 'pattern'], + \ {'base' : [], 'id' : []} ], + \ 'minExclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxExclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'minInclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxInclusive' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'totalDigits' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'fractionDigits' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'length' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'minLength' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'maxLength' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'enumeration' : [ + \ ['annotation'], + \ {'value' : [], 'id' : []}], + \ 'whiteSpace' : [ + \ ['annotation'], + \ {'value' : [], 'id' : [], 'fixed' : []}], + \ 'pattern' : [ + \ ['annotation'], + \ {'value' : [], 'id' : []}], + \ 'extension' : [ + \ ['annotation', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'base' : [], 'id' : []} ], + \ 'attributeGroup' : [ + \ ['annotation', 'attribute', 'attributeGroup', 'anyAttribute'], + \ {'name' : [], 'id' : [], 'ref' : []} ], + \ 'anyAttribute' : [ + \ ['annotation'], + \ {'namespace' : [], 'processContents' : [], 'id' : []} ], + \ 'list' : [ + \ ['annotation', 'simpleType'], + \ {'itemType' : [], 'id' : []} ], + \ 'union' : [ + \ ['annotation', 'simpleType'], + \ {'id' : [], 'memberTypes' : []} ], + \ 'notation' : [ + \ ['annotation'], + \ {'name' : [], 'id' : [], 'public' : [], 'system' : []} ], + \ 'annotation' : [ + \ ['appinfo', 'documentation'], + \ {} ], + \ 'appinfo' : [ + \ [], + \ {'source' : [], 'id' : []} ], + \ 'documentation' : [ + \ [], + \ {'source' : [], 'id' : [], 'xml' : []} ] + \ } + +endif |