{"action":"created","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/1271","repository_url":"https://api.github.com/repos/sublimehq/Packages","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/1271/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/1271/events","html_url":"https://github.com/sublimehq/Packages/issues/1271","id":270450905,"number":1271,"title":"JSP syntax: <%@ gets \"stuck\" in keyword scope","user":{"login":"Pointy","id":319324,"avatar_url":"https://avatars2.githubusercontent.com/u/319324?v=4","gravatar_id":"","url":"https://api.github.com/users/Pointy","html_url":"https://github.com/Pointy","followers_url":"https://api.github.com/users/Pointy/followers","following_url":"https://api.github.com/users/Pointy/following{/other_user}","gists_url":"https://api.github.com/users/Pointy/gists{/gist_id}","starred_url":"https://api.github.com/users/Pointy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pointy/subscriptions","organizations_url":"https://api.github.com/users/Pointy/orgs","repos_url":"https://api.github.com/users/Pointy/repos","events_url":"https://api.github.com/users/Pointy/events{/privacy}","received_events_url":"https://api.github.com/users/Pointy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-01T21:00:24Z","updated_at":"2017-12-08T09:31:36Z","closed_at":null,"author_association":"NONE","body":"In a directive like\r\n\r\n    <%@ include file=\"foo.bar\" %>\r\n\r\nthe editor gets stuck and the entire remainder of the file is sort-of weird. I think the problem is that inside `punctuation.section.directive.jsp` scope, a string of word characters (`\\w+`) pushes into `keyword.other.directive.jsp` scope. From that scope, there is no `pop`.\r\n\r\nI was able to make things generally less weird by adding\r\n\r\n         - match: \\s+\r\n           scope: keyword.other.directive.jsp\r\n           pop: true\r\n\r\nI don't know if that's correct or optimal; it's the first time I've messed with a syntax file at all. The problem is not subtle however.\r\n"},"comment":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/comments/350217092","html_url":"https://github.com/sublimehq/Packages/issues/1271#issuecomment-350217092","issue_url":"https://api.github.com/repos/sublimehq/Packages/issues/1271","id":350217092,"user":{"login":"mortalis13","id":10464927,"avatar_url":"https://avatars1.githubusercontent.com/u/10464927?v=4","gravatar_id":"","url":"https://api.github.com/users/mortalis13","html_url":"https://github.com/mortalis13","followers_url":"https://api.github.com/users/mortalis13/followers","following_url":"https://api.github.com/users/mortalis13/following{/other_user}","gists_url":"https://api.github.com/users/mortalis13/gists{/gist_id}","starred_url":"https://api.github.com/users/mortalis13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortalis13/subscriptions","organizations_url":"https://api.github.com/users/mortalis13/orgs","repos_url":"https://api.github.com/users/mortalis13/repos","events_url":"https://api.github.com/users/mortalis13/events{/privacy}","received_events_url":"https://api.github.com/users/mortalis13/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T09:31:36Z","updated_at":"2017-12-08T09:31:36Z","author_association":"NONE","body":"Confirm. If you put in the first line any text with `<%@` the next lines don't have the correct syntax coloring. In addition comment toggling not working in the whole text (except the first line), the comments are accumulated.\r\n\r\nAs in the example below:\r\n\r\n    <%@taglib\r\n    <!-- <!-- <header></header> --> -->\r\n\r\nColoring cases:\r\n\r\n![image 1](https://user-images.githubusercontent.com/10464927/33759496-d3256c96-dc02-11e7-8505-4124484b8e4f.png)\r\n![image 2](https://user-images.githubusercontent.com/10464927/33759501-d638149c-dc02-11e7-9068-ad82df37e1a5.png)\r\n\r\nThe second one is with correct colors.\r\n(Clean Sublime install with the default color scheme)"}}
{"actor":{"display_login":"mortalis13"}}