robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:f9ca139e3aa1 (#27554)9bb046d1be

master
1.7 KiB48 linesraw
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")
11  finish
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-1 contains=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-1 contains=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
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
44endif
45
46let b:current_syntax = "rpcgen"
47
48" vim: ts=8