summaryrefslogtreecommitdiffstats
path: root/tv/2configs/vim.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-06-09 17:02:23 +0200
committertv <tv@krebsco.de>2016-06-10 16:04:55 +0200
commitdcf612c2765225543f832c37149033d9488f6fbe (patch)
tree3ebc4399b25d14bf3a97e785faf66f84e349d545 /tv/2configs/vim.nix
parentce79df9b7d43f3e68fac5de195a1d782e7c140aa (diff)
tv nix.vim: syn clear corrupting sh syntax
Diffstat (limited to 'tv/2configs/vim.nix')
-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 fd3bd8856..d46c3303b 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -269,6 +269,10 @@ let
vim.start = ''write[^ ]* *\"\(\([^\"]*\.\)\?vimrc\|[^\"]*\.vim\)\"'';
})}
+ " Clear syntax that interferes with NixBlock.
+ " TODO redefine NixBlock so sh syntax don't have to be cleared
+ syn clear shOperator shSetList shVarAssign
+
syn region NixBlock
\ matchgroup=NixEnter
\ start="[$]{"