diff options
Diffstat (limited to 'kate/data/sql-postgresql.xml')
-rw-r--r-- | kate/data/sql-postgresql.xml | 5 |
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"/> |