{"comment":{"created_at":"2011-10-18T07:49:39Z","body":"Great, this works, thank you pstjvn.","updated_at":"2011-10-18T07:49:39Z","url":"https://api.github.com/repos/gmate/gmate/issues/comments/2438973","id":2438973,"user":{"avatar_url":"https://secure.gravatar.com/avatar/be07d6aaf0b55778ac71a8c2da841963?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"be07d6aaf0b55778ac71a8c2da841963","url":"https://api.github.com/users/honzzz","id":159877,"login":"honzzz"}},"action":"created","issue":{"number":95,"created_at":"2011-09-16T08:45:24Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Smart Indent works great with Ruby but it seems to have problem with PHP and JavaScript. For example this code:\r\n\r\nfunction indent(test) {\r\n\treturn test;\r\n}\r\n\r\n... I would expect Smart Indent to indent after opening { and un-indent after closing } - but it does not do any of it. With PHP it does indent after opening { but I cannot get it to un-indent no matter what I try. I have to admitt that I am not very good with regexes - I cannot see any error in them and I cannot even manage to convince Smart Indent to do this simple thing (indent on {, un-indent on }) with no other indentation whatsoever. \r\n\r\nDoes anyone else have the same problem? Could the cause be anything else than incorrect regex in Smart Indent config? I have turned off all plugins that have anything to do with indentation. What else could be the cause?\r\n\r\nThank you very much for your help.","comments":4,"title":"Smart Indent working incorrectly with PHP and JavaScript?","updated_at":"2011-10-18T07:49:39Z","url":"https://api.github.com/repos/gmate/gmate/issues/95","id":1660514,"assignee":null,"milestone":null,"closed_at":"2011-10-18T07:49:35Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/be07d6aaf0b55778ac71a8c2da841963?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"be07d6aaf0b55778ac71a8c2da841963","url":"https://api.github.com/users/honzzz","id":159877,"login":"honzzz"},"html_url":"https://github.com/gmate/gmate/issues/95","labels":[],"state":"closed"},"legacy":{"issue_id":1660514,"comment_id":2438973}}