{"action":"created","issue":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/834","repository_url":"https://api.github.com/repos/universal-ctags/ctags","labels_url":"https://api.github.com/repos/universal-ctags/ctags/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/universal-ctags/ctags/issues/834/comments","events_url":"https://api.github.com/repos/universal-ctags/ctags/issues/834/events","html_url":"https://github.com/universal-ctags/ctags/issues/834","id":139880442,"number":834,"title":"Generating tags failed when file contains \">>\"","user":{"login":"hiberabyss","id":2898670,"avatar_url":"https://avatars.githubusercontent.com/u/2898670?v=3","gravatar_id":"","url":"https://api.github.com/users/hiberabyss","html_url":"https://github.com/hiberabyss","followers_url":"https://api.github.com/users/hiberabyss/followers","following_url":"https://api.github.com/users/hiberabyss/following{/other_user}","gists_url":"https://api.github.com/users/hiberabyss/gists{/gist_id}","starred_url":"https://api.github.com/users/hiberabyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiberabyss/subscriptions","organizations_url":"https://api.github.com/users/hiberabyss/orgs","repos_url":"https://api.github.com/users/hiberabyss/repos","events_url":"https://api.github.com/users/hiberabyss/events{/privacy}","received_events_url":"https://api.github.com/users/hiberabyss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/universal-ctags/ctags/labels/Parsers","name":"Parsers","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-10T13:07:02Z","updated_at":"2016-03-12T02:28:21Z","closed_at":null,"body":"When there is code like `vector<vector<int>> C;` , then ctags can't generate tags for the codes below that lines.\r\n\r\nFor file test.cpp:\r\n```\r\nstruct A {\r\n\tint a;\r\n\tint b;\r\n};\r\n``` \r\nrun `ctags test.cpp` will generate following `tags` file:\r\n```\r\nA\ttest.cpp\t/^struct A {$/;\"\tkind:s\tfile:\r\nA::a\ttest.cpp\t/^\tint a;$/;\"\tkind:m\tstruct:A\tfile:\taccess:public\r\nA::b\ttest.cpp\t/^\tint b;$/;\"\tkind:m\tstruct:A\tfile:\taccess:public\r\na\ttest.cpp\t/^\tint a;$/;\"\tkind:m\tstruct:A\tfile:\taccess:public\r\nb\ttest.cpp\t/^\tint b;$/;\"\tkind:m\tstruct:A\tfile:\taccess:public\r\n```\r\n\r\nHowever, for file test1.cpp\r\n```\r\nvector<vector<int>> C;\r\n\r\nstruct A {\r\n\tint a;\r\n\tint b;\r\n};\r\n```\r\nafter run `ctags test1.cpp`, there is no tag in the `tags` file.\r\n\r\nThe output after run `ctags --version` is:\r\n```\r\nUniversal Ctags 0.0.0(5129760), Copyright (C) 2015 Universal Ctags Team\r\nUniversal Ctags is derived from Exuberant Ctags.\r\nExuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert\r\n  Compiled: Mar 10 2016, 19:27:46\r\n  URL: https://ctags.io/\r\n  Optional compiled features: +wildcards, +regex, +option-directory, +coproc, +xpath\r\n```"},"comment":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/comments/195640783","html_url":"https://github.com/universal-ctags/ctags/issues/834#issuecomment-195640783","issue_url":"https://api.github.com/repos/universal-ctags/ctags/issues/834","id":195640783,"user":{"login":"masatake","id":77077,"avatar_url":"https://avatars.githubusercontent.com/u/77077?v=3","gravatar_id":"","url":"https://api.github.com/users/masatake","html_url":"https://github.com/masatake","followers_url":"https://api.github.com/users/masatake/followers","following_url":"https://api.github.com/users/masatake/following{/other_user}","gists_url":"https://api.github.com/users/masatake/gists{/gist_id}","starred_url":"https://api.github.com/users/masatake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masatake/subscriptions","organizations_url":"https://api.github.com/users/masatake/orgs","repos_url":"https://api.github.com/users/masatake/repos","events_url":"https://api.github.com/users/masatake/events{/privacy}","received_events_url":"https://api.github.com/users/masatake/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T02:28:21Z","updated_at":"2016-03-12T02:28:21Z","body":"> Technically that's a syntax error.\r\n\r\nAs far as giving the input to gcc, gcc accepts only if  `-std=c++11` is given.\r\n\r\n> where 'someType' is not a keyword. This is because\r\n>\r\n>int vector;\r\n>int someType;\r\n>int C;\r\n>vector < vector < someType >> C;\r\n>\r\n>is a valid C++ statement (which does not define a variable).\r\n\r\nOh, I see. As you may know very well, people have strong interest C++ support in ctags (so that you are here :-P). The number of issues opened these days tells it. I guess we will get more. Further more the may of them about template. I would like to ask you to write entries for FAQ? If you can, I will prepare faq.rst under docs dir."}}