{"action":"created","issue":{"url":"https://api.github.com/repos/dart-atom/dartlang/issues/44","labels_url":"https://api.github.com/repos/dart-atom/dartlang/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/dart-atom/dartlang/issues/44/comments","events_url":"https://api.github.com/repos/dart-atom/dartlang/issues/44/events","html_url":"https://github.com/dart-atom/dartlang/issues/44","id":94404964,"number":44,"title":"dartlang auto-indent gets confused by list literals","user":{"login":"eseidelGoogle","id":11857803,"avatar_url":"https://avatars.githubusercontent.com/u/11857803?v=3","gravatar_id":"","url":"https://api.github.com/users/eseidelGoogle","html_url":"https://github.com/eseidelGoogle","followers_url":"https://api.github.com/users/eseidelGoogle/followers","following_url":"https://api.github.com/users/eseidelGoogle/following{/other_user}","gists_url":"https://api.github.com/users/eseidelGoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/eseidelGoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eseidelGoogle/subscriptions","organizations_url":"https://api.github.com/users/eseidelGoogle/orgs","repos_url":"https://api.github.com/users/eseidelGoogle/repos","events_url":"https://api.github.com/users/eseidelGoogle/events{/privacy}","received_events_url":"https://api.github.com/users/eseidelGoogle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T22:24:03Z","updated_at":"2015-07-13T20:35:20Z","closed_at":"2015-07-13T20:35:20Z","body":"```dart\r\nList<String> = [\r\n  \"foo\",\r\n]\r\n```\r\n\r\nHit enter after \"foo\",\r\n\r\nExpect it to indent 2 spaces as per \"foo\".  Be sad that it indents 0 spaces.\r\n\r\nSky hits this a lot due to our new Widget(children: [ pattern where we list lots of child widgets on separate lines.\r\n\r\n@devoncarew "},"comment":{"url":"https://api.github.com/repos/dart-atom/dartlang/issues/comments/121048293","html_url":"https://github.com/dart-atom/dartlang/issues/44#issuecomment-121048293","issue_url":"https://api.github.com/repos/dart-atom/dartlang/issues/44","id":121048293,"user":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=3","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T20:35:20Z","updated_at":"2015-07-13T20:35:20Z","body":"```\r\nList<String> = [^\r\n  \"foo\",^\r\n]\r\n```\r\n\r\nWith the recent PR, I'm now seeing 2 space indent when hitting return after the two carets above. We'll push out an update with the changes. @eseidelGoogle, can you re-open this if you're still seeing the issue, or open new issues w/ other indent problems? We can make some more changes via the editing regexs (https://github.com/dart-atom/dartlang/blob/master/settings/dart.cson#L4). Things that can't be handled via regex would require us to create a dynamic grammar file, which would be a few day effort."}}