digraphs: warn if vim returns insufficient input
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 22 Feb 2015 02:07:30 +0000 (03:07 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 9 Jun 2015 03:43:42 +0000 (05:43 +0200)
tools/mkdigraphs-vim

index 6805f7f0a27a98bfbb2f5f57450313fd9e5969d2..a94812fe942f52a8eb4a513e3c28906e3ffa6fc5 100755 (executable)
@@ -10,5 +10,6 @@ vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
                say "q{$1} => $3," while /\G(\S\S) (.[^ ]*) +([0-9]+)\s+/g;
        } END { # foot
                say "}";
+               exit warn "only $. lines of :digraphs output\n" if $. < 6;
        }
 '