about summary refs log tree commit diff stats
path: root/linkify
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-10-30 09:51:07 -0700
committerKartik Agaram <vc@akkartik.com>2019-10-30 09:51:07 -0700
commitde54d4735b57528754aa715c6ae2ea05f6e95577 (patch)
tree34f8f01d4374d46b6aab2ee98152669198ac71e4 /linkify
parent01c811d9ae92e91790b4191f4c98b866e1b6611a (diff)
downloadmu-de54d4735b57528754aa715c6ae2ea05f6e95577.tar.gz
5725
Diffstat (limited to 'linkify')
-rw-r--r--linkify/linkify.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/linkify/linkify.cc b/linkify/linkify.cc
index 9557f256..ece50748 100644
--- a/linkify/linkify.cc
+++ b/linkify/linkify.cc
@@ -203,6 +203,10 @@ void replace_tags_in_file(const string& filename, const map<string, syminfo>& in
             out << c;
             at_start_of_line = false;
           }
+          else if (c == ')') {
+            out << c;
+            at_start_of_line = false;
+          }
           else {
 //?             cerr << "rest\n";
             if (c == ',' || c == ':') {
@@ -213,7 +217,7 @@ void replace_tags_in_file(const string& filename, const map<string, syminfo>& in
             ostringstream out2;
             out2 << c;
             while (in2 >> c) {
-              if (isspace(c) || c == '<' || c == '"' || c == '\'' || c == '/' || c == ',' || c == ':') {  // keep sync'd with other clauses above
+              if (isspace(c) || c == '<' || c == '"' || c == '\'' || c == '/' || c == ',' || c == ':' || c == '(' || c == ')') {  // keep sync'd with other clauses above
                 in2.putback(c);
                 break;
               }