昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期四, 九月 10, 2009

http header vim syntax

syntax match header /^\p\{-}:.*/ contains=header_name contains=header_value
syntax match header_name /^\p\{-}:/ contained
syntax match header_value /:\@<=.*/ contained
syntax match method /\c^get.*\|^post.*/
syntax match direction /^+++.*/
syntax match status /\c^http.*/

"syntax match num /\d*/ contained

highlight link header_name Statement
highlight link header function
highlight link method include
highlight link direction type
highlight link status lcursor
"highlight link deep_link underlined

--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.