Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ed84f78e authored by Anders Lund's avatar Anders Lund

Use insensiteve flag to regexps intead of [Xx] classes (67 instances/file!)

I have *not* updated the keyword lists in sql-mysql or sql-pgsql, but maybe it's time to take a look?
CCMAIL: Shane Wright <me@shanewright.co.uk>

svn path=/trunk/kdelibs/kate/; revision=361838
parent 484cc584
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- mySQL SQL, syntax definition based on sql.xml by Yury Lebedev -->
<language name="SQL (MySQL)" version="1.06" kateversion="2.3" 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.07" kateversion="2.3" 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>
......@@ -361,21 +361,21 @@
<keyword attribute="Operator" context="#stay" String="operators"/>
<keyword attribute="Function" context="#stay" String="functions"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Bb][Uu][Ll][Kk]_[Ee][Xx][Cc][Ee][Pp][Tt][Ii][Oo][Nn][Ss]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Bb][Uu][Ll][Kk]_[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Ff][Oo][Uu][Nn][Dd]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Ii][Ss][Oo][Pp][Ee][Nn]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Nn][Oo][Tt][Ff][Oo][Uu][Nn][Dd]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Rr][Oo][Ww][Tt][Yy][Pp][Ee]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Tt][Yy][Pp][Ee]\b"/>
<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"/>
<Float attribute="Float" context="#stay"/>
<Int attribute="Decimal" context="#stay"/>
<DetectChar attribute="String" context="String" char="'"/>
<DetectChar attribute="Comment" context="SingleLineComment" char="#"/>
<Detect2Chars attribute="Comment" context="SingleLineComment" char="-" char1="-"/>
<Detect2Chars attribute="Comment" context="MultiLineComment" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="SingleLineComment" String="^[Rr][Ee][Mm]\b"/>
<RegExpr attribute="Comment" context="SingleLineComment" String="^rem\b" insensitive="true"/>
<DetectChar attribute="Comment" context="Identifier" char="&quot;"/>
<AnyChar attribute="Symbol" context="#stay" String=":&#38;"/>
<RegExpr attribute="Symbol" context="#stay" String="^/$"/>
......
<?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.06" kateversion="2.3" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license="">
<language name="SQL (PostgreSQL)" version="1.07" kateversion="2.3" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Shane Wright (me@shanewright.co.uk)" license="">
<highlighting>
<list name="keywords">
<item> ABORT </item>
......@@ -735,21 +735,21 @@
<keyword attribute="Operator" context="#stay" String="operators"/>
<keyword attribute="Function" context="#stay" String="functions"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Bb][Uu][Ll][Kk]_[Ee][Xx][Cc][Ee][Pp][Tt][Ii][Oo][Nn][Ss]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Bb][Uu][Ll][Kk]_[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Ff][Oo][Uu][Nn][Dd]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Ii][Ss][Oo][Pp][Ee][Nn]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Nn][Oo][Tt][Ff][Oo][Uu][Nn][Dd]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Rr][Oo][Ww][Tt][Yy][Pp][Ee]\b"/>
<RegExpr attribute="Data Type" context="#stay" String="%[Tt][Yy][Pp][Ee]\b"/>
<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"/>
<Float attribute="Float" context="#stay"/>
<Int attribute="Decimal" context="#stay"/>
<DetectChar attribute="String" context="String" char="'"/>
<DetectChar attribute="Comment" context="SingleLineComment" char="#"/>
<Detect2Chars attribute="Comment" context="SingleLineComment" char="-" char1="-"/>
<Detect2Chars attribute="Comment" context="MultiLineComment" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="SingleLineComment" String="^[Rr][Ee][Mm]\b"/>
<RegExpr attribute="Comment" context="SingleLineComment" String="^rem\b" insensitive="true"/>
<DetectChar attribute="Comment" context="Identifier" char="&quot;"/>
<AnyChar attribute="Symbol" context="#stay" String=":&#38;"/>
<RegExpr attribute="Symbol" context="#stay" String="^/$"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Oracle9i SQL and PL/SQL syntax - ANSI SQL superset -->
<language name="SQL" version="1.07" kateversion="2.3" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="">
<language name="SQL" version="1.08" kateversion="2.3" section="Database" extensions="*.sql;*.SQL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="">
<highlighting>
<list name="keywords">
<item> ACCESS </item>
......@@ -831,20 +831,20 @@
<keyword attribute="Operator" String="operators" context="#stay"/>
<keyword attribute="Function" String="functions" context="#stay"/>
<keyword attribute="Data Type" String="types" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Bb][Uu][Ll][Kk]_[Ee][Xx][Cc][Ee][Pp][Tt][Ii][Oo][Nn][Ss]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Bb][Uu][Ll][Kk]_[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Ff][Oo][Uu][Nn][Dd]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Ii][Ss][Oo][Pp][Ee][Nn]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Nn][Oo][Tt][Ff][Oo][Uu][Nn][Dd]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Rr][Oo][Ww][Cc][Oo][Uu][Nn][Tt]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Rr][Oo][Ww][Tt][Yy][Pp][Ee]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%[Tt][Yy][Pp][Ee]\b" context="#stay"/>
<RegExpr attribute="Data Type" String="%bulk_exceptions\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%bulk_rowcount\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%found\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%isopen\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%notfound\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%rowcount\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%rowtype\b" insensitive="true" context="#stay"/>
<RegExpr attribute="Data Type" String="%type\b" insensitive="true" context="#stay"/>
<Float attribute="Float" context="#stay"/>
<Int attribute="Decimal" context="#stay"/>
<DetectChar attribute="String" context="String literal" char="'"/>
<Detect2Chars attribute="Comment" context="Singleline PL/SQL-style comment" char="-" char1="-"/>
<Detect2Chars attribute="Comment" context="Multiline C-style comment" char="/" char1="*"/>
<RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^[Rr][Ee][Mm]\b"/>
<RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^rem\b" insensitive="true"/>
<DetectChar attribute="Identifier" context="User-defined identifier" char="&quot;"/>
<RegExpr attribute="External Variable" context="#stay" String="(:|&amp;&amp;?)\w+"/>
<RegExpr attribute="Symbol" context="#stay" String="^/$"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment