DTRT with underscores

This commit is contained in:
cgd 1994-02-25 03:58:53 +00:00
parent 49db93fa54
commit 22702e6911
1 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@
# @(#)makewhatis.sed 5.5 (Berkeley) 4/17/91
#
/^[a-zA-Z][a-zA-Z0-9]*(\([a-zA-Z0-9]*\).*/ {
s;^[a-zA-Z0-9]*(\([a-zA-Z0-9]*\).*;\1;
/^[a-zA-Z_][a-zA-Z_0-9]*(\([a-zA-Z_0-9]*\).*/ {
s;^[a-zA-Z_0-9]*(\([a-zA-Z_0-9]*\).*;\1;
h
d
}
@ -58,7 +58,7 @@
/-/!d
s;.;;g
s;\([a-z][A-z]\)-[ ][ ]*;\1;
s;\([a-zA-Z0-9,]\)[ ][ ]*;\1 ;g
s;[^a-zA-Z0-9]*\([a-zA-Z0-9]*\)[^a-zA-Z0-9]*\(.*\) - \(.*\);\2 (\1) - \3;
s;\([a-zA-Z_0-9,]\)[ ][ ]*;\1 ;g
s;[^a-zA-Z_0-9]*\([a-zA-Z_0-9]*\)[^a-zA-Z_0-9]*\(.*\) - \(.*\);\2 (\1) - \3;
p
q