{"action":"created","issue":{"url":"https://api.github.com/repos/olado/doT/issues/150","repository_url":"https://api.github.com/repos/olado/doT","labels_url":"https://api.github.com/repos/olado/doT/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/olado/doT/issues/150/comments","events_url":"https://api.github.com/repos/olado/doT/issues/150/events","html_url":"https://github.com/olado/doT/issues/150","id":63256706,"number":150,"title":"parser can't tell where java blocks begin and end","user":{"login":"cfurst","id":7406960,"avatar_url":"https://avatars.githubusercontent.com/u/7406960?v=3","gravatar_id":"","url":"https://api.github.com/users/cfurst","html_url":"https://github.com/cfurst","followers_url":"https://api.github.com/users/cfurst/followers","following_url":"https://api.github.com/users/cfurst/following{/other_user}","gists_url":"https://api.github.com/users/cfurst/gists{/gist_id}","starred_url":"https://api.github.com/users/cfurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfurst/subscriptions","organizations_url":"https://api.github.com/users/cfurst/orgs","repos_url":"https://api.github.com/users/cfurst/repos","events_url":"https://api.github.com/users/cfurst/events{/privacy}","received_events_url":"https://api.github.com/users/cfurst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T16:15:15Z","updated_at":"2016-04-19T16:52:13Z","closed_at":null,"body":"A simple catch block at the end of a function:\r\n```javascript\r\n{{ \r\n/* some javascript here begins the function */\r\ncatch (err) {\r\n\t\t\t\treturn {\"sortName\":undefined, \"value\": value};\r\n\t\t\t}\r\n\t\t} ).sort(function(a,b){/* more javascript here */\r\n}}\r\n```\r\nproduces the following:\r\n```javascript\r\ncatch (err) {return {\"sortName\": undefined, \"value\": value}out+=').sort(function(a,b){\r\n```\r\nSo the two }} at the end of the catch and the end of the function tricks the parser into thinking this is the end of the Javascript block.. when it is not. It should match on a literal }} and not just some combination of } and }"},"comment":{"url":"https://api.github.com/repos/olado/doT/issues/comments/212013154","html_url":"https://github.com/olado/doT/issues/150#issuecomment-212013154","issue_url":"https://api.github.com/repos/olado/doT/issues/150","id":212013154,"user":{"login":"ScrippsFEE","id":4502870,"avatar_url":"https://avatars.githubusercontent.com/u/4502870?v=3","gravatar_id":"","url":"https://api.github.com/users/ScrippsFEE","html_url":"https://github.com/ScrippsFEE","followers_url":"https://api.github.com/users/ScrippsFEE/followers","following_url":"https://api.github.com/users/ScrippsFEE/following{/other_user}","gists_url":"https://api.github.com/users/ScrippsFEE/gists{/gist_id}","starred_url":"https://api.github.com/users/ScrippsFEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScrippsFEE/subscriptions","organizations_url":"https://api.github.com/users/ScrippsFEE/orgs","repos_url":"https://api.github.com/users/ScrippsFEE/repos","events_url":"https://api.github.com/users/ScrippsFEE/events{/privacy}","received_events_url":"https://api.github.com/users/ScrippsFEE/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T16:52:13Z","updated_at":"2016-04-19T16:52:13Z","body":"You can also configure doT to use [[ ]] markers instead of {{ }}"}}