Created
March 29, 2018 15:07
-
-
Save undeadcat/fdd710cde062bd510c6fbe33e6157bc2 to your computer and use it in GitHub Desktop.
Intellij IDEA with styled-components: add injection for 'withProps' function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LanguageInjectionConfiguration> | |
<injection language="LESS" injector-id="js"> | |
<display-name>styled-components withProps</display-name> | |
<prefix>div {</prefix> | |
<suffix>}</suffix> | |
<place><![CDATA[stringTemplate().withParent(taggedTemplate(jsExpression().withChild(jsReferenceExpression().withNameStartingWith("withProps"))))]]></place> | |
</injection> | |
</LanguageInjectionConfiguration> |
Author
undeadcat
commented
Mar 29, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment