jaxbot / semantic-highlight.vim

Semantic Highlighting for Vim
http://jaxbot.me/
486 stars 34 forks source link

Template literal support for JavaScript #72

Closed Gawwett closed 6 years ago

Gawwett commented 6 years ago

image As the image shows, the string below shows correctly; the template string shown above has some semantic highlighting. Anyway to add template string support? Really love the plugin anyway!

Reference to template literals

// EXAMPLE

// Declare a variable:
let someVariable = 25;

// String 1:
"This number is " + someVariable + ".";

// String 2:
`This number is ${someVariable}.`;

// These strings are identical.

// Random example:
`You can do everything :O, look here: ${someVariable + someVariable + someVariable}`;