Skip to content

Commit 406c853

Browse files
authored
Merge pull request neueda#27 from neueda/csharp-injection
Cypher injection in C# strings
2 parents 9ca5f51 + 83c26fc commit 406c853

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

graph-database-support-plugin/src/main/resources/META-INF/intellilang-cypher-support.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<extensions defaultExtensionNs="org.intellij.intelliLang">
55
<injectionConfig config="javaInjections.xml"/>
66
<injectionConfig config="pythonInjections.xml"/>
7+
<injectionConfig config="csharpInjections.xml"/>
78
</extensions>
89
</idea-plugin>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component name="LanguageInjectionConfiguration">
3+
<injection language="Cypher" injector-id="csharp">
4+
<display-name>&quot;Cypher in C#&quot;</display-name>
5+
<place><![CDATA[
6+
csharpLiteralExpression().withText(string()
7+
.matchesBrics("[\"'`] *((MATCH .*(SET|RETURN|(SET|WHERE .*CREATE) .*RETURN))|(CREATE .*(RETURN)?)) .*[\"'`]?"))
8+
]]></place>
9+
</injection>
10+
</component>

0 commit comments

Comments
 (0)