-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add postcss
support, and support vue & svelte <style lang="...">
injections, and highlight svelte block keywords
#18052
Conversation
@@ -1,6 +1,6 @@ | |||
name = "CSS" | |||
grammar = "css" | |||
path_suffixes = ["css"] | |||
path_suffixes = ["css", "postcss"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do people actually use .postcss
as a file extension?
I've only ever seen it used with .css
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're just adding this to recognize <style lang="postcss">
I think that would be better handled in the injections query itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it is in various other plugins
https://marketplace.visualstudio.com/items?itemName=csstools.postcss
It might even be worth adding pcss
but up to you.
My argument in favor is that whilst it is compatible with CSS, tonnes of tooling expects the existence of postcss
files, or postcss
as a preprocessor directive (which users must use in order to trigger the correct preprocessor in their tooling (ie, svelte, vue).
Therefore it is reasonable to add it as a path stuffix
This comment was marked as spam.
This comment was marked as spam.
@maxdeviant sorry if that was spam, but I'm just trying to get this merged as there is still an outstanding issue that a user was having due to this - and I think the PR is ready to merge |
Splitting this PR into more focused ones: |
This PR adjusts the highlights for `{#each ...}` and `{#if ...}` expression blocks to use keyword highlighting. Extracted from #18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
This PR adds support for injecting languages into `<style>` tags using `<style lang="...">` in Vue. Extracted from #18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
This PR adjusts the highlights for `{#each ...}` and `{#if ...}` expression blocks to use keyword highlighting. Extracted from zed-industries/zed#18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
…ed#19419) This PR adds support for injecting languages into `<style>` tags using `<style lang="...">` in Vue. Extracted from zed-industries/zed#18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
This PR adjusts the highlights for `{#each ...}` and `{#if ...}` expression blocks to use keyword highlighting. Extracted from #18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
This PR adds support for injecting languages into `<style>` tags using `<style lang="...">` in Vue. Extracted from #18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
Thanks @maxdeviant |
This PR adjusts the highlights for `{#each ...}` and `{#if ...}` expression blocks to use keyword highlighting. Extracted from zed-industries#18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
…ies#19419) This PR adds support for injecting languages into `<style>` tags using `<style lang="...">` in Vue. Extracted from zed-industries#18052. Release Notes: - N/A Co-authored-by: Albert Marashi <[email protected]>
lang="postcss"
#18033Release Notes:
postcss
as a valid extension in thecss
language<style lang="postcss">
language support{#each ...}
{#if ...}
expression blocks keyword highlighting<style lang="...">
language injections are now supported