mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-23311 Fixed: Postgres Create Extension doesn't get syntax highlighting
Add PostgreSQL extensions support.
This commit is contained in:
@@ -80,5 +80,11 @@
|
||||
|
||||
<place><![CDATA[pyStringLiteralMatches("^(\\s*((((--|#)[^\n\r]*)|(/\\*([^*]|\\*[^/])*\\*+/))(\r\n|\n|\r))+)?\\s*((BEGIN)|(START TRANSACTION))(\\s[^\n\r]+)?;")]]></place>
|
||||
<!-- MySQL/PostgreSQL transaction: ((BEGIN)|(START TRANSACTION))( smth)?; -->
|
||||
|
||||
<place><![CDATA[pyStringLiteralMatches("^(\\s*((((--|#)[^\n\r]*)|(/\\*([^*]|\\*[^/])*\\*+/))(\r\n|\n|\r))+)?\\s*((CREATE|DROP)\\s+EXTENSION\\s.+)")]]></place>
|
||||
<!-- PostgreSQL extension: (CREATE|DROP) EXTENSION smth -->
|
||||
|
||||
<place><![CDATA[pyStringLiteralMatches("^(\\s*((((--|#)[^\n\r]*)|(/\\*([^*]|\\*[^/])*\\*+/))(\r\n|\n|\r))+)?\\s*(ALTER\\s+EXTENSION\\s.+?\\s(UPDATE|(SET SCHEMA)|ADD|DROP))")]]></place>
|
||||
<!-- PostgreSQL extension: ALTER EXTENSION smth (UPDATE|SET SCHEMA|ADD|DROP) -->
|
||||
</injection>
|
||||
</component>
|
||||
|
||||
Reference in New Issue
Block a user