Mercurial > vim
comparison runtime/syntax/2html.vim @ 1621:82b5078be2dd
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 21:56:24 +0000 |
parents | 2ad54fcf37e3 |
children | f4f8014d516e |
comparison
equal
deleted
inserted
replaced
1620:73fe8baea242 | 1621:82b5078be2dd |
---|---|
1 " Vim syntax support file | 1 " Vim syntax support file |
2 " Maintainer: Bram Moolenaar <Bram@vim.org> | 2 " Maintainer: Bram Moolenaar <Bram@vim.org> |
3 " Last Change: 2007 Mar 10 | 3 " Last Change: 2007 Aug 31 |
4 " (modified by David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>) | 4 " (modified by David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>) |
5 " (XHTML support by Panagiotis Issaris <takis@lumumba.luc.ac.be>) | 5 " (XHTML support by Panagiotis Issaris <takis@lumumba.luc.ac.be>) |
6 " (made w3 compliant by Edd Barrett <vext01@gmail.com>) | 6 " (made w3 compliant by Edd Barrett <vext01@gmail.com>) |
7 " (added html_font. Edd Barrett <vext01@gmail.com>) | 7 " (added html_font. Edd Barrett <vext01@gmail.com>) |
8 | 8 |
160 endif | 160 endif |
161 if s:vim_encoding == 'latin1' | 161 if s:vim_encoding == 'latin1' |
162 let s:html_encoding = 'iso-8859-1' | 162 let s:html_encoding = 'iso-8859-1' |
163 elseif s:vim_encoding =~ "^cp12" | 163 elseif s:vim_encoding =~ "^cp12" |
164 let s:html_encoding = substitute(s:vim_encoding, 'cp', 'windows-', '') | 164 let s:html_encoding = substitute(s:vim_encoding, 'cp', 'windows-', '') |
165 elseif s:vim_encoding == 'sjis' | 165 elseif s:vim_encoding == 'sjis' || s:vim_encoding == 'cp932' |
166 let s:html_encoding = 'Shift_JIS' | 166 let s:html_encoding = 'Shift_JIS' |
167 elseif s:vim_encoding == 'big5' | 167 elseif s:vim_encoding == 'big5' || s:vim_encoding == 'cp950' |
168 let s:html_encoding = "Big5" | 168 let s:html_encoding = "Big5" |
169 elseif s:vim_encoding == 'euc-cn' | 169 elseif s:vim_encoding == 'euc-cn' |
170 let s:html_encoding = 'GB_2312-80' | 170 let s:html_encoding = 'GB_2312-80' |
171 elseif s:vim_encoding == 'euc-tw' | 171 elseif s:vim_encoding == 'euc-tw' |
172 let s:html_encoding = "" | 172 let s:html_encoding = "" |