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

Support for /*css*/ flags #55

Open
RobertAKARobin opened this issue Feb 16, 2024 · 0 comments
Open

Support for /*css*/ flags #55

RobertAKARobin opened this issue Feb 16, 2024 · 0 comments

Comments

@RobertAKARobin
Copy link

Thanks for all the work on this! We just added it to our project and it's working great so far.

There are some situations where we use Lit-style templates without using the actual lit template function, like when we're really concerned about performance and don't expect to need to reevaluate the template. For example:

const mycss = /*css*/`
div {
  color: red;
}
`;

There are several VSCode plugins that provide syntax highlighting for this syntax (example). However to my knowledge there isn't yet a Postcss custom syntax defined for this.

Since the syntax is almost exactly the same, it would be great if this custom syntax supported /*css*/ as well as css. It may be technically outside the scope of a plugin intended for Lit, but there is surely a lot of overlap between the groups that use /*css*/ and css, and it should be a trivial amount of work.

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

1 participant