{"action":"created","issue":{"url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/39","repository_url":"https://api.github.com/repos/durkiewicz/elm-plugin","labels_url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/39/comments","events_url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/39/events","html_url":"https://github.com/durkiewicz/elm-plugin/pull/39","id":180520003,"number":39,"title":"Fix #37: insert import clauses in the correct place relative to comments","user":{"login":"klazuka","id":84525,"avatar_url":"https://avatars.githubusercontent.com/u/84525?v=3","gravatar_id":"","url":"https://api.github.com/users/klazuka","html_url":"https://github.com/klazuka","followers_url":"https://api.github.com/users/klazuka/followers","following_url":"https://api.github.com/users/klazuka/following{/other_user}","gists_url":"https://api.github.com/users/klazuka/gists{/gist_id}","starred_url":"https://api.github.com/users/klazuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klazuka/subscriptions","organizations_url":"https://api.github.com/users/klazuka/orgs","repos_url":"https://api.github.com/users/klazuka/repos","events_url":"https://api.github.com/users/klazuka/events{/privacy}","received_events_url":"https://api.github.com/users/klazuka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-02T16:16:36Z","updated_at":"2016-11-09T07:59:51Z","closed_at":"2016-11-09T07:59:51Z","pull_request":{"url":"https://api.github.com/repos/durkiewicz/elm-plugin/pulls/39","html_url":"https://github.com/durkiewicz/elm-plugin/pull/39","diff_url":"https://github.com/durkiewicz/elm-plugin/pull/39.diff","patch_url":"https://github.com/durkiewicz/elm-plugin/pull/39.patch"},"body":"Fix for #37 \n\n@durkiewicz where's the right place to capture the special knowledge about doc comments and the initial \"|\" character in a multi-line comment? I did it all inline, but it seems like it would be helpful if we brought this more formally into the domain types.\n\nAlso, does the IntelliJ/PSI SDK have any convenience utils for working with multi-line PsiComments? It seems strange to me that they parse as 3 siblings instead of as a single element.\n"},"comment":{"url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/comments/259354002","html_url":"https://github.com/durkiewicz/elm-plugin/pull/39#issuecomment-259354002","issue_url":"https://api.github.com/repos/durkiewicz/elm-plugin/issues/39","id":259354002,"user":{"login":"durkiewicz","id":2900637,"avatar_url":"https://avatars.githubusercontent.com/u/2900637?v=3","gravatar_id":"","url":"https://api.github.com/users/durkiewicz","html_url":"https://github.com/durkiewicz","followers_url":"https://api.github.com/users/durkiewicz/followers","following_url":"https://api.github.com/users/durkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/durkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/durkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durkiewicz/subscriptions","organizations_url":"https://api.github.com/users/durkiewicz/orgs","repos_url":"https://api.github.com/users/durkiewicz/repos","events_url":"https://api.github.com/users/durkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/durkiewicz/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T07:59:51Z","updated_at":"2016-11-09T07:59:51Z","body":"The only place where the knowledge of the \"|\" character in a doc comment should be put is the lexer. The lexer should return a `START_DOC_COMMENT` token and then the parser should produce a `level_comment` or a `doc_comment` in the PSI depending whether the comment starts with `START_COMMENT` or a `START_DOC_COMMENT`.\r\n\r\nThe reason why we need to parse comments like that it the concept of level comments in Elm. If you want to see how it works, put something like that in the middle of any Elm code:\r\n```elm\r\n{- comment {- inner comment -} -}\r\n```\r\nAnd then try removing some \"-}\".\r\n\r\nI'm closing the pull request because, as you see, it needs to be implemented in a different way.\r\n"}}
{"actor":{"display_login":"durkiewicz"}}