{"action":"opened","issue":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1162","repository_url":"https://api.github.com/repos/isagalaev/highlight.js","labels_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1162/comments","events_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1162/events","html_url":"https://github.com/isagalaev/highlight.js/issues/1162","id":152019370,"number":1162,"title":"Template literals with interpolated expressions break highlighting","user":{"login":"RinkAttendant6","id":351158,"avatar_url":"https://avatars.githubusercontent.com/u/351158?v=3","gravatar_id":"","url":"https://api.github.com/users/RinkAttendant6","html_url":"https://github.com/RinkAttendant6","followers_url":"https://api.github.com/users/RinkAttendant6/followers","following_url":"https://api.github.com/users/RinkAttendant6/following{/other_user}","gists_url":"https://api.github.com/users/RinkAttendant6/gists{/gist_id}","starred_url":"https://api.github.com/users/RinkAttendant6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RinkAttendant6/subscriptions","organizations_url":"https://api.github.com/users/RinkAttendant6/orgs","repos_url":"https://api.github.com/users/RinkAttendant6/repos","events_url":"https://api.github.com/users/RinkAttendant6/events{/privacy}","received_events_url":"https://api.github.com/users/RinkAttendant6/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-30T09:09:52Z","updated_at":"2016-04-30T09:09:52Z","closed_at":null,"body":"This example works fine:\r\n```js\r\nvar time = '09h00'\r\nvar msg = `I take the bus to work every day at ${time}`\r\n```\r\n\r\nHowever a slightly more sophisticated example with interpolated expressions does not work:\r\n```js\r\nvar buses = [3, 2, 4]\r\nvar msg = `I rode on a total of ${buses.reduce((a,b) => a + b, 0)} buses over the course of ${buses.length} days`\r\n```\r\n\r\nMulti-line template literals that contain HTML code also seem to trip up the plugin:\r\n```js\r\nvar row = `<tr>\r\n        <td>Data</td>\r\n        <td>More data</td>\r\n    </tr>`;\r\n```\r\n\r\nTried forcing it to TypeScript but it did not work. I am using version 9.0.3."}}