diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-11 07:54:19 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-11 07:54:19 +0000 |
commit | 37442d52629699d89ef62d315d35efbc0facec21 (patch) | |
tree | 9a628dce9299a88717fc402055910fb432a0b326 /regcomp.pl | |
parent | 24801a4b9a14a56208916a537c4c237993c25186 (diff) | |
download | perl-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 'regcomp.pl')
-rw-r--r-- | regcomp.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regcomp.pl b/regcomp.pl index 97403ba7d4..e7a9d0588c 100644 --- a/regcomp.pl +++ b/regcomp.pl @@ -25,7 +25,8 @@ open OUT, ">$tmp_h"; binmode OUT; print OUT <<EOP; -/* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! +/* -*- buffer-read-only: t -*- + !!!!!!! DO NOT EDIT THIS FILE !!!!!!! This file is built by regcomp.pl from regcomp.sym. Any changes made here will be lost! */ @@ -115,6 +116,7 @@ static const int reg_num = $tot; #endif /* DEBUGGING */ #endif /* REG_COMP_C */ +/* ex: set ro: */ EOP close OUT or die "close $tmp_h: $!"; |