7
|
1 " Vim syntax file
|
|
2 " Language: Icewm Menu
|
237
|
3 " Maintainer: James Mahler <James.Mahler@gmail.com>
|
|
4 " Last Change: Fri Apr 1 15:13:48 EST 2005
|
7
|
5 " Extensions: ~/.icewm/menu
|
|
6 " Comment: Icewm is a lightweight window manager. This adds syntax
|
|
7 " highlighting when editing your user's menu file (~/.icewm/menu).
|
|
8
|
|
9 " clear existing syntax
|
|
10 if version < 600
|
|
11 syntax clear
|
237
|
12 elseif exists("b:current_syntax")
|
7
|
13 finish
|
|
14 endif
|
|
15
|
|
16 " not case sensitive
|
|
17 syntax case ignore
|
|
18
|
|
19 " icons .xpm .png and .gif
|
|
20 syntax match _icon /"\=\/.*\.xpm"\=/
|
|
21 syntax match _icon /"\=\/.*\.png"\=/
|
|
22 syntax match _icon /"\=\/.*\.gif"\=/
|
|
23 syntax match _icon /"\-"/
|
|
24
|
|
25 " separator
|
|
26 syntax keyword _rules separator
|
|
27
|
|
28 " prog and menu
|
|
29 syntax keyword _ids menu prog
|
|
30
|
|
31 " highlights
|
|
32 highlight link _rules Underlined
|
|
33 highlight link _ids Type
|
|
34 highlight link _icon Special
|
|
35
|
|
36 let b:current_syntax = "IceMenu"
|