Mercurial > vim
annotate runtime/syntax/rpcgen.vim @ 32041:7aeaf20e2ba5 v9.0.1352
patch 9.0.1352: "ignore" files are outdated
Commit: https://github.com/vim/vim/commit/a63fd8232895bbf6751087d90fd15c8ea45f1cf0
Author: K.Takata <kentkt@csc.jp>
Date: Fri Feb 24 17:16:41 2023 +0000
patch 9.0.1352: "ignore" files are outdated
Problem: "ignore" files are outdated.
Solution: Update "ignore" files. (Ken Takata, closes https://github.com/vim/vim/issues/12056)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Feb 2023 18:30:04 +0100 |
parents | 8edf0aeb71b9 |
children | 02bd0fe77c68 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: rpcgen | |
19180 | 3 " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
4 " Last Change: Aug 31, 2016 |
19180 | 5 " Version: 13 |
6479 | 6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_RPCGEN |
7 | 7 |
6484 | 8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 " Read the C syntax to start with | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6484
diff
changeset
|
13 runtime! syntax/c.vim |
7 | 14 |
15 syn keyword rpcProgram program skipnl skipwhite nextgroup=rpcProgName | |
16 syn match rpcProgName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcProgZone | |
17 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 | |
18 syn keyword rpcVersion contained version skipnl skipwhite nextgroup=rpcVersName | |
19 syn match rpcVersName contained "\<\i\I*\>" skipnl skipwhite nextgroup=rpcVersZone | |
20 syn region rpcVersZone contained matchgroup=Delimiter start="{" matchgroup=Delimiter end="}\s*=\s*\d\+\s*;"me=e-1 contains=cType,cStructure,cStorageClass,rpcDecl,rpcProcNmbr,cComment | |
21 syn keyword rpcDecl contained string | |
22 syn match rpcProcNmbr contained "=\s*\d\+;"me=e-1 | |
23 syn match rpcProgNmbrErr contained "=\s*0x[^23]\x*"ms=s+1 | |
24 syn match rpcPassThru "^\s*%.*$" | |
25 | |
26 " Define the default highlighting. | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
27 if !exists("skip_rpcgen_syntax_inits") |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6484
diff
changeset
|
28 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
29 hi def link rpcProgName rpcName |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link rpcProgram rpcStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
31 hi def link rpcVersName rpcName |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
32 hi def link rpcVersion rpcStatement |
7 | 33 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
34 hi def link rpcDecl cType |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
35 hi def link rpcPassThru cComment |
7 | 36 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 hi def link rpcName Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link rpcProcNmbr Delimiter |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link rpcProgNmbrErr Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link rpcStatement Statement |
7 | 41 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 endif |
7 | 43 |
44 let b:current_syntax = "rpcgen" | |
45 | |
46 " vim: ts=8 |