Skip to content

Improved Interps in Embedded ES

Choose a tag to compare

@blake-regalia blake-regalia released this 25 Apr 22:40
· 18 commits to master since this release

I write a lot of code generators and frequently embed javascript inside template literals. This update significantly improves highlighting for the embedded syntax after being interrupted by an interpolated value.

Here is a quick demo of just a few places where you can now safely use interpolation as if you are substituting an identifier and still have beautiful highlighting:
Screen Shot 2020-04-25 at 3 34 52 PM