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: run vim parser with safety options
[sheet.git]
/
tools
/
mkdigraphs-vim
diff --git
a/tools/mkdigraphs-vim
b/tools/mkdigraphs-vim
index c1dcbe44e45ae09620f9a11262d587a700a33c6c..2137889aaceebe8fbd50ec411cac4e42ffbbce4d 100755
(executable)
--- a/
tools/mkdigraphs-vim
+++ b/
tools/mkdigraphs-vim
@@
-9,7
+9,9
@@
then
exit 64 # EX_USAGE
fi
exit 64 # EX_USAGE
fi
-vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
+VIM='vim -RXZ -i NONE -u NONE -N -n'
+
+$VIM -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
if ($. == 1) { # head
say "# digraphs list from vim version ", m/(\d+)\s*\z/;
say "+{";
if ($. == 1) { # head
say "# digraphs list from vim version ", m/(\d+)\s*\z/;
say "+{";