codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: RFC 2614 - An API for Service Location configuration file3" Previous Maintainer: Nikolai Weibull <now@bitwi.se>4" Latest Revision: 2006-04-195 6if exists("b:current_syntax")7 finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn keyword slpconfTodo contained TODO FIXME XXX NOTE14 15syn region slpconfComment display oneline start='^[#;]' end='$'16 \ contains=slpconfTodo,@Spell17 18syn match slpconfBegin display '^'19 \ nextgroup=slpconfTag,20 \ slpconfComment skipwhite21 22syn keyword slpconfTag contained net23 \ nextgroup=slpconfNetTagDot24 25syn match slpconfNetTagDot contained display '.'26 \ nextgroup=slpconfNetTag27 28syn keyword slpconfNetTag contained slp29 \ nextgroup=slpconfNetSlpTagdot30 31syn match slpconfNetSlpTagDot contained display '.'32 \ nextgroup=slpconfNetSlpTag33 34syn keyword slpconfNetSlpTag contained isDA traceDATraffic traceMsg35 \ traceDrop traceReg isBroadcastOnly36 \ passiveDADetection securityEnabled37 \ nextgroup=slpconfBooleanEq,slpconfBooleanHome38 \ skipwhite39 40syn match slpconfBooleanHome contained display41 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'42 \ nextgroup=slpconfBooleanEq skipwhite43 44syn match slpconfBooleanEq contained display '='45 \ nextgroup=slpconfBoolean skipwhite46 47syn keyword slpconfBoolean contained true false TRUE FALSE48 49syn keyword slpconfNetSlpTag contained DAHeartBeat multicastTTL50 \ DAActiveDiscoveryInterval51 \ multicastMaximumWait multicastTimeouts52 \ randomWaitBound MTU maxResults53 \ nextgroup=slpconfIntegerEq,slpconfIntegerHome54 \ skipwhite55 56syn match slpconfIntegerHome contained display57 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'58 \ nextgroup=slpconfIntegerEq skipwhite59 60syn match slpconfIntegerEq contained display '='61 \ nextgroup=slpconfInteger skipwhite62 63syn match slpconfInteger contained display '\<\d\+\>'64 65syn keyword slpconfNetSlpTag contained DAAttributes SAAttributes66 \ nextgroup=slpconfAttrEq,slpconfAttrHome67 \ skipwhite68 69syn match slpconfAttrHome contained display70 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'71 \ nextgroup=slpconfAttrEq skipwhite72 73syn match slpconfAttrEq contained display '='74 \ nextgroup=slpconfAttrBegin skipwhite75 76syn match slpconfAttrBegin contained display '('77 \ nextgroup=slpconfAttrTag skipwhite78 79syn match slpconfAttrTag contained display80 \ '[^* \t_(),\\!<=>~[:cntrl:]]\+'81 \ nextgroup=slpconfAttrTagEq skipwhite82 83syn match slpconfAttrTagEq contained display '='84 \ nextgroup=@slpconfAttrValue skipwhite85 86syn cluster slpconfAttrValueCon contains=slpconfAttrValueSep,slpconfAttrEnd87 88syn cluster slpconfAttrValue contains=slpconfAttrIValue,slpconfAttrSValue,89 \ slpconfAttrBValue,slpconfAttrSSValue90 91syn match slpconfAttrSValue contained display '[^ (),\\!<=>~[:cntrl:]]\+'92 \ nextgroup=@slpconfAttrValueCon skipwhite93 94syn match slpconfAttrSSValue contained display '\\FF\%(\\\x\x\)\+'95 \ nextgroup=@slpconfAttrValueCon skipwhite96 97syn match slpconfAttrIValue contained display '[-]\=\d\+\>'98 \ nextgroup=@slpconfAttrValueCon skipwhite99 100syn keyword slpconfAttrBValue contained true false101 \ nextgroup=@slpconfAttrValueCon skipwhite102 103syn match slpconfAttrValueSep contained display ','104 \ nextgroup=@slpconfAttrValue skipwhite105 106syn match slpconfAttrEnd contained display ')'107 \ nextgroup=slpconfAttrSep skipwhite108 109syn match slpconfAttrSep contained display ','110 \ nextgroup=slpconfAttrBegin skipwhite111 112syn keyword slpconfNetSlpTag contained useScopes typeHint113 \ nextgroup=slpconfStringsEq,slpconfStringsHome114 \ skipwhite115 116syn match slpconfStringsHome contained display117 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'118 \ nextgroup=slpconfStringsEq skipwhite119 120syn match slpconfStringsEq contained display '='121 \ nextgroup=slpconfStrings skipwhite122 123syn match slpconfStrings contained display124 \ '\%([[:digit:][:alpha:]]\|[!-+./:-@[-`{-~-]\|\\\x\x\)\+'125 \ nextgroup=slpconfStringsSep skipwhite126 127syn match slpconfStringsSep contained display ','128 \ nextgroup=slpconfStrings skipwhite129 130syn keyword slpconfNetSlpTag contained DAAddresses131 \ nextgroup=slpconfAddressesEq,slpconfAddrsHome132 \ skipwhite133 134syn match slpconfAddrsHome contained display135 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'136 \ nextgroup=slpconfAddressesEq skipwhite137 138syn match slpconfAddressesEq contained display '='139 \ nextgroup=@slpconfAddresses skipwhite140 141syn cluster slpconfAddresses contains=slpconfFQDNs,slpconfHostnumbers142 143syn match slpconfFQDNs contained display144 \ '\a[[:alnum:]-]*[[:alnum:]]\|\a'145 \ nextgroup=slpconfAddressesSep skipwhite146 147syn match slpconfHostnumbers contained display148 \ '\d\{1,3}\%(\.\d\{1,3}\)\{3}'149 \ nextgroup=slpconfAddressesSep skipwhite150 151syn match slpconfAddressesSep contained display ','152 \ nextgroup=@slpconfAddresses skipwhite153 154syn keyword slpconfNetSlpTag contained serializedRegURL155 \ nextgroup=slpconfStringEq,slpconfStringHome156 \ skipwhite157 158syn match slpconfStringHome contained display159 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'160 \ nextgroup=slpconfStringEq skipwhite161 162syn match slpconfStringEq contained display '='163 \ nextgroup=slpconfString skipwhite164 165syn match slpconfString contained display166 \ '\%([!-+./:-@[-`{-~-]\|\\\x\x\)\+\|[[:digit:][:alpha:]]'167 168syn keyword slpconfNetSlpTag contained multicastTimeouts DADiscoveryTimeouts169 \ datagramTimeouts170 \ nextgroup=slpconfIntegersEq,171 \ slpconfIntegersHome skipwhite172 173syn match slpconfIntegersHome contained display174 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'175 \ nextgroup=slpconfIntegersEq skipwhite176 177syn match slpconfIntegersEq contained display '='178 \ nextgroup=slpconfIntegers skipwhite179 180syn match slpconfIntegers contained display '\<\d\+\>'181 \ nextgroup=slpconfIntegersSep skipwhite182 183syn match slpconfIntegersSep contained display ','184 \ nextgroup=slpconfIntegers skipwhite185 186syn keyword slpconfNetSlpTag contained interfaces187 \ nextgroup=slpconfHostnumsEq,188 \ slpconfHostnumsHome skipwhite189 190syn match slpconfHostnumsHome contained display191 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'192 \ nextgroup=slpconfHostnumsEq skipwhite193 194syn match slpconfHostnumsEq contained display '='195 \ nextgroup=slpconfOHostnumbers skipwhite196 197syn match slpconfOHostnumbers contained display198 \ '\d\{1,3}\%(\.\d\{1,3}\)\{3}'199 \ nextgroup=slpconfHostnumsSep skipwhite200 201syn match slpconfHostnumsSep contained display ','202 \ nextgroup=slpconfOHostnumbers skipwhite203 204syn keyword slpconfNetSlpTag contained locale205 \ nextgroup=slpconfLocaleEq,slpconfLocaleHome206 \ skipwhite207 208syn match slpconfLocaleHome contained display209 \ '\.\d\{1,3}\%(\.\d\{1,3}\)\{3}'210 \ nextgroup=slpconfLocaleEq skipwhite211 212syn match slpconfLocaleEq contained display '='213 \ nextgroup=slpconfLocale skipwhite214 215syn match slpconfLocale contained display '\a\{1,8}\%(-\a\{1,8}\)\='216 217hi def link slpconfTodo Todo218hi def link slpconfComment Comment219hi def link slpconfTag Identifier220hi def link slpconfDelimiter Delimiter221hi def link slpconfNetTagDot slpconfDelimiter222hi def link slpconfNetTag slpconfTag223hi def link slpconfNetSlpTagDot slpconfNetTagDot224hi def link slpconfNetSlpTag slpconfTag225hi def link slpconfHome Special226hi def link slpconfBooleanHome slpconfHome227hi def link slpconfEq Operator228hi def link slpconfBooleanEq slpconfEq229hi def link slpconfBoolean Boolean230hi def link slpconfIntegerHome slpconfHome231hi def link slpconfIntegerEq slpconfEq232hi def link slpconfInteger Number233hi def link slpconfAttrHome slpconfHome234hi def link slpconfAttrEq slpconfEq235hi def link slpconfAttrBegin slpconfDelimiter236hi def link slpconfAttrTag slpconfTag237hi def link slpconfAttrTagEq slpconfEq238hi def link slpconfAttrIValue slpconfInteger239hi def link slpconfAttrSValue slpconfString240hi def link slpconfAttrBValue slpconfBoolean241hi def link slpconfAttrSSValue slpconfString242hi def link slpconfSeparator slpconfDelimiter243hi def link slpconfAttrValueSep slpconfSeparator244hi def link slpconfAttrEnd slpconfAttrBegin245hi def link slpconfAttrSep slpconfSeparator246hi def link slpconfStringsHome slpconfHome247hi def link slpconfStringsEq slpconfEq248hi def link slpconfStrings slpconfString249hi def link slpconfStringsSep slpconfSeparator250hi def link slpconfAddrsHome slpconfHome251hi def link slpconfAddressesEq slpconfEq252hi def link slpconfFQDNs String253hi def link slpconfHostnumbers Number254hi def link slpconfAddressesSep slpconfSeparator255hi def link slpconfStringHome slpconfHome256hi def link slpconfStringEq slpconfEq257hi def link slpconfString String258hi def link slpconfIntegersHome slpconfHome259hi def link slpconfIntegersEq slpconfEq260hi def link slpconfIntegers slpconfInteger261hi def link slpconfIntegersSep slpconfSeparator262hi def link slpconfHostnumsHome slpconfHome263hi def link slpconfHostnumsEq slpconfEq264hi def link slpconfOHostnumbers slpconfHostnumbers265hi def link slpconfHostnumsSep slpconfSeparator266hi def link slpconfLocaleHome slpconfHome267hi def link slpconfLocaleEq slpconfEq268hi def link slpconfLocale slpconfString269 270let b:current_syntax = "slpconf"271 272let &cpo = s:cpo_save273unlet s:cpo_save274 