From bd64bc1eb05cc95a32165288481d9ff9be4f33c8 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(+) diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6e2059484..6eefca307 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