media formats: re-architect handling of media for performance improvements
[asterisk/asterisk.git] / contrib / editors / asterisk.vim
index d80c4fa..a96a836 100644 (file)
@@ -37,10 +37,10 @@ syn match       asteriskFunction        "\${_\{0,2}[[:alpha:]][[:alnum:]_]*(.*)}
 syn match       asteriskFunction        "(\zs[[:alpha:]][[:alnum:]_]*(.\{-})\ze=" contains=asteriskVar,asteriskFunction,asteriskExp
 syn region      asteriskExp             matchgroup=asteriskExpStart start="\$\[" end="]" contains=asteriskVar,asteriskFunction,asteriskExp
 syn match       asteriskCodecsPermit    "^\s*\(allow\|disallow\)\s*=\s*.*$" contains=asteriskCodecs
-syn match       asteriskCodecs          "\(g723\|gsm\|ulaw\|alaw\|g726\|adpcm\|slin\|lpc10\|g729\|speex\|ilbc\|all\s*$\)"
+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\|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.*$"
@@ -75,8 +75,10 @@ if version >= 508 || !exists("did_conf_syntax_inits")
   HiLink        asteriskPriority        Preproc
   HiLink        asteriskLabel           Type
   HiLink        asteriskVar             String
+  HiLink        asteriskVarStart        String
   HiLink        asteriskFunction        Function
   HiLink        asteriskExp             Type
+  HiLink        asteriskExpStart        Type
   HiLink        asteriskCodecsPermit    Preproc
   HiLink        asteriskCodecs          String
   HiLink        asteriskType            Statement