summaryrefslogtreecommitdiff
path: root/keywords.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-11 07:54:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-11 07:54:19 +0000
commit37442d52629699d89ef62d315d35efbc0facec21 (patch)
tree9a628dce9299a88717fc402055910fb432a0b326 /keywords.pl
parent24801a4b9a14a56208916a537c4c237993c25186 (diff)
downloadperl-37442d52629699d89ef62d315d35efbc0facec21.tar.gz
Include vim/emacs modelines in generated files to open them
in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
Diffstat (limited to 'keywords.pl')
-rwxr-xr-xkeywords.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/keywords.pl b/keywords.pl
index b4b048b08a..fe745d470b 100755
--- a/keywords.pl
+++ b/keywords.pl
@@ -7,7 +7,8 @@ binmode KW;
select KW;
print <<EOM;
-/*
+/* -*- buffer-read-only: t -*-
+ *
* keywords.h
*
* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
@@ -33,6 +34,8 @@ while (<DATA>) {
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
+print KW "\n/* ex: set ro: */\n";
+
close KW or die "Error closing keywords.h: $!";
###########################################################################