{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/buildship/issues/564","repository_url":"https://api.github.com/repos/eclipse/buildship","labels_url":"https://api.github.com/repos/eclipse/buildship/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/buildship/issues/564/comments","events_url":"https://api.github.com/repos/eclipse/buildship/issues/564/events","html_url":"https://github.com/eclipse/buildship/pull/564","id":256238213,"number":564,"title":"#514 Add Gradle editor","user":{"login":"cmoine","id":3293928,"avatar_url":"https://avatars2.githubusercontent.com/u/3293928?v=4","gravatar_id":"","url":"https://api.github.com/users/cmoine","html_url":"https://github.com/cmoine","followers_url":"https://api.github.com/users/cmoine/followers","following_url":"https://api.github.com/users/cmoine/following{/other_user}","gists_url":"https://api.github.com/users/cmoine/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoine/subscriptions","organizations_url":"https://api.github.com/users/cmoine/orgs","repos_url":"https://api.github.com/users/cmoine/repos","events_url":"https://api.github.com/users/cmoine/events{/privacy}","received_events_url":"https://api.github.com/users/cmoine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-08T12:26:40Z","updated_at":"2017-09-15T07:09:48Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/eclipse/buildship/pulls/564","html_url":"https://github.com/eclipse/buildship/pull/564","diff_url":"https://github.com/eclipse/buildship/pull/564.diff","patch_url":"https://github.com/eclipse/buildship/pull/564.patch"},"body":"I have used the genericeditor. It was almost too simple :)\r\n\r\nAppart from the joke, I wanted to use a more sophisticated highlighter rules... For example \"task\" is defined as a keyword but it is not. It is related to Gradle DSL.... So if you invoke a task like for instance:\r\n> myTask task: 'anotherTask'\r\n\r\ntask will be highlighted :( It seems we need some kind of semantic parser to do that. I tried (https://github.com/danielsun1106/groovy-parser), but I am not sure parsing the document for highlight syntax is good (I think I can imagine the answer :D ).\r\n\r\nIf you of someone else have experience on that, I am very interested with these problematic :)\r\n\r\nI know Gradle DSL is complex, and it is probably the reason why there is not bundled Gradle editor in Eclipse :D Even if Eclipse seem to bet more on Kotlin DSL to provide an editor, I don't think it will be quickly the most used editor...\r\n\r\nIt is why I kept it simple so far :)\r\n\r\nI also took the opportunity to add a EditorContributor for #560 :)"},"comment":{"url":"https://api.github.com/repos/eclipse/buildship/issues/comments/329700986","html_url":"https://github.com/eclipse/buildship/pull/564#issuecomment-329700986","issue_url":"https://api.github.com/repos/eclipse/buildship/issues/564","id":329700986,"user":{"login":"cmoine","id":3293928,"avatar_url":"https://avatars2.githubusercontent.com/u/3293928?v=4","gravatar_id":"","url":"https://api.github.com/users/cmoine","html_url":"https://github.com/cmoine","followers_url":"https://api.github.com/users/cmoine/followers","following_url":"https://api.github.com/users/cmoine/following{/other_user}","gists_url":"https://api.github.com/users/cmoine/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoine/subscriptions","organizations_url":"https://api.github.com/users/cmoine/orgs","repos_url":"https://api.github.com/users/cmoine/repos","events_url":"https://api.github.com/users/cmoine/events{/privacy}","received_events_url":"https://api.github.com/users/cmoine/received_events","type":"User","site_admin":false},"created_at":"2017-09-15T07:09:48Z","updated_at":"2017-09-15T07:09:48Z","author_association":"NONE","body":"It seems that colors for Java Syntax depends on the used Theme. With dark theme, keywords are orange instead of violet. Do you know how to take the Theme into account ? I had a look yesterday, but I haven't found in a \"reasonable\" timing :) If you already know, I would be very interested, thanks."}}
{"actor":{"display_login":"cmoine"}}