Commit 3fea5deb authored by Martin Walch's avatar Martin Walch

Make SQL* highlighting files more similar, add comment folding to PL/SQL

The three syntax highlighting files for SQL dialects have evolved over
time and have started to differ in parts that are actually the same.
While it is hardly reasonable to put these identical parts in a common
file, it is probably still desirable to keep them roughly in sync across
the three files.

This is what the patch aims for with several measures:
* use exactly the same whitespace and indentation
* sort <item> and itemData by name
* use the same XML comments where appropriate
* use the same order of delimiters

REVIEW: 119747
parent fa92366c
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"> <!DOCTYPE language SYSTEM "language.dtd">
<!-- PostgreSQL SQL, syntax definition based on sql.xml by Yury Lebedev --> <!-- PostgreSQL SQL, syntax definition based on sql.xml by Yury Lebedev -->
<language name="SQL (PostgreSQL)" version="1.12" 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="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="">
<highlighting> <highlighting>
<list name="keywords"> <list name="keywords">
<item> ABORT </item> <item> ABORT </item>
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
<item> CATALOG </item> <item> CATALOG </item>
<item> CATALOG_NAME </item> <item> CATALOG_NAME </item>
<item> CHAIN </item> <item> CHAIN </item>
<item> CHAR_LENGTH </item> <item> CHARACTERISTICS </item>
<item> CHARACTER_LENGTH </item> <item> CHARACTER_LENGTH </item>
<item> CHARACTER_SET_CATALOG </item> <item> CHARACTER_SET_CATALOG </item>
<item> CHARACTER_SET_NAME </item> <item> CHARACTER_SET_NAME </item>
<item> CHARACTER_SET_SCHEMA </item> <item> CHARACTER_SET_SCHEMA </item>
<item> CHARACTERISTICS </item> <item> CHAR_LENGTH </item>
<item> CHECK </item> <item> CHECK </item>
<item> CHECKED </item> <item> CHECKED </item>
<item> CHECKPOINT </item> <item> CHECKPOINT </item>
...@@ -81,11 +81,11 @@ ...@@ -81,11 +81,11 @@
<item> CONNECT </item> <item> CONNECT </item>
<item> CONNECTION </item> <item> CONNECTION </item>
<item> CONNECTION_NAME </item> <item> CONNECTION_NAME </item>
<item> CONSTRAINTS </item>
<item> CONSTRAINT </item> <item> CONSTRAINT </item>
<item> CONSTRAINT_CATALOG </item> <item> CONSTRAINT_CATALOG </item>
<item> CONSTRAINT_NAME </item> <item> CONSTRAINT_NAME </item>
<item> CONSTRAINT_SCHEMA </item> <item> CONSTRAINT_SCHEMA </item>
<item> CONSTRAINTS </item>
<item> CONSTRUCTOR </item> <item> CONSTRUCTOR </item>
<item> CONTAINS </item> <item> CONTAINS </item>
<item> CONTINUE </item> <item> CONTINUE </item>
...@@ -163,6 +163,7 @@ ...@@ -163,6 +163,7 @@
<item> EXISTS </item> <item> EXISTS </item>
<item> EXPLAIN </item> <item> EXPLAIN </item>
<item> EXTERNAL </item> <item> EXTERNAL </item>
<item> FALSE </item>
<item> FETCH </item> <item> FETCH </item>
<item> FINAL </item> <item> FINAL </item>
<item> FIRST </item> <item> FIRST </item>
...@@ -315,13 +316,13 @@ ...@@ -315,13 +316,13 @@
<item> OWNER </item> <item> OWNER </item>
<item> PAD </item> <item> PAD </item>
<item> PARAMETER </item> <item> PARAMETER </item>
<item> PARAMETERS </item>
<item> PARAMETER_MODE </item> <item> PARAMETER_MODE </item>
<item> PARAMETER_NAME </item> <item> PARAMETER_NAME </item>
<item> PARAMETER_ORDINAL_POSITION </item> <item> PARAMETER_ORDINAL_POSITION </item>
<item> PARAMETER_SPECIFIC_CATALOG </item> <item> PARAMETER_SPECIFIC_CATALOG </item>
<item> PARAMETER_SPECIFIC_NAME </item> <item> PARAMETER_SPECIFIC_NAME </item>
<item> PARAMETER_SPECIFIC_SCHEMA </item> <item> PARAMETER_SPECIFIC_SCHEMA </item>
<item> PARAMETERS </item>
<item> PARTIAL </item> <item> PARTIAL </item>
<item> PASCAL </item> <item> PASCAL </item>
<item> PASSWORD </item> <item> PASSWORD </item>
...@@ -371,8 +372,8 @@ ...@@ -371,8 +372,8 @@
<item> ROUTINE_NAME </item> <item> ROUTINE_NAME </item>
<item> ROUTINE_SCHEMA </item> <item> ROUTINE_SCHEMA </item>
<item> ROW </item> <item> ROW </item>
<item> ROW_COUNT </item>
<item> ROWS </item> <item> ROWS </item>
<item> ROW_COUNT </item>
<item> RULE </item> <item> RULE </item>
<item> SAVEPOINT </item> <item> SAVEPOINT </item>
<item> SCALE </item> <item> SCALE </item>
...@@ -404,8 +405,8 @@ ...@@ -404,8 +405,8 @@
<item> SOURCE </item> <item> SOURCE </item>
<item> SPACE </item> <item> SPACE </item>
<item> SPECIFIC </item> <item> SPECIFIC </item>
<item> SPECIFIC_NAME </item>
<item> SPECIFICTYPE </item> <item> SPECIFICTYPE </item>
<item> SPECIFIC_NAME </item>
<item> SQL </item> <item> SQL </item>
<item> SQLCODE </item> <item> SQLCODE </item>
<item> SQLERROR </item> <item> SQLERROR </item>
...@@ -444,9 +445,9 @@ ...@@ -444,9 +445,9 @@
<item> TOAST </item> <item> TOAST </item>
<item> TRAILING </item> <item> TRAILING </item>
<item> TRANSACTION </item> <item> TRANSACTION </item>
<item> TRANSACTION_ACTIVE </item>
<item> TRANSACTIONS_COMMITTED </item> <item> TRANSACTIONS_COMMITTED </item>
<item> TRANSACTIONS_ROLLED_BACK </item> <item> TRANSACTIONS_ROLLED_BACK </item>
<item> TRANSACTION_ACTIVE </item>
<item> TRANSFORM </item> <item> TRANSFORM </item>
<item> TRANSFORMS </item> <item> TRANSFORMS </item>
<item> TRANSLATE </item> <item> TRANSLATE </item>
...@@ -457,6 +458,7 @@ ...@@ -457,6 +458,7 @@
<item> TRIGGER_NAME </item> <item> TRIGGER_NAME </item>
<item> TRIGGER_SCHEMA </item> <item> TRIGGER_SCHEMA </item>
<item> TRIM </item> <item> TRIM </item>
<item> TRUE </item>
<item> TRUNCATE </item> <item> TRUNCATE </item>
<item> TRUSTED </item> <item> TRUSTED </item>
<item> TYPE </item> <item> TYPE </item>
...@@ -498,10 +500,8 @@ ...@@ -498,10 +500,8 @@
<item> WRITE </item> <item> WRITE </item>
<item> YEAR </item> <item> YEAR </item>
<item> ZONE </item> <item> ZONE </item>
<item> FALSE </item>
<item> TRUE </item>
</list> </list>
<list name="operators"> <list name="operators">
<item> + </item> <item> + </item>
<item> - </item> <item> - </item>
<item> * </item> <item> * </item>
...@@ -557,8 +557,8 @@ ...@@ -557,8 +557,8 @@
<!-- network address type --> <!-- network address type -->
<item> &lt;&lt;= </item> <item> &lt;&lt;= </item>
<item> &gt;&gt;= </item> <item> &gt;&gt;= </item>
</list> </list>
<list name="functions"> <list name="functions">
<!-- math --> <!-- math -->
<item> ABS </item> <item> ABS </item>
<item> CBRT </item> <item> CBRT </item>
...@@ -683,57 +683,57 @@ ...@@ -683,57 +683,57 @@
<item> VARIANCE </item> <item> VARIANCE </item>
</list> </list>
<list name="types"> <list name="types">
<item> LZTEXT </item>
<item> BIGINT </item> <item> BIGINT </item>
<item> INT2 </item>
<item> INT8 </item>
<item> BIGSERIAL </item> <item> BIGSERIAL </item>
<item> SERIAL8 </item>
<item> BIT </item> <item> BIT </item>
<item> BIT VARYING </item> <item> BIT VARYING </item>
<item> VARBIT </item>
<item> BOOLEAN </item>
<item> BOOL </item> <item> BOOL </item>
<item> BOOLEAN </item>
<item> BOX </item> <item> BOX </item>
<item> BYTEA </item> <item> BYTEA </item>
<item> CHARACTER </item>
<item> CHAR </item> <item> CHAR </item>
<item> CHARACTER </item>
<item> CHARACTER VARYING </item> <item> CHARACTER VARYING </item>
<item> VARCHAR </item>
<item> CIDR </item> <item> CIDR </item>
<item> CIRCLE </item> <item> CIRCLE </item>
<item> DATE </item> <item> DATE </item>
<item> DECIMAL </item>
<item> DOUBLE PRECISION </item> <item> DOUBLE PRECISION </item>
<item> FLOAT8 </item> <item> FLOAT8 </item>
<item> INET </item> <item> INET </item>
<item> INTEGER </item>
<item> INT </item> <item> INT </item>
<item> INT2 </item>
<item> INT4 </item> <item> INT4 </item>
<item> INT8 </item>
<item> INTEGER </item>
<item> INTERVAL </item> <item> INTERVAL </item>
<item> LINE </item> <item> LINE </item>
<item> LSEG </item> <item> LSEG </item>
<item> LZTEXT </item>
<item> MACADDR </item> <item> MACADDR </item>
<item> MONEY </item> <item> MONEY </item>
<item> NUMERIC </item> <item> NUMERIC </item>
<item> DECIMAL </item>
<item> OID </item> <item> OID </item>
<item> PATH </item> <item> PATH </item>
<item> POINT </item> <item> POINT </item>
<item> POLYGON </item> <item> POLYGON </item>
<item> REAL </item> <item> REAL </item>
<item> SMALLINT </item>
<item> SERIAL </item> <item> SERIAL </item>
<item> SERIAL8 </item>
<item> SMALLINT </item>
<item> TEXT </item> <item> TEXT </item>
<item> TIME </item> <item> TIME </item>
<item> TIMETZ </item>
<item> TIMESTAMP </item> <item> TIMESTAMP </item>
<item> TIMESTAMPTZ </item>
<item> TIMESTAMP WITH TIMEZONE </item> <item> TIMESTAMP WITH TIMEZONE </item>
<item> TIMESTAMPTZ </item>
<item> TIMETZ </item>
<item> VARBIT </item>
<item> VARCHAR </item>
</list> </list>
<contexts> <contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay"> <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<!-- HACK: don't jump into MultiLineString for CREATE FUNCTION $funcName$...$funcName$ --> <!-- HACK: don't jump into MultiLineString for CREATE FUNCTION $funcName$...$funcName$ -->
<StringDetect String="CREATE FUNCTION" context="CreateFunction" attribute="Keyword" /> <StringDetect String="CREATE FUNCTION" context="CreateFunction" attribute="Keyword"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/> <keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Operator" context="#stay" String="operators"/> <keyword attribute="Operator" context="#stay" String="operators"/>
<keyword attribute="Function" context="#stay" String="functions"/> <keyword attribute="Function" context="#stay" String="functions"/>
...@@ -760,15 +760,15 @@ ...@@ -760,15 +760,15 @@
<RegExpr attribute="Operator" context="MultiLineString" String="\$([^\$\n\r]*)\$" dynamic="true"/> <RegExpr attribute="Operator" context="MultiLineString" String="\$([^\$\n\r]*)\$" dynamic="true"/>
</context> </context>
<context name="CreateFunction" attribute="Normal Text" lineEndContext="#stay"> <context name="CreateFunction" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Function" context="FunctionBody" String="\$([^\$\n\r]*)\$" dynamic="true"/> <RegExpr attribute="Function" context="FunctionBody" String="\$([^\$\n\r]*)\$" dynamic="true"/>
<IncludeRules context="Normal" /> <IncludeRules context="Normal"/>
</context> </context>
<context name="FunctionBody" attribute="Normal Text" lineEndContext="#stay" dynamic="true"> <context name="FunctionBody" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<RegExpr attribute="Function" context="#pop#pop" String="\$%1\$" dynamic="true"/> <RegExpr attribute="Function" context="#pop#pop" String="\$%1\$" dynamic="true"/>
<IncludeRules context="Normal" /> <IncludeRules context="Normal"/>
</context> </context>
<context name="MultiLineString" attribute="String" lineEndContext="#stay" dynamic="true"> <context name="MultiLineString" attribute="String" lineEndContext="#stay" dynamic="true">
<RegExpr attribute="Operator" context="#pop" String="\$%1\$" dynamic="true"/> <RegExpr attribute="Operator" context="#pop" String="\$%1\$" dynamic="true"/>
</context> </context>
<context name="String" attribute="String" lineEndContext="#stay"> <context name="String" attribute="String" lineEndContext="#stay">
<LineContinue attribute="String" context="#pop"/> <LineContinue attribute="String" context="#pop"/>
...@@ -787,19 +787,19 @@ ...@@ -787,19 +787,19 @@
<context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"/> <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"/>
</contexts> </contexts>
<itemDatas> <itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/> <itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/> <itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Operator" defStyleNum="dsNormal"/> <itemData name="Operator" defStyleNum="dsNormal"/>
<itemData name="Function" defStyleNum="dsFunction"/> <itemData name="Function" defStyleNum="dsFunction"/>
<itemData name="Data Type" defStyleNum="dsDataType"/> <itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/> <itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Float" defStyleNum="dsFloat"/> <itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="String" defStyleNum="dsString"/> <itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/> <itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Comment" defStyleNum="dsComment"/> <itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Identifier" defStyleNum="dsOthers"/> <itemData name="Identifier" defStyleNum="dsOthers"/>
<itemData name="Symbol" defStyleNum="dsChar"/> <itemData name="Symbol" defStyleNum="dsChar"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/> <itemData name="Preprocessor" defStyleNum="dsOthers"/>
</itemDatas> </itemDatas>
</highlighting> </highlighting>
<general> <general>
...@@ -807,6 +807,6 @@ ...@@ -807,6 +807,6 @@
<comment name="singleLine" start="--"/> <comment name="singleLine" start="--"/>
<comment name="multiLine" start="/*" end="*/"/> <comment name="multiLine" start="/*" end="*/"/>
</comments> </comments>
<keywords casesensitive="0" weakDeliminator="+-*/|!@&amp;#&lt;&gt;%^=~:.?"/> <keywords casesensitive="0" weakDeliminator="+-*/|=!&lt;&gt;~^:.@&amp;#%?"/>
</general> </general>
</language> </language>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!-- Oracle10g SQL and PL/SQL syntax - ANSI SQL 2003 superset --> <!-- Oracle10g SQL and PL/SQL syntax - ANSI SQL 2003 superset -->
<!-- This file is maintained by Anders Lund <anders@alweb.dk> since 2005-11-06 --> <!-- This file is maintained by Anders Lund <anders@alweb.dk> since 2005-11-06 -->
<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> <!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
<language name="SQL" version="1.16" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="LGPL"> <language name="SQL" version="1.17" kateversion="2.4" section="Database" extensions="*.sql;*.SQL;*.ddl;*.DDL" mimetype="text/x-sql" casesensitive="0" author="Yury Lebedev (yurylebedev@mail.ru)" license="LGPL">
<highlighting> <highlighting>
<list name="keywords"> <list name="keywords">
<item> ACCESS </item> <item> ACCESS </item>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<item> AFTER </item> <item> AFTER </item>
<item> AGENT </item> <item> AGENT </item>
<item> ALL </item> <item> ALL </item>
<item> ALL_ROWS </item>
<item> ALLOCATE </item> <item> ALLOCATE </item>
<item> ALL_ROWS </item>
<item> ALTER </item> <item> ALTER </item>
<item> ANALYZE </item> <item> ANALYZE </item>
<item> ANCILLARY </item> <item> ANCILLARY </item>
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
<item> BLOCK </item> <item> BLOCK </item>
<item> BLOCK_RANGE </item> <item> BLOCK_RANGE </item>
<item> BODY </item> <item> BODY </item>
<item> BOUND </item>
<item> BOTH </item> <item> BOTH </item>
<item> BOUND </item>
<item> BREAK </item> <item> BREAK </item>
<item> BROADCAST </item> <item> BROADCAST </item>
<item> BTITLE </item> <item> BTITLE </item>
...@@ -282,12 +282,12 @@ ...@@ -282,12 +282,12 @@
<item> MAXSIZE </item> <item> MAXSIZE </item>
<item> MAXTRANS </item> <item> MAXTRANS </item>
<item> MAXVALUE </item> <item> MAXVALUE </item>
<item> METHOD </item>
<item> MEMBER </item> <item> MEMBER </item>
<item> MERGE </item> <item> MERGE </item>
<item> METHOD </item>
<item> MINEXTENTS </item>
<item> MINIMIZE </item> <item> MINIMIZE </item>
<item> MINIMUM </item> <item> MINIMUM </item>
<item> MINEXTENTS </item>
<item> MINUS </item> <item> MINUS </item>
<item> MINUTE </item> <item> MINUTE </item>
<item> MINVALUE </item> <item> MINVALUE </item>
...@@ -482,8 +482,8 @@ ...@@ -482,8 +482,8 @@
<item> SERIALIZABLE </item> <item> SERIALIZABLE </item>
<item> SERVERERROR </item> <item> SERVERERROR </item>
<item> SESSION </item> <item> SESSION </item>
<item> SESSION_CACHED_CURSORS </item>
<item> SESSIONS_PER_USER </item> <item> SESSIONS_PER_USER </item>
<item> SESSION_CACHED_CURSORS </item>
<item> SET </item> <item> SET </item>
<item> SHARE </item> <item> SHARE </item>
<item> SHARED </item> <item> SHARED </item>
...@@ -505,8 +505,8 @@ ...@@ -505,8 +505,8 @@
<item> START </item> <item> START </item>
<item> STARTUP </item> <item> STARTUP </item>
<item> STATEMENT_ID </item> <item> STATEMENT_ID </item>
<item> STATISTICS </item>
<item> STATIC </item> <item> STATIC </item>
<item> STATISTICS </item>
<item> STOP </item> <item> STOP </item>
<item> STORAGE </item> <item> STORAGE </item>
<item> STORE </item> <item> STORE </item>
...@@ -519,14 +519,14 @@ ...@@ -519,14 +519,14 @@
<item> SUPPLEMENTAL </item> <item> SUPPLEMENTAL </item>
<item> SUSPEND </item> <item> SUSPEND </item>
<item> SWITCH </item> <item> SWITCH </item>
<item> SYS_OP_BITVEC </item>
<item> SYS_OP_ENFORCE_NOT_NULL$ </item>
<item> SYS_OP_NOEXPAND </item>
<item> SYS_OP_NTCIMG$ </item>
<item> SYNONYM </item> <item> SYNONYM </item>
<item> SYSDBA </item> <item> SYSDBA </item>
<item> SYSOPER </item> <item> SYSOPER </item>
<item> SYSTEM </item> <item> SYSTEM </item>
<item> SYS_OP_BITVEC </item>
<item> SYS_OP_ENFORCE_NOT_NULL$ </item>
<item> SYS_OP_NOEXPAND </item>
<item> SYS_OP_NTCIMG$ </item>
<item> TABLE </item> <item> TABLE </item>
<item> TABLES </item> <item> TABLES </item>
<item> TABLESPACE </item> <item> TABLESPACE </item>
...@@ -569,14 +569,14 @@ ...@@ -569,14 +569,14 @@
<item> UNTIL </item> <item> UNTIL </item>
<item> UNUSABLE </item> <item> UNUSABLE </item>
<item> UNUSED </item> <item> UNUSED </item>
<item> UPD_INDEXES </item>
<item> UPDATABLE </item> <item> UPDATABLE </item>
<item> UPDATE </item> <item> UPDATE </item>
<item> UPD_INDEXES </item>
<item> UPPPER </item> <item> UPPPER </item>
<item> USAGE </item> <item> USAGE </item>
<item> USE </item> <item> USE </item>
<item> USE_STORED_OUTLINES </item>
<item> USER_DEFINED </item> <item> USER_DEFINED </item>
<item> USE_STORED_OUTLINES </item>
<item> USING </item> <item> USING </item>
<item> VALIDATE </item> <item> VALIDATE </item>
<item> VALIDATION </item> <item> VALIDATION </item>
...@@ -864,8 +864,8 @@ ...@@ -864,8 +864,8 @@
<item> PLS_INTEGER </item> <item> PLS_INTEGER </item>
<item> PRECISION </item> <item> PRECISION </item>
<item> RAW </item> <item> RAW </item>
<item> RECORD </item>
<item> REAL </item> <item> REAL </item>
<item> RECORD </item>
<item> ROWID </item> <item> ROWID </item>
<item> SECOND </item> <item> SECOND </item>
<item> SINGLE </item> <item> SINGLE </item>
...@@ -877,48 +877,50 @@ ...@@ -877,48 +877,50 @@
<item> UROWID </item> <item> UROWID </item>
<item> VARCHAR </item> <item> VARCHAR </item>
<item> VARCHAR2 </item> <item> VARCHAR2 </item>
<item> VARYING </item>
<item> VARRAY </item> <item> VARRAY </item>
<item> VARYING </item>
<item> XMLTYPE </item> <item> XMLTYPE </item>
<item> YEAR </item> <item> YEAR </item>
<item> ZONE </item> <item> ZONE </item>
</list> </list>
<contexts> <contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay"> <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces /> <DetectSpaces/>
<keyword attribute="Keyword" String="keywords" context="#stay"/> <keyword attribute="Keyword" String="keywords" context="#stay"/>
<keyword attribute="Operator" String="operators" context="#stay"/> <keyword attribute="Operator" String="operators" context="#stay"/>
<keyword attribute="Function" String="functions" context="#stay"/> <keyword attribute="Function" String="functions" context="#stay"/>
<keyword attribute="Data Type" String="types" context="#stay"/> <keyword attribute="Data Type" String="types" context="#stay"/>
<DetectIdentifier /> <DetectIdentifier/>
<!-- extra data types -->
<RegExpr attribute="Data Type" context="#stay" String="%(?:bulk_(?:exceptions|rowcount)|found|isopen|notfound|rowcount|rowtype|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"/> <HlCHex attribute="Hex" context="#stay"/>
<Float attribute="Float" context="#stay"/> <Float attribute="Float" context="#stay"/>
<Int attribute="Decimal" context="#stay"/> <Int attribute="Decimal" context="#stay"/>
<!-- strings -->
<DetectChar attribute="String" context="String literal" char="'"/> <DetectChar attribute="String" context="String literal" char="'"/>
<!-- comments -->
<Detect2Chars attribute="Comment" context="Singleline PL/SQL-style comment" char="-" char1="-"/> <Detect2Chars attribute="Comment" context="Singleline PL/SQL-style comment" char="-" char1="-"/>
<Detect2Chars attribute="Comment" context="Multiline C-style comment" char="/" char1="*"/> <Detect2Chars attribute="Comment" context="Multiline C-style comment" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^rem\b" insensitive="true" column="0"/> <RegExpr attribute="Comment" context="SQL*Plus remark directive" String="^rem\b" insensitive="true" column="0"/>
<DetectChar attribute="Identifier" context="User-defined identifier" char="&quot;"/> <DetectChar attribute="Identifier" context="User-defined identifier" char="&quot;"/>
<RegExpr attribute="External Variable" context="#stay" String="(:|&amp;&amp;?)\w+"/> <RegExpr attribute="External Variable" context="#stay" String="(:|&amp;&amp;?)\w+"/>
<RegExpr attribute="Symbol" context="#stay" String="^/$" column="0"/> <RegExpr attribute="Symbol" context="#stay" String="^/$" column="0"/>
<RegExpr attribute="Preprocessor" context="SQL*Plus directive to include file" String="^@@?[^@ \t\r\n]" column="0"/> <RegExpr attribute="Preprocessor" context="SQL*Plus directive to include file" String="^@@?[^@ \t\r\n]" column="0"/>
</context> </context>
<context name="String literal" attribute="String" lineEndContext="#stay"> <context name="String literal" attribute="String" lineEndContext="#stay">
<Detect2Chars attribute="String" context="#pop" char="\" char1="'" /> <Detect2Chars attribute="String" context="#pop" char="\" char1="'"/>
<HlCStringChar attribute="String Char" context="#stay"/> <HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="External Variable" context="#stay" String="&amp;&amp;?\w+"/> <RegExpr attribute="External Variable" context="#stay" String="&amp;&amp;?\w+"/>
<Detect2Chars attribute="String Char" context="#stay" char="'" char1="'" /> <Detect2Chars attribute="String Char" context="#stay" char="'" char1="'"/>
<DetectChar attribute="String" context="#pop" char="'"/> <DetectChar attribute="String" context="#pop" char="'"/>
</context> </context>
<context name="Singleline PL/SQL-style comment" attribute="Comment" lineEndContext="#pop"/> <context name="Singleline PL/SQL-style comment" attribute="Comment" lineEndContext="#pop"/>
<context name="Multiline C-style comment" attribute="Comment" lineEndContext="#stay"> <context name="Multiline C-style comment" attribute="Comment" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/"/> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
</context> </context>
<context name="SQL*Plus remark directive" attribute="Comment" lineEndContext="#pop"/> <context name="SQL*Plus remark directive" attribute="Comment" lineEndContext="#pop"/>
<context name="User-defined identifier" attribute="Identifier" lineEndContext="#pop"> <context name="User-defined identifier" attribute="Identifier" lineEndContext="#pop">
...@@ -933,7 +935,7 @@ ...@@ -933,7 +935,7 @@
<itemData name="Function" defStyleNum="dsFunction"/> <itemData name="Function" defStyleNum="dsFunction"/>
<itemData name="Data Type" defStyleNum="dsDataType"/> <itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/> <itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Hex" defStyleNum="dsBaseN"/> <itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/> <itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="String" defStyleNum="dsString"/> <itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/> <itemData name="String Char" defStyleNum="dsChar"/>
......
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