summaryrefslogtreecommitdiffstats
path: root/kate/data/sql-postgresql.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2016-10-17 02:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-10-17 02:27:29 +0900
commitfddd4b7f8bdd9b0c5b4d3e21618c0a899937f646 (patch)
tree80985eb703c7efdea28707a1fbef05b8c6df589c /kate/data/sql-postgresql.xml
parent7406ed0563952d1ee433e02e75fb44a5d0d0a81d (diff)
downloadtdelibs-fddd4b7f8bdd9b0c5b4d3e21618c0a899937f646.tar.gz
tdelibs-fddd4b7f8bdd9b0c5b4d3e21618c0a899937f646.zip
Kate syntax highlighting files update - Oct 2016
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kate/data/sql-postgresql.xml')
-rw-r--r--kate/data/sql-postgresql.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kate/data/sql-postgresql.xml b/kate/data/sql-postgresql.xml
index a8b1101ac..e186e4b62 100644
--- a/kate/data/sql-postgresql.xml
+++ b/kate/data/sql-postgresql.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- PostgreSQL SQL, syntax definition based on sql.xml by Yury Lebedev -->
-<language name="SQL (PostgreSQL)" version="1.13" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license="">
+<language name="SQL (PostgreSQL)" version="2" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license="">
<highlighting>
<list name="keywords">
<item> ABORT </item>
@@ -733,7 +733,8 @@
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<!-- HACK: don't jump into MultiLineString for CREATE FUNCTION $funcName$...$funcName$ -->
- <StringDetect String="CREATE FUNCTION" context="CreateFunction" attribute="Keyword"/>
+ <RegExpr String="create\s+(or\s+replace\s+)?function" insensitive="true" context="CreateFunction" attribute="Keyword"/>
+ <RegExpr String="do\s+\$([^\$\n\r]*)\$" insensitive="true" context="FunctionBody" attribute="Keyword"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Operator" context="#stay" String="operators"/>
<keyword attribute="Function" context="#stay" String="functions"/>