```js
log.info(`Listening at ${ansi.cyan(`http://localhost:${port}/app`)}`);
```
This snippet may be odd but it is valid JavaScript.  Having a template literal 
inside the `${}` of another template literal is valid.  geany 1.33 is 
interpreting the backtick after `ansi.cyan(` as the end of the first template 
literal.  Unfortunately this also causes the `//` in the URL to be interpreted 
as a Javascript comment so code folding is incorrect (the closing parenthesis 
is not seen).

For this specific issue I've just modified my code so `Listening at ` is a 
separate string so the call to ansi.cyan is not inside any template.  In other 
cases such as [lit-html 
templates](https://polymer.github.io/lit-html/guide/writing-templates#loops-with-arraymap)
 nested template literals will be unavoidable.

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1984

Reply via email to