Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/sql.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <!-- Oracle10g SQL and PL/SQL syntax - ANSI SQL 2003 superset --> | 3 | <!-- Oracle10g SQL and PL/SQL syntax - ANSI SQL 2003 superset --> | ||
4 | <!-- This file is maintained by Anders Lund <anders@alweb.dk> since 2005-11-06 | 4 | <!-- This file is maintained by Anders Lund <anders@alweb.dk> since 2005-11-06 | ||
5 | v3 fix comments by Gene Thomas <gene@genethomas.com> | 5 | v3 fix comments by Gene Thomas <gene@genethomas.com> | ||
6 | --> | 6 | --> | ||
7 | <!-- kate: space-indent on; indent-width 2; replace-tabs on; --> | 7 | <!-- kate: space-indent on; indent-width 2; replace-tabs on; --> | ||
8 | <language name="SQL" version="3" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="LGPL"> | 8 | <language name="SQL" version="4" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="LGPL"> | ||
dhaumann: Please raise to kateversion="5.0", since WordDetect was added later. | |||||
9 | <highlighting> | 9 | <highlighting> | ||
10 | <list name="keywords"> | 10 | <list name="keywords"> | ||
11 | <item>ACCESS</item> | 11 | <item>ACCESS</item> | ||
12 | <item>ACCOUNT</item> | 12 | <item>ACCOUNT</item> | ||
13 | <item>ADD</item> | 13 | <item>ADD</item> | ||
14 | <item>ADMIN</item> | 14 | <item>ADMIN</item> | ||
15 | <item>ADMINISTER</item> | 15 | <item>ADMINISTER</item> | ||
16 | <item>ADVISE</item> | 16 | <item>ADVISE</item> | ||
▲ Show 20 Lines • Show All 872 Lines • ▼ Show 20 Line(s) | 888 | <contexts> | |||
889 | <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> | 889 | <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> | ||
890 | <DetectSpaces/> | 890 | <DetectSpaces/> | ||
891 | 891 | | |||
892 | <!-- comments, before operators --> | 892 | <!-- comments, before operators --> | ||
893 | <Detect2Chars attribute="Comment" context="Singleline PL/SQL-style comment" char="-" char1="-"/> | 893 | <Detect2Chars attribute="Comment" context="Singleline PL/SQL-style comment" char="-" char1="-"/> | ||
894 | <Detect2Chars attribute="Comment" context="Multiline C-style comment" char="/" char1="*" beginRegion="Comment"/> | 894 | <Detect2Chars attribute="Comment" context="Multiline C-style comment" char="/" char1="*" beginRegion="Comment"/> | ||
895 | <RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^rem\b" insensitive="true" column="0"/> | 895 | <RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^rem\b" insensitive="true" column="0"/> | ||
896 | 896 | | |||
897 | <LineContinue attribute="Symbol" context="#stay" char="/" column="0"/> <!-- conflict with "operators" keywords --> | ||||
897 | <keyword attribute="Keyword" String="keywords" context="#stay"/> | 898 | <keyword attribute="Keyword" String="keywords" context="#stay"/> | ||
898 | <keyword attribute="Operator" String="operators" context="#stay"/> | 899 | <keyword attribute="Operator" String="operators" context="#stay"/> | ||
899 | <keyword attribute="Function" String="functions" context="#stay"/> | 900 | <keyword attribute="Function" String="functions" context="#stay"/> | ||
900 | <keyword attribute="Data Type" String="types" context="#stay"/> | 901 | <keyword attribute="Data Type" String="types" context="#stay"/> | ||
901 | 902 | | |||
902 | <DetectIdentifier/> | 903 | <DetectIdentifier/> | ||
903 | <!-- extra data types --> | 904 | <!-- extra data types --> | ||
904 | <RegExpr attribute="Data Type" context="#stay" String="%(?:bulk_(?:exceptions|rowcount)|found|isopen|notfound|rowcount|rowtype|type)\b" insensitive="true"/> | 905 | <RegExpr attribute="Data Type" context="#stay" String="%(?:bulk_(?:exceptions|rowcount)|found|isopen|notfound|rowcount|rowtype|type)\b" insensitive="true"/> | ||
905 | <!-- numbers --> | 906 | <!-- numbers --> | ||
906 | <HlCHex attribute="Hex" context="#stay"/> | 907 | <HlCHex attribute="Hex" context="#stay"/> | ||
907 | <Float attribute="Float" context="#stay"/> | 908 | <Float attribute="Float" context="#stay"/> | ||
908 | <Int attribute="Decimal" context="#stay"/> | 909 | <Int attribute="Decimal" context="#stay"/> | ||
909 | <!-- strings --> | 910 | <!-- strings --> | ||
910 | <DetectChar attribute="String" context="String literal" char="'"/> | 911 | <DetectChar attribute="String" context="String literal" char="'"/> | ||
911 | 912 | | |||
912 | <DetectChar attribute="Identifier" context="User-defined identifier" char="""/> | 913 | <DetectChar attribute="Identifier" context="User-defined identifier" char="""/> | ||
913 | <RegExpr attribute="External Variable" context="#stay" String="(:|&&?)\w+"/> | 914 | <RegExpr attribute="External Variable" context="#stay" String="(:|&&?)\w+"/> | ||
914 | <RegExpr attribute="Symbol" context="#stay" String="^/$" column="0"/> | | |||
915 | <RegExpr attribute="Preprocessor" context="SQL*Plus directive to include file" String="^@@?[^@ \t\r\n]" column="0"/> | 915 | <RegExpr attribute="Preprocessor" context="SQL*Plus directive to include file" String="^@@?[^@ \t\r\n]" column="0"/> | ||
916 | </context> | 916 | </context> | ||
917 | <context name="String literal" attribute="String" lineEndContext="#stay"> | 917 | <context name="String literal" attribute="String" lineEndContext="#stay"> | ||
918 | <Detect2Chars attribute="String" context="#pop" char="\" char1="'"/> | 918 | <Detect2Chars attribute="String" context="#pop" char="\" char1="'"/> | ||
919 | <HlCStringChar attribute="String Char" context="#stay"/> | 919 | <HlCStringChar attribute="String Char" context="#stay"/> | ||
920 | <RegExpr attribute="External Variable" context="#stay" String="&&?\w+"/> | 920 | <RegExpr attribute="External Variable" context="#stay" String="&&?\w+"/> | ||
921 | <Detect2Chars attribute="String Char" context="#stay" char="'" char1="'"/> | 921 | <Detect2Chars attribute="String Char" context="#stay" char="'" char1="'"/> | ||
922 | <DetectChar attribute="String" context="#pop" char="'"/> | 922 | <DetectChar attribute="String" context="#pop" char="'"/> | ||
Show All 37 Lines |
Please raise to kateversion="5.0", since WordDetect was added later.