{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/886","labels_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/886/labels{/name}","comments_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/886/comments","events_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/886/events","html_url":"https://github.com/SublimeTextIssues/Core/issues/886","id":87075730,"number":886,"title":"[.sublime-syntax, syntax_test] tabs in code throw off tests; tests basically require regular spaces.","user":{"login":"abathur","id":2548365,"avatar_url":"https://avatars.githubusercontent.com/u/2548365?v=3","gravatar_id":"","url":"https://api.github.com/users/abathur","html_url":"https://github.com/abathur","followers_url":"https://api.github.com/users/abathur/followers","following_url":"https://api.github.com/users/abathur/following{/other_user}","gists_url":"https://api.github.com/users/abathur/gists{/gist_id}","starred_url":"https://api.github.com/users/abathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abathur/subscriptions","organizations_url":"https://api.github.com/users/abathur/orgs","repos_url":"https://api.github.com/users/abathur/repos","events_url":"https://api.github.com/users/abathur/events{/privacy}","received_events_url":"https://api.github.com/users/abathur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20Syntax%20Highlighting","name":"C: Syntax Highlighting","color":"669933"},{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/S:%20minor","name":"S: minor","color":"F2A984"},{"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/T:%20enhancement","name":"T: enhancement","color":"1975E7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-10T19:17:37Z","updated_at":"2015-06-10T20:31:53Z","closed_at":null,"body":"I identified this elsewhere for a new syntax def I'm writing, but I've boiled it down to a simpler reproduction case here:\r\n\r\nFollow these steps:\r\n\r\n1. open/create a markdown (.md) file, go to Tools -> New Syntax from Markdown.tmLanguage\r\n2. Save the .sublime-syntax that is opened in your Packages dir. I used Packages/Users/Markdown.sublime-syntax for mine.\r\n3. Create a file with the following contents and save it (anywhere is fine, I think) with the name `sublime_syntax_markdown.md`:\r\n\r\n```\r\n// SYNTAX TEST \"/Packages/User/Markdown.sublime-syntax\"\r\n\ttest\r\n//  ^ meta.paragraph.markdown\r\n```\r\n\r\n4. Use your build command, and build as a Syntax Test\r\n\r\nThe above steps produce a result like this for me:\r\n> Packages/User/syntax_test_markdown.md:2:5: [meta.paragraph.markdown] does not match scope [text.plain]\r\n\r\nThe actual scopes I see at this position are: `text.html.markdown meta.paragraph.markdown`\r\nThe plausible followup (use tabs in the test defs instead of spaces) won't work; the build fails (`interior tabs, please use spaces only`). The other solution (converting tabs to spaces in the code) is an acceptable workaround in my case, but it seems inevitable that someone will eventually want to build tests for a syntax definition (.tsv?) where tabs are critical."},"comment":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/comments/110903247","html_url":"https://github.com/SublimeTextIssues/Core/issues/886#issuecomment-110903247","issue_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/886","id":110903247,"user":{"login":"abathur","id":2548365,"avatar_url":"https://avatars.githubusercontent.com/u/2548365?v=3","gravatar_id":"","url":"https://api.github.com/users/abathur","html_url":"https://github.com/abathur","followers_url":"https://api.github.com/users/abathur/followers","following_url":"https://api.github.com/users/abathur/following{/other_user}","gists_url":"https://api.github.com/users/abathur/gists{/gist_id}","starred_url":"https://api.github.com/users/abathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abathur/subscriptions","organizations_url":"https://api.github.com/users/abathur/orgs","repos_url":"https://api.github.com/users/abathur/repos","events_url":"https://api.github.com/users/abathur/events{/privacy}","received_events_url":"https://api.github.com/users/abathur/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T20:31:53Z","updated_at":"2015-06-10T20:31:53Z","body":"I'd been pondering adding some additional arguments to the declaration as a way around, myself, since even if it did have column information from the editor, it could vary for whoever is running the tests. I think a `TABSIZE` \"argument\" is a reasonable way to handle it.\r\n\r\nIt also seems like the `<comment-token> <- <scope>` form could be used with tabs preceding the comment token but still not allowed inside the test spec itself, but when I tried this (in my original case; I didn't repeat this effort on the reduced test case I submitted here) it complained about misaligned spacing, if I recall."}}