diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-12 23:55:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-12 23:55:19 -0700 |
commit | 7a219c68bae6dbe214aec69a051015e851e32400 (patch) | |
tree | 40210836b68dcc2a3b84db487e30ccd7b199835b /linkify | |
parent | f829120a621b539dfef0d8c5605c8825aa998d7b (diff) | |
download | mu-7a219c68bae6dbe214aec69a051015e851e32400.tar.gz |
4054
Diffstat (limited to 'linkify')
-rw-r--r-- | linkify/linkify.cc | 8 |
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; } |