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

Fix highlighting of "injected language fragments" #141

Merged

Conversation

arcticicestudio
Copy link
Contributor

Fixes #140


Before

After

Before the `INJECTED_LANGUAGE_FRAGMENT` editor color scheme key was
set to use `nord10` as foreground which overrides any language specific
highlighting of "injected language fragments", e.g. when using CSS-in-JS
libraries like styled-components [1] through the
"Styled Components & Styled JSX“ [2] plugin.

This has been fixed by removing the defined foreground color entirely so
the highlighting for the specific languages is uses instead.

[1]: https://styled-components.com
[2]: https://plugins.jetbrains.com/plugin/9997-styled-components--styled-jsx

GH-140
@arcticicestudio arcticicestudio merged commit 541b358 into develop Feb 17, 2020
@arcticicestudio arcticicestudio deleted the bugix/gh-140-injected-language-fragments-highlighting branch February 17, 2020 13:02
@arcticicestudio arcticicestudio removed their assignment Feb 17, 2020
svengreb pushed a commit that referenced this pull request Feb 17, 2020
Before the `INJECTED_LANGUAGE_FRAGMENT` editor color scheme key was
set to use `nord10` as foreground which overrides any language specific
highlighting of "injected language fragments", e.g. when using CSS-in-JS
libraries like styled-components [1] through the
"Styled Components & Styled JSX“ [2] plugin.

This has been fixed by removing the defined foreground color entirely so
the highlighting for the specific languages is uses instead.

[1]: https://styled-components.com
[2]: https://plugins.jetbrains.com/plugin/9997-styled-components--styled-jsx

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

Successfully merging this pull request may close these issues.

Highlighting of "injected language fragments" is overridden
2 participants