{"action":"created","issue":{"url":"https://api.github.com/repos/emmetio/emmet/issues/388","labels_url":"https://api.github.com/repos/emmetio/emmet/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/emmetio/emmet/issues/388/comments","events_url":"https://api.github.com/repos/emmetio/emmet/issues/388/events","html_url":"https://github.com/emmetio/emmet/issues/388","id":77557542,"number":388,"title":"Incorrect increment","user":{"login":"mkutyba","id":1902139,"avatar_url":"https://avatars.githubusercontent.com/u/1902139?v=3","gravatar_id":"","url":"https://api.github.com/users/mkutyba","html_url":"https://github.com/mkutyba","followers_url":"https://api.github.com/users/mkutyba/followers","following_url":"https://api.github.com/users/mkutyba/following{/other_user}","gists_url":"https://api.github.com/users/mkutyba/gists{/gist_id}","starred_url":"https://api.github.com/users/mkutyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkutyba/subscriptions","organizations_url":"https://api.github.com/users/mkutyba/orgs","repos_url":"https://api.github.com/users/mkutyba/repos","events_url":"https://api.github.com/users/mkutyba/events{/privacy}","received_events_url":"https://api.github.com/users/mkutyba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-18T08:23:36Z","updated_at":"2015-05-18T08:38:37Z","closed_at":null,"body":"This chain `.panel-group#accordion-NAME[role=\"tablist\"][aria-multiselectable=\"true\"]>.panel.panel-default>.panel-heading[role=\"tab\"]#NAME-heading-$>h4.panel-title>a.accordion-toggle[data-toggle=\"collapse\"][data-parent=\"#accordion-NAME\"][href=\"#NAME-collapse-$\"][aria-expanded=\"true\"][aria-controls=\"NAME-collapse-$\"]{Heading text $$$}^^#NAME-collapse-$.panel-collapse.collapse.in[role=\"tabpanel\"][aria-labelledby=\"NAME-heading-$\"]>.panel-body>{Body text $$$}^^^(.panel.panel-default>.panel-heading[role=\"tab\"]#NAME-heading-$@2>h4.panel-title>a.accordion-toggle.collapsed[data-toggle=\"collapse\"][data-parent=\"#accordion-NAME\"][href=\"#NAME-collapse-$@2\"][aria-expanded=\"false\"][aria-controls=\"NAME-collapse-$@2\"]{Heading text $$$@2}^^#NAME-collapse-$@2.panel-collapse.collapse[role=\"tabpanel\"][aria-labelledby=\"NAME-heading-$@2\"]>.panel-body>{Body text $$$@2})*3`\r\n\r\noutputs\r\n\r\n```\r\n<div class=\"panel-group\" id=\"accordion-NAME\" role=\"tablist\" aria-multiselectable=\"true\">\r\n\t<div class=\"panel panel-default\">\r\n\t\t<div class=\"panel-heading\" role=\"tab\" id=\"NAME-heading-1\">\r\n\t\t\t<h4 class=\"panel-title\"><a href=\"#NAME-collapse-1\" class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion-NAME\" aria-expanded=\"true\" aria-controls=\"NAME-collapse-1\">Heading text 001</a></h4>\r\n\t\t</div>\r\n\t\t<div id=\"NAME-collapse-1\" class=\"panel-collapse collapse in\" role=\"tabpanel\" aria-labelledby=\"NAME-heading-1\">\r\n\t\t\t<div class=\"panel-body\">Body text 001</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"panel panel-default\">\r\n\t\t<div class=\"panel-heading\" role=\"tab\" id=\"NAME-heading-2\">\r\n\t\t\t<h4 class=\"panel-title\"><a href=\"#NAME-collapse-2\" class=\"accordion-toggle collapsed\" data-toggle=\"collapse\" data-parent=\"#accordion-NAME\" aria-expanded=\"false\" aria-controls=\"NAME-collapse-3\">Heading text 002</a></h4>\r\n\t\t</div>\r\n\t\t<div id=\"NAME-collapse-2\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"NAME-heading-3\">\r\n\t\t\t<div class=\"panel-body\">Body text 002</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"panel panel-default\">\r\n\t\t<div class=\"panel-heading\" role=\"tab\" id=\"NAME-heading-3\">\r\n\t\t\t<h4 class=\"panel-title\"><a href=\"#NAME-collapse-3\" class=\"accordion-toggle collapsed\" data-toggle=\"collapse\" data-parent=\"#accordion-NAME\" aria-expanded=\"false\" aria-controls=\"NAME-collapse-4\">Heading text 003</a></h4>\r\n\t\t</div>\r\n\t\t<div id=\"NAME-collapse-3\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"NAME-heading-4\">\r\n\t\t\t<div class=\"panel-body\">Body text 003</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"panel panel-default\">\r\n\t\t<div class=\"panel-heading\" role=\"tab\" id=\"NAME-heading-4\">\r\n\t\t\t<h4 class=\"panel-title\"><a href=\"#NAME-collapse-4\" class=\"accordion-toggle collapsed\" data-toggle=\"collapse\" data-parent=\"#accordion-NAME\" aria-expanded=\"false\" aria-controls=\"NAME-collapse-5\">Heading text 004</a></h4>\r\n\t\t</div>\r\n\t\t<div id=\"NAME-collapse-4\" class=\"panel-collapse collapse\" role=\"tabpanel\" aria-labelledby=\"NAME-heading-5\">\r\n\t\t\t<div class=\"panel-body\">Body text 004</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n```\r\n\r\nThe part `NAME-heading-N` is incorrect. Should be lower by 1.\r\n\r\nTested in Sublime Text 2.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/15634698-incorrect-increment?utm_campaign=plugin&utm_content=tracker%2F282104&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282104&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/emmetio/emmet/issues/comments/102976153","html_url":"https://github.com/emmetio/emmet/issues/388#issuecomment-102976153","issue_url":"https://api.github.com/repos/emmetio/emmet/issues/388","id":102976153,"user":{"login":"sergeche","id":93595,"avatar_url":"https://avatars.githubusercontent.com/u/93595?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeche","html_url":"https://github.com/sergeche","followers_url":"https://api.github.com/users/sergeche/followers","following_url":"https://api.github.com/users/sergeche/following{/other_user}","gists_url":"https://api.github.com/users/sergeche/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeche/subscriptions","organizations_url":"https://api.github.com/users/sergeche/orgs","repos_url":"https://api.github.com/users/sergeche/repos","events_url":"https://api.github.com/users/sergeche/events{/privacy}","received_events_url":"https://api.github.com/users/sergeche/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T08:38:37Z","updated_at":"2015-05-18T08:38:37Z","body":"Everything seems fine for me.\r\n\r\nPS: this is *not* how Emmet should be used. Consider writing smaller abbreviations and shaping-up final output instead of trying to put everything into one abbreviation"}}