Vim/Neovim syntax highlighting and editor support for the Hew programming language.
lazy.nvim (Neovim)
{ 'hew-lang/vim-hew' }Plug 'hew-lang/vim-hew'packer.nvim (Neovim)
use 'hew-lang/vim-hew'Copy the contents to your Vim runtime directory:
# Vim
mkdir -p ~/.vim && cp -r syntax ftdetect ftplugin indent ~/.vim/
# Neovim
mkdir -p ~/.config/nvim && cp -r syntax ftdetect ftplugin indent ~/.config/nvim/- Full syntax highlighting (keywords, types, actors, supervisors, strings, numbers, comments, operators, attributes)
- Filetype detection for
.hewfiles - Comment formatting (
//,/* */) - Indentation support (cindent-based)
If you have the hew compiler installed, you can format the current buffer with:
:%!hew fmt %Or add an autocommand to format on save:
autocmd BufWritePre *.hew silent! execute ':%!hew fmt %'Run the syntax smoke test with Vim:
vim -Nu NONE -i NONE -n -es -S test/syntax.vimThe fixture covers dotted paths, .{ } imports, and contextual .Variant
forms. Retired syntax is highlighted as an error; the compiler names the
legacy path and turbofish diagnostics E_PATH_LEGACY_SEPARATOR and
E_LEGACY_TURBOFISH; removed glob imports use E_IMPORT_GLOB_REMOVED.
Apache-2.0