zeekay 5c1a7fe11b syntax: highlight ZAP-native whitespace dialect (lowercase types + package/import)
The grammar only covered the Cap'n Proto-derived dialect (PascalCase UInt32,
@0x file-ids, braces). Add the zap-native whitespace-significant types
(u8..u64/i8..i64/f32/f64/text/bytes/void/bool/list/data, bytes_fixed) as both
contained (in :type regions) and standalone (the 'name u32 @4' offside form),
plus the package/import keywords. Both dialects now highlight.
2026-06-22 07:35:17 -07:00
2018-12-06 21:39:09 -06:00

About

Vim syntax highlighting, folding and (simple) indentation rules for ZAP schema files (.zap, and .capnp for back-compat).

ZAP is a fork of Cap'n Proto that stays wire- and library-compatible, so this plugin highlights both .zap and .capnp schemas.

Install

Pathogen

git clone https://github.com/zap-proto/vim.git ~/.vim/bundle/vim-zap

Vundle

Add the following to $MYVIMRC (after call vundle#rc()):

Plugin 'zap-proto/vim'

Contributing

Docs: ZAP for Vim / Neovim · part of the ZAP Protocol

If you have any ideas, feel free to open an issue and/or pull request!

Authors

License

See the LICENSE file in this repository.

S
Description
ZAP schema syntax for Vim / Neovim
Readme
47 KiB
Languages
Vim Script 100%