annotate runtime/syntax/icemenu.vim @ 5899:60cdaa05a6ad v7.4.292

updated for version 7.4.292 Problem: Searching for "a" does not match accented "a" with new regexp engine, does match with old engine. (David B?rgin) "ca" does not match "ca" with accented "a" with either engine. Solution: Change the old engine, check for following composing character also for single-byte patterns.
author Bram Moolenaar <bram@vim.org>
date Tue, 13 May 2014 18:04:00 +0200
parents 73354c21f1e4
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Icewm Menu
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 7
diff changeset
3 " Maintainer: James Mahler <James.Mahler@gmail.com>
73354c21f1e4 updated for version 7.0066
vimboss
parents: 7
diff changeset
4 " Last Change: Fri Apr 1 15:13:48 EST 2005
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Extensions: ~/.icewm/menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Comment: Icewm is a lightweight window manager. This adds syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " highlighting when editing your user's menu file (~/.icewm/menu).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " clear existing syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 7
diff changeset
12 elseif exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " not case sensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syntax case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " icons .xpm .png and .gif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syntax match _icon /"\=\/.*\.xpm"\=/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syntax match _icon /"\=\/.*\.png"\=/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syntax match _icon /"\=\/.*\.gif"\=/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syntax match _icon /"\-"/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " separator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syntax keyword _rules separator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " prog and menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syntax keyword _ids menu prog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " highlights
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 highlight link _rules Underlined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 highlight link _ids Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 highlight link _icon Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 let b:current_syntax = "IceMenu"