vscode-language-babel icon indicating copy to clipboard operation
vscode-language-babel copied to clipboard

Function calls with objects in template strings mismatching closing }

Open rattrayalex-stripe opened this issue 6 years ago • 5 comments

current behavior:

screen shot 2019-03-04 at 9 47 21 pm

github's behavior here is a bit better:

`hello ${world({
  one: 1,
  two: 2,
})} how are you`

specifically, the ${} characters should be a different color than the text, and the code inside should receive normal syntax highlighting.

I believe that the "Sublime Babel" vscode extension also has pretty good behavior here.

rattrayalex-stripe avatar Mar 05 '19 05:03 rattrayalex-stripe

Hmm. This doesn't seem to be an issue on my machine. What theme are you using?

Screen Shot 2019-05-13 at 4 56 20 PM

michaelgmcd avatar May 13 '19 20:05 michaelgmcd

@michaelgmcd Looks like I'm on Dark+ (default dark) – is that supported? (Note that it has the same issue on Solarized dark)

rattrayalex-stripe avatar May 14 '19 21:05 rattrayalex-stripe

Sorry for the delay. Can you try the "Palenight Italic" theme I'm using in the screenshot above?

michaelgmcd avatar Jun 05 '19 17:06 michaelgmcd

I do get the same result as you (it seems less broken), though it too is broken with the "Bracket Pair Colorizer" extension that I have:

Screen Shot 2019-06-05 at 2 58 04 PM

Note the closing }) which should be pink and then yellow

rattrayalex-stripe avatar Jun 05 '19 21:06 rattrayalex-stripe

@michaelgmcd any update here?

rattrayalex-stripe avatar Aug 06 '19 18:08 rattrayalex-stripe