Colorful vim syntax files for Ur/Web.
The syntax is mostly taken from Ur/Web's lexer.
The font is Iosevka and the colorscheme is gruvbox.
I use Pathogen, so that's what these instructions are for. Feel free to contribute with more.
First of all, install Pathogen.
cd ~/.vim/bundle
git clone https://github.com/steinuil/urweb.vim
- More colors and colored elements than the other syntax files
- (Supposedly) correct syntax highlighting
- XML fragments highlighting (using vim's XML highlighter)
- Limited indentation support
This package currently just improves the looks. If you want features, try vim-addon-urweb.
- No differentiation between signature and implementation regions
- Possible weird behavior with single-quoted string literals
Example:
1'string
is accepted by the compiler, but highlighted incorrectly in vim. - No real recognition of SQL regions