typescript-vim icon indicating copy to clipboard operation
typescript-vim copied to clipboard

Syntax Highlight broken using template string

Open levivm opened this issue 6 years ago • 5 comments

In vim, using template strings brokes the syntax highlight.

Using ` screen shot 2019-01-19 at 1 23 29 pm

Using ' instead of ` screen shot 2019-01-19 at 1 23 53 pm

levivm avatar Jan 19 '19 18:01 levivm

Any workaround?

satshabad-cr avatar Sep 13 '19 23:09 satshabad-cr

Does someone find a solution for this ?

ismatim avatar Aug 27 '20 13:08 ismatim

@satshabad-cr do you have this problem with OSX with iTerm2 ? It only happens with that setup.

ismatim avatar Aug 31 '20 20:08 ismatim

I haven't used this setup in a bit, but it was on my ubuntu laptop with konsole I believe

satshabad-cr avatar Aug 31 '20 21:08 satshabad-cr

Kind of late, but for anyone else coming across this, typescript-vim's syntax highlighting isn't applied by default to vanilla js files. This bug can manifest as an unrelated issue where vim detects the filetype as javascript when it should be javascriptreact or some other jsx filetype (can easily happen if you've outsourced your builds to a third party, e.g: https://github.com/facebook/create-react-app/issues/87#issuecomment-234627904). You can use :set ft=javascriptreact to explicitly set the file type (substitute whatever filetype is appropriate for your framework / setup).

ivorpeles avatar Jul 11 '23 21:07 ivorpeles