Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 145999
Collapse All | Expand All

(-)ftdetect/gentoo.vim.old (-9 / +9 lines)
Lines 77-94 Link Here
77
" metadata.xml
77
" metadata.xml
78
au BufNewFile,BufRead metadata.xml
78
au BufNewFile,BufRead metadata.xml
79
    \     set filetype=gentoo-metadata
79
    \     set filetype=gentoo-metadata
80
80
81
" guidexml
81
" guidexml
82
au BufNewFile,BufRead *.xml
82
au BufNewFile,BufRead *.xml
83
    \     if getline(1) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
83
    \     if getline(1) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
84
    \        getline(2) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
84
    \        getline(2) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
85
    \        getline(3) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
85
    \        getline(3) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
86
    \        getline(4) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
86
    \        getline(4) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
87
    \        getline(5) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
87
    \        getline(5) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
88
    \        getline(6) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
88
    \        getline(6) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
89
    \        getline(7) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
89
    \        getline(7) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
90
    \        getline(8) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " ||
90
    \        getline(8) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " ||
91
    \        getline(9) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " |
91
    \        getline(9) =~ "<!DOCTYPE \\(guide\\|news\\|mainpage\\|book\\|sections\\|dynamic\\|inserts\\) " |
92
    \     set filetype=guidexml		      |
92
    \     set filetype=guidexml		      |
93
    \	 endif
93
    \	 endif
94
94
(-)syntax/guidexml.vim.old (-7 / +14 lines)
Lines 21-42 Link Here
21
syn cluster xmlTagHook add=guidexmlElement
21
syn cluster xmlTagHook add=guidexmlElement
22
syn keyword guidexmlElement contained mainpage guide news title subtitle
22
syn keyword guidexmlElement contained mainpage guide news title subtitle
23
syn keyword guidexmlElement contained poster author abstract summary license
23
syn keyword guidexmlElement contained poster author abstract summary license
24
syn keyword guidexmlElement contained glsaindex glsa-latest version date
24
syn keyword guidexmlElement contained glsaindex glsa-latest version date
25
syn keyword guidexmlElement contained chapter section body figure fig img
25
syn keyword guidexmlElement contained chapter section body figure fig img
26
syn keyword guidexmlElement contained br note impo warn pre p table tcolumn
26
syn keyword guidexmlElement contained br note impo warn pre p table tcolumn
27
syn keyword guidexmlElement contained tr th ti ul ol li b brite box c comment
27
syn keyword guidexmlElement contained tr th ti ul ol li b brite c comment
28
syn keyword guidexmlElement contained e i path mail uri
28
syn keyword guidexmlElement contained e i path mail uri dl dt dd newsitem
29
syn keyword guidexmlElement contained sup sub keyword ident const stmt var
29
syn keyword guidexmlElement contained book part include sections subsection
30
syn keyword guidexmlElement contained book part include sections subsection
31
syn keyword guidexmlElement contained keyval values key
32
syn keyword guidexmlElement contained metadoc members lead member categories
33
syn keyword guidexmlElement contained cat files file docs doc memberof fileid
34
syn keyword guidexmlElement contained bugs bug dynamic intro listing list catid
35
syn keyword guidexmlElement contained overview inserts insert docdate
30
36
31
syn cluster xmlAttribHook add=guidexmlAttr
37
syn cluster xmlAttribHook add=guidexmlAttr
32
syn match guidexmlAttr contained /about\|articles\|author\|caption\|category\|changelog/
38
syn match guidexmlAttr contained /author\|caption\|category\|test\|parent/
33
syn match guidexmlAttr contained /contract\|docs\|gentoo\|graphics\|id\|irc\|lang\|link/
39
syn match guidexmlAttr contained /gentoo\|id\|lang\|by\|linkto\|link/
34
syn match guidexmlAttr contained /linkto\|lists\|news\|newsletter\|packages\|performace/
40
syn match guidexmlAttr contained /short\|src\|title\|colspan\|rowspan/
35
syn match guidexmlAttr contained /projects\|short\|shots\|sponsors\|src\|support\|title/
41
syn match guidexmlAttr contained /type\|disclaimer\|redirect\|width\|align/
36
syn match guidexmlAttr contained /type\|where\|width\|href/
42
syn match guidexmlAttr contained /mail\|fullname\|vpart\|vchap\|stopper\|arch/
43
syn match guidexmlAttr contained /href\|metadoc\|name/
37
44
38
hi def link guidexmlElement Keyword
45
hi def link guidexmlElement Keyword
39
hi def link guidexmlAttr    Keyword
46
hi def link guidexmlAttr    Keyword
40
47
41
let b:current_syntax = "guidexml"
48
let b:current_syntax = "guidexml"
42
49

Return to bug 145999