Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.24 KB

File metadata and controls

32 lines (23 loc) · 1.24 KB

urweb.vim

Colorful vim syntax files for Ur/Web.

The syntax is mostly taken from Ur/Web's lexer.

screenshot of an Ur/Web file open in vim

The font is Iosevka and the colorscheme is gruvbox.

Install

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

Features

  • 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.

Known issues

  • 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