annotate runtime/syntax/asteriskvm.vim @ 26480:cf986610be6a v8.2.3770

patch 8.2.3770: new compiler warnings from clang-12 and clang-13 Commit: https://github.com/vim/vim/commit/dee78e1ce857985c06ff18e20daeadfe1622b8ae Author: ichizok <gclient.gaap@gmail.com> Date: Thu Dec 9 21:08:01 2021 +0000 patch 8.2.3770: new compiler warnings from clang-12 and clang-13 Problem: New compiler warnings from clang-12 and clang-13. Solution: Adjust CI and suppress some warnings. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9314)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Dec 2021 22:15:03 +0100
parents 46763b01cd9a
children
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
792
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
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
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
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
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
47
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
48 let b:current_syntax = "asteriskvm"
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
49
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
50 " vim: ts=8 sw=2
860b73800cd7 updated for version 7.0231
vimboss
parents:
diff changeset
51