~ubuntu-branches/ubuntu/vivid/vim/vivid

« back to all changes in this revision

Viewing changes to runtime/autoload/xmlcomplete.vim

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-11-05 11:37:43 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105113743-9i4urcsm3n44mhqe
Tags: 2:7.2.025-2ubuntu1
* Merge from debian unstable, remaining changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
" Vim completion script
2
2
" Language:     XML
3
3
" Maintainer:   Mikolaj Machowski ( mikmach AT wp DOT pl )
4
 
" Last Change:  2006 Jul 18
5
 
" Version: 1.8
 
4
" Last Change:  2006 Aug 15
 
5
" Version: 1.9
6
6
"
7
7
" Changelog:
 
8
" 1.9 - 2007 Aug 15
 
9
"               - fix closing of namespaced tags (Johannes Weiss)
8
10
" 1.8 - 2006 Jul 18
9
11
"       - allow for closing of xml tags even when data file isn't available
10
12
 
413
415
 
414
416
        if exists("b:xml_namespace")
415
417
                if b:xml_namespace == 'DEFAULT'
416
 
                        let tagpat='</\=\(\k\|[.-]\)\+\|/>'
 
418
                        let tagpat='</\=\(\k\|[.:-]\)\+\|/>'
417
419
                else
418
420
                        let tagpat='</\='.b:xml_namespace.':\(\k\|[.-]\)\+\|/>'
419
421
                endif
420
422
        else
421
 
                let tagpat='</\=\(\k\|[.-]\)\+\|/>'
 
423
                let tagpat='</\=\(\k\|[.:-]\)\+\|/>'
422
424
        endif
423
425
        while (linenum>0)
424
426
                let line=getline(linenum)