diff options
Diffstat (limited to 'kate/data/sql-mysql.xml')
-rw-r--r-- | kate/data/sql-mysql.xml | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/kate/data/sql-mysql.xml b/kate/data/sql-mysql.xml index 4c0a99706..3a260fe74 100644 --- a/kate/data/sql-mysql.xml +++ b/kate/data/sql-mysql.xml @@ -5,7 +5,7 @@ original by Shane Wright (me@shanewright.co.uk) modifications by Milian Wolff (mail@milianw.de) --> -<language name="SQL (MySQL)" version="1.09" kateversion="2.5" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license=""> +<language name="SQL (MySQL)" version="1.13" kateversion="2.5" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license=""> <highlighting> <list name="keywords"> <item> ACCESS </item> @@ -381,6 +381,7 @@ </list> <contexts> <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> + <DetectSpaces /> <!-- problematic special cases --> <!-- SET type --> <RegExpr attribute="Data Type" context="#stay" insensitive="true" String="SET(?=\s*\()"/> @@ -391,16 +392,12 @@ <keyword attribute="Operator" context="#stay" String="operators"/> <keyword attribute="Function" context="#stay" String="functions"/> <keyword attribute="Data Type" context="#stay" String="types"/> + + <DetectIdentifier /> <!-- extra data types --> - <RegExpr attribute="Data Type" context="#stay" String="%bulk_exceptions\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%bulk_rowcount\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%found\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%isopen\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%notfound\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%rowcount\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%rowtype\b" insensitive="true"/> - <RegExpr attribute="Data Type" context="#stay" String="%type\b" insensitive="true"/> + <RegExpr attribute="Data Type" context="#stay" String="%(?:bulk_(?:exceptions|rowcount)|found|isopen|notfound|rowcount|rowtype|type)\b" insensitive="true"/> <!-- numbers --> + <HlCHex attribute="Hex" context="#stay"/> <Float attribute="Float" context="#stay"/> <Int attribute="Decimal" context="#stay"/> <!-- strings --> @@ -412,7 +409,7 @@ <Detect2Chars attribute="Comment" context="SingleLineComment" char="-" char1="-"/> <Detect2Chars attribute="Comment" context="MultiLineComment" char="/" char1="*" beginRegion="Comment"/> <RegExpr attribute="Comment" context="SingleLineComment" String="rem\b" insensitive="true" column="0"/> - + <AnyChar attribute="Symbol" context="#stay" String=":&"/> <RegExpr attribute="Symbol" context="#stay" String="/$" column="0"/> <RegExpr attribute="Preprocessor" context="Preprocessor" String="@@?[^@ \t\r\n]" column="0"/> @@ -449,19 +446,20 @@ <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"/> </contexts> <itemDatas> - <itemData name="Normal Text" defStyleNum="dsNormal"/> - <itemData name="Keyword" defStyleNum="dsKeyword"/> - <itemData name="Operator" defStyleNum="dsNormal"/> - <itemData name="Function" defStyleNum="dsFunction"/> - <itemData name="Data Type" defStyleNum="dsDataType"/> - <itemData name="Decimal" defStyleNum="dsDecVal"/> - <itemData name="Float" defStyleNum="dsFloat"/> + <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> + <itemData name="Operator" defStyleNum="dsNormal" spellChecking="false"/> + <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> + <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> + <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/> + <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> + <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> <itemData name="String" defStyleNum="dsString"/> - <itemData name="Name" color="#080" defStyleNum="dsString"/> - <itemData name="String Char" defStyleNum="dsChar"/> + <itemData name="Name" color="#080" defStyleNum="dsString" spellChecking="false"/> + <itemData name="String Char" defStyleNum="dsChar" spellChecking="false"/> <itemData name="Comment" defStyleNum="dsComment"/> - <itemData name="Symbol" defStyleNum="dsChar"/> - <itemData name="Preprocessor" defStyleNum="dsOthers"/> + <itemData name="Symbol" defStyleNum="dsChar" spellChecking="false"/> + <itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/> </itemDatas> </highlighting> <general> @@ -473,4 +471,4 @@ <folding indentationsensitive="true"/> </general> </language> - + |