{"action":"opened","issue":{"url":"https://api.github.com/repos/acdvorak/intellij-lessc-plugin/issues/99","repository_url":"https://api.github.com/repos/acdvorak/intellij-lessc-plugin","labels_url":"https://api.github.com/repos/acdvorak/intellij-lessc-plugin/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/acdvorak/intellij-lessc-plugin/issues/99/comments","events_url":"https://api.github.com/repos/acdvorak/intellij-lessc-plugin/issues/99/events","html_url":"https://github.com/acdvorak/intellij-lessc-plugin/issues/99","id":168338314,"number":99,"title":"Poor indentation on nested mixin properties","user":{"login":"chazsolo","id":5860950,"avatar_url":"https://avatars.githubusercontent.com/u/5860950?v=3","gravatar_id":"","url":"https://api.github.com/users/chazsolo","html_url":"https://github.com/chazsolo","followers_url":"https://api.github.com/users/chazsolo/followers","following_url":"https://api.github.com/users/chazsolo/following{/other_user}","gists_url":"https://api.github.com/users/chazsolo/gists{/gist_id}","starred_url":"https://api.github.com/users/chazsolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chazsolo/subscriptions","organizations_url":"https://api.github.com/users/chazsolo/orgs","repos_url":"https://api.github.com/users/chazsolo/repos","events_url":"https://api.github.com/users/chazsolo/events{/privacy}","received_events_url":"https://api.github.com/users/chazsolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T14:34:09Z","updated_at":"2016-07-29T14:34:09Z","closed_at":null,"body":"Example:\r\n\r\nmixins.less\r\n```\r\n.mobile(@rules) {\r\n    @media screen and (max-width: 640px) { @rules(); }\r\n}\r\n```\r\n\r\nfile.less\r\n```\r\n@import (reference) \"mixins\";\r\n\r\n.someclass {\r\n    padding: 0;\r\n\r\n    .mobile({\r\n    padding: 10px; // <-- this is where the indentation takes you\r\n        padding: 10px; // <-- this is where it should be\r\n    });\r\n}\r\n```\r\n\r\nProblem:\r\n\r\nWhen writing properties/values within the mobile mixin (e.g. where `padding: 10px;` is) the cursor is always placed on the same indentation line as the `.mobile` rule when entering a new line instead of the declared code style setting.\r\n\r\nThis seems to only happen on mixins that have this format of passing rules through an object. Also, using the code formatting shortcut `Ctrl-Alt-L` will instead place all rules on a single line, like this:\r\n\r\n```\r\n.mobile({ padding: 10; margin: 0; ... });\r\n```\r\n\r\nAgain, not keeping with the declared indentation rules."}}
{"actor":{"display_login":"chazsolo"}}