You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
But as soon as prettier formats the variable assignment (adding a space before the html tagged template) then syntax highlighting ceases to work:
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?
The text was updated successfully, but these errors were encountered:
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
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.
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:But as soon as prettier formats the variable assignment (adding a space before the
html
tagged template) then syntax highlighting ceases to work: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?
The text was updated successfully, but these errors were encountered: