diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-10-30 09:51:07 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-10-30 09:51:07 -0700 |
commit | de54d4735b57528754aa715c6ae2ea05f6e95577 (patch) | |
tree | 34f8f01d4374d46b6aab2ee98152669198ac71e4 /linkify | |
parent | 01c811d9ae92e91790b4191f4c98b866e1b6611a (diff) | |
download | mu-de54d4735b57528754aa715c6ae2ea05f6e95577.tar.gz |
5725
Diffstat (limited to 'linkify')
-rw-r--r-- | linkify/linkify.cc | 6 |
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; } |