{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeText/PackageDev/issues/71","repository_url":"https://api.github.com/repos/SublimeText/PackageDev","labels_url":"https://api.github.com/repos/SublimeText/PackageDev/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/SublimeText/PackageDev/issues/71/comments","events_url":"https://api.github.com/repos/SublimeText/PackageDev/issues/71/events","html_url":"https://github.com/SublimeText/PackageDev/issues/71","id":132512547,"number":71,"title":"feature request: command to auto generate syntax tests based on code in syntax test file","user":{"login":"jcberquist","id":3498220,"avatar_url":"https://avatars.githubusercontent.com/u/3498220?v=3","gravatar_id":"","url":"https://api.github.com/users/jcberquist","html_url":"https://github.com/jcberquist","followers_url":"https://api.github.com/users/jcberquist/followers","following_url":"https://api.github.com/users/jcberquist/following{/other_user}","gists_url":"https://api.github.com/users/jcberquist/gists{/gist_id}","starred_url":"https://api.github.com/users/jcberquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcberquist/subscriptions","organizations_url":"https://api.github.com/users/jcberquist/orgs","repos_url":"https://api.github.com/users/jcberquist/repos","events_url":"https://api.github.com/users/jcberquist/events{/privacy}","received_events_url":"https://api.github.com/users/jcberquist/received_events","type":"User","site_admin":false},"labels":[{"id":10259452,"url":"https://api.github.com/repos/SublimeText/PackageDev/labels/enhancement","name":"enhancement","color":"0b02e1","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-02-09T19:39:16Z","updated_at":"2016-12-15T20:08:47Z","closed_at":null,"body":"I am just throwing this out there, as I am not sure about the amount of work it would involve. (I figured you would have a better idea about how much work it would be.) In the abstract at least I think it would very helpful to have a command that could walk over a line of code in a syntax test file and generate syntax tests for that code based on the scope names it currently has. This would be a time saver when tweaking syntax scopes in a `.sublime-syntax` file. So for example you would go from before:\n\n```\n<!-- SYNTAX TEST \"HTML.sublime-syntax\" -->\n<html>\n```\n\nto after:\n\n```\n<!-- SYNTAX TEST \"HTML.sublime-syntax\" -->\n<html>\n<!-- <- text.html.basic meta.tag.structure.any.html punctuation.definition.tag.begin.html -->\n <!-- <- entity.name.tag.structure.any.html -punctuation.definition.tag.begin.html -->\n<!-- ^ punctuation.definition.tag.end.html -entity.name.tag.structure.any.html -->\n```\n\nor some form of the above. I figure it would add a test wherever the set of scope names changed on the line. What do you think?\n"},"comment":{"url":"https://api.github.com/repos/SublimeText/PackageDev/issues/comments/267430508","html_url":"https://github.com/SublimeText/PackageDev/issues/71#issuecomment-267430508","issue_url":"https://api.github.com/repos/SublimeText/PackageDev/issues/71","id":267430508,"user":{"login":"keith-hall","id":11882719,"avatar_url":"https://avatars.githubusercontent.com/u/11882719?v=3","gravatar_id":"","url":"https://api.github.com/users/keith-hall","html_url":"https://github.com/keith-hall","followers_url":"https://api.github.com/users/keith-hall/followers","following_url":"https://api.github.com/users/keith-hall/following{/other_user}","gists_url":"https://api.github.com/users/keith-hall/gists{/gist_id}","starred_url":"https://api.github.com/users/keith-hall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith-hall/subscriptions","organizations_url":"https://api.github.com/users/keith-hall/orgs","repos_url":"https://api.github.com/users/keith-hall/repos","events_url":"https://api.github.com/users/keith-hall/events{/privacy}","received_events_url":"https://api.github.com/users/keith-hall/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T20:08:47Z","updated_at":"2016-12-15T20:08:47Z","body":"@jcberquist I just typed this up real quick, so it's probably a bit hacky:\r\nhttps://gist.github.com/keith-hall/3499ef5b6ee68e22b45e5f05ab16cf2d"}}
{"actor":{"display_login":"keith-hall"}}