annotate runtime/syntax/asteriskvm.vim @ 7896:16e8b23d8fd8

Added tag v7.4.1244 for changeset bff95e0d8885e0b5050e1404998c9d1904ba5849
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Feb 2016 21:00:07 +0100
parents 860b73800cd7
children 43efa4f5a8ea
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
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
6 "
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
7 if version < 600
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
8 syntax clear
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
9 elseif exists("b:current_syntax")
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
10 finish
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
11 endif
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
12
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
13 syn sync clear
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
14 syn sync fromstart
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
15
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
16
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
17 syn keyword asteriskvmTodo TODO contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
18 syn match asteriskvmComment ";.*" contains=asteriskvmTodo
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
19 syn match asteriskvmContext "\[.\{-}\]"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
20
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
21 " ZoneMessages
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
22 syn match asteriskvmZone "^[[:alnum:]]\+\s*=>\?\s*[[:alnum:]/_]\+|.*$" contains=zoneName,zoneDef
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
23 syn match zoneName "=\zs[[:alnum:]/_]\+\ze" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
24 syn match zoneDef "|\zs.*\ze$" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
25
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
26 syn match asteriskvmSetting "\<\(format\|serveremail\|minmessage\|maxmessage\|maxgreet\|skipms\|maxsilence\|silencethreshold\|maxlogins\)="
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
27 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
28 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
29
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
30 " Individual mailbox definitions
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
31 syn match asteriskvmMailbox "^[[:digit:]]\+\s*=>\?\s*[[:digit:]]\+\(,[^,]*\(,[^,]*\(,[^,]*\(,[^,]*\)\?\)\?\)\?\)\?" contains=mailboxEmail,asteriskvmSetting,asteriskvmSettingBool,comma
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
32 syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha:]]\{2,10}\ze" contains=comma
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
33 syn match comma "[,|]" contained
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
34
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
35 " Define the default highlighting.
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
36 " For version 5.7 and earlier: only when not done already
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
37 " For version 5.8 and later: only when an item doesn't have highlighting yet
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
38 :if version >= 508 || !exists("did_conf_syntax_inits")
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
39 if version < 508
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
40 let did_conf_syntax_inits = 1
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
41 command -nargs=+ HiLink hi link <args>
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
42 else
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
43 command -nargs=+ HiLink hi def link <args>
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
44 endif
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
45
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
46 HiLink asteriskvmComment Comment
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
47 HiLink asteriskvmContext Identifier
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
48 HiLink asteriskvmZone Type
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
49 HiLink zoneName String
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
50 HiLink zoneDef String
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
51 HiLink asteriskvmSetting Type
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
52 HiLink asteriskvmSettingBool Type
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
53
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
54 HiLink asteriskvmMailbox Statement
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
55 HiLink mailboxEmail String
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
56 delcommand HiLink
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
57 endif
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
58
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
59 let b:current_syntax = "asteriskvm"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
60
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
61 " vim: ts=8 sw=2
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
62