Created
June 11, 2017 12:33
-
-
Save aliceklipper/d09d5825c3bf28bbc90d138557babca1 to your computer and use it in GitHub Desktop.
xre regular expressions highlighting for IntelliJ IDEA
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="RegExp" injector-id="js"> | |
<display-name>xre-slashes</display-name> | |
<value-pattern>^/(.*)/.*$</value-pattern> | |
<place><![CDATA[jsLiteralExpression().withParent(psiElement().withText(string().startsWith("xre")))]]></place> | |
</injection> | |
</LanguageInjectionConfiguration> |
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="RegExp" injector-id="js"> | |
<display-name>xre</display-name> | |
<value-pattern>^([^/].*[^/])$</value-pattern> | |
<place><![CDATA[jsLiteralExpression().withParent(psiElement().withText(string().startsWith("xre")))]]></place> | |
</injection> | |
</LanguageInjectionConfiguration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment