From 367a434f046e800691216fb9bd49c00bfe3d7fad Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 25 May 2016 00:39:17 +0200 Subject: tv nix.vim: admit Haskell comments --- tv/2configs/vim.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tv/2configs/vim.nix') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6e20594..6eefca3 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -111,6 +111,10 @@ let syn match String /"\([^\\"]\|\\.\)*"/ syn match Comment /\(^\|\s\)#.*/ + " Haskell comments + syn region Comment start=/\(^\|\s\){-#/ end=/#-}/ + syn match Comment /\(^\|\s\)--.*/ + let b:current_syntax = "nix" ''} -- cgit v1.2.3