{"action":"created","issue":{"url":"https://api.github.com/repos/pugjs/pug/issues/2806","repository_url":"https://api.github.com/repos/pugjs/pug","labels_url":"https://api.github.com/repos/pugjs/pug/issues/2806/labels{/name}","comments_url":"https://api.github.com/repos/pugjs/pug/issues/2806/comments","events_url":"https://api.github.com/repos/pugjs/pug/issues/2806/events","html_url":"https://github.com/pugjs/pug/issues/2806","id":230761340,"number":2806,"title":"Why does having \"class\" and other attributes within parenthesis often return an error?","user":{"login":"typistX","id":6573474,"avatar_url":"https://avatars2.githubusercontent.com/u/6573474?v=3","gravatar_id":"","url":"https://api.github.com/users/typistX","html_url":"https://github.com/typistX","followers_url":"https://api.github.com/users/typistX/followers","following_url":"https://api.github.com/users/typistX/following{/other_user}","gists_url":"https://api.github.com/users/typistX/gists{/gist_id}","starred_url":"https://api.github.com/users/typistX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typistX/subscriptions","organizations_url":"https://api.github.com/users/typistX/orgs","repos_url":"https://api.github.com/users/typistX/repos","events_url":"https://api.github.com/users/typistX/events{/privacy}","received_events_url":"https://api.github.com/users/typistX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-23T15:59:48Z","updated_at":"2017-05-23T16:23:54Z","closed_at":"2017-05-23T16:19:53Z","body":"This is more a question than a bug. If I do:\r\n\r\n```\r\nbutton(type=\"button\" class=\"btn btn-default btn-sm\" data-toggle=\"modal\"\r\ndata-target=\".create-new-brand\")\r\n```\r\n\r\nPug will fail and complain about something with \"string\". Please note that from what I've seen, this happends regardless of the order of the HTML attributes, so:\r\n\r\n```\r\nbutton( class=\"btn btn-default btn-sm\" type=\"button\" data-toggle=\"modal\"\r\ndata-target=\".create-new-brand\")\r\n```\r\n\r\nYields the same error.\r\n\r\nI often find myself having to divide into multiple parenthesis, like so (3 different ones in this example):\r\n\r\n```\r\nbutton(type=\"button\")(class=\"btn btn-default btn-sm\")(data-toggle=\"modal\"\r\ndata-target=\".create-new-brand\")\r\n```\r\n\r\nAnd so:\r\n\r\n```\r\ndiv(class=\"modal fade create-new-brand\")(tabindex=\"-1\" role=\"dialog\")\r\n```\r\n\r\nIs this the expected behavior?"},"comment":{"url":"https://api.github.com/repos/pugjs/pug/issues/comments/303455519","html_url":"https://github.com/pugjs/pug/issues/2806#issuecomment-303455519","issue_url":"https://api.github.com/repos/pugjs/pug/issues/2806","id":303455519,"user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars3.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T16:23:54Z","updated_at":"2017-05-23T16:23:54Z","body":"You do not need commas between attributes. The example you posted works fine in the current version of pug. You might be using an ancient version (from at least 3 years ago, when we required commas). Can you post the stack trace as well?"}}
{"actor":{"display_login":"ForbesLindesay"}}