[asterisk-commits] mmichelson: trunk r368466 - /trunk/contrib/editors/asterisk.vim

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 4 15:51:21 CDT 2012


Author: mmichelson
Date: Mon Jun  4 15:51:17 2012
New Revision: 368466

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368466
Log:
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)


Modified:
    trunk/contrib/editors/asterisk.vim

Modified: trunk/contrib/editors/asterisk.vim
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/editors/asterisk.vim?view=diff&rev=368466&r1=368465&r2=368466
==============================================================================
--- trunk/contrib/editors/asterisk.vim (original)
+++ trunk/contrib/editors/asterisk.vim Mon Jun  4 15:51:17 2012
@@ -39,8 +39,8 @@
 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.*$"




More information about the asterisk-commits mailing list