summaryrefslogtreecommitdiff
path: root/python/IntelliLang-python/src/resources/pyInjections.xml
diff options
context:
space:
mode:
Diffstat (limited to 'python/IntelliLang-python/src/resources/pyInjections.xml')
-rw-r--r--python/IntelliLang-python/src/resources/pyInjections.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/IntelliLang-python/src/resources/pyInjections.xml b/python/IntelliLang-python/src/resources/pyInjections.xml
new file mode 100644
index 000000000000..fc9207aeb8f9
--- /dev/null
+++ b/python/IntelliLang-python/src/resources/pyInjections.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component name="LanguageInjectionConfiguration">
+ <injection language="SQLite" injector-id="python">
+ <display-name>sqlite3</display-name>
+ <place><![CDATA[pyLiteralExpression().and(pyMethodArgument("execute", 0, "_sqlite3.Connection"))]]></place>
+ <place><![CDATA[pyLiteralExpression().and(pyMethodArgument("executemany", 0, "_sqlite3.Connection"))]]></place>
+ <place><![CDATA[pyLiteralExpression().and(pyMethodArgument("execute", 0, "_sqlite3.Cursor"))]]></place>
+ <place><![CDATA[pyLiteralExpression().and(pyMethodArgument("executemany", 0, "_sqlite3.Cursor"))]]></place>
+ </injection>
+ <injection language="SQL" injector-id="python">
+ <display-name>"SQL select/delete/insert/update/create"</display-name>
+ <place><![CDATA[pyStringLiteralMatches("[ \\t\\r\\n]*(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +(TABLE|INDEX))).*")]]></place>
+ </injection>
+</component>