tv vim nix writerName: recognize toFile

This commit is contained in:
tv 2019-08-13 00:22:59 +02:00
parent af518678bf
commit bc7c360b80

View File

@ -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