diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2005-07-21 22:13:24 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2005-07-21 22:13:24 +0000 |
commit | 5e55e21debc080267013df45c86adcb94ebc73e4 (patch) | |
tree | 3404c5311c1740df6909c16c6864360a8d5d65e8 | |
parent | if vimdiff is used as the program name disable new ebuild creation (diff) | |
download | gentoo-syntax-5e55e21debc080267013df45c86adcb94ebc73e4.tar.gz gentoo-syntax-5e55e21debc080267013df45c86adcb94ebc73e4.tar.bz2 gentoo-syntax-5e55e21debc080267013df45c86adcb94ebc73e4.zip |
add support for guidexml handbooks
svn path=/trunk/; revision=12
-rw-r--r-- | ftdetect/gentoo.vim | 18 | ||||
-rw-r--r-- | syntax/guidexml.vim | 5 |
2 files changed, 12 insertions, 11 deletions
diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim index 58b1a8d..85affa2 100644 --- a/ftdetect/gentoo.vim +++ b/ftdetect/gentoo.vim @@ -80,15 +80,15 @@ au BufNewFile,BufRead metadata.xml " guidexml au BufNewFile,BufRead *.xml - \ if getline(1) =~ "<!DOCTYPE guide " || - \ getline(2) =~ "<!DOCTYPE guide " || - \ getline(3) =~ "<!DOCTYPE guide " || - \ getline(4) =~ "<!DOCTYPE guide " || - \ getline(5) =~ "<!DOCTYPE guide " || - \ getline(6) =~ "<!DOCTYPE guide " || - \ getline(7) =~ "<!DOCTYPE guide " || - \ getline(8) =~ "<!DOCTYPE guide " || - \ getline(9) =~ "<!DOCTYPE guide " | + \ if getline(1) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(2) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(3) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(4) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(5) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(6) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(7) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(8) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " || + \ getline(9) =~ "<!DOCTYPE \\(guide\\|book\\|sections\\) " | \ set filetype=guidexml | \ endif diff --git a/syntax/guidexml.vim b/syntax/guidexml.vim index fe2642a..0be19e3 100644 --- a/syntax/guidexml.vim +++ b/syntax/guidexml.vim @@ -24,15 +24,16 @@ syn keyword guidexmlElement contained poster author abstract summary license syn keyword guidexmlElement contained glsaindex glsa-latest version date syn keyword guidexmlElement contained chapter section body figure fig img syn keyword guidexmlElement contained br note impo warn pre p table tcolumn -syn keyword guidexmlElement contained tr th ti ul ol li b brite box c codenote +syn keyword guidexmlElement contained tr th ti ul ol li b brite box c comment syn keyword guidexmlElement contained e i path mail uri +syn keyword guidexmlElement contained book part include sections subsection syn cluster xmlAttribHook add=guidexmlAttr syn match guidexmlAttr contained /about\|articles\|author\|caption\|category\|changelog/ syn match guidexmlAttr contained /contract\|docs\|gentoo\|graphics\|id\|irc\|lang\|link/ syn match guidexmlAttr contained /linkto\|lists\|news\|newsletter\|packages\|performace/ syn match guidexmlAttr contained /projects\|short\|shots\|sponsors\|src\|support\|title/ -syn match guidexmlAttr contained /type\|where\|width/ +syn match guidexmlAttr contained /type\|where\|width\|href/ hi def link guidexmlElement Keyword hi def link guidexmlAttr Keyword |