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

Stops syntax highlighting if template tag is prefixed with space character #82

Open
lukejacksonn opened this issue Aug 27, 2020 · 2 comments

Comments

@lukejacksonn
Copy link

Here is an example of a template tagged with html and no space before an assignment to a variable. Syntax hightlighting and formatting work perfectly:

image

But as soon as prettier formats the variable assignment (adding a space before the html tagged template) then syntax highlighting ceases to work:

image

I've tried removing all other extensions that might conflict with lit-html to see if that is the issue, but not found anything yet. Is anyone else seeing or has seen this before?

@lukejacksonn lukejacksonn changed the title Stops formatting if template tag is prefixed with space character Stops syntax highlighting if template tag is prefixed with space character Aug 27, 2020
@Julienng
Copy link

Hi, I have the same problem

my code :
image

code with syntax highlight working :
image

@MarshallCB
Copy link

I was having the same problem for a few months, but I was able to get it working by disabling another JS syntax highlighter I had installed. In my case it was Babel JavaScript.

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

3 participants