Mercurial > vim
comparison runtime/syntax/asteriskvm.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 860b73800cd7 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Asterisk voicemail config file | 2 " Language: Asterisk voicemail config file |
3 " Maintainer: Tilghman Lesher (Corydon76) | 3 " Maintainer: Tilghman Lesher (Corydon76) |
4 " Last Change: 2006 Mar 21 | 4 " Last Change: 2006 Mar 21 |
5 " version 0.2 | 5 " version 0.2 |
6 " | 6 |
7 if version < 600 | 7 " quit when a syntax file was already loaded |
8 syntax clear | 8 if exists("b:current_syntax") |
9 elseif exists("b:current_syntax") | |
10 finish | 9 finish |
11 endif | 10 endif |
12 | 11 |
13 syn sync clear | 12 syn sync clear |
14 syn sync fromstart | 13 syn sync fromstart |
31 syn match asteriskvmMailbox "^[[:digit:]]\+\s*=>\?\s*[[:digit:]]\+\(,[^,]*\(,[^,]*\(,[^,]*\(,[^,]*\)\?\)\?\)\?\)\?" contains=mailboxEmail,asteriskvmSetting,asteriskvmSettingBool,comma | 30 syn match asteriskvmMailbox "^[[:digit:]]\+\s*=>\?\s*[[:digit:]]\+\(,[^,]*\(,[^,]*\(,[^,]*\(,[^,]*\)\?\)\?\)\?\)\?" contains=mailboxEmail,asteriskvmSetting,asteriskvmSettingBool,comma |
32 syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha:]]\{2,10}\ze" contains=comma | 31 syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha:]]\{2,10}\ze" contains=comma |
33 syn match comma "[,|]" contained | 32 syn match comma "[,|]" contained |
34 | 33 |
35 " Define the default highlighting. | 34 " Define the default highlighting. |
36 " For version 5.7 and earlier: only when not done already | 35 " Only when an item doesn't have highlighting yet |
37 " For version 5.8 and later: only when an item doesn't have highlighting yet | 36 command -nargs=+ HiLink hi def link <args> |
38 :if version >= 508 || !exists("did_conf_syntax_inits") | |
39 if version < 508 | |
40 let did_conf_syntax_inits = 1 | |
41 command -nargs=+ HiLink hi link <args> | |
42 else | |
43 command -nargs=+ HiLink hi def link <args> | |
44 endif | |
45 | 37 |
46 HiLink asteriskvmComment Comment | 38 HiLink asteriskvmComment Comment |
47 HiLink asteriskvmContext Identifier | 39 HiLink asteriskvmContext Identifier |
48 HiLink asteriskvmZone Type | 40 HiLink asteriskvmZone Type |
49 HiLink zoneName String | 41 HiLink zoneName String |
50 HiLink zoneDef String | 42 HiLink zoneDef String |
51 HiLink asteriskvmSetting Type | 43 HiLink asteriskvmSetting Type |
52 HiLink asteriskvmSettingBool Type | 44 HiLink asteriskvmSettingBool Type |
53 | 45 |
54 HiLink asteriskvmMailbox Statement | 46 HiLink asteriskvmMailbox Statement |
55 HiLink mailboxEmail String | 47 HiLink mailboxEmail String |
56 delcommand HiLink | 48 delcommand HiLink |
57 endif | |
58 | 49 |
59 let b:current_syntax = "asteriskvm" | 50 let b:current_syntax = "asteriskvm" |
60 | 51 |
61 " vim: ts=8 sw=2 | 52 " vim: ts=8 sw=2 |
62 | 53 |