annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
1 " Vim syntax file
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
2 " Language: Asterisk voicemail config file
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
3 " Maintainer: Tilghman Lesher (Corydon76)
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
4 " Last Change: 2006 Mar 21
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
5 " version 0.2
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
6
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
7 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
8 if exists("b:current_syntax")
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
9 finish
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
10 endif
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
11
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
12 syn sync clear
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
13 syn sync fromstart
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
14
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
15
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
16 syn keyword asteriskvmTodo TODO contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
17 syn match asteriskvmComment ";.*" contains=asteriskvmTodo
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
18 syn match asteriskvmContext "\[.\{-}\]"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
19
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
20 " ZoneMessages
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
21 syn match asteriskvmZone "^[[:alnum:]]\+\s*=>\?\s*[[:alnum:]/_]\+|.*$" contains=zoneName,zoneDef
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
22 syn match zoneName "=\zs[[:alnum:]/_]\+\ze" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
23 syn match zoneDef "|\zs.*\ze$" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
24
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
25 syn match asteriskvmSetting "\<\(format\|serveremail\|minmessage\|maxmessage\|maxgreet\|skipms\|maxsilence\|silencethreshold\|maxlogins\)="
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
26 syn match asteriskvmSetting "\<\(externnotify\|externpass\|directoryintro\|charset\|adsi\(fdn\|sec\|ver\)\|\(pager\)\?fromstring\|email\(subject\|body\|cmd\)\|tz\|cidinternalcontexts\|saydurationm\|dialout\|callback\)="
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
27 syn match asteriskvmSettingBool "\<\(attach\|pbxskip\|usedirectory\|saycid\|sayduration\|sendvoicemail\|review\|operator\|envelope\|delete\|nextaftercmd\|forcename\|forcegreeting\)=\(yes\|no\|1\|0\|true\|false\|t\|f\)"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
28
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
29 " Individual mailbox definitions
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
30 syn match asteriskvmMailbox "^[[:digit:]]\+\s*=>\?\s*[[:digit:]]\+\(,[^,]*\(,[^,]*\(,[^,]*\(,[^,]*\)\?\)\?\)\?\)\?" contains=mailboxEmail,asteriskvmSetting,asteriskvmSettingBool,comma
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
31 syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha:]]\{2,10}\ze" contains=comma
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
32 syn match comma "[,|]" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
33
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
34 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
35 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
36 command -nargs=+ HiLink hi def link <args>
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
37
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
38 HiLink asteriskvmComment Comment
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
39 HiLink asteriskvmContext Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
40 HiLink asteriskvmZone Type
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
41 HiLink zoneName String
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
42 HiLink zoneDef String
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
43 HiLink asteriskvmSetting Type
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
44 HiLink asteriskvmSettingBool Type
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
45
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
46 HiLink asteriskvmMailbox Statement
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
47 HiLink mailboxEmail String
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 792
diff changeset
48 delcommand HiLink
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
49
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
50 let b:current_syntax = "asteriskvm"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
51
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
52 " vim: ts=8 sw=2
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
53