<div class="highlight highlight-source-js"><pre><span class="pl-smi">log</span>.<span class="pl-en">info</span>(<span class="pl-s"><span class="pl-pds">`</span>Listening at <span class="pl-s1"><span class="pl-pse">${</span><span class="pl-smi">ansi</span>.<span class="pl-en">cyan</span>(<span class="pl-s"><span class="pl-pds">`</span>http://localhost:<span class="pl-s1"><span class="pl-pse">${</span>port<span class="pl-pse">}</span></span>/app<span class="pl-pds">`</span></span>)<span class="pl-pse">}</span></span><span class="pl-pds">`</span></span>);</pre></div>
<p>This snippet may be odd but it is valid JavaScript.  Having a template literal inside the <code>${}</code> of another template literal is valid.  geany 1.33 is interpreting the backtick after <code>ansi.cyan(</code> as the end of the first template literal.  Unfortunately this also causes the <code>//</code> in the URL to be interpreted as a Javascript comment so code folding is incorrect (the closing parenthesis is not seen).</p>
<p>For this specific issue I've just modified my code so <code>Listening at </code> is a separate string so the call to ansi.cyan is not inside any template.  In other cases such as <a href="https://polymer.github.io/lit-html/guide/writing-templates#loops-with-arraymap" rel="nofollow">lit-html templates</a> nested template literals will be unavoidable.</p>
<p>I'm not sure if this is a scintilla bug and even if it is I see that scintilla has been updated since the release of geany 1.33 so I figure this is the correct place to start.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1984">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ_VDgp4MDSJIWhplglPLBqUQFCJXks5un6LJgaJpZM4X21Zc">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ5H5OgM5JLefZLZ85AhuizuOkd_Dks5un6LJgaJpZM4X21Zc.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Nested Javascript template literals are incorrectly parsed. (#1984)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1984"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1984",
"url": "https://github.com/geany/geany/issues/1984",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Nested Javascript template literals are incorrectly parsed. (#1984)",
"sections": [
{
"text": "",
"activityTitle": "**Corey Farrell**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@coreyfarrell",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1984
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1984,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1984\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1984"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 400250460\n}"
}
],
"themeColor": "26292E"
}
]</script>