syntax match add_desc /\(^[^|]*|\)\@<=[^|]\+/ contains=num
syntax match vintage /\(^[^|]*|[^|]*|\)\@<=[^|]\+/
syntax match bottle_size /\(^[^|]*|[^|]*|[^|]*|\)\@<=[^|]\+/
syntax match price /\(^[^|]*|[^|]*|[^|]*|[^|]*|\)\@<=[^|]\+/
syntax match deep_link /\(^[^|]*|[^|]*|[^|]*|[^|]*|[^|]*|\)\@<=[^|]\+/
syntax match num /\d*/ contained
highlight link wine_name cursor
highlight link add_desc Statement
highlight link vintage include
highlight link bottle_size function
highlight link price lcursor
highlight link deep_link underlined
存为 dat.vim 放在vimfiles\syntax目录下. 在vimrc里加入 autocmd BufRead *.dat :set ft=dat
--
Feng
没有评论:
发表评论