X-Git-Url: http://nsz.repo.hu/git/?p=c-standard;a=blobdiff_plain;f=ann2html.sh;fp=ann2html.sh;h=8999198a11a788d8324dbb5364a398b8e3eb4713;hp=509e3a293e8799f42558b85601dd4cac8e523613;hb=c8552f228e75429c8c11edb869899f05b70ea1e5;hpb=6c55e01324160ad9e3d4453aead2dabbc85c90f2
diff --git a/ann2html.sh b/ann2html.sh
index 509e3a2..8999198 100755
--- a/ann2html.sh
+++ b/ann2html.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-# todo: opt
-
export LC_ALL=C
awk '
BEGIN {
@@ -213,6 +211,11 @@ seencontents && !seenfore && /^[^@]/ {
}
s = p s
p = ""
+ # TODO: false positives..
+ while (match(s, /[a-z]opt[ )]/))
+ s = substr(s,1,RSTART) "opt" substr(s,RSTART+RLENGTH-1)
+ if (match(s, /[a-z]opt$/))
+ s = substr(s,1,RSTART) "opt"
for (;;) {
while (match(s, noteid-1 "\\)")) {
p = p substr(s,1,RSTART-1)