Mercurial > vim
annotate runtime/syntax/asteriskvm.vim @ 17230:eaf422739e26
Added tag v8.1.1614 for changeset f1c7b7a4d9e40332453c9b44ecc3c51a763730b7
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Jul 2019 22:15:06 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
792 | 1 " Vim syntax file |
2 " Language: Asterisk voicemail config file | |
3 " Maintainer: Tilghman Lesher (Corydon76) | |
4 " Last Change: 2006 Mar 21 | |
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 | 9 finish |
10 endif | |
11 | |
12 syn sync clear | |
13 syn sync fromstart | |
14 | |
15 | |
16 syn keyword asteriskvmTodo TODO contained | |
17 syn match asteriskvmComment ";.*" contains=asteriskvmTodo | |
18 syn match asteriskvmContext "\[.\{-}\]" | |
19 | |
20 " ZoneMessages | |
21 syn match asteriskvmZone "^[[:alnum:]]\+\s*=>\?\s*[[:alnum:]/_]\+|.*$" contains=zoneName,zoneDef | |
22 syn match zoneName "=\zs[[:alnum:]/_]\+\ze" contained | |
23 syn match zoneDef "|\zs.*\ze$" contained | |
24 | |
25 syn match asteriskvmSetting "\<\(format\|serveremail\|minmessage\|maxmessage\|maxgreet\|skipms\|maxsilence\|silencethreshold\|maxlogins\)=" | |
26 syn match asteriskvmSetting "\<\(externnotify\|externpass\|directoryintro\|charset\|adsi\(fdn\|sec\|ver\)\|\(pager\)\?fromstring\|email\(subject\|body\|cmd\)\|tz\|cidinternalcontexts\|saydurationm\|dialout\|callback\)=" | |
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\)" | |
28 | |
29 " Individual mailbox definitions | |
30 syn match asteriskvmMailbox "^[[:digit:]]\+\s*=>\?\s*[[:digit:]]\+\(,[^,]*\(,[^,]*\(,[^,]*\(,[^,]*\)\?\)\?\)\?\)\?" contains=mailboxEmail,asteriskvmSetting,asteriskvmSettingBool,comma | |
31 syn match mailboxEmail ",\zs[^@=,]*@[[:alnum:]\-\.]\+\.[[:alpha:]]\{2,10}\ze" contains=comma | |
32 syn match comma "[,|]" contained | |
33 | |
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 |
792 | 36 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 hi def link asteriskvmComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link asteriskvmContext Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link asteriskvmZone Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link zoneName String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link zoneDef String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link asteriskvmSetting Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link asteriskvmSettingBool Type |
792 | 44 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link asteriskvmMailbox Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link mailboxEmail String |
792 | 47 |
48 let b:current_syntax = "asteriskvm" | |
49 | |
50 " vim: ts=8 sw=2 | |
51 |