isRuslan/vim-es6

Template strings

rreusser opened this issue · 8 comments

Would be great if it supported template strings! I have work to do so can't investigate this at the moment, but since it's nearly identical to ruby string interpolation, this may be a good starting point:

https://github.com/vim/vim/blob/db9bc0b7931d252cf578c1cd298ac905b904ebe7/runtime/syntax/ruby.vim#L43

Thanks for suggestion, I'll check that.

@rreusser I've made some effort in 6a66641c75d6a96dce58cf0da1467ef1ba71c841.

So, template strings became look like this:

str

Is it desired result?

@bdryanovski It is also not at 100% here, but I do not have coloured multilines.
screenshot from 2015-11-17 14-30-40

@isRuslan , it seems nested template strings are not parsed correctly.
image

@sethyuan I've updated template strings, it should solves your problem.
multi

@isRuslan, sweet! It works perfectly. Thanks for this great plugin!

@sethyuan nice :) closing issue then.