Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Highlight broken using template string #157

Open
levivm opened this issue Jan 19, 2019 · 5 comments
Open

Syntax Highlight broken using template string #157

levivm opened this issue Jan 19, 2019 · 5 comments

Comments

@levivm
Copy link

levivm commented Jan 19, 2019

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 levivm changed the title Syntax Highlight broken after ` Syntax Highlight broken using template string Jan 19, 2019
@satshabad-cr
Copy link

Any workaround?

@ismatim
Copy link

ismatim commented Aug 27, 2020

Does someone find a solution for this ?

@ismatim
Copy link

ismatim commented Aug 31, 2020

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

@satshabad-cr
Copy link

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

@ivorpeles
Copy link

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: facebook/create-react-app#87 (comment)). You can use :set ft=javascriptreact to explicitly set the file type (substitute whatever filetype is appropriate for your framework / setup).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants