diff options
author | tv <tv@krebsco.de> | 2019-08-13 00:22:59 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-08-13 00:26:25 +0200 |
commit | bc7c360b80409cff1bea0fe2c187c43b0eec8269 (patch) | |
tree | 70fa092620f8c7477bda32f4c620fc07596c1dea /tv | |
parent | af518678bf730ee540dc3d3fe922e1f8f4fa1059 (diff) |
tv vim nix writerName: recognize toFile
Diffstat (limited to 'tv')
-rw-r--r-- | tv/5pkgs/vim/nix.nix | 3 |
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 |