Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
slpreg.vim123 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:             RFC 2614 - An API for Service Location registration 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 slpregTodo          contained TODO FIXME XXX NOTE14 15syn region  slpregComment       display oneline start='^[#;]' end='$'16                                \ contains=slpregTodo,@Spell17 18syn match   slpregBegin         display '^'19                                \ nextgroup=slpregServiceURL,20                                \ slpregComment21 22syn match   slpregServiceURL    contained display 'service:'23                                \ nextgroup=slpregServiceType24 25syn match   slpregServiceType   contained display '\a[[:alpha:][:digit:]+-]*\%(\.\a[[:alpha:][:digit:]+-]*\)\=\%(:\a[[:alpha:][:digit:]+-]*\)\='26                                \ nextgroup=slpregServiceSAPCol27 28syn match   slpregServiceSAPCol contained display ':'29                                \ nextgroup=slpregSAP30 31syn match   slpregSAP           contained '[^,]\+'32                                \ nextgroup=slpregLangSep33"syn match   slpregSAP           contained display '\%(//\%(\%([[:alpha:][:digit:]$-_.~!*\'(),+;&=]*@\)\=\%([[:alnum:]][[:alnum:]-]*[[:alnum:]]\|[[:alnum:]]\.\)*\%(\a[[:alnum:]-]*[[:alnum:]]\|\a\)\%(:\d\+\)\=\)\=\|/at/\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}:\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\|/ipx/\x\{8}:\x\{12}:\x\{4}\)\%(/\%([[:alpha:][:digit:]$-_.~!*\'()+;?:@&=+]\|\\\x\x\)*\)*\%(;[^()\\!<=>~[:cntrl:]* \t_]\+\%(=[^()\\!<=>~[:cntrl:] ]\+\)\=\)*'34 35syn match   slpregLangSep       contained display ','36                                \ nextgroup=slpregLang37 38syn match   slpregLang          contained display '\a\{1,8}\%(-\a\{1,8\}\)\='39                                \ nextgroup=slpregLTimeSep40 41syn match   slpregLTimeSep      contained display ','42                                \ nextgroup=slpregLTime43 44syn match   slpregLTime         contained display '\d\{1,5}'45                                \ nextgroup=slpregType,slpregUNewline46 47syn match   slpregType          contained display '\a[[:alpha:][:digit:]+-]*'48                                \ nextgroup=slpregUNewLine49 50syn match   slpregUNewLine      contained '\s*\n'51                                \ nextgroup=slpregScopes,slpregAttrList skipnl52 53syn keyword slpregScopes        contained scopes54                                \ nextgroup=slpregScopesEq55 56syn match   slpregScopesEq      contained '=' nextgroup=slpregScopeName57 58syn match   slpregScopeName     contained '[^(),\\!<=>[:cntrl:];*+ ]\+'59                                \ nextgroup=slpregScopeNameSep,60                                \ slpregScopeNewline61 62syn match   slpregScopeNameSep  contained ','63                                \ nextgroup=slpregScopeName64 65syn match   slpregScopeNewline  contained '\s*\n'66                                \ nextgroup=slpregAttribute skipnl67 68syn match   slpregAttribute     contained '[^(),\\!<=>[:cntrl:]* \t_]\+'69                                \ nextgroup=slpregAttributeEq,70                                \ slpregScopeNewline71 72syn match   slpregAttributeEq   contained '='73                                \ nextgroup=@slpregAttrValue74 75syn cluster slpregAttrValueCon  contains=slpregAttribute,slpregAttrValueSep76 77syn cluster slpregAttrValue     contains=slpregAttrIValue,slpregAttrSValue,78                                \ slpregAttrBValue,slpregAttrSSValue79 80syn match   slpregAttrSValue    contained display '[^(),\\!<=>~[:cntrl:]]\+'81                                \ nextgroup=@slpregAttrValueCon skipwhite skipnl82 83syn match   slpregAttrSSValue   contained display '\\FF\%(\\\x\x\)\+'84                                \ nextgroup=@slpregAttrValueCon skipwhite skipnl85 86syn match   slpregAttrIValue    contained display '[-]\=\d\+\>'87                                \ nextgroup=@slpregAttrValueCon skipwhite skipnl88 89syn keyword slpregAttrBValue    contained true false90                                \ nextgroup=@slpregAttrValueCon skipwhite skipnl91 92syn match   slpregAttrValueSep  contained display ','93                                \ nextgroup=@slpregAttrValue skipwhite skipnl94 95hi def link slpregTodo          Todo96hi def link slpregComment       Comment97hi def link slpregServiceURL    Type98hi def link slpregServiceType   slpregServiceURL99hi def link slpregServiceSAPCol slpregServiceURL100hi def link slpregSAP           slpregServiceURL101hi def link slpregDelimiter     Delimiter102hi def link slpregLangSep       slpregDelimiter103hi def link slpregLang          String104hi def link slpregLTimeSep      slpregDelimiter105hi def link slpregLTime         Number106hi def link slpregType          Type107hi def link slpregScopes        Identifier108hi def link slpregScopesEq      Operator109hi def link slpregScopeName     String110hi def link slpregScopeNameSep  slpregDelimiter111hi def link slpregAttribute     Identifier112hi def link slpregAttributeEq   Operator113hi def link slpregAttrSValue    String114hi def link slpregAttrSSValue   slpregAttrSValue115hi def link slpregAttrIValue    Number116hi def link slpregAttrBValue    Boolean117hi def link slpregAttrValueSep  slpregDelimiter118 119let b:current_syntax = "slpreg"120 121let &cpo = s:cpo_save122unlet s:cpo_save123 
codekingpro/portable-devtools · Team Ai