git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
digraphs: ignore ansi commands in vim version output
[sheet.git]
/
tools
/
mkdigraphs-vim
diff --git
a/tools/mkdigraphs-vim
b/tools/mkdigraphs-vim
index b9ab42668896fa77eea51b844da490e904282025..c1dcbe44e45ae09620f9a11262d587a700a33c6c 100755
(executable)
--- a/
tools/mkdigraphs-vim
+++ b/
tools/mkdigraphs-vim
@@
-1,6
+1,6
@@
#!/bin/sh
#!/bin/sh
-VERSION=1.0
1
+VERSION=1.0
2
if [ "$#" -ne 0 ]
then
if [ "$#" -ne 0 ]
then
@@
-11,7
+11,7
@@
fi
vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
if ($. == 1) { # head
vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
if ($. == 1) { # head
- say "# digraphs list from vim version ",
s/\s*\z//r
;
+ say "# digraphs list from vim version ",
m/(\d+)\s*\z/
;
say "+{";
} else { # body
while (/\G(\S\S) (.[^ ]*) +([0-9]+)\s+/g) {
say "+{";
} else { # body
while (/\G(\S\S) (.[^ ]*) +([0-9]+)\s+/g) {