{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/google-modes/issues/203","repository_url":"https://api.github.com/repos/codemirror/google-modes","labels_url":"https://api.github.com/repos/codemirror/google-modes/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/google-modes/issues/203/comments","events_url":"https://api.github.com/repos/codemirror/google-modes/issues/203/events","html_url":"https://github.com/codemirror/google-modes/issues/203","id":356062754,"node_id":"MDU6SXNzdWUzNTYwNjI3NTQ=","number":203,"title":"[cc] Parameter packing breaks highlighting","user":{"login":"alur","id":1925047,"node_id":"MDQ6VXNlcjE5MjUwNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1925047?v=4","gravatar_id":"","url":"https://api.github.com/users/alur","html_url":"https://github.com/alur","followers_url":"https://api.github.com/users/alur/followers","following_url":"https://api.github.com/users/alur/following{/other_user}","gists_url":"https://api.github.com/users/alur/gists{/gist_id}","starred_url":"https://api.github.com/users/alur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alur/subscriptions","organizations_url":"https://api.github.com/users/alur/orgs","repos_url":"https://api.github.com/users/alur/repos","events_url":"https://api.github.com/users/alur/events{/privacy}","received_events_url":"https://api.github.com/users/alur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T17:22:37Z","updated_at":"2018-09-01T16:57:01Z","closed_at":"2018-09-01T16:56:32Z","author_association":"NONE","body":"```c++\r\n// Allocates a new ref_ptr type.\r\n// Like make_unique, but for ref_ptr.\r\n//\r\n// Usage:\r\n//  ref_ptr<MyType> p = make_ref<MyType>(1, 2, 3);\r\ntemplate <typename T, typename... Args>\r\nref_ptr<T> make_ref(Args&&... args) {\r\n  return ref_ptr<T>(new T(std::forward<Args>(args)...));\r\n}\r\n\r\n// Assigns a raw pointer to a ref_ptr without adding a reference.\r\n//\r\n// Usage:\r\n//  ref_ptr<MyType> p = assign_ref(new MyType());\r\ntemplate <typename T>\r\nref_ptr<T> assign_ref(T* value) {\r\n  return ref_ptr<T>(value);\r\n}\r\n\r\n// Retains a reference to the given raw pointer.\r\n//\r\n// Usage:\r\n//  MyType* raw_ptr = AcquirePointerFromSomewhere();\r\n//  ref_ptr<MyType> p = retain_ref(raw_ptr);\r\ntemplate <typename T>\r\nref_ptr<T> retain_ref(T* value) {\r\n  return ref_ptr<T>::Retain(value);\r\n}\r\n```\r\n\r\nDropping the ... in the \"return ref_ptr<T>(new T(std::forward<Args>(args)...));\" line makes everything highlight properly."},"comment":{"url":"https://api.github.com/repos/codemirror/google-modes/issues/comments/417872756","html_url":"https://github.com/codemirror/google-modes/issues/203#issuecomment-417872756","issue_url":"https://api.github.com/repos/codemirror/google-modes/issues/203","id":417872756,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg3Mjc1Ng==","user":{"login":"marijnh","id":144427,"node_id":"MDQ6VXNlcjE0NDQyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/144427?v=4","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T16:57:01Z","updated_at":"2018-09-01T16:57:01Z","author_association":"MEMBER","body":"Well, I keep learning new C++ syntax through this mode. Attached patch should help with this."}}
{"actor":{"display_login":"marijnh"}}