{"action":"created","issue":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/440","labels_url":"https://api.github.com/repos/SirVer/ultisnips/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/SirVer/ultisnips/issues/440/comments","events_url":"https://api.github.com/repos/SirVer/ultisnips/issues/440/events","html_url":"https://github.com/SirVer/ultisnips/issues/440","id":57057334,"number":440,"title":"Triggering eruby snippets within html","user":{"login":"jasonlong","id":6104,"avatar_url":"https://avatars.githubusercontent.com/u/6104?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonlong","html_url":"https://github.com/jasonlong","followers_url":"https://api.github.com/users/jasonlong/followers","following_url":"https://api.github.com/users/jasonlong/following{/other_user}","gists_url":"https://api.github.com/users/jasonlong/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonlong/subscriptions","organizations_url":"https://api.github.com/users/jasonlong/orgs","repos_url":"https://api.github.com/users/jasonlong/repos","events_url":"https://api.github.com/users/jasonlong/events{/privacy}","received_events_url":"https://api.github.com/users/jasonlong/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T16:53:42Z","updated_at":"2015-02-09T17:29:40Z","closed_at":"2015-02-09T17:29:40Z","body":"I'm hoping this is just a configuration problem on my end, but I'm wondering if it's possible to trigger eruby snippets while your cursor is inside an html tag.\r\n\r\nFor example, I have the following inside `eruby.snippets`\r\n\r\n```\r\nextends html, rails\r\n\r\nsnippet et\r\n<% ${1} %>\r\nendsnippet\r\n```\r\n\r\nLet's say my cursor is where the █ character is below and I type `et<tab>`:\r\n\r\n```\r\n<span class=\"█\">Hello</span>\r\n```\r\n\r\nIn this case, the snippet doesn't trigger. Similarly, if my cursor is \"touching\" an html tag, like:\r\n\r\n```\r\n<span class=\"foo\">Hello</span>█\r\n```\r\n\r\n... the snippet won't trigger, but if there's a space after the closing tag:\r\n\r\n```\r\n<span class=\"foo\">Hello</span> █\r\n```\r\n\r\n... then it **does** work. \r\n\r\nIs there something I can do to fix this?\r\n"},"comment":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/comments/73551237","html_url":"https://github.com/SirVer/ultisnips/issues/440#issuecomment-73551237","issue_url":"https://api.github.com/repos/SirVer/ultisnips/issues/440","id":73551237,"user":{"login":"jasonlong","id":6104,"avatar_url":"https://avatars.githubusercontent.com/u/6104?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonlong","html_url":"https://github.com/jasonlong","followers_url":"https://api.github.com/users/jasonlong/followers","following_url":"https://api.github.com/users/jasonlong/following{/other_user}","gists_url":"https://api.github.com/users/jasonlong/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonlong/subscriptions","organizations_url":"https://api.github.com/users/jasonlong/orgs","repos_url":"https://api.github.com/users/jasonlong/repos","events_url":"https://api.github.com/users/jasonlong/events{/privacy}","received_events_url":"https://api.github.com/users/jasonlong/received_events","type":"User","site_admin":true},"created_at":"2015-02-09T17:29:40Z","updated_at":"2015-02-09T17:29:40Z","body":"@kovetskiy Thx, that seemed to do the trick!"}}