Fixes in 2018/burton2
Formatting fixes in README.md. Add links where reasonable instead of just backticks. Rename discrepancies to discrepancies.md and make markdown format. Fix a typo there. Rename manpage to manpage.sh. Rename tokenfix tokenfix.sh. Make sure scripts were +x permissions. Fixed path in README.md for manpage invocation. Possibly typo fixes in README.md.
This commit is contained in:
1 parent
467ec02317
commit
1b225f6b73
5 files changed
+131
-103
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
awk '
|
||||
r==1 { r=0; if (/>=/){print ">>>="; next}
|
||||
if (/>/) {print ">>>"; next}
|
||||
print ">>" }
|
||||
r==3 { if (/\./){ r=4; next } r=0; print "." }
|
||||
r==4 { if (/\./){ r=0; print "..."; next} print ".\n."}
|
||||
|
||||
# digraphs
|
||||
r==2 { r=0; if (/>/){print "]"; next}
|
||||
if (/:/){print "::"; next}
|
||||
print ":" }
|
||||
r==5 { r=0; if (/:/){print "["; next}
|
||||
if (/%/){print "{"; next}
|
||||
print "<" }
|
||||
r==6 { r=0; if (/>/){print "}"; next}
|
||||
if (/:/){print "#"; next}
|
||||
print "%" }
|
||||
|
||||
/^>>$/ {r=1;next} # java
|
||||
/^:$/ {r=2;next} # c++, java classes, digraph
|
||||
/^\.$/ {r=3;next} # mea culpa - ellipsis
|
||||
/^<$/ {r=5;next} # digraph
|
||||
/^%$/ {r=6;next} # digraph
|
||||
|
||||
{ print $0 }' $*
|
||||
Reference in new issue
Block a user