{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/zen-coding/issues/233","labels_url":"https://api.github.com/repos/chrsmith/zen-coding/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/zen-coding/issues/233/comments","events_url":"https://api.github.com/repos/chrsmith/zen-coding/issues/233/events","html_url":"https://github.com/chrsmith/zen-coding/issues/233","id":58992359,"number":233,"title":"Дзен Кодинг не учитывает необязятельность закрывающих тэгов.","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/zen-coding/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/zen-coding/labels/Priority-Low","name":"Priority-Low","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/zen-coding/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T00:08:48Z","updated_at":"2015-02-26T00:08:49Z","closed_at":null,"body":"```\nПростой код вроде {{{\n<div>\n\t<p>|\n</div>\n}}}\nприводит к выделению от <p> до </div>. Как \nизвестно, закрывающий тэг </p> необязателен. \n(А также все табличные кроме table и caption, </dt>, \n</dd>, </li>, </head>, </body>, <tbody>, </html> и т.п.)\n```\n\n-----\nOriginal issue reported on code.google.com by `GreLIm...@gmail.com` on 26 Dec 2010 at 8:37"},"comment":{"url":"https://api.github.com/repos/chrsmith/zen-coding/issues/comments/76091334","html_url":"https://github.com/chrsmith/zen-coding/issues/233#issuecomment-76091334","issue_url":"https://api.github.com/repos/chrsmith/zen-coding/issues/233","id":76091334,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T00:08:49Z","updated_at":"2015-02-26T00:08:49Z","body":"```\nДело не в этом. Основная проблема — \nопределение правильных границ при поиске. \nСейчас просто формируется стэк \nзакрытых/незакрытых тэгов, так только \nнаходим закрывающий тэг и пустой стэк — \nостанавливаемся. \n\nНапример, сейчас основная проблема: при \nобратном поиске (то есть поиск назад, от \nтекущей позиции каретки) найдя незакрытый \nтэг P я не могу с уверенностью сказать, что \nэто именно тот открывающий тэг, который \nнужен пользователю, или же я должен \nподняться выше и проматчить DIV или другой \nобрамляющий элемент. \n\nДля корректного решения этой проблемы \nнужно сначала полностью распарсить весь \nдокумент, чтобы в момент поиска для всех \nтэгов были известны их границы, и только \nпосле этого смотреть, что именно должно \nбыть выделено\n```\n\n-----\nOriginal comment by `serge....@gmail.com` on 31 Jan 2011 at 10:24"}}