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:28:13 +0900
commitd3b96e335f2f0412540d72a3d6e1d6449574c6f7 (patch)
tree3a772fe91647e6b78ff88ecbfa3efcb8d19fe90a /kate/data/sql-postgresql.xml
parent46887a349ea419f19d18e424a8b4a1c9c1e16e78 (diff)
downloadtdelibs-d3b96e335f2f0412540d72a3d6e1d6449574c6f7.tar.gz
tdelibs-d3b96e335f2f0412540d72a3d6e1d6449574c6f7.zip
Kate syntax highlighting files update - Oct 2016
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fddd4b7f8bdd9b0c5b4d3e21618c0a899937f646)
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"/>