summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/vim/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tv/5pkgs/vim/nix.nix')
-rw-r--r--tv/5pkgs/vim/nix.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/5pkgs/vim/nix.nix b/tv/5pkgs/vim/nix.nix
index 61323ab35..4f3f83aaa 100644
--- a/tv/5pkgs/vim/nix.nix
+++ b/tv/5pkgs/vim/nix.nix
@@ -73,7 +73,8 @@ with import <stockholm/lib>;
def = k: ''${k}[ \t\r\n]*='';
writer = k: ''write${k}[^ \t\r\n]*[ \t\r\n]*\("[^"]*"\|[a-z]\+\)'';
writerExt = k: writerName ''[^"]*\.${k}'';
- writerName = k: ''write[^ \t\r\n]*[ \t\r\n]*"${k}"'';
+ writerName = k:
+ ''${alts [''toFile'' ''write[^ \t\r\n]*'']}*[ \t\r\n]*"${k}"'';
in mapAttrsToList (name: {
extraStart ? null,
lang ? name