rpcgen.vim (1762B)
1 " Vim syntax file 2 " Language: rpcgen 3 " Maintainer: This runtime file is looking for a new maintainer. 4 " Former Maintainer: Charles E. Campbell 5 " Last Change: Aug 31, 2016 6 " 2024 Feb 19 by Vim Project (announce adoption) 7 " Version: 13 8 " Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_RPCGEN 9 10 if exists("b:current_syntax") 11 finish 12 endif 13 14 " Read the C syntax to start with 15 runtime! syntax/c.vim 16 17 syn keyword rpcProgram program skipnl skipwhite nextgroup=rpcProgName 18 syn match rpcProgName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcProgZone 19 syn region rpcProgZone contained matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\(\d\+\|0x[23]\x\{7}\)\s*;"me=e-1 contains=rpcVersion,cComment,rpcProgNmbrErr 20 syn keyword rpcVersion contained version skipnl skipwhite nextgroup=rpcVersName 21 syn match rpcVersName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcVersZone 22 syn region rpcVersZone contained matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\d\+\s*;"me=e-1 contains=cType,cStructure,cStorageClass,rpcDecl,rpcProcNmbr,cComment 23 syn keyword rpcDecl contained string 24 syn match rpcProcNmbr contained "=\s*\d\+;"me=e-1 25 syn match rpcProgNmbrErr contained "=\s*0x[^23]\x*"ms=s+1 26 syn match rpcPassThru "^\s*%.*$" 27 28 " Define the default highlighting. 29 if !exists("skip_rpcgen_syntax_inits") 30 31 hi def link rpcProgName rpcName 32 hi def link rpcProgram rpcStatement 33 hi def link rpcVersName rpcName 34 hi def link rpcVersion rpcStatement 35 36 hi def link rpcDecl cType 37 hi def link rpcPassThru cComment 38 39 hi def link rpcName Special 40 hi def link rpcProcNmbr Delimiter 41 hi def link rpcProgNmbrErr Error 42 hi def link rpcStatement Statement 43 44 endif 45 46 let b:current_syntax = "rpcgen" 47 48 " vim: ts=8