leafgarland / typescript-vim

Typescript syntax files for Vim
1.89k stars 144 forks source link

Syntax Highlight broken using template string #157

Open levivm opened 5 years ago

levivm commented 5 years ago

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

satshabad-cr commented 5 years ago

Any workaround?

ismatim commented 4 years ago

Does someone find a solution for this ?

ismatim commented 4 years ago

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

satshabad-cr commented 4 years ago

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

ivorpeles commented 1 year ago

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).