comparison runtime/syntax/asterisk.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 3af822eb4da5
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
3 " Maintainer: Jean Aunis <jean.aunis@yahoo.fr> 3 " Maintainer: Jean Aunis <jean.aunis@yahoo.fr>
4 " Previous Maintainer: brc007 4 " Previous Maintainer: brc007
5 " Updated for 1.2 by Tilghman Lesher (Corydon76) 5 " Updated for 1.2 by Tilghman Lesher (Corydon76)
6 " Last Change: 2015 Feb 27 6 " Last Change: 2015 Feb 27
7 " version 0.4 7 " version 0.4
8 " 8
9 if version < 600 9 " quit when a syntax file was already loaded
10 syntax clear 10 if exists("b:current_syntax")
11 elseif exists("b:current_syntax")
12 finish 11 finish
13 endif 12 endif
14 13
15 syn sync clear 14 syn sync clear
16 syn sync fromstart 15 syn sync fromstart
55 syn match asteriskSetting "^bindaddr\s*=\s*\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}$" contains=asteriskIP 54 syn match asteriskSetting "^bindaddr\s*=\s*\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}$" contains=asteriskIP
56 syn match asteriskSetting "^port\s*=\s*\d\{1,5}\s*$" contains=asteriskPort 55 syn match asteriskSetting "^port\s*=\s*\d\{1,5}\s*$" contains=asteriskPort
57 syn match asteriskSetting "^host\s*=\s*\(dynamic\|\(\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)\|\([[:alnum:]][[:alnum:]\-\.]*\.[[:alpha:]]{2,10}\)\)" contains=asteriskIP,asteriskHostname 56 syn match asteriskSetting "^host\s*=\s*\(dynamic\|\(\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)\|\([[:alnum:]][[:alnum:]\-\.]*\.[[:alpha:]]{2,10}\)\)" contains=asteriskIP,asteriskHostname
58 57
59 " Define the default highlighting. 58 " Define the default highlighting.
60 " For version 5.7 and earlier: only when not done already 59 " Only when an item doesn't have highlighting yet
61 " For version 5.8 and later: only when an item doesn't have highlighting yet 60 command -nargs=+ HiLink hi def link <args>
62 if version >= 508 || !exists("did_conf_syntax_inits")
63 if version < 508
64 let did_conf_syntax_inits = 1
65 command -nargs=+ HiLink hi link <args>
66 else
67 command -nargs=+ HiLink hi def link <args>
68 endif
69 61
70 HiLink asteriskComment Comment 62 HiLink asteriskComment Comment
71 HiLink asteriskExten String 63 HiLink asteriskExten String
72 HiLink asteriskContext Preproc 64 HiLink asteriskContext Preproc
73 HiLink asteriskPattern Type 65 HiLink asteriskPattern Type
74 HiLink asteriskApp Statement 66 HiLink asteriskApp Statement
75 HiLink asteriskInclude Preproc 67 HiLink asteriskInclude Preproc
76 HiLink asteriskIncludeBad Error 68 HiLink asteriskIncludeBad Error
77 HiLink asteriskPriority Preproc 69 HiLink asteriskPriority Preproc
78 HiLink asteriskLabel Type 70 HiLink asteriskLabel Type
79 HiLink asteriskVar String 71 HiLink asteriskVar String
80 HiLink asteriskVarLen Function 72 HiLink asteriskVarLen Function
81 HiLink asteriskExp Type 73 HiLink asteriskExp Type
82 HiLink asteriskCodecsPermit Preproc 74 HiLink asteriskCodecsPermit Preproc
83 HiLink asteriskCodecs String 75 HiLink asteriskCodecs String
84 HiLink asteriskType Statement 76 HiLink asteriskType Statement
85 HiLink asteriskTypeType Type 77 HiLink asteriskTypeType Type
86 HiLink asteriskAuth String 78 HiLink asteriskAuth String
87 HiLink asteriskAuthType Type 79 HiLink asteriskAuthType Type
88 HiLink asteriskIPRange Identifier 80 HiLink asteriskIPRange Identifier
89 HiLink asteriskIP Identifier 81 HiLink asteriskIP Identifier
90 HiLink asteriskPort Identifier 82 HiLink asteriskPort Identifier
91 HiLink asteriskHostname Identifier 83 HiLink asteriskHostname Identifier
92 HiLink asteriskSetting Statement 84 HiLink asteriskSetting Statement
93 HiLink asteriskError Error 85 HiLink asteriskError Error
94 delcommand HiLink 86 delcommand HiLink
95 endif 87
96 let b:current_syntax = "asterisk" 88 let b:current_syntax = "asterisk"
97 " vim: ts=8 sw=2 89 " vim: ts=8 sw=2
98 90