about summary refs log tree commit diff stats
path: root/linkify
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-10-12 23:55:19 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-10-12 23:55:19 -0700
commit7a219c68bae6dbe214aec69a051015e851e32400 (patch)
tree40210836b68dcc2a3b84db487e30ccd7b199835b /linkify
parentf829120a621b539dfef0d8c5605c8825aa998d7b (diff)
downloadmu-7a219c68bae6dbe214aec69a051015e851e32400.tar.gz
4054
Diffstat (limited to 'linkify')
-rw-r--r--linkify/linkify.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/linkify/linkify.cc b/linkify/linkify.cc
index 7ed2bc38..14d792c1 100644
--- a/linkify/linkify.cc
+++ b/linkify/linkify.cc
@@ -84,6 +84,11 @@ void read_tags(const string& filename, map<string, syminfo>& info) {
   string dummy;
   while (has_data(in)) {
     string symbol;  in >> symbol;
+    if (symbol == "operator") {
+      // unsupported
+      getline(in, dummy);  // skip
+      continue;
+    }
     encode_some_html_entities(symbol);
 //?     cerr << symbol << '\n';
     if (info.find(symbol) != info.end()) {
@@ -223,8 +228,7 @@ void replace_tags_in_file(const string& filename, const map<string, syminfo>& in
 int main(int argc, const char* argv[]) {
   map<string, syminfo> info;
   read_tags(argv[1], info);
-  for (int i = 2;  i < argc;  ++i) {
+  for (int i = 2;  i < argc;  ++i)
     replace_tags_in_file(argv[i], info);
-  }
   return 0;
 }