Mercurial > vim
annotate runtime/syntax/icemenu.vim @ 25603:525ef4d1d412 v8.2.3338
patch 8.2.3338: Vim9: no type check when assigning a list range
Commit: https://github.com/vim/vim/commit/89071cb6a116a74f78f77a1853e6fada44872a15
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 13 18:20:09 2021 +0200
patch 8.2.3338: Vim9: no type check when assigning a list range
Problem: Vim9: no type check when assigning a list range. (Naohiro Ono)
Solution: Check the member type. (closes https://github.com/vim/vim/issues/8750)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 13 Aug 2021 18:30:03 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
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 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
237
diff
changeset
|
9 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
237
diff
changeset
|
10 if exists("b:current_syntax") |
7 | 11 finish |
12 endif | |
13 | |
14 " not case sensitive | |
15 syntax case ignore | |
16 | |
17 " icons .xpm .png and .gif | |
18 syntax match _icon /"\=\/.*\.xpm"\=/ | |
19 syntax match _icon /"\=\/.*\.png"\=/ | |
20 syntax match _icon /"\=\/.*\.gif"\=/ | |
21 syntax match _icon /"\-"/ | |
22 | |
23 " separator | |
24 syntax keyword _rules separator | |
25 | |
26 " prog and menu | |
27 syntax keyword _ids menu prog | |
28 | |
29 " highlights | |
30 highlight link _rules Underlined | |
31 highlight link _ids Type | |
32 highlight link _icon Special | |
33 | |
34 let b:current_syntax = "IceMenu" |