A set of vim syntax files for highlighting the various Html templating languages in Haskell
VimL Haskell
Permalink
Failed to load latest commit information.
after/syntax Add MIT license, closes #15 Jun 15, 2014
ftdetect Add MIT license, closes #15 Jun 15, 2014
ftplugin Add cassius/lucius ftplugin for CSS omnicompletion Nov 12, 2014
syntax Highlight un-quoted attribute values Jul 5, 2015
test Highlight un-quoted attribute values Jul 5, 2015
LICENSE Add MIT license, closes #15 Jun 15, 2014
README.md Attempt to fix dead screenshot link Nov 28, 2015
screenshot.png

README.md

Shakespeare Syntax

A collection of vim syntax files for working in the shakespeare templating languages used by Yesod.

Provided is each syntax/$language.vim file for external templates as well as an after/syntax/haskell.vim which will properly highlight quasi-quoted blocks inside a haskell source file.

Installation

  • Use Vundle
  • Add Plugin 'pbrisbin/vim-syntax-shakespeare'

Options

The following options can be added to your ~/.vimrc in order to to change the behaviour of this plugin.

Allow one-liner QQs even if they have invalid nesting:

let g:hamlet_prevent_invalid_nesting = 0

Don't highlight empty space at the end of lines:

let g:hamlet_highlight_trailing_space = 0

Todo

  • javascript inside a script tag is difficult due to the lack of a </script> region-end

  • highlight in-line html tags added as raw

  • nested blocks in lucius

  • bug in lucius unquoted interpolations

Screenshots

Embedded hamlet in a haskell source file:

Screenshot