From: Mark Michelson Date: Mon, 4 Jun 2012 20:53:43 +0000 (+0000) Subject: Also have vim syntax-highlight type=network. X-Git-Tag: 11.0.0-beta1~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4218dc4e6aa199b9b607a4e62b43172601f6301;p=thirdparty%2Fasterisk.git Also have vim syntax-highlight type=network. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368467 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/editors/asterisk.vim b/contrib/editors/asterisk.vim index 2b435c7427..a96a836adf 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\|phone\|line\|application\)\>$" contains=asteriskTypeType -syn match asteriskTypeType "\<\(peer\|user\|friend\|phone\|line\|application\)\>" contained +syn match asteriskType "^\zstype=\ze\<\(peer\|user\|friend\|phone\|line\|application\|network\)\>$" contains=asteriskTypeType +syn match asteriskTypeType "\<\(peer\|user\|friend\|phone\|line\|application\|network\)\>" 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.*$"