{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/1646","labels_url":"https://api.github.com/repos/jadejs/jade/issues/1646/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/1646/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/1646/events","html_url":"https://github.com/jadejs/jade/issues/1646","id":41671577,"number":1646,"title":"Clearer error message than: unexpected token \"indent\"","user":{"login":"bitfinity","id":209595,"avatar_url":"https://avatars.githubusercontent.com/u/209595?v=3","gravatar_id":"","url":"https://api.github.com/users/bitfinity","html_url":"https://github.com/bitfinity","followers_url":"https://api.github.com/users/bitfinity/followers","following_url":"https://api.github.com/users/bitfinity/following{/other_user}","gists_url":"https://api.github.com/users/bitfinity/gists{/gist_id}","starred_url":"https://api.github.com/users/bitfinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitfinity/subscriptions","organizations_url":"https://api.github.com/users/bitfinity/orgs","repos_url":"https://api.github.com/users/bitfinity/repos","events_url":"https://api.github.com/users/bitfinity/events{/privacy}","received_events_url":"https://api.github.com/users/bitfinity/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-02T02:56:07Z","updated_at":"2015-01-02T00:37:42Z","closed_at":"2015-01-02T00:37:42Z","body":"When you have a script tag and you don't indent one more level, you get that error.  It is actually the opposite of what the error is.  The error is a missing tab or indent."},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/68503701","html_url":"https://github.com/jadejs/jade/issues/1646#issuecomment-68503701","issue_url":"https://api.github.com/repos/jadejs/jade/issues/1646","id":68503701,"user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars.githubusercontent.com/u/1538624?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T00:37:42Z","updated_at":"2015-01-02T00:37:42Z","body":"By itself, the error output is completely correct (as demonstrated by the above CLI output). You cannot indent something if it doesn't have a parent.\r\n\r\nHowever, I figured when you reported this issue it was probably something like this:\r\n\r\n```jade\r\nbody\r\n    script.\r\n    $(function() {\r\n          $(\"#phone\").mask(\"(999) 999-9999\");\r\n    });\r\n```\r\n\r\nWhich outputs this:\r\n\r\n```\r\nWarning: missing space before text for line 3 of jade file \"undefined\"   //< HERE\r\n\r\n/home/timothy_gu/jade/lib/runtime.js:231\r\n  throw err;\r\n        ^\r\nError: Jade:4\r\n    2|     script.\r\n    3|     $(function() {\r\n  > 4|           $(\"#phone\").mask(\"(999) 999-9999\");\r\n    5|     });\r\n    6| \r\n    7| \r\n\r\nunexpected token \"indent\"\r\n    at Parser.parseExpr (/home/timothy_gu/jade/lib/parser.js:252:15)\r\n    at Parser.block (/home/timothy_gu/jade/lib/parser.js:707:25)\r\n    at Parser.tag (/home/timothy_gu/jade/lib/parser.js:816:24)\r\n    at Parser.parseTag (/home/timothy_gu/jade/lib/parser.js:737:17)\r\n    at Parser.parseExpr (/home/timothy_gu/jade/lib/parser.js:211:21)\r\n    at Parser.parse (/home/timothy_gu/jade/lib/parser.js:122:25)\r\n    at parse (/home/timothy_gu/jade/lib/index.js:102:21)\r\n    at Object.exports.compile (/home/timothy_gu/jade/lib/index.js:177:16)\r\n    at Socket.<anonymous> (/home/timothy_gu/jade/bin/jade.js:155:21)\r\n    at Socket.EventEmitter.emit (events.js:117:20)\r\n```\r\n\r\nAgain, completely correct.\r\n\r\nClosing."}}