robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
9bb046d1be
master
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 10if exists ( "b:current_syntax" ) 11finish 12endif 13 14" Read the C syntax to start with 15runtime ! syntax/c.vim 16 17syn keyword rpcProgram program skipnl skipwhite nextgroup = rpcProgName 18syn match rpcProgName contained "\<\i\I * \> "skipnl skipwhite nextgroup = rpcProgZone 19syn region rpcProgZone contained matchgroup = Delimiter start = "{ "matchgroup = Delimiter end = "}\s * =\s * \(\d\+\|0x [ 23 ] \x\{7}\)\s * ; "me= e-1contains = rpcVersion , cComment , rpcProgNmbrErr 20syn keyword rpcVersion contained version skipnl skipwhite nextgroup = rpcVersName 21syn match rpcVersName contained "\<\i\I * \> "skipnl skipwhite nextgroup = rpcVersZone 22syn region rpcVersZone contained matchgroup = Delimiter start = "{ "matchgroup = Delimiter end = "}\s * =\s * \d\+\s * ; "me= e-1contains = cType , cStructure , cStorageClass , rpcDecl , rpcProcNmbr , cComment 23syn keyword rpcDecl contained string 24syn match rpcProcNmbr contained "=\s * \d\+; "me= e-1 25syn match rpcProgNmbrErr contained "=\s * 0x [ ^23 ] \x * "ms= s+1 26syn match rpcPassThru "^\s * %. * $ " 27 28" Define the default highlighting. 29if ! exists ( "skip_rpcgen_syntax_inits" ) 30 31hi def link rpcProgName rpcName 32hi def link rpcProgram rpcStatement 33hi def link rpcVersName rpcName 34hi def link rpcVersion rpcStatement 35 36hi def link rpcDecl cType 37hi def link rpcPassThru cComment 38 39hi def link rpcName Special 40hi def link rpcProcNmbr Delimiter 41hi def link rpcProgNmbrErr Error 42hi def link rpcStatement Statement 43 44endif 45 46let b: current_syntax = "rpcgen" 47 48" vim: ts=8