mirror of
https://github.com/zap-proto/vim.git
synced 2026-10-30 15:03:23 +00:00
main
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.
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.
Languages
Vim Script
100%