summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-05-25 00:39:17 +0200
committertv <tv@krebsco.de>2016-05-25 00:46:59 +0200
commit367a434f046e800691216fb9bd49c00bfe3d7fad (patch)
treec1f9f294f6cc80bf8b19a056ad2c841c877da40b /tv
parent0462b01127a45ca44c9a8b1821c05ecd6fdaa2ee (diff)
tv nix.vim: admit Haskell comments
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/vim.nix4
1 files changed, 4 insertions, 0 deletions
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"
''}