diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-06-04 20:51:17 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-06-04 20:51:17 +0000 |
commit | 005661bfdf72c28473894ff6a64507deb32c0bb0 (patch) | |
tree | 646af62b026029f2cdd381c038253ff060d13f51 | |
parent | c6a2cbab1930c12fdfe04995adf5326cd96c0e01 (diff) |
Add vim syntax highlighting for type=line, type=phone, and type=application.
(closes issue ASTERISK-19800)
Reported by: Billy Chia
Patches:
asterisk.vim.patch uploaded by Billy Chia (license #6381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | contrib/editors/asterisk.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/editors/asterisk.vim b/contrib/editors/asterisk.vim index 217fe809c..2b435c742 100644 --- a/contrib/editors/asterisk.vim +++ b/contrib/editors/asterisk.vim @@ -39,8 +39,8 @@ syn region asteriskExp matchgroup=asteriskExpStart start="\$\[" syn match asteriskCodecsPermit "^\s*\(allow\|disallow\)\s*=\s*.*$" contains=asteriskCodecs syn match asteriskCodecs "\(g723\|gsm\|ulaw\|alaw\|g726\|adpcm\|slin\|lpc10\|g729\|speex\|speex16\|ilbc\|all\s*$\)" syn match asteriskError "^\(type\|auth\|permit\|deny\|bindaddr\|host\)\s*=.*$" -syn match asteriskType "^\zstype=\ze\<\(peer\|user\|friend\)\>$" contains=asteriskTypeType -syn match asteriskTypeType "\<\(peer\|user\|friend\)\>" contained +syn match asteriskType "^\zstype=\ze\<\(peer\|user\|friend\|phone\|line\|application\)\>$" contains=asteriskTypeType +syn match asteriskTypeType "\<\(peer\|user\|friend\|phone\|line\|application\)\>" contained syn match asteriskAuth "^\zsauth\s*=\ze\s*\<\(md5\|rsa\|plaintext\)\>$" contains=asteriskAuthType syn match asteriskAuthType "\<\(md5\|rsa\|plaintext\)\>" contained syn match asteriskAuth "^\zs\(secret\|inkeys\|outkey\)\s*=\ze.*$" |