Added remaining missing Kate xml files

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1068844 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent 84bbc54a08
commit d7b9791584

@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="ABAP" version="1.00" kateversion="2.4" section="Sources" extensions="*.abap;*.ABAP" mimetype="text/x-abap-src" priority="5" author="Marcos Antonio Alvarez Costales (busgosin@hotmail.com)" license="GPL">
<highlighting>
<list name="keywords">
<!-- compiler directives and structures -->
<item> ADD </item>
<item> ADJACENT </item>
<item> ALL </item>
<item> AND </item>
<item> APPEND </item>
<item> APPENDING </item>
<item> AS </item>
<item> ASCENDING </item>
<item> AT </item>
<item> BEGIN </item>
<item> BETWEEN </item>
<item> BINARY </item>
<item> BLOCK </item>
<item> BY </item>
<item> CASE </item>
<item> CENTERED </item>
<item> CHAIN </item>
<item> CHANGING </item>
<item> CHECK </item>
<item> CHECKBOX </item>
<item> CLEAR </item>
<item> COL_BACKGROUND </item>
<item> COL_HEADING </item>
<item> COL_NORMAL </item>
<item> COL_TOTAL </item>
<item> COLOR </item>
<item> COMMENT </item>
<item> COMMIT </item>
<item> COMPARING </item>
<item> COMPUTE </item>
<item> CONCATENATE </item>
<item> CONDENSE </item>
<item> CONSTANTS </item>
<item> CONTINUE </item>
<item> CONTROLS </item>
<item> COUNTRY </item>
<item> DATA </item>
<item> DECIMALS </item>
<item> DEFAULT </item>
<item> DELETE </item>
<item> DELETING </item>
<item> DESCENDING </item>
<item> DESCRIBE </item>
<item> DO </item>
<item> DUPLICATES </item>
<item> EDIT </item>
<item> ELSE </item>
<item> ELSEIF </item>
<item> END </item>
<item> ENDCASE </item>
<item> ENDCHAIN </item>
<item> ENDDO </item>
<item> ENDIF </item>
<item> ENDLOOP </item>
<item> ENDMODULE </item>
<item> ENDSELECT </item>
<item> ENDWHILE </item>
<item> ENTRIES </item>
<item> EQ </item>
<item> EXCEPTIONS </item>
<item> EXCLUDING </item>
<item> EXIT </item>
<item> EXIT-COMMAND </item>
<item> EXPORT </item>
<item> EXPORTING </item>
<item> FIELD </item>
<item> FIRST </item>
<item> FOR </item>
<item> FORMAT </item>
<item> FRAME </item>
<item> FREE </item>
<item> FROM </item>
<item> GE </item>
<item> GROUP </item>
<item> GT </item>
<item> HEADER </item>
<item> HEADING </item>
<item> HIDE </item>
<item> HOTSPOT </item>
<item> ID </item>
<item> IF </item>
<item> IMPORT </item>
<item> IMPORTING </item>
<item> IN </item>
<item> INDEX </item>
<item> INITIAL </item>
<item> INNER </item>
<item> INPUT </item>
<item> INSERT </item>
<item> INTENSIFIED </item>
<item> INTERVALS </item>
<item> INTO </item>
<item> IS </item>
<item> JOIN </item>
<item> KEY </item>
<item> LE </item>
<item> LEAVE </item>
<item> LEFT </item>
<item> LEFT-JUSTIFIED </item>
<item> LIKE </item>
<item> LINE </item>
<item> LINE-COUNT </item>
<item> LINES </item>
<item> LINES </item>
<item> LINE-SIZE </item>
<item> LIST-PROCESSING </item>
<item> LOOP </item>
<item> LT </item>
<item> MASK </item>
<item> MEMORY </item>
<item> MESSAGE </item>
<item> MESSAGE-ID </item>
<item> MOD </item>
<item> MODIFY </item>
<item> MODULE </item>
<item> MOVE </item>
<item> MOVE-CORRESPONDING </item>
<item> NE </item>
<item> NEW-LINE </item>
<item> NEW-PAGE </item>
<item> NO </item>
<item> NO-EXTENSION </item>
<item> NO-GAP </item>
<item> NO-SCROLLING </item>
<item> NOT </item>
<item> NO-ZERO </item>
<item> NUMBER </item>
<item> OBLIGATORY </item>
<item> OCCURS </item>
<item> OF </item>
<item> OFF </item>
<item> ON </item>
<item> OR </item>
<item> OTHERS </item>
<item> OUTPUT </item>
<item> PAGE </item>
<item> PARAMETER </item>
<item> PARAMETERS </item>
<item> PERFORM </item>
<item> PF-STATUS </item>
<item> POS_HIGH </item>
<item> POS_LOW </item>
<item> POSITION </item>
<item> PROGRAM </item>
<item> RADIOBUTTON </item>
<item> RANGES </item>
<item> READ </item>
<item> REFRESH </item>
<item> REPORT </item>
<item> RESERVE </item>
<item> RESET </item>
<item> RIGHT </item>
<item> RIGHT-JUSTIFIED </item>
<item> ROLLBACK </item>
<item> ROWS </item>
<item> SCREEN </item>
<item> SCREEN-GROUP1 </item>
<item> SCREEN-GROUP2 </item>
<item> SCREEN-GROUP3 </item>
<item> SCREEN-GROUP4 </item>
<item> SCREEN-GROUP5 </item>
<item> SCREEN-INPUT </item>
<item> SCREEN-INTENSIFIED </item>
<item> SEARCH </item>
<item> SELECT </item>
<item> SELECTION </item>
<item> SELECTION-SCREEN </item>
<item> SELECT-OPTIONS </item>
<item> SEPARATED </item>
<item> SET </item>
<item> SHIFT </item>
<item> SINGLE </item>
<item> SKIP </item>
<item> SORT </item>
<item> SPACE </item>
<item> SPLIT </item>
<item> STANDARD </item>
<item> STARTING </item>
<item> STOP </item>
<item> STRLEN </item>
<item> STRUCTURE </item>
<item> SUBTRACT </item>
<item> SY-CUCOL </item>
<item> SY-DATUM </item>
<item> SY-DYNNR </item>
<item> SY-LINSZ </item>
<item> SY-LOOPC </item>
<item> SY-LSIND </item>
<item> SY-MSGID </item>
<item> SY-MSGTY </item>
<item> SY-MSGV1 </item>
<item> SY-MSGV2 </item>
<item> SY-MSGV3 </item>
<item> SY-MSGV4 </item>
<item> SY-PAGNO </item>
<item> SY-REPID </item>
<item> SY-STEPL </item>
<item> SY-SUBRC </item>
<item> SY-TABIX </item>
<item> SY-TCODE </item>
<item> SY-TMAXL </item>
<item> SY-UCOMM </item>
<item> SY-ULINE </item>
<item> SY-UNAME </item>
<item> SY-UZEIT </item>
<item> SY-VLINE </item>
<item> TABLE </item>
<item> TABLES </item>
<item> TABLEVIEW </item>
<item> TIMES </item>
<item> TITLE </item>
<item> TITLEBAR </item>
<item> TO </item>
<item> TRAILING </item>
<item> TRANSPORTING </item>
<item> TYPE </item>
<item> TYPE-POOLS </item>
<item> TYPES </item>
<item> ULINE </item>
<item> UP </item>
<item> UPDATE </item>
<item> USING </item>
<item> VALUE </item>
<item> WHEN </item>
<item> WHERE </item>
<item> WHILE </item>
<item> WITH </item>
<item> WORK </item>
<item> WRITE </item>
<item> AFTER </item>
<item> BEFORE </item>
<item> CALL </item>
<item> DURING </item>
<item> ENDFORM </item>
<item> END-OF-SELECTION </item>
<item> FORM </item>
<item> FUNCTION </item>
<item> INCLUDE </item>
<item> LINE-SELECTION </item>
<item> PROCESS </item>
<item> START-OF-SELECTION </item>
<item> TOP-OF-PAGE </item>
<item> TRANSACTION </item>
<item> USER-COMMAND </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<DetectChar attribute="Comment" context="Comment" char="&quot;"/>
<DetectChar attribute="Comment" context="Comment" char="*"/>
<AnyChar attribute="Symbol" context="#stay" String="!%&amp;()+,-&lt;:=&gt;[]^~"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<DetectChar attribute="Comment" context="#pop" char="&quot;"/>
<DetectChar attribute="Comment" context="#pop" char="*"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="&quot;" />
<comment name="singleLine" start="*" />
<comment name="multiLine" start="*" />
</comments>
<keywords casesensitive="0" />
</general>
</language>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="ActionScript 2.0" version="1.00" kateversion="2.4" section="Sources" extensions="*.as" mimetype="text/x-actionscript" license="LGPL" author="Aaron Miller (armantic101@gmail.com)">
<language name="ActionScript 2.0" version="1.0" kateversion="2.4" section="Sources" extensions="*.as" mimetype="text/x-actionscript" license="LGPL" author="Aaron Miller (armantic101@gmail.com)">
<highlighting>
<list name="properties">

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Ada" version="1.06" kateversion="2.4" section="Sources" extensions="*.adb;*.ads;*.ada;*.a" mimetype="text/x-adasrc">
<language name="Ada" version="1.07" kateversion="2.4" section="Sources" extensions="*.adb;*.ads;*.ada;*.a" mimetype="text/x-adasrc">
<highlighting>
<list name="keywords">
<item> abort </item>
@ -141,16 +141,18 @@
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Default">
<RegExpr attribute="Keyword" context="#stay" String="if " insensitive="TRUE" beginRegion="Region1" firstNonSpace="true"/>
<StringDetect attribute="Keyword" context="#stay" String="end if" insensitive="TRUE" endRegion="Region1"/>
<RegExpr attribute="Keyword" context="#stay" String="\sloop\s+" insensitive="TRUE" beginRegion="Region3"/>
<RegExpr attribute="Keyword" context="#stay" String="\sloop$" insensitive="TRUE" beginRegion="Region3"/>
<StringDetect attribute="Keyword" context="#stay" String="end loop;" insensitive="TRUE" endRegion="Region3"/>
<RegExpr attribute="Keyword" context="#stay" String="\sselect\s+" insensitive="TRUE" beginRegion="Region4"/>
<RegExpr attribute="Keyword" context="#stay" String="\sselect$" insensitive="TRUE" beginRegion="Region4"/>
<StringDetect attribute="Keyword" context="#stay" String="end select;" insensitive="TRUE" endRegion="Region4"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(begin|case|record)\b" insensitive="true" beginRegion="Region5"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend(?=((\{[^}]*(\}|$)|\(\*.*(\*\)|$))*)([.;\s]|$)|//|$)" insensitive="true" endRegion="Region5"/>
<RegExpr attribute="Keyword" context="#stay" String="\brecord\b" insensitive="true" beginRegion="RecordRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\s+record\b" insensitive="true" endRegion="RecordRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bcase\b" insensitive="true" beginRegion="CaseRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\s+case\b" insensitive="true" endRegion="CaseRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bif\b" insensitive="true" beginRegion="IfRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\s+if\b" insensitive="true" endRegion="IfRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bloop\b" insensitive="true" beginRegion="LoopRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\s+loop\b" insensitive="true" endRegion="LoopRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bselect\b" insensitive="true" beginRegion="SelectRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\s+select\b" insensitive="true" endRegion="SelectRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bbegin\b" insensitive="true" beginRegion="BeginRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend\b" insensitive="true" endRegion="BeginRegion"/>
<StringDetect attribute="Region Marker" context="Region Marker" String="-- BEGIN" beginRegion="RegionMarker" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="-- END" endRegion="RegionMarker" firstNonSpace="true" />
<keyword attribute="Keyword" context="#stay" String="keywords"/>

@ -26,16 +26,24 @@
This file is included in every file that highlights the "alerts" keywords.
That's why extensions and mimetype are empty.
-->
<language version="1.06" kateversion="2.3" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
<language version="1.08" kateversion="2.3" name="Alerts" section="Other" extensions="" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" hidden="true">
<highlighting>
<list name="alerts">
<item> ### </item>
<item> ALERT </item>
<item> BUG </item>
<item> DANGER </item>
<item> DEPRECATED </item>
<item> FIXME </item>
<item> HACK </item>
<item> NOTE </item>
<item> NOTICE </item>
<item> SECURITY </item>
<item> TASK </item>
<item> TEST </item>
<item> TESTING </item>
<item> TODO </item>
<item> ### </item>
<item> WARNING </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >

@ -24,7 +24,13 @@
Boston, MA 02110-1301, USA.
-->
<language name="ANSI C89" version="1.09" kateversion="2.4" section="Sources" extensions="*.c;*.C;*.h" mimetype="text/x-csrc;text/x-c++src;text/x-chdr" priority="2" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<language name="ANSI C89" section="Sources"
version="1.10" kateversion="2.4"
indenter="cstyle"
extensions="*.c;*.C;*.h"
mimetype="text/x-csrc;text/x-c++src;text/x-chdr"
priority="2"
author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<highlighting>
<list name="keywords">
<item> break </item>

File diff suppressed because it is too large Load Diff

@ -12,7 +12,11 @@ v1.0:
- first Release
-->
<language name="Apache Configuration" section="Configuration" extensions="httpd.conf;httpd2.conf;apache.conf;apache2.conf;.ht*" mimetype="" version="1.10" author="Jan Janssen (medhefgo@googlemail.com)" license="LGPL">
<language name="Apache Configuration" section="Configuration"
version="1.11" kateversion="2.0"
extensions="httpd.conf;httpd2.conf;apache.conf;apache2.conf;.htaccess*;.htpasswd*"
mimetype=""
author="Jan Janssen (medhefgo@googlemail.com)" license="LGPL">
<highlighting>
<list name="String Directives">

@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
-->
<language name="AVR Assembler" version="1.03" kateversion="2.4" section="Assembler" extensions="*.asm;*.ASM;*.asm-avr" mimetype="text/x-asm;text/x-asm-avr" author="Roland Nagy" license="GPL">
<language name="AVR Assembler" version="1.04" kateversion="2.4" section="Assembler" extensions="*.asm;*.ASM;*.asm-avr" mimetype="text/x-asm;text/x-asm-avr" author="Roland Nagy" license="GPL">
<highlighting>
<list name="keywords">
<item> adc</item>
@ -46,6 +46,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<item> bld</item>
<item> brbc</item>
<item> brbs</item>
<item> brcc</item>
<item> brcs</item>
<item> break</item>
<item> breq</item>
<item> brge</item>
@ -96,6 +98,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<item> inc</item>
<item> jmp</item>
<item> ld</item>
<item> ldd</item>
<item> ldi</item>
<item> lds</item>
<item> lpm</item>
@ -140,6 +143,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<item> sleep</item>
<item> spm</item>
<item> st</item>
<item> std</item>
<item> sts</item>
<item> sub</item>
<item> subi</item>

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
This is a template for the XML format used for syntax highlight descriptions
for the Kate text editor (http://kate.kde.org), which is part of the KDE
desktop environment (http://www.kde.org).
Use it as the base for your own syntax files.
Look at language.dtd for some documentation of the allowed elements and their attributes.
There is also a description of how to validate your syntax file.
You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
-->
<language name="ASN.1" section="Markup" version="1.00" kateversion="2.3" extensions="*.asn*.asn1" mimetype="" author="Philippe Rigault" license="GPL">
<highlighting>
<list name="keywords">
<item> DEFINITIONS </item>
<item> BEGIN </item>
<item> END </item>
<item> EXPORTS </item>
<item> IMPORTS </item>
<item> FROM </item>
<item> APPLICATION </item>
<item> PRIVATE </item>
<item> UNIVERSAL </item>
<item> DEFAULT </item>
<item> OPTIONAL </item>
<item> FALSE </item>
<item> TRUE </item>
</list>
<list name="types">
<item> BOOLEAN </item>
<item> INTEGER </item>
<item> OCTET STRING </item>
<item> NULL </item>
<item> REAL </item>
<item> ENUMERATED </item>
<item> SEQUENCE </item>
<item> SET </item>
<item> CHOICE </item>
<item> OF </item>
<item> VisibleString </item>
<item> StringStore </item>
</list>
<contexts>
<context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Data Type" context="#stay" String="types" />
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
</itemDatas>
</highlighting>
</language>
<!--
// kate: space-indent on; indent-width 2; replace-tabs on;
-->

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
*************************************************************************
* *
* Syntax highlighting for the AVR Assembler *
* Copyright (C) 2004, Roland Nagy *
* *
*************************************************************************
Author: UNGAR Didier <didungar@gmail.com>
Date: 22 04 2009
Version: 1.0
-->
<language name="Asterisk" version="1.00" kateversion="2.4" section="Configuration" extensions="*asterisk/*.conf" mimetype="" author="UNGAR Didier" license="GPL">
<highlighting>
<list name="keywords">
<item>AGI</item>
<item>Answer</item>
<item>Dial</item>
<item>Hangup</item>
<item>GoTo</item>
<item>GoToIf</item>
<item>GoToIfTime</item>
<item>NoOp</item>
<item>PlayBack</item>
<item>Read</item>
<item>SayDigits</item>
<item>SayNumber</item>
<item>Set</item>
<item>SetCallerPres</item>
<item>System</item>
<item>Wait</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Label" context="#stay" String="^\[[A-Za-z0-9_]+\]$" />
<RegExpr attribute="Keyword" context="#stay" String="TIMEOUT\(absolute\)=[0-9]+" />
<RegExpr attribute="Keyword" context="#stay" String="[A-Za-z0-9_]+=\$\{CUT\(params,-,([1-9]|[1-9][0-9]+)\)\}" />
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<RegExpr attribute="Normal Text" context="#stay" String="[A-Za-z_.$][A-Za-z0-9_.$]*" />
<DetectChar attribute="String" context="String" char="&quot;" />
<DetectChar attribute="Comment" context="Commentar 2" char=";" />
<AnyChar attribute="Symbol" context="#stay" String="!#%&amp;*()+,-&lt;=&gt;?/:[]^{|}~" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 1">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 2" />
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor" />
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="Some Context" />
<HlCStringChar attribute="String Char" context="#stay" />
<DetectChar attribute="String" context="#pop" char="&quot;" />
</context>
<context attribute="Normal Text" lineEndContext="#pop" name="Some Context" />
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Label" defStyleNum="dsFunction" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Symbol" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start=";" />
</comments>
<keywords casesensitive="0" weakDeliminator="_.$" />
</general>
</language>

@ -6,10 +6,13 @@
<!ENTITY word "[^|&amp;;()&lt;&gt;\s]+"> <!-- see man bash -->
<!ENTITY eos "(?=($|\s))"> <!-- eol or space following -->
<!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
<!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )"> <!-- valid character in a file name -->
]>
<language name="Bash" version="2.06" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<language name="Bash" version="2.12" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<!-- (c) 2004 by Wilbert Berendsen, wilbert@kde.nl
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
Changes by Sebastian Pipping (webmaster@hartwork.org)
Released under the LGPL, part of kdelibs/kate -->
<highlighting>
@ -21,7 +24,6 @@
<item> select </item>
<item> until </item>
<item> while </item>
<item> . </item>
<item> elif </item>
<item> then </item>
<item> set </item>
@ -29,7 +31,6 @@
<list name="builtins">
<item> : </item>
<item> . </item>
<item> source </item>
<item> alias </item>
<item> bg </item>
@ -37,6 +38,7 @@
<item> break </item>
<item> builtin </item>
<item> cd </item>
<item> caller </item>
<item> command </item>
<item> compgen </item>
<item> complete </item>
@ -68,6 +70,7 @@
<item> shopt </item>
<item> suspend </item>
<item> test </item>
<item> time </item>
<item> times </item>
<item> trap </item>
<item> type </item>
@ -132,6 +135,7 @@
<item> getkeycodes </item>
<item> gocr </item>
<item> grep </item>
<item> groff </item>
<item> groups </item>
<item> gunzip </item>
<item> gzexe </item>
@ -165,6 +169,7 @@
<item> nano </item>
<item> netstat </item>
<item> nisdomainname </item>
<item> nroff </item>
<item> openvt </item>
<item> pgawk </item>
<item> pidof </item>
@ -198,6 +203,7 @@
<item> tar </item>
<item> tempfile </item>
<item> touch </item>
<item> troff </item>
<item> true </item>
<item> umount </item>
<item> uname </item>
@ -501,22 +507,23 @@
<!-- handle case as a special case -->
<RegExpr attribute="Keyword" context="Case" String="\bcase&noword;" beginRegion="case" />
<!-- handle command line options -->
<RegExpr attribute="Option" context="#stay" String="-[A-Za-z0-9]+" />
<RegExpr attribute="Option" context="#stay" String="-[A-Za-z0-9][A-Za-z0-9_]*" />
<RegExpr attribute="Option" context="#stay" String="--[a-z][A-Za-z0-9_-]*" />
<!-- handle variable assignments -->
<RegExpr attribute="Variable" context="Assign" String="\b&varname;\+?=" />
<RegExpr attribute="Variable" context="AssignSubscr" String="\b&varname;(?=\[[^]]+\]=)" />
<RegExpr attribute="Variable" context="AssignSubscr" String="\b&varname;(?=\[.+\]\+?=)" />
<!-- handle functions with function keyword before keywords -->
<StringDetect attribute="Function" context="#stay" String=":()" />
<RegExpr attribute="Keyword" context="FunctionDef" String="\bfunction\b" />
<!-- handle keywords -->
<keyword attribute="Keyword" context="#stay" String="keywords" />
<RegExpr attribute="Builtin" context="#stay" String="\.(?=\s)" />
<keyword attribute="Builtin" context="#stay" String="builtins" />
<keyword attribute="Command" context="#stay" String="unixcommands" />
<!-- handle commands that have variable names as argument -->
<keyword attribute="Builtin" context="VarName" String="builtins_var" />
<!-- handle here-string -->
<StringDetect attribute="Redirection" context="#stay" String="&lt;&lt;&lt;" />
<RegExpr attribute="Redirection" context="#stay" String="\d*&lt;&lt;&lt;" />
<!-- handle here document -->
<StringDetect attribute="Redirection" context="HereDoc" String="&lt;&lt;" lookAhead="true" />
<!-- handle process subst -->
@ -531,15 +538,19 @@
<!-- FindOthers contains various rules to mark different shell input -->
<context attribute="Normal Text" lineEndContext="#stay" name="FindOthers">
<RegExpr attribute="Escape" context="#stay" String="\\[][;&quot;\\'$`{}()|&amp;&lt;&gt;* ]" />
<RegExpr attribute="Escape" context="#stay" String="\\[][;\\$`{}()|&amp;&lt;&gt;* ]" />
<RegExpr attribute="Keyword" context="#stay" String="\\$" />
<RegExpr attribute="Escape" context="#stay" String="\{(?!(\s|$))\S*\}" />
<RegExpr attribute="Path" context="#stay" String="\.?/[\w_@.+-]+(?=([\s/):]|$))" />
<!-- TODO: shell globs -->
<RegExpr attribute="Path" context="#stay" String="&pathpart;*(?=/)" />
<RegExpr attribute="Path" context="#stay" String="~\w*" />
<RegExpr attribute="Path" context="#stay" String="/&pathpart;*(?=([\s/):;$`'&quot;]|$))" />
<!-- TODO: shell globs beside * and ? (in Path's) -->
</context>
<!-- FindStrings looks for single and double quoted strings, also with $-prefix -->
<context attribute="Normal Text" lineEndContext="#stay" name="FindStrings">
<Detect2Chars attribute="Escape" context="#stay" char="\\" char1="'" />
<Detect2Chars attribute="Escape" context="#stay" char="\\" char1="&quot;" />
<DetectChar attribute="String SingleQ" context="StringSQ" char="'" />
<DetectChar attribute="String DoubleQ" context="StringDQ" char="&quot;" />
<Detect2Chars attribute="String SingleQ" context="StringEsc" char="$" char1="'" />
@ -548,14 +559,14 @@
<!-- FindSubstitutions goes after anything starting with $ and ` and their escapes -->
<context attribute="Normal Text" lineEndContext="#stay" name="FindSubstitutions">
<RegExpr attribute="Variable" context="#stay" String="\$[*@#?$!_0-9-]" />
<RegExpr attribute="Variable" context="Subscript" String="\$&varname;\[" />
<RegExpr attribute="Variable" context="#stay" String="\$&varname;" />
<RegExpr attribute="Variable" context="#stay" String="\$[*@#?$!_0-9-]" />
<RegExpr attribute="Variable" context="#stay" String="\$\{[*@#?$!_0-9-]\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{#&varname;\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{!&varname;\*?\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{#&varname;(\[[*@]\])?\}" />
<RegExpr attribute="Variable" context="#stay" String="\$\{!&varname;(\[[*@]\]|[*@])?\}" />
<RegExpr attribute="Variable" context="VarBrace" String="\$\{&varname;" />
<RegExpr attribute="Variable" context="VarBrace" String="\$\{[*@#?$!_0-9-](?=[:#%/])" />
<RegExpr attribute="Variable" context="VarBrace" String="\$\{[*@#?$!_0-9-](?=[:#%/=?+-])" />
<StringDetect attribute="Variable" context="ExprDblParenSubst" String="$((" beginRegion="expression" />
<StringDetect attribute="Redirection" context="SubstFile" String="$(&lt;" />
<StringDetect attribute="Variable" context="SubstCommand" String="$(" />
@ -563,8 +574,13 @@
<RegExpr attribute="Escape" context="#stay" String="\\[`$\\]" />
</context>
<!-- FindTests finds operators valid in tests -->
<context attribute="Normal Text" lineEndContext="#stay" name="FindTests">
<RegExpr attribute="Expression" context="#stay" String="-[abcdefghkprstuwxOGLSNozn](?=\s)"/>
<RegExpr attribute="Expression" context="#stay" String="-([no]t|ef)(?=\s)"/>
<RegExpr attribute="Expression" context="#stay" String="([!=]=?|[&gt;&lt;])(?=\s)"/>
<RegExpr attribute="Expression" context="#stay" String="-(eq|ne|[gl][te])(?=\s)"/>
</context>
<!-- ====== These are the contexts that can be branched to ======= -->
@ -595,6 +611,7 @@
<RegExpr attribute="Builtin" context="#pop" String="\s\](?=($|[\s;|&amp;]))" endRegion="expression" />
<RegExpr attribute="Builtin" context="#pop" String="\](?=($|[\s;|&amp;]))" endRegion="expression" column="0"/>
<DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
<IncludeRules context="FindTests" />
<IncludeRules context="FindMost" />
</context>
@ -603,6 +620,7 @@
<RegExpr attribute="Keyword" context="#pop" String="\s\]\](?=($|[\s;|&amp;]))" endRegion="expression" />
<RegExpr attribute="Keyword" context="#pop" String="\]\](?=($|[\s;|&amp;]))" endRegion="expression" column="0"/>
<DetectChar attribute="Normal Text" context="ExprSubParen" char="(" />
<IncludeRules context="FindTests" />
<IncludeRules context="FindMost" />
</context>
@ -624,7 +642,7 @@
<IncludeRules context="FindStrings" />
<IncludeRules context="FindSubstitutions" />
<IncludeRules context="FindOthers" />
<RegExpr attribute="Normal Text" context="#stay" String="[\w:,+_./-]+" />
<RegExpr attribute="Normal Text" context="#stay" String="[\w:,+_./-]" />
</context>
<!-- AssignArray consumes everything till ), marking assignments -->
@ -638,6 +656,7 @@
<!-- AssignSubscr first expects a [ then parses subscript and continues with '=value' -->
<context attribute="Normal Text" lineEndContext="#pop" name="AssignSubscr" fallthrough="true" fallthroughContext="#pop">
<DetectChar attribute="Variable" context="Subscript" char="[" />
<Detect2Chars attribute="Variable" context="Assign" char="+" char1="=" />
<DetectChar attribute="Variable" context="Assign" char="=" />
<IncludeRules context="FindStrings" />
<IncludeRules context="FindSubstitutions" />
@ -700,14 +719,50 @@
</context>
<!-- VarBrace is called as soon as ${xxx is encoutered -->
<context attribute="Variable" lineEndContext="#stay" name="VarBrace">
<context attribute="Error" lineEndContext="#stay" name="VarBrace">
<DetectChar attribute="Variable" context="#pop" char="}" />
<DetectChar attribute="Variable" context="Subscript" char="[" />
<RegExpr attribute="Variable" context="VarAlt" String="(:?[-=?+]|##?|%%?)" />
<RegExpr attribute="Variable" context="VarSubst" String="//?" />
<DetectChar attribute="Variable" context="VarSub" char=":" />
</context>
<!-- VarAlt is to handle default/alternate/etc values of variables -->
<context attribute="Normal Text" lineEndContext="#stay" name="VarAlt">
<DetectChar attribute="Variable" context="#pop#pop" char="}" />
<IncludeRules context="FindStrings" />
<IncludeRules context="FindSubstitutions" />
<!-- TODO: highlight various special parameter expansions } -->
</context>
<!-- VarSubst is to handle substitutions on variables -->
<context attribute="Normal Text" lineEndContext="#stay" name="VarSubst">
<DetectChar attribute="Variable" context="#pop#pop" char="}" />
<DetectChar attribute="Variable" context="VarSubst2" char="/" />
<IncludeRules context="FindStrings" />
<IncludeRules context="FindSubstitutions" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="VarSubst2">
<DetectChar attribute="Variable" context="#pop#pop#pop" char="}" />
<IncludeRules context="FindStrings" />
<IncludeRules context="FindSubstitutions" />
</context>
<!-- VarSub is to substrings of variables -->
<context attribute="Error" lineEndContext="#stay" name="VarSub">
<DetectChar attribute="Variable" context="VarSub2" char=":" />
<DetectChar attribute="Variable" context="#pop#pop" char="}" />
<RegExpr attribute="Variable" context="#stay" String="&varname;" />
<RegExpr attribute="Variable" context="#stay" String="[0-9]+(?=[:}])" />
<IncludeRules context="FindSubstitutions" />
</context>
<context attribute="Error" lineEndContext="#stay" name="VarSub2">
<DetectChar attribute="Variable" context="#pop#pop#pop" char="}" />
<RegExpr attribute="Variable" context="#stay" String="&varname;" />
<RegExpr attribute="Variable" context="#stay" String="[0-9](?=[:}])" />
<IncludeRules context="FindSubstitutions" />
</context>
<!-- SubstFile is called after a <( or >( is encoutered -->
<context attribute="Normal Text" lineEndContext="#stay" name="SubstFile">
<DetectChar attribute="Redirection" context="#pop" char=")" />
@ -729,7 +784,7 @@
<!-- SubstBackq is called when a backquote is encountered -->
<context attribute="Normal Text" lineEndContext="#stay" name="SubstBackq">
<DetectChar attribute="Keyword" context="#pop" char="`" />
<DetectChar attribute="Backquote" context="#pop" char="`" />
<IncludeRules context="FindCommentsBackq" />
<IncludeRules context="FindCommands" />
<IncludeRules context="FindStrings" />
@ -755,19 +810,20 @@
<!-- CaseExpr eats shell input till ;; -->
<context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr">
<Detect2Chars attribute="Keyword" context="#pop" char=";" char1=";" endRegion="caseexpr" />
<RegExpr attribute="Keyword" context="#pop" String="esac(?=$|[\s;)])" lookAhead="true" firstNonSpace="true" endRegion="caseexpr"/>
<IncludeRules context="FindAll" />
</context>
<!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. -->
<context attribute="Normal Text" lineEndContext="#stay" name="HereDoc">
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*&quot;(&word;)&quot;)" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*'(&word;)')" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*\\(&word;))" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocNQ" String="(&lt;&lt;(?!-)\s*(&word;))" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*&quot;(&word;)&quot;)" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*'(&word;)')" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocIQ" String="(&lt;&lt;-\s*\\(&word;))" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocINQ" String="(&lt;&lt;-\s*(&word;))" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*&quot;(&word;)&quot;)" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*'(&word;)')" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocQ" String="(&lt;&lt;\s*\\(&word;))" lookAhead="true" />
<RegExpr attribute="Redirection" context="HereDocNQ" String="(&lt;&lt;\s*(&word;))" lookAhead="true" />
<StringDetect attribute="Redirection" context="#pop" String="&lt;&lt;" /><!-- always met -->
</context>
@ -777,23 +833,23 @@
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="%2[\s;]*$" dynamic="true" column="0"/>
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocNQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="%2[\s;]*$" dynamic="true" column="0"/>
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
<IncludeRules context="FindSubstitutions" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocIQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="\s*%2[\s;]*$" dynamic="true" column="0"/>
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocINQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="\s*%2[\s;]*$" dynamic="true" column="0"/>
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
<IncludeRules context="FindSubstitutions" />
</context>
@ -815,15 +871,16 @@
<itemData name="String Escape" defStyleNum="dsDataType" />
<itemData name="Variable" defStyleNum="dsOthers" />
<itemData name="Expression" defStyleNum="dsOthers" />
<itemData name="Function" defStyleNum="dsChar" bold="1" />
<itemData name="Function" defStyleNum="dsFunction" />
<itemData name="Path" defStyleNum="dsNormal" />
<itemData name="Option" defStyleNum="dsNormal" />
<itemData name="Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#"/>
</comments>
<keywords casesensitive="1" weakDeliminator="^%#[]$._{}:-" additionalDeliminator="`"/>
<keywords casesensitive="1" weakDeliminator="^%#[]$._{}:-/" additionalDeliminator="`"/>
</general>
</language>

@ -1,24 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="BibTeX" version="1.13" kateversion="2.4" extensions="*.bib" section="Markup" mimetype="text/x-bib" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)" license="LGPL">
<language name="BibTeX" version="1.15" kateversion="2.0" extensions="*.bib" section="Markup" mimetype="text/x-bib" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Thomas Braun (braun@physik.fu-berlin.de)" license="LGPL">
<highlighting>
<list name="kw_entry">
<item>@article</item>
<item>@book</item>
<item>@booklet</item>
<item>@conference</item>
<item>@collection</item>
<item>@electronic</item>
<item>@inbook</item>
<item>@incollection</item>
<item>@inproceedings</item>
<item>@manual</item>
<item>@mastersthesis</item>
<item>@misc</item>
<item>@phdthesis</item>
<item>@online</item>
<item>@patent</item>
<item>@periodical</item>
<item>@proceedings</item>
<item>@report</item>
<item>@phdthesis</item>
<item>@set</item>
<item>@thesis</item>
<item>@techreport</item>
<item>@unpublished</item>
<item>@collection</item>
<item>@patent</item>
<item>@www</item>
</list>
<list name="kw_command">
<item>@string</item>
@ -27,7 +34,7 @@
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<RegExpr String="([a-zA-Z]+)\s*=" attribute="Field" context="#stay" firstNonSpace="true" />
<RegExpr String="([a-zA-Z0-9]+)" attribute="Field" context="Field" firstNonSpace="true"/>
<keyword String="kw_entry" attribute="Entry" context="Entry"/>
<keyword String="kw_command" attribute="Command" context="#stay"/>
<DetectChar char="{" attribute="Normal Text" context="#stay" beginRegion="block" />
@ -44,6 +51,10 @@
<DetectChar char="&quot;" attribute="String" context="#pop"/>
</context>
<context name="Field" attribute="Field" lineEndContext="#pop">
<DetectChar char="=" attribute="Normal Text" context="#pop"/>
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<RegExpr String="\\([a-zA-Z]+|.)" attribute="Char" context="#stay"/>
<DetectChar char="&quot;" attribute="String" context="#pop"/>

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="B-Method" version="0.02" kateversion="2.4" section="Scientific" extensions="*.mch;*.imp;*.ref" author="Ivo Anjo (knuckles@gmail.com)" license="LGPL">
<highlighting>
<list name="sections">
<item> MACHINE </item>
<item> SETS </item>
<item> CONSTANTS </item>
<item> PROPERTIES </item>
<item> PROMOTES </item>
<item> INCLUDES </item>
<item> USES </item>
<item> SEES </item>
<item> VARIABLES </item>
<item> INVARIANT </item>
<item> INITIALISATION </item>
<item> REFINEMENT </item>
<item> REFINES </item>
<item> CONSTRAINTS </item>
<item> IMPLEMENTATION </item>
<item> IMPORTS </item>
</list>
<list name="sectionsBlockStart">
<item> OPERATIONS </item>
</list>
<list name="sectionsBlockEnd">
<item> END </item>
</list>
<list name="operationSections">
<item> THEN </item>
<item> WHEN </item>
<item> ELSE </item>
<item> OR </item>
<item> WHERE </item>
<item> INVARIANT </item>
<item> DO </item>
<item> VARIANT </item>
<item> IN </item>
<item> ELSIF </item>
</list>
<list name="operationSectionsBlockStart">
<item> PRE </item>
<item> IF </item>
<item> ANY </item>
<item> LET </item>
<item> CHOICE </item>
<item> CASE </item>
<item> SELECT </item>
<item> VAR </item>
<item> WHILE </item>
<item> BEGIN </item>
</list>
<list name="operationSectionsBlockEnd">
<item> END </item>
</list>
<list name="types">
<item> NAT </item>
<item> NAT1 </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text">
<keyword attribute="SectionKeyword" context="#stay" String="sections" column="0"/>
<keyword attribute="SectionKeyword" context="#stay" String="sectionsBlockStart" column="0" beginRegion="sectionsBlock"/>
<keyword attribute="SectionKeyword" context="#stay" String="sectionsBlockEnd" column="0" endRegion="sectionsBlock"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<Int attribute="Decimal" context="#stay"/>
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="*" beginRegion="Comment"/>
<keyword attribute="OperationKeyword" context="#stay" String="operationSections"/>
<keyword attribute="OperationKeyword" context="#stay" String="operationSectionsBlockStart" beginRegion="CodeBlock"/>
<keyword attribute="OperationKeyword" context="#stay" String="operationSectionsBlockEnd" endRegion="CodeBlock"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Comment">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="SectionKeyword" defStyleNum="dsKeyword" color="#ff0000"/>
<itemData name="OperationKeyword" defStyleNum="dsKeyword" color="#0000ff"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="/*" end="*/"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>

@ -1,6 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="C" version="1.25" kateversion="2.4" section="Sources" extensions="*.c;*.C;*.h" mimetype="text/x-csrc;text/x-c++src;text/x-chdr" priority="5">
<language name="C" section="Sources"
version="1.42" kateversion="2.4"
indenter="cstyle"
extensions="*.c;*.C;*.h"
mimetype="text/x-csrc;text/x-c++src;text/x-chdr"
priority="5">
<!--
##########################################################################
## Fixes by Sebastian Pipping (webmaster@hartwork.org)
##
## NOTE: Keep in sync with C++ highlighter! (cpp.xml)
##########################################################################
-->
<highlighting>
<list name="keywords">
<item> break </item>
@ -55,8 +67,8 @@
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<DetectSpaces />
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" />
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="PP" firstNonSpace="true" />
<DetectChar context="AfterHash" char="#" firstNonSpace="true" lookAhead="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
<keyword attribute="Keyword" context="#stay" String="keywords"/>
@ -86,35 +98,51 @@
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<LineContinue attribute="Comment" context="#stay"/>
<IncludeRules context="##Alerts" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
</context>
<context attribute="Error" lineEndContext="#pop" name="AfterHash">
<!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="#stay"/>
<RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
<RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
<LineContinue attribute="Preprocessor" context="#stay"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
<DetectSpaces />
<IncludeRules context="##Alerts" />
@ -123,9 +151,11 @@
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*(endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
<DetectSpaces />
<IncludeRules context="##Alerts" />
@ -134,8 +164,8 @@
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
</context>
</contexts>
<itemDatas>
@ -155,6 +185,7 @@
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
<itemData name="Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>

@ -24,115 +24,123 @@
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<!-- generated for "cmake version 2.6-patch 2" -->
<language name="CMake" version="1.06" kateversion="2.4" section="Other" extensions="CMakeLists.txt;*.cmake;" mimetype="" author="Alexander Neundorf (neundorf@kde.org)" license="LGPL">
<!-- generated for "cmake version 2.6-patch 3" -->
<language name="CMake" version="1.11" kateversion="2.4" section="Other" extensions="CMakeLists.txt;*.cmake;" mimetype="" author="Alexander Neundorf (neundorf@kde.org)" license="LGPL">
<highlighting>
<list name = "commands">
<item> ADD_CUSTOM_COMMAND </item>
<item> ADD_CUSTOM_TARGET </item>
<item> ADD_DEFINITIONS </item>
<item> ADD_DEPENDENCIES </item>
<item> ADD_EXECUTABLE </item>
<item> ADD_LIBRARY </item>
<item> ADD_SUBDIRECTORY </item>
<item> ADD_TEST </item>
<item> AUX_SOURCE_DIRECTORY </item>
<item> BREAK </item>
<item> BUILD_COMMAND </item>
<item> BUILD_NAME </item>
<item> CMAKE_MINIMUM_REQUIRED </item>
<item> CMAKE_POLICY </item>
<item> CONFIGURE_FILE </item>
<item> CREATE_TEST_SOURCELIST </item>
<item> DEFINE_PROPERTY </item>
<item> ELSE </item>
<item> ELSEIF </item>
<item> ENABLE_LANGUAGE </item>
<item> ENABLE_TESTING </item>
<item> ENDFOREACH </item>
<item> ENDFUNCTION </item>
<item> ENDIF </item>
<item> ENDMACRO </item>
<item> ENDWHILE </item>
<item> EXECUTE_PROCESS </item>
<item> EXEC_PROGRAM </item>
<item> EXPORT </item>
<item> EXPORT_LIBRARY_DEPENDENCIES </item>
<item> FILE </item>
<item> FIND_FILE </item>
<item> FIND_LIBRARY </item>
<item> FIND_PACKAGE </item>
<item> FIND_PATH </item>
<item> FIND_PROGRAM </item>
<item> FLTK_WRAP_UI </item>
<item> FOREACH </item>
<item> FUNCTION </item>
<item> GET_CMAKE_PROPERTY </item>
<item> GET_DIRECTORY_PROPERTY </item>
<item> GET_FILENAME_COMPONENT </item>
<item> GET_PROPERTY </item>
<item> GET_SOURCE_FILE_PROPERTY </item>
<item> GET_TARGET_PROPERTY </item>
<item> GET_TEST_PROPERTY </item>
<item> IF </item>
<item> INCLUDE </item>
<item> INCLUDE_DIRECTORIES </item>
<item> INCLUDE_EXTERNAL_MSPROJECT </item>
<item> INCLUDE_REGULAR_EXPRESSION </item>
<item> INSTALL </item>
<item> INSTALL_FILES </item>
<item> INSTALL_PROGRAMS </item>
<item> INSTALL_TARGETS </item>
<item> ITK_WRAP_TCL </item>
<item> LINK_DIRECTORIES </item>
<item> LINK_LIBRARIES </item>
<item> LIST </item>
<item> LOAD_CACHE </item>
<item> LOAD_COMMAND </item>
<item> MACRO </item>
<item> MAKE_DIRECTORY </item>
<item> MARK_AS_ADVANCED </item>
<item> MATH </item>
<item> MESSAGE </item>
<item> OPTION </item>
<item> OUTPUT_REQUIRED_FILES </item>
<item> PROJECT </item>
<item> QT_WRAP_CPP </item>
<item> QT_WRAP_UI </item>
<item> REMOVE </item>
<item> REMOVE_DEFINITIONS </item>
<item> RETURN </item>
<item> SEPARATE_ARGUMENTS </item>
<item> SET </item>
<item> SET_DIRECTORY_PROPERTIES </item>
<item> SET_PROPERTY </item>
<item> SET_SOURCE_FILES_PROPERTIES </item>
<item> SET_TARGET_PROPERTIES </item>
<item> SITE_NAME </item>
<item> SOURCE_GROUP </item>
<item> STRING </item>
<item> SUBDIRS </item>
<item> SUBDIR_DEPENDS </item>
<item> TARGET_LINK_LIBRARIES </item>
<item> TRY_COMPILE </item>
<item> TRY_RUN </item>
<item> UNSET </item>
<item> UTILITY_SOURCE </item>
<item> VARIABLE_REQUIRES </item>
<item> VARIABLE_WATCH </item>
<item> VTK_MAKE_INSTANTIATOR </item>
<item> VTK_WRAP_JAVA </item>
<item> VTK_WRAP_PYTHON </item>
<item> VTK_WRAP_TCL </item>
<item> WRITE_FILE </item>
<!-- generated list -->
<item> add_custom_command </item>
<item> add_custom_target </item>
<item> add_definitions </item>
<item> add_dependencies </item>
<item> add_executable </item>
<item> add_library </item>
<item> add_subdirectory </item>
<item> add_test </item>
<item> aux_source_directory </item>
<item> break </item>
<item> build_command </item>
<item> build_name </item>
<item> cmake_minimum_required </item>
<item> cmake_policy </item>
<item> configure_file </item>
<item> create_test_sourcelist </item>
<item> define_property </item>
<item> else </item>
<item> elseif </item>
<item> enable_language </item>
<item> enable_testing </item>
<item> endforeach </item>
<item> endfunction </item>
<item> endif </item>
<item> endmacro </item>
<item> endwhile </item>
<item> exec_program </item>
<item> execute_process </item>
<item> export </item>
<item> export_library_dependencies </item>
<item> file </item>
<item> find_file </item>
<item> find_library </item>
<item> find_package </item>
<item> find_path </item>
<item> find_program </item>
<item> fltk_wrap_ui </item>
<item> foreach </item>
<item> function </item>
<item> get_cmake_property </item>
<item> get_directory_property </item>
<item> get_filename_component </item>
<item> get_property </item>
<item> get_source_file_property </item>
<item> get_target_property </item>
<item> get_test_property </item>
<item> if </item>
<item> include </item>
<item> include_directories </item>
<item> include_external_msproject </item>
<item> include_regular_expression </item>
<item> install </item>
<item> install_files </item>
<item> install_programs </item>
<item> install_targets </item>
<item> link_directories </item>
<item> link_libraries </item>
<item> list </item>
<item> load_cache </item>
<item> load_command </item>
<item> macro </item>
<item> make_directory </item>
<item> mark_as_advanced </item>
<item> math </item>
<item> message </item>
<item> option </item>
<item> output_required_files </item>
<item> project </item>
<item> qt_wrap_cpp </item>
<item> qt_wrap_ui </item>
<item> remove </item>
<item> remove_definitions </item>
<item> return </item>
<item> separate_arguments </item>
<item> set </item>
<item> set_directory_properties </item>
<item> set_property </item>
<item> set_source_files_properties </item>
<item> set_target_properties </item>
<item> set_tests_properties </item>
<item> site_name </item>
<item> source_group </item>
<item> string </item>
<item> subdir_depends </item>
<item> subdirs </item>
<item> target_link_libraries </item>
<item> try_compile </item>
<item> try_run </item>
<item> unset </item>
<item> use_mangled_mesa </item>
<item> utility_source </item>
<item> variable_requires </item>
<item> variable_watch </item>
<item> while </item>
<item> write_file </item>
</list>
<list name="itkvtk_commands">
<item> itk_wrap_tcl </item>
<item> vtk_make_instantiator </item>
<item> vtk_wrap_java </item>
<item> vtk_wrap_python </item>
<item> vtk_wrap_tcl </item>
</list>
<list name="special_args">
<!-- generated list -->
<item> ABSOLUTE </item>
<item> ABSTRACT </item>
<item> ADDITIONAL_MAKE_CLEAN_FILES </item>
<item> AFTER </item>
<item> ALL </item>
<item> ALPHABET </item>
<item> AND </item>
<item> APPEND </item>
<item> ARCHIVE </item>
@ -141,33 +149,40 @@
<item> BEFORE </item>
<item> BRIEF_DOCS </item>
<item> BUNDLE </item>
<item> C </item>
<item> CACHE </item>
<item> CACHE_VARIABLES </item>
<item> CLEAR </item>
<item> CMAKE_FLAGS </item>
<item> CMAKE_FIND_ROOT_PATH_BOTH </item>
<item> CMAKE_FLAGS </item>
<item> CODE </item>
<item> COMMAND </item>
<item> COMMANDS </item>
<item> COMMAND_NAME </item>
<item> COMMENT </item>
<item> COMPARE </item>
<item> COMPILE_FLAGS </item>
<item> COMPILE_DEFINITIONS </item>
<item> COMPILE_OUTPUT_VARIABLE </item>
<item> COMPILE_RESULT_VAR </item>
<item> COMPONENT </item>
<item> COMPONENTS </item>
<item> CONFIGS </item>
<item> CONFIGURATIONS </item>
<item> CONFIGURE </item>
<item> COPYONLY </item>
<item> COPY_FILE </item>
<item> CXX </item>
<item> DEFINED </item>
<item> DEFINE_SYMBOL </item>
<item> DEFINITION </item>
<item> DEPENDS </item>
<item> DESTINATION </item>
<item> DIRECTORY </item>
<item> DIRECTORY_PERMISSIONS </item>
<item> DOC </item>
<item> DOWNLOAD </item>
<item> ENV </item>
<item> EQUAL </item>
<item> ERROR_FILE </item>
<item> ERROR_QUIET </item>
<item> ERROR_STRIP_TRAILING_WHITESPACE </item>
<item> ERROR_VARIABLE </item>
<item> ESCAPE_QUOTES </item>
<item> EXACT </item>
<item> EXCLUDE </item>
@ -180,39 +195,43 @@
<item> FATAL_ERROR </item>
<item> FILE </item>
<item> FILES </item>
<item> FILE_PERMISSIONS </item>
<item> FILES_MATCHING </item>
<item> FILE_PERMISSIONS </item>
<item> FIND </item>
<item> FOLLOW_SYMLINKS </item>
<item> FORCE </item>
<item> FRAMEWORK </item>
<item> FULL_DOCS </item>
<item> GENERATED </item>
<item> FUNCTION </item>
<item> GET </item>
<item> GLOB </item>
<item> GLOB_RECURSE </item>
<item> GLOBAL </item>
<item> GREATER </item>
<item> GROUP_SIZE </item>
<item> HEADER_FILE_ONLY </item>
<item> HEADER_LOCATION </item>
<item> GROUP_EXECUTE </item>
<item> GROUP_READ </item>
<item> HEX </item>
<item> HINTS </item>
<item> IMMEDIATE </item>
<item> INCLUDES </item>
<item> INCLUDE_DIRECTORIES </item>
<item> IMPLICIT_DEPENDS </item>
<item> IMPORTED </item>
<item> INCLUDE_INTERNALS </item>
<item> INCLUDE_REGULAR_EXPRESSION </item>
<item> INHERITED </item>
<item> INTERNAL </item>
<item> INPUT_FILE </item>
<item> INSERT </item>
<item> IS_ABSOLUTE </item>
<item> IS_DIRECTORY </item>
<item> IS_NEWER_THAN </item>
<item> LENGTH </item>
<item> LENGTH_MAXIMUM </item>
<item> LENGTH_MINIMUM </item>
<item> LESS </item>
<item> LIBRARY </item>
<item> LINK_DIRECTORIES </item>
<item> LINK_FLAGS </item>
<item> LIMIT </item>
<item> LIMIT_COUNT </item>
<item> LIMIT_INPUT </item>
<item> LIMIT_OUTPUT </item>
<item> LINK_INTERFACE_LIBRARIES </item>
<item> LOCATION </item>
<item> LOG </item>
<item> MACOSX_BUNDLE </item>
<item> MACROS </item>
<item> MAIN_DEPENDENCY </item>
<item> MAKE_DIRECTORY </item>
<item> MATCH </item>
@ -223,121 +242,292 @@
<item> NAMELINK_ONLY </item>
<item> NAMELINK_SKIP </item>
<item> NAMES </item>
<item> NAMESPACE </item>
<item> NAME_WE </item>
<item> NEW </item>
<item> NEWLINE_CONSUME </item>
<item> NOT </item>
<item> NOTEQUAL </item>
<item> NO_CMAKE_PATH </item>
<item> NO_CMAKE_BUILDS_PATH </item>
<item> NO_CMAKE_ENVIRONMENT_PATH </item>
<item> NO_CMAKE_FIND_ROOT_PATH </item>
<item> NO_CMAKE_PATH </item>
<item> NO_CMAKE_SYSTEM_PATH </item>
<item> NO_DEFAULT_PATH </item>
<item> NO_HEX_CONVERSION </item>
<item> NO_MODULE </item>
<item> NO_SYSTEM_PATH </item>
<item> NO_POLICY_SCOPE </item>
<item> NO_SYSTEM_ENVIRONMENT_PATH </item>
<item> OBJECT_DEPENDS </item>
<item> OFFSET </item>
<item> OLD </item>
<item> ONLY_CMAKE_FIND_ROOT_PATH </item>
<item> OPTIONAL </item>
<item> OR </item>
<item> OUTPUT </item>
<item> OUTPUT_DIRECTORY </item>
<item> OUTPUT_FILE </item>
<item> OUTPUT_QUIET </item>
<item> OUTPUT_STRIP_TRAILING_WHITESPACE </item>
<item> OUTPUT_VARIABLE </item>
<item> OWNER_EXECUTE </item>
<item> OWNER_READ </item>
<item> OWNER_WRITE </item>
<item> PARENT_SCOPE </item>
<item> PATH </item>
<item> PATHS </item>
<item> PATH_SUFFIXES </item>
<item> PATH_TO_MESA </item>
<item> PATTERN </item>
<item> PERMISSIONS </item>
<item> POLICY </item>
<item> POP </item>
<item> POST_BUILD </item>
<item> POST_INSTALL_SCRIPT </item>
<item> PREFIX </item>
<item> PREORDER </item>
<item> PRE_BUILD </item>
<item> PRE_INSTALL_SCRIPT </item>
<item> PRE_LINK </item>
<item> PRIVATE_HEADER </item>
<item> PROGRAM </item>
<item> PROGRAMS </item>
<item> PROGRAM_ARGS </item>
<item> PROPERTIES </item>
<item> PROPERTY </item>
<item> PUBLIC_HEADER </item>
<item> PUSH </item>
<item> QUIET </item>
<item> RANDOM </item>
<item> RANGE </item>
<item> READ </item>
<item> READ_WITH_PREFIX </item>
<item> REGEX </item>
<item> REGULAR_EXPRESSION </item>
<item> RELATIVE </item>
<item> RELATIVE_PATH </item>
<item> REMOVE </item>
<item> REMOVE_AT </item>
<item> REMOVE_DUPLICATES </item>
<item> REMOVE_ITEM </item>
<item> REMOVE_RECURSE </item>
<item> RENAME </item>
<item> REPLACE </item>
<item> REQUIRED </item>
<item> REQUIRED_VARIABLE1 </item>
<item> REQUIRED_VARIABLE2 </item>
<item> RESOURCE </item>
<item> RESULT_VAR </item>
<item> RESULT_VARIABLE </item>
<item> RETURN_VALUE </item>
<item> REVERSE </item>
<item> RUNTIME </item>
<item> RUNTIME_DIRECTORY </item>
<item> RUN_OUTPUT_VARIABLE </item>
<item> RUN_RESULT_VAR </item>
<item> SCRIPT </item>
<item> SEND_ERROR </item>
<item> SET </item>
<item> SHARED </item>
<item> SORT </item>
<item> SOURCE </item>
<item> SOURCES </item>
<item> STATIC </item>
<item> STATUS </item>
<item> STRIP </item>
<item> STRINGS </item>
<item> STREQUAL </item>
<item> STRGREATER </item>
<item> STRINGS </item>
<item> STRIP </item>
<item> STRLESS </item>
<item> SUFFIX </item>
<item> SUBSTRING </item>
<item> SYSTEM </item>
<item> TARGET </item>
<item> TARGETS </item>
<item> TEST </item>
<item> TEST_VARIABLE </item>
<item> TIMEOUT </item>
<item> TOLOWER </item>
<item> TOUPPER </item>
<item> TO_CMAKE_PATH </item>
<item> TO_NATIVE_PATH </item>
<item> USE_SOURCE_PERMISSIONS </item>
<item> VALUE </item>
<item> VAR </item>
<item> VAR2 </item>
<item> VARIABLE </item>
<item> VARIABLES </item>
<item> VERBATIM </item>
<item> VERSION </item>
<item> VERSION_LESS </item>
<item> VERSION_EQUAL </item>
<item> VERSION_GREATER </item>
<item> VERSION_LESS </item>
<item> WIN32 </item>
<item> WORKING_DIRECTORY </item>
<item> WRAP_EXCLUDE </item>
<item> WRITE </item>
</list>
<!-- these are "special" and don't show up in the generated lists -->
<list name="extra_special_args">
<item> GLOBAL </item>
<item> INTERNAL </item>
</list>
<list name="properties">
<!-- generated list -->
<item> ABSTRACT </item>
<item> ADDITIONAL_MAKE_CLEAN_FILES </item>
<item> ALLOW_DUPLICATE_CUSTOM_TARGETS </item>
<item> ARCHIVE_OUTPUT_DIRECTORY </item>
<item> BUILD_WITH_INSTALL_RPATH </item>
<item> CACHE_VARIABLES </item>
<item> CLEAN_DIRECT_OUTPUT </item>
<item> CLEAN_NO_CUSTOM </item>
<item> COMPILE_DEFINITIONS </item>
<item> COMPILE_FLAGS </item>
<item> DEBUG_CONFIGURATIONS </item>
<item> DEBUG_POSTFIX </item>
<item> DEFINE_SYMBOL </item>
<item> DEFINITIONS </item>
<item> DISABLED_FEATURES </item>
<item> ENABLED_FEATURES </item>
<item> ENABLED_LANGUAGES </item>
<item> ENABLE_EXPORTS </item>
<item> EXCLUDE_FROM_ALL </item>
<item> EXTERNAL_OBJECT </item>
<item> EchoString </item>
<item> FAIL_REGULAR_EXPRESSION </item>
<item> FIND_LIBRARY_USE_LIB64_PATHS </item>
<item> FRAMEWORK </item>
<item> Fortran_MODULE_DIRECTORY </item>
<item> GENERATED </item>
<item> GENERATOR_FILE_NAME </item>
<item> GLOBAL_DEPENDS_DEBUG_MODE </item>
<item> HAS_CXX </item>
<item> HEADER_FILE_ONLY </item>
<item> IMPLICIT_DEPENDS_INCLUDE_TRANSFORM </item>
<item> IMPORTED </item>
<item> IMPORTED_CONFIGURATIONS </item>
<item> IMPORTED_IMPLIB </item>
<item> IMPORTED_LINK_DEPENDENT_LIBRARIES </item>
<item> IMPORTED_LINK_INTERFACE_LIBRARIES </item>
<item> IMPORTED_LOCATION </item>
<item> IMPORTED_SONAME </item>
<item> IMPORT_PREFIX </item>
<item> IMPORT_SUFFIX </item>
<item> INCLUDE_DIRECTORIES </item>
<item> INCLUDE_REGULAR_EXPRESSION </item>
<item> INSTALL_NAME_DIR </item>
<item> INSTALL_RPATH </item>
<item> INSTALL_RPATH_USE_LINK_PATH </item>
<item> IN_TRY_COMPILE </item>
<item> KEEP_EXTENSION </item>
<item> LANGUAGE </item>
<item> LIBRARY_OUTPUT_DIRECTORY </item>
<item> LINKER_LANGUAGE </item>
<item> LINK_DIRECTORIES </item>
<item> LINK_FLAGS </item>
<item> LINK_INTERFACE_LIBRARIES </item>
<item> LINK_SEARCH_END_STATIC </item>
<item> LISTFILE_STACK </item>
<item> LOCATION </item>
<item> MACOSX_BUNDLE </item>
<item> MACOSX_BUNDLE_INFO_PLIST </item>
<item> MACOSX_FRAMEWORK_INFO_PLIST </item>
<item> MACOSX_PACKAGE_LOCATION </item>
<item> MACROS </item>
<item> MEASUREMENT </item>
<item> OBJECT_DEPENDS </item>
<item> OBJECT_OUTPUTS </item>
<item> OUTPUT_NAME </item>
<item> PACKAGES_FOUND </item>
<item> PACKAGES_NOT_FOUND </item>
<item> PARENT_DIRECTORY </item>
<item> PASS_REGULAR_EXPRESSION </item>
<item> POST_INSTALL_SCRIPT </item>
<item> PREFIX </item>
<item> PRE_INSTALL_SCRIPT </item>
<item> PRIVATE_HEADER </item>
<item> PROJECT_LABEL </item>
<item> PUBLIC_HEADER </item>
<item> REPORT_UNDEFINED_PROPERTIES </item>
<item> RESOURCE </item>
<item> RUNTIME_OUTPUT_DIRECTORY </item>
<item> SKIP_BUILD_RPATH </item>
<item> SOURCES </item>
<item> SOVERSION </item>
<item> STATIC_LIBRARY_FLAGS </item>
<item> SUFFIX </item>
<item> SYMBOLIC </item>
<item> TARGET_ARCHIVES_MAY_BE_SHARED_LIBS </item>
<item> TARGET_SUPPORTS_SHARED_LIBS </item>
<item> TEST_INCLUDE_FILE </item>
<item> TIMEOUT </item>
<item> TYPE </item>
<item> VARIABLES </item>
<item> VERSION </item>
<item> VS_KEYWORD </item>
<item> VS_SCC_LOCALPATH </item>
<item> VS_SCC_PROJECTNAME </item>
<item> VS_SCC_PROVIDER </item>
<item> WILL_FAIL </item>
<item> WIN32_EXECUTABLE </item>
<item> WRAP_EXCLUDE </item>
<item> __CMAKE_DELETE_CACHE_CHANGE_VARS_ </item>
</list>
<!-- these are "special" and don't show up in the generated lists -->
<list name="extra_properties">
<item> COMMANDS </item> <!-- WARNING: this one looks like a cmake bug, watch for it to migrate to the generated list! -->
<item> DEFINITION </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text">
<DetectSpaces/>
<keyword attribute="Commands" context="Function Args" String="commands" insensitive="true"/>
<keyword attribute="Commands" context="Command Args" String="commands" insensitive="true"/>
<keyword attribute="Third-Party Commands" context="#stay" String="itkvtk_commands" insensitive="true"/>
<RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="block" firstNonSpace="true"/>
<RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="block" firstNonSpace="true"/>
<DetectChar attribute="Comment" context="Comment" char="#"/>
<RegExpr attribute="Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
<RegExpr attribute="Macros" context="#stay" String="\w+\s*(?=\()"/>
<RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*\w+\s*\}"/>
<RegExpr attribute="CMake Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
<RegExpr attribute="Macros" context="Macro Args" String="\w+\s*(?=\()"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Function Args">
<context attribute="Normal Text" lineEndContext="#stay" name="Command Args">
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
<DetectChar attribute="Strings" context="String" char="&quot;"/>
<keyword attribute="Special Args" context="#stay" String="special_args"/>
<keyword attribute="Special Args" context="#stay" String="extra_special_args"/>
<keyword attribute="Properties" context="#stay" String="properties"/>
<keyword attribute="Properties" context="#stay" String="extra_properties"/>
<RegExpr attribute="Comment" context="#stay" String="#.*$"/>
<RegExpr attribute="Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
<RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*\w+\s*\}"/>
<RegExpr attribute="CMake Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Macro Args">
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
<DetectChar attribute="Strings" context="String" char="&quot;"/>
<RegExpr attribute="Comment" context="#stay" String="#.*$"/>
<RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*\w+\s*\}"/>
<RegExpr attribute="CMake Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" />
</context>
<context attribute="Strings" lineEndContext="#stay" name="String">
<DetectChar attribute="Strings" context="#pop" char="&quot;" />
<RegExpr attribute="Escapes" context="#stay" String="\\[&quot;$n\\]" />
<RegExpr attribute="Environment Variable" context="#stay" String="\$ENV\{\s*\w+\s*\}"/>
<RegExpr attribute="CMake Variable" context="#stay" String="\$\{\s*\w+\s*\}"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Special Args" defStyleNum="dsOthers" color="#000000" bold="0" italic="1"/>
<itemData name="Special Args" defStyleNum="dsOthers"/>
<itemData name="Properties" defStyleNum="dsOthers"/>
<itemData name="Commands" defStyleNum="dsKeyword"/>
<itemData name="Macros" defStyleNum="dsKeyword"/>
<itemData name="Variable" defStyleNum="dsDecVal"/>
<itemData name="Third-Party Commands" defStyleNum="dsFunction"/>
<itemData name="Macros" defStyleNum="dsFunction"/>
<itemData name="Strings" defStyleNum="dsString"/>
<itemData name="Escapes" defStyleNum="dsChar"/>
<itemData name="CMake Variable" defStyleNum="dsDecVal"/>
<itemData name="Environment Variable" defStyleNum="dsFloat"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker"/>
</itemDatas>

@ -6,8 +6,6 @@
copyright : (C) 2004 by Dominik Haumann
email : dhdev at gmx dot de
last change : 2004-03-16
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
@ -25,7 +23,7 @@
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language version="1.02" kateversion="2.3" name="Common Lisp" section="Scripts" extensions="*.lisp;*.cl;*.lsp" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<language version="1.04" kateversion="2.3" name="Common Lisp" section="Scripts" extensions="*.lisp;*.cl;*.lsp" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<highlighting>
<list name="symbols">
<item> &lt; </item>
@ -163,6 +161,20 @@
<item> byte </item>
<item> byte-position </item>
<item> byte-size </item>
<item> caaaar </item>
<item> caaadr </item>
<item> caaar </item>
<item> caadar </item>
<item> caaddr </item>
<item> caadr </item>
<item> caar </item>
<item> cadaar </item>
<item> cadadr </item>
<item> cadar </item>
<item> caddar </item>
<item> cadddr </item>
<item> caddr </item>
<item> cadr </item>
<item> call-arguments-limit </item>
<item> call-method </item>
<item> call-next-method </item>
@ -171,6 +183,20 @@
<item> case </item>
<item> catch </item>
<item> ccase </item>
<item> cdaaar </item>
<item> cdaadr </item>
<item> cdaar </item>
<item> cdadar </item>
<item> cdaddr </item>
<item> cdadr </item>
<item> cdar </item>
<item> cddaar </item>
<item> cddadr </item>
<item> cddar </item>
<item> cdddar </item>
<item> cddddr </item>
<item> cdddr </item>
<item> cddr </item>
<item> cdr </item>
<item> ceiling </item>
<item> cell-error </item>
@ -1141,6 +1167,7 @@
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<RegExpr attribute="Char" context="#stay" String="#\\."/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
</contexts>

@ -1,6 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="C++" version="1.38" kateversion="2.4" section="Sources" extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" priority="9">
<language name="C++" section="Sources"
version="1.44" kateversion="2.4"
indenter="cstyle"
mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr"
extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc"
priority="9">
<!--
##########################################################################
## Fixes by Sebastian Pipping (webmaster@hartwork.org)
##
## NOTE: Keep in sync with C highlighter! (c.xml)
##########################################################################
-->
<highlighting>
<list name="keywords">
<item> asm </item>
@ -71,46 +83,48 @@
</list>
<list name="extensions">
<item> K_DCOP </item>
<item> SLOT </item>
<item> SIGNAL </item>
<item> Q_ARG </item>
<item> Q_ASSERT </item>
<item> Q_ASSERT_X </item>
<item> Q_CHECK_PTR </item>
<item> Q_CLASSINFO </item>
<item> Q_ENUMS </item>
<item> Q_EXPORT </item>
<item> Q_OBJECT </item>
<item> Q_OVERRIDE </item>
<item> Q_PROPERTY </item>
<item> Q_SETS </item>
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_FOREACH </item>
<item> Q_DECLARE_FLAGS </item>
<item> Q_INIT_RESOURCE </item>
<item> Q_CLEANUP_RESOURCE </item>
<item> Q_GLOBAL_STATIC </item>
<item> Q_GLOBAL_STATIC_WITH_ARGS </item>
<item> Q_DECLARE_INTERFACE </item>
<item> Q_DECLARE_TYPEINFO </item>
<item> Q_DECLARE_SHARED </item>
<item> Q_D </item>
<item> Q_DECLARE_FLAGS </item>
<item> Q_DECLARE_FLAGS </item>
<item> Q_DECLARE_INTERFACE </item>
<item> Q_DECLARE_METATYPE </item>
<item> Q_DECLARE_OPERATORS_FOR_FLAGS </item>
<item> Q_FOREVER </item>
<item> Q_DECLARE_PRIVATE </item>
<item> Q_DECLARE_PUBLIC </item>
<item> Q_D </item>
<item> Q_Q </item>
<item> Q_DECLARE_SHARED </item>
<item> Q_DECLARE_TYPEINFO </item>
<item> Q_DISABLE_COPY </item>
<item> Q_INTERFACES </item>
<item> Q_ENUMS </item>
<item> Q_EXPORT </item>
<item> Q_FLAGS </item>
<item> Q_SCRIPTABLE </item>
<item> Q_INVOKABLE </item>
<item> Q_FOREACH </item>
<item> Q_FOREVER </item>
<item> Q_GADGET </item>
<item> Q_ARG </item>
<item> Q_RETURN_ARG </item>
<item> Q_ASSERT </item>
<item> Q_ASSERT_X </item>
<item> Q_PRIVATE_SLOT </item>
<item> Q_DECLARE_METATYPE </item>
<item> Q_GLOBAL_STATIC </item>
<item> Q_GLOBAL_STATIC_WITH_ARGS </item>
<item> Q_INIT_RESOURCE </item>
<item> Q_INTERFACES </item>
<item> Q_INVOKABLE </item>
<item> Q_NOREPLY </item>
<item> Q_OBJECT </item>
<item> Q_OVERRIDE </item>
<item> Q_PRIVATE_SLOT </item>
<item> Q_PROPERTY </item>
<item> Q_Q </item>
<item> Q_RETURN_ARG </item>
<item> Q_SCRIPTABLE </item>
<item> Q_SETS </item>
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_UNUSED </item>
<item> SIGNAL </item>
<item> SLOT </item>
<item> TRUE </item>
<item> FALSE </item>
<item> connect </item>
@ -120,6 +134,20 @@
<item> slots </item>
<item> foreach </item>
<item> forever </item>
<item> qint8 </item>
<item> qint16 </item>
<item> qint32 </item>
<item> qint64 </item>
<item> qlonglong </item>
<item> qptrdiff </item>
<item> qreal </item>
<item> quint8 </item>
<item> quint16 </item>
<item> quint32 </item>
<item> quint64 </item>
<item> quintptr </item>
<item> qulonglong </item>
</list>
<list name="types">
<item> auto </item>
@ -153,8 +181,8 @@
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<DetectSpaces />
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" />
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="PP" firstNonSpace="true" />
<DetectChar context="AfterHash" char="#" firstNonSpace="true" lookAhead="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
@ -185,42 +213,59 @@
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]{|}~^&#59;"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<LineContinue attribute="Comment" context="#stay"/>
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context attribute="Error" lineEndContext="#pop" name="AfterHash">
<!-- define, elif, else, endif, error, if, ifdef, ifndef, include, include_next, line, pragma, undef, warning -->
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Define" String="#\s*define.*((?=\\))" insensitive="true" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" insensitive="true" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="Preprocessor" String="#\s+[0-9]+" insensitive="true" firstNonSpace="true" />
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="#stay"/>
<RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
<RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*"/>
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
<LineContinue attribute="Preprocessor" context="#stay"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar/Preprocessor">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment2" />
<DetectIdentifier />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
<DetectSpaces />
<IncludeRules context="##Alerts" />
@ -229,9 +274,11 @@
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*(endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*el(?:se|if)" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
<DetectSpaces />
<IncludeRules context="##Alerts" />
@ -240,8 +287,8 @@
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true"/>
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="PP" firstNonSpace="true" />
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="PP" firstNonSpace="true" />
</context>
</contexts>
<itemDatas>
@ -261,6 +308,7 @@
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
<itemData name="Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>

@ -1,6 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="CSS" version="2.00" kateversion="2.4" section="Markup" extensions="*.css" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<!--
Kate CSS syntax highlighting definition
Changelog:
- Version 2.02, by Rafał Miłecki:
- Added CSS 3 properties "border-*-image" and "border-*-radius".
- Added CSS values "clip", "ellipsis" and "ellipsis-word".
- Added CSS 3 properties "overflow-x", "overflow-y", "text-overflow", "box-shadow" and "outline-offset".
- Added CSS 3 color values: "rgba", "hsl" and "hsla".
- Added Gecko CSS properties: "-moz-border-*-colors".
- Added background size properties: "background-size" and prefixes: "-o-", "-webkit-" and "-khtml-".
- Version 2.01, by Mathieu Bonnet:
- Added CSS 3 property "border-radius".
- Added Gecko CSS properties "-moz-border-radius" and "-moz-box-flex".
- Added Gecko CSS value "-moz-box".
- Added Trident CSS functional notation "expression".
- Extended the id and class syntax specifications, as per CSS 2.1 grammar.
-->
<language name="CSS" version="2.02" kateversion="2.4" section="Markup" extensions="*.css" mimetype="text/css" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
<list name="properties">
@ -130,14 +155,50 @@
<item> z-index </item>
<!-- CSS3 -->
<item> border-bottom-image </item>
<item> border-bottom-left-image </item>
<item> border-bottom-left-radius </item>
<item> border-bottom-right-image </item>
<item> border-bottom-right-radius </item>
<item> border-corner-image </item>
<item> border-image </item>
<item> border-left-image </item>
<item> border-radius </item>
<item> border-right-image </item>
<item> border-top-image </item>
<item> border-top-left-image </item>
<item> border-top-left-radius </item>
<item> border-top-right-image </item>
<item> border-top-right-radius </item>
<item> box-shadow </item>
<item> box-sizing </item>
<item> opacity </item>
<item> outline-offset </item>
<item> overflow-x </item>
<item> overflow-y </item>
<item> text-overflow </item>
<item> text-shadow </item>
<!-- Gecko rendering engine CSS property extensions -->
<item> -moz-border-bottom-colors </item>
<item> -moz-border-left-colors </item>
<item> -moz-border-radius </item>
<item> -moz-border-right-colors </item>
<item> -moz-border-top-colors </item>
<item> -moz-box-flex </item>
<!-- Opera rendering engine CSS property extensions -->
<item> -o-background-size </item>
<item> -o-text-overflow </item>
<!-- konq specific -->
<item> -khtml-background-size </item>
<item> konq_bgpos_x </item>
<item> konq_bgpos_y </item>
<!-- Webkit rendering engine CSS property extensions -->
<item> -webkit-background-size </item>
<!-- font properties in @font-face -->
<item> font-family </item>
<item> font-size </item>
@ -285,11 +346,14 @@
<item> both </item>
<item> capitalize </item>
<item> caption </item>
<item> clip </item>
<item> close-quote </item>
<item> collapse </item>
<item> condensed </item>
<item> crop </item>
<item> cross </item>
<item> ellipsis </item>
<item> ellipsis-word </item>
<item> embed </item>
<item> expanded </item>
<item> extra-condensed </item>
@ -349,6 +413,10 @@
<item> monospace </item>
<item> border-box </item>
<item> content-box </item>
<!-- Gecko rendering engine CSS value extensions -->
<item> -moz-box </item>
</list>
@ -404,12 +472,19 @@
<item> attr </item>
<item> rect </item>
<item> rgb </item>
<item> rgba </item>
<item> hsl </item>
<item> hsla </item>
<item> counter </item>
<item> counters </item>
<!-- in @font-face -->
<item> local </item>
<item> format </item>
<!-- Trident (a.k.a., MSHTML) rendering engine functional notation extensions -->
<item> expression </item>
</list>
<list name="mediatypes">
@ -472,8 +547,8 @@
<DetectChar attribute="Property" context="RuleSet" char="{" beginRegion="ruleset" />
<!--parse selectors-->
<DetectChar attribute="Selector Attr" context="SelAttr" char="[" />
<RegExpr attribute="Selector Id" context="#stay" String="#[A-Za-z0-9][\w\-]*" />
<RegExpr attribute="Selector Class" context="#stay" String="\.[A-Za-z0-9][\w\-]*" />
<RegExpr attribute="Selector Id" context="#stay" String="#([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
<RegExpr attribute="Selector Class" context="#stay" String="\.([a-zA-Z0-9\-_]|[\x80-\xFF]|\\[0-9A-Fa-f]{1,6})*" />
<RegExpr attribute="Selector Pseudo" context="#stay" String=":lang\([\w_-]+\)" />
<DetectChar attribute="Selector Pseudo" context="SelPseudo" char=":" />
<IncludeRules context="FindStrings" />

@ -5,21 +5,86 @@
D.XML supports syntax highlighting for the D programming language under Kate.
Updated 2007-2008 - Diggory Hardy <diggory.hardy@gmail.com> (copyright kate project).
Copyright (C) 2007 - Aziz Köksal <aziz.koeksal@gmail.com>
Copyright (C) 2007 - Jari-Matti Mäkelä <jmjm@iki.fi>
Copyright (C) 2004 - Simon J Mackenzie <project.katedxml@smackoz.fastmail.fm>
This code is released under the LGPL as part of kdelibs/kate.
========================================================================
D is a next generation language written by Walter Bright of Digital Mars fame.
Digital Mars C, C++ and D Compilers can be obtained from http://www.digitalmars.com/
Digital Mars C, C++ and D Compilers can be obtained from http://www.digitalmars.com/d/
========================================================================
Updates for D.XML can be obtained from http://kate.kde.org/hl/
UPDATE HISTORY:-
2008.09.22 - d.xml 1.61 - D 1.035/2.019 - Fix for identifiers starting _ and containing numbers.
2008.08.01 - d.xml 1.60 - D 1.033/2.017 - Merging ddoc.xml 1.14 since there is no advantage to having it separate.
2008.07.14 - uncommited - Added properties: .tupleof, .offsetof
2008.06.14 - D.XML 1.53 - D 1.030/2.014 - Added user keyword highlighting.
2008.06.06 - D.XML 1.53 - D 1.030/2.014 - Small fix involving floats starting . in embedded Ddoc.
- Added nothrow and pure attributes (D2.0 only).
2008.04.09 - D.XML 1.52 - D 1.028/2.012 - Added properties (especially for arrays).
- Added rules for C-Style indenter (thanks vektorboson!)
2008.02.22 - D.XML 1.51 - D 1.027/2.011 - Changed char rule behaviour on line end.
- Added support for strings ending with c, w or d (must have got lost at some point).
2008.02.22 - ddoc.xml 1.14 - Fixes/improvements for macros. Highlights first symbol and non-symbols
before as errors; matches embedded brackets () properly.
2008.01.09 - D.XML 1.50 - D 1.025/2.009 - Changed pragma, version, deprecated matching to use keyword not DetectString.
2007.12.18 - D.XML 1.49 - D 1.025/2.009 - Fixed some bugs to make the StartingLetter context exit correctly and match identifiers properly.
2007.12.12 - D.XML 1.48 - D 1.024/2.008 - Adjusted existing contexts somewhat (mostly cleanup).
- Implemented scope context to hightlight exit in scope(exit) etc.
- Adjusted deprecated keyword highlighting.
- Changed layout somewhat.
- Implemented extra highlighting rules for expressions, attributes, etc.
- Changed a lot of colours.
2007.11.15 - D.XML 1.47 - D 1.023/2.007 - Fixed a few unapperent "bugs" found by checkdtd.
2007.11.15 - ddoc.xml 1.13 - Fixed a couple of bugs found by checkdtd and changed the version number format.
2007.11.5 - ddoc.xml 1.12 - Fixed: correct matching of things like /***/ .
2007.10.11 - ddoc.xml 1.11 - Safety catch: check for unterminated code sections (i.e. check for end of
ddoc comment even in code sections).
- Used DetectIdentifier to (presumably) improve performance.
2007.10.09 - uncommited - ditto - Changed some context="#pop" tags to context="#stay" within the normal
context (bugfix for ddoc embedded code highlighting).
2007.10.9 - ddoc.xml 1.10 - Enabled embedded ddoc code highlighting
2007.10.9 - ddoc.xml 1.00 - Initial version
2007.10.08 - D.XML 1.46 - D 1.022/2.005 - Stole Alert and Region Marker highlighting from C++ syntax.
- Added support for DDoc highlighting.
- Reviewed the float regexps again! Tried to make the best of both versions.
2007.09.17 - D.XML 1.45 - D 1.021/2.004 - Reverted back to old regexps (but fixed hex floats).
Can't combine all float regexps into a single RegExpr element using the '|' operator.
It creates strange problems (like program lock-ups and wrong matches).
- Fix: '=' is allowed in import statements now.
- Fix: character literals are matched correctly now.
- The #line special token sequence is matched fully now (the filespec string needs special handling).
2007.09.10 - D.XML 1.44 - D 1.021/2.004 - Added __EOF__ to specialtokens.
- Replaced float regexps with more accurate ones. Not sure about speed.
- Fixed Octal regexp not to match 0_ .
2007.07.24 - D.XML 1.43 - D 1.020/2.003 - Added System to ltypes.
- Improved matching of version declarations.
- Fixed matching of hexadecimal floats.
- Deprecated style is stroked out again.
2007.07.21 - D.XML 1.42 - D 1.018/2.002 - d.xml validates again according to language.xml.
- HTML entities are highlighted now.
- Numbers before and after the slice operator are not highl. as floats anymore.
- Added C++ to ltypes.
- Improved matching of module/import declarations.
2007.07.01 - D.XML 1.41 - D 1.017/2.001 - fixed matching of numbers, added deprecated style, minor changes to styles, updated authors line
2007.07.01 - D.XML 1.40 - D 1.017/2.001 - matches now .di extensions, removed phobos-specific printf/writef and added
- library defined symbols string, wstring, dstring, size_t, ptrdiff_t, hash_t,
- Error, Exception, Object, TypeInfo and ClassInfo
2007.06.30 - D.XML 1.39 - D 1.017 - matching is much faster now, added "lib" to pragma types, added special tokens,
- /+ +/ can be nested now, numbers are matched more correctly, character literals don't span multiple lines anymore
- escape sequences inside strings and character literals are highlighted,
- non-hex characters in hex strings are highlighted with the Error style,
- using more default styles instead of custom ones
2007.04.11 - D.XML 1.38 - D 1.011 - ref, macro keywords are now supported, fixed \\ inside a string, updated author
2007.02.12 - D.XML 1.37 - D 1.006 - bool, foreach_reverse, lazy, scope and typeid keywords are now supported, fixed \"
- inside a string, fixed ending of wysiwyg strings.
2004.08.15 - D.XML 1.36 - D 0.98 - Current release of D.
- package, writef(strictly speaking writyef isn't a keyword) - keywords are now supported.
- package, writef(strictly speaking writef isn't a keyword) - keywords are now supported.
2004.??.?? - D.XML 1.35 - D 0.?? - Not sure how this release got posted!
2004.05.23 - D.XML 1.34 - D 0.90 - updated.
2004.05.19 - D.XML 1.33 - D 0.89 - mixin - keyword is now supported.
@ -31,101 +96,114 @@
2003.08.11 - D.XML 1.10 - updated.
2003.07.18 - D.XML 1.00 - First released.
TODO:-
- Kate string translation cannot handle \" as a literal within a D string. The " will be interpreted as an end of string marker
when it should be ignored because of the preceding back-slash.
TODO:- Deliminated strings and Token strings (D2.0) are not supported.
========================================================================
-->
<language name="D" section="Sources" extensions="*.d;*.D" mimetype="text/x-dsrc" version="1.36" kateversion="2.2" casesensitive="true" author="Simon J Mackenzie (project.katedxml@smackoz.fastmail.fm)" license="LGPL">
<language name="D" version="1.61" kateversion="2.5" section="Sources" extensions="*.d;*.D;*.di;*.DI;" mimetype="text/x-dsrc" casesensitive="true" author="Diggory Hardy (diggory.hardy@gmail.com), Aziz Köksal (aziz.koeksal@gmail.com), Jari-Matti Mäkelä (jmjm@iki.fi), Simon J Mackenzie (project.katedxml@smackoz.fastmail.fm)" license="LGPL">
<highlighting>
<list name="keywords">
<item> abstract </item>
<item> alias </item>
<item> align </item>
<!-- User-defined keywords (add identifiers you'd like highlighted here) -->
<list name="userkeywords">
</list>
<list name="statements">
<item> asm </item>
<item> auto </item>
<item> body </item>
<item> break </item>
<item> case </item>
<item> cast </item>
<item> catch </item>
<item> class </item>
<item> const </item>
<item> continue </item>
<item> default </item>
<item> delegate </item>
<item> delete </item>
<item> deprecated </item>
<item> do </item>
<item> else </item>
<item> enum </item>
<item> export </item>
<item> false </item>
<item> final </item>
<item> finally </item>
<item> for </item>
<item> foreach </item>
<item> function </item>
<item> foreach_reverse </item>
<item> goto </item>
<item> if </item>
<item> in </item>
<item> inout </item>
<item> interface </item>
<item> invariant </item>
<item> is </item>
<item> mixin </item>
<item> return </item>
<item> switch </item>
<item> throw </item>
<item> try </item>
<item> while </item>
<item> with </item>
<item> new </item>
<item> null </item>
<!-- these are statements according to the spec, although I might call them attributes -->
<item> synchronized </item>
<item> out </item>
<item> override </item>
</list>
<list name="attributes">
<!-- also storage classes -->
<item> abstract </item>
<item> align </item>
<item> auto </item>
<item> const </item>
<item> export </item>
<item> final </item>
<item> inout </item>
<item> invariant </item>
<item> lazy </item>
<item> nothrow </item>
<item> override </item>
<item> package </item>
<item> private </item>
<item> protected </item>
<item> public </item>
<item> pure </item>
<item> ref </item>
<item> static </item>
<item> return </item>
<!-- these may be statements -->
<!-- in (more common to use as an expression since in attribute is only ever the default) -->
<item> out </item>
<item> scope </item>
</list>
<item> static </item>
<item> struct </item>
<list name="expressions">
<!-- primary expressions -->
<item> false </item>
<item> null </item>
<item> super </item>
<item> switch </item>
<item> synchronized </item>
<item> template </item>
<item> this </item>
<item> throw </item>
<item> true </item>
<item> try </item>
<item> typedef </item>
<item> typeof </item>
<item> typeid </item>
<item> union </item>
<item> volatile </item>
<!-- other expressions -->
<item> assert </item>
<item> cast </item>
<item> is </item>
<item> new </item>
<item> delete </item>
<item> in </item> <!-- also an attribute and a statement -->
<item> while </item>
<item> with </item>
<!-- sometimes declarators -->
<item> delegate </item>
<item> function </item>
</list>
<list name="modules">
<item> module </item>
<item> import </item>
<item> import </item> <!-- also an expression -->
</list>
<list name="declarators">
<item> alias </item>
<item> enum </item>
<item> typedef </item>
<item> class </item>
<item> interface </item>
<item> struct </item>
<item> union </item>
</list>
<list name="types">
<item> typeof </item>
<item> void </item>
<item> bit </item>
<item> bool </item>
<item> byte </item>
<item> ubyte </item>
<item> short </item>
@ -149,9 +227,77 @@
<item> wchar </item>
<item> dchar </item>
</list>
<list name="phobos">
<item> printf </item>
<item> writef </item>
<list name="templates">
<item> macro </item> <!-- what's this? just reserved? -->
<item> template </item>
</list>
<list name="properties">
<item> init </item>
<item> sizeof </item>
<item> alignof </item>
<item> mangleof </item>
<item> stringof </item>
<item> tupleof </item>
<item> offsetof </item>
<item> max </item>
<item> min </item>
<item> infinity </item>
<item> nan </item>
<item> dig </item>
<item> epsilon </item>
<item> mant_dig </item>
<item> max_10_exp </item>
<item> max_exp </item>
<item> min_10_exp </item>
<item> min_exp </item>
<item> re </item>
<item> im </item>
<item> length </item>
<item> ptr </item>
<item> dup </item>
<item> idup </item>
<item> reverse </item>
<item> sort </item>
<item> keys </item>
<item> values </item>
<item> rehash </item>
</list>
<list name="libsymbols">
<!-- these are only symbols defined in object.d(i) -->
<item> size_t </item>
<item> ptrdiff_t </item>
<item> hash_t </item>
<item> Error </item>
<item> Exception </item>
<item> Object </item>
<item> TypeInfo </item>
<item> ClassInfo </item>
<item> ModuleInfo </item>
<item> Interface </item>
<item> OffsetTypeInfo </item>
<item> TypeInfo_Typedef </item>
<item> TypeInfo_Enum </item>
<item> TypeInfo_Pointer </item>
<item> TypeInfo_Array </item>
<item> TypeInfo_StaticArray </item>
<item> TypeInfo_AssociativeArray </item>
<item> TypeInfo_Function </item>
<item> TypeInfo_Delegate </item>
<item> TypeInfo_Class </item>
<item> TypeInfo_Interface </item>
<item> TypeInfo_Struct </item>
<item> TypeInfo_Tuple </item>
<!-- phobos only as of tango 0.99.3 -->
<item> string </item>
<item> wstring </item>
<item> dstring </item>
<item> bit </item>
<item> TypeInfo_Const </item>
<item> TypeInfo_Invariant </item>
</list>
<list name="linkage">
@ -159,189 +305,513 @@
</list>
<list name="ltypes">
<item> C </item>
<!-- <item> C++ </item> --><!-- is handled specially in Linkage rule -->
<item> D </item>
<item> Windows </item>
<item> Pascal </item>
<item> System </item>
</list>
<list name="debug">
<item> debug </item>
</list>
<list name="assert">
<item> assert </item>
</list>
<list name="pragma">
<item> pragma </item>
</list>
<list name="ptypes">
<item> msg </item>
<item> lib </item>
</list>
<list name="version">
<item> version </item>
<list name="scope_keywords">
<item> exit </item>
<item> success </item>
<item> failure </item>
</list>
<list name="vtypes">
<item> DigitalMars </item>
<item> X86 </item>
<item> AMD64 </item>
<item> X86_64 </item>
<item> Windows </item>
<item> Win32 </item>
<item> Win64 </item>
<item> linux </item>
<item> LittleEndian </item>
<item> BigEndian </item>
<item> D_InlineAsm </item>
<item> D_Coverage </item>
<item> D_InlineAsm_X86 </item>
<item> unittest </item>
<item> D_Version2 </item>
<item> none </item>
<item> all </item>
</list>
<list name="unittest">
<list name="specialtokens">
<item> __FILE__ </item>
<item> __LINE__ </item>
<item> __DATE__ </item>
<item> __TIME__ </item>
<item> __TIMESTAMP__ </item>
<item> __VENDOR__ </item>
<item> __VERSION__ </item>
<item> __EOF__ </item>
</list>
<list name="tests">
<item> debug </item>
<item> unittest </item>
</list>
<list name="pragma">
<item> pragma </item>
</list>
<list name="version">
<item> version </item>
</list>
<list name="deprecated">
<item> deprecated </item>
<item> volatile </item> <!-- has been deprecated -->
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Module" context="ModuleName" String="modules"/>
<keyword attribute="Type" context="#stay" String="types"/>
<keyword attribute="Phobos Library" context="#stay" String="phobos"/>
<keyword attribute="Linkage" context="Linkage" String="linkage"/>
<keyword attribute="Debug" context="#stay" String="debug"/>
<keyword attribute="Assert" context="#stay" String="assert"/>
<keyword attribute="Pragma" context="Pragmas" String="pragma"/>
<keyword attribute="Version" context="Version" String="version"/>
<keyword attribute="Unit Test" context="#stay" String="unittest"/>
<Detect2Chars attribute="Wysiwyg" context="Wysiwyg" char="r" char1="&quot;"/>
<Detect2Chars attribute="Hex" context="Hex" char="x" char1="&quot;"/>
<RegExpr attribute="Normal Text" context="#pop" String="[_a-z][\w]*" insensitive="true"/>
<RegExpr attribute="Pragma" context="#pop" String="\#[ ]*line"/>
<RegExpr attribute="Escape String" context="#pop" String="\\[n|t|&quot;]"/>
<RegExpr attribute="Escape String" context="#pop" String="(\\r\\n)"/>
<RegExpr attribute="Escape String" context="#pop" String="\\0[0-7]+"/>
<RegExpr attribute="Escape String" context="#pop" String="\\u[\d]+" insensitive="true"/>
<RegExpr attribute="Escape String" context="#pop" String="\\x[\da-fA-F]+"/>
<RegExpr attribute="Binary" context="#pop" String="0b[01]+[_01]*[ ]*\.\.[ ]*0b[01]+[_01]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Octal" context="#pop" String="0[0-7]+[_0-7]*[ ]*\.\.[ ]*0[0-7]+[_0-7]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Hex" context="#pop" String="0x[\da-f]+[_\da-f]*[ ]*\.\.[ ]*0x[\da-f]+[_\da-f]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Integer" context="#pop" String="[\d]+[_\d]*(UL|LU|U|L)?[ ]*\.\.[ ]*[\d]+[_\d]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Float" context="#pop" String="[\d]*[_\d]*\.[_\d]*(e-|e|e\+)?[\d]+[_\d]*(F|L|I|FI|LI|)?" insensitive="true"/>
<RegExpr attribute="Float" context="#pop" String="[\d]*[_\d]*\.?[_\d]*(e-|e|e\+)[\d]+[_\d]*(F|L|I|FI|LI|)?" insensitive="true"/>
<RegExpr attribute="Float" context="#pop" String="0x[\da-f]+[_\da-f]*\.[_\da-f]*(p-|p|p\+)?[\da-f]+[_\da-f]*(F|L|I|FI|LI)?" insensitive="true"/>
<RegExpr attribute="Float" context="#pop" String="0x[\da-f]+[_\da-f]*\.?[_\da-f]*(p-|p|p\+)[\da-f]+[_\da-f]*(F|L|I|FI|LI)?" insensitive="true"/>
<RegExpr attribute="Binary" context="#pop" String="0B[01]+[_01]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Octal" context="#pop" String="0[0-7]+[_0-7]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Hex" context="#pop" String="0x[\da-f]+[_\da-f]*(UL|LU|U|L)?" insensitive="true"/>
<RegExpr attribute="Integer" context="#pop" String="[\d]+[_\d]*(UL|LU|U|L)?" insensitive="true"/>
<DetectChar attribute="Char" context="Char" char="'"/>
<context name="normal" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces />
<!-- Performance improvement (probably): anything starting with a letter is matched separately -->
<RegExpr String="[a-zA-Z_]" attribute="Normal Text" context="StartingLetter" lookAhead="true"/>
<HlCStringChar attribute="EscapeSequence" context="#stay"/>
<Detect2Chars attribute="EscapeSequence" context="UnicodeShort" char="\" char1="u"/>
<Detect2Chars attribute="EscapeSequence" context="UnicodeLong" char="\" char1="U"/>
<Detect2Chars attribute="EscapeSequence" context="HTMLEntity" char="\" char1="&amp;"/>
<DetectChar attribute="Char" context="CharLiteral" char="'"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="Wysiwyg" context="Wysiwyg" char="`"/>
<DetectChar attribute="BQString" context="BQString" char="`"/>
<Detect2Chars attribute="Comment" context="CommentLine" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="CommentBlockA" char="/" char1="*" beginRegion="CommentA"/>
<Detect2Chars attribute="Comment" context="CommentBlockB" char="/" char1="+" beginRegion="CommentB"/>
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
<IncludeRules context="CommentRules" />
<!-- Match ... and .. before numbers are matched. -->
<!-- Now in symbols keywords section -->
<StringDetect attribute="Normal Text" context="#stay" String="..."/>
<Detect2Chars attribute="Normal Text" char="." char1="."/>
<!-- Float starting with a dot -->
<RegExpr attribute="Float" context="#stay" String="\.\d[\d_]*([eE][-+]?\d[\d_]*)?[fFL]?i?"/>
<!-- Try to match various built-in properties -->
<DetectChar char="." attribute="Normal Text" context="Properties"/>
<DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="BraceA" />
<DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="BraceA" />
<!-- Look ahead for a digit and switch to NumberLiteral context if found. -->
<RegExpr context="NumberLiteral" String="\d" attribute="" lookAhead="true"/>
<!-- #line Integer [Filespec] -->
<StringDetect attribute="Pragma" context="LinePragma" String="#line"/>
<!-- Rules for the C-style indenter. Currently problems with /// and /++ comments. -->
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="BraceA" />
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="BraceA" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
</context>
<context attribute="Module Name" lineEndContext="#stay" name="ModuleName">
<DetectChar attribute="Normal Text" context="#stay" char=","/>
<DetectChar attribute="Normal Text" context="#pop" char=";"/>
<Detect2Chars attribute="Comment" context="CommentLine" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="CommentBlockA" char="/" char1="*" beginRegion="CommentA"/>
<Detect2Chars attribute="Comment" context="CommentBlockB" char="/" char1="+" beginRegion="CommentB"/>
</context>
<context attribute="Linkage" lineEndContext="#pop" name="Linkage">
<keyword attribute="Type" context="#pop" String="types"/>
<DetectChar attribute="Normal Text" context="#stay" char="("/>
<keyword attribute="Linkage Type" context="#stay" String="ltypes"/>
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
<DetectChar attribute="Normal Text" context="#pop" char=";"/>
</context>
<context attribute="Version" lineEndContext="#pop" name="Version">
<DetectChar attribute="Normal Text" context="#pop" char="="/>
<DetectChar attribute="Normal Text" context="#stay" char="("/>
<keyword attribute="Version Type" context="#stay" String="vtypes"/>
<RegExpr attribute="Normal Text" context="#pop" String="\w" insensitive="true"/>
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Pragma" lineEndContext="#pop" name="Pragmas">
<DetectChar attribute="Normal Text" context="#stay" char="("/>
<keyword attribute="Version Type" context="#stay" String="ptypes"/>
<keyword attribute="Version Type" context="#stay" String="vtypes"/>
<RegExpr attribute="Keyword" context="#pop" String="[_a-z][\w]*" insensitive="true"/>
<DetectChar attribute="Normal Text" context="#pop" char=","/>
<DetectChar attribute="Normal Text" context="#pop" char=")"/>
</context>
<context attribute="Wysiwyg" lineEndContext="#stay" name="Wysiwyg">
<DetectChar attribute="Wysiwyg" context="#pop" char="&quot;"/>
<DetectChar attribute="Wysiwyg" context="#pop" char="`"/>
</context>
<context attribute="Hex" lineEndContext="#stay" name="Hex">
<DetectChar attribute="Hex" context="#pop" char="&quot;"/>
</context>
<context attribute="Char" lineEndContext="#stay" name="Char">
<Detect2Chars attribute="Char" context="#stay" char="\" char1="'"/>
<Detect2Chars attribute="Char" context="#stay" char="\" char1="\"/>
<context name="StartingLetter" attribute="Normal Text" lineEndContext="#pop">
<DetectSpaces />
<!-- fall-through should work now that DetectIdentifier is used (without infinite loops) -->
<!-- maybe not... got an infinite loop -->
<RegExpr String="[^a-zA-Z_]" attribute="Normal Text" context="#pop" lookAhead="true"/>
<!-- detect whether scope, in, out, etc. are used as attributes or statements (etc.) -->
<!-- rules cannot match across newlines unfortunately -->
<RegExpr String="in\s*(?=\{)" attribute="Statement" context="#stay" />
<RegExpr String="out\s*(?=(\(([a-zA-Z_][\w_]*)?\)\s*)?\{)" attribute="Statement" context="#stay" />
<RegExpr String="scope\s*(?=\()" attribute="Statement" context="Scope" />
<RegExpr String="import\s*(?=\()" attribute="Expression" context="#stay" />
<RegExpr String="function\s*(?=\()" attribute="Declarator" context="#stay" />
<RegExpr String="delegate\s*(?=\()" attribute="Declarator" context="#stay" />
<keyword String="statements" attribute="Statement" context="#stay" />
<keyword String="attributes" attribute="Attribute" context="#stay" />
<keyword String="expressions" attribute="Expression" context="#stay" />
<keyword String="declarators" attribute="Declarator" context="#stay" />
<keyword String="templates" attribute="Template" context="#stay" />
<keyword String="modules" attribute="Module" context="ModuleName"/>
<keyword String="types" attribute="Type" context="#stay" />
<keyword String="libsymbols" attribute="LibrarySymbols" context="#stay" />
<keyword String="linkage" attribute="Linkage" context="Linkage" />
<keyword String="specialtokens" attribute="SpecialTokens" context="#stay" />
<keyword String="tests" attribute="Tests" context="#stay" />
<!-- These must use keyword not DetectString: DetectString does not check for word-break after string. -->
<keyword String="pragma" attribute="Pragma" context="Pragma" />
<keyword String="version" attribute="Version" context="Version" />
<keyword String="deprecated" attribute="Deprecated" context="#stay" />
<Detect2Chars attribute="RawString" context="RawString" char="r" char1="&quot;"/>
<Detect2Chars attribute="HexString" context="HexString" char="x" char1="&quot;"/>
<!-- user highlighting: last so as not to interfere with anything else -->
<keyword String="userkeywords" attribute="UserKeywords" context="#stay" />
<DetectIdentifier />
</context>
<context name="Properties" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<keyword String="properties" attribute="Property" context="#pop" />
</context>
<context name="NumberLiteral" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<!-- Float literals -->
<!-- Floats must be matched before Binary|Octal|Hex|DecInteger -->
<RegExpr attribute="Float" context="#pop" String="0[xX][\da-fA-F_]*(\.[\da-fA-F_]*)?[pP][-+]?\d[\d_]*[fFL]?i?"/>
<!-- Float starting with a dot is matched in main context -->
<!-- All floats except integers -->
<!-- RegExpr is branched rather than using look aheads for efficiency at the expense of extra length -->
<RegExpr attribute="Float" context="#pop" String="\d[_\d]*(\.(?!\.)[_\d]*([eE][-+]?\d[_\d]*)?[fFL]?i?|[eE][-+]?\d[_\d]*[fFL]?i?|[fF]i?|[fFL]?i)"/>
<!-- Binary|Octal|Hex|DecInteger -->
<!-- Common, optional suffix: (L[uU]?|[uU]L?)? -->
<RegExpr attribute="Binary" context="#pop" String="0[bB]_*[01][01_]*(L[uU]?|[uU]L?)?"/>
<!-- Octal must be matched before DecInteger -->
<RegExpr attribute="Octal" context="#pop" String="0[0-7_]+(L[uU]?|[uU]L?)?"/>
<RegExpr attribute="Hex" context="#pop" String="0[xX]_*[\da-fA-F][\da-fA-F_]*(L[uU]?|[uU]L?)?"/>
<!-- Decimal integers must be matched last -->
<RegExpr attribute="Integer" context="#pop" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/>
</context>
<context name="LinePragma" attribute="Pragma" lineEndContext="#pop">
<DetectSpaces/>
<!-- Match an Integer -->
<RegExpr attribute="Integer" context="#stay" String="((0([0-7_]+|[bB]_*[01][01_]*|[xX]_*[\da-fA-F][\da-fA-F_]*))|\d+[\d_]*)(L[uU]?|[uU]L?)?"/>
<RegExpr attribute="String" context="#stay" String="&quot;[^&quot;]*&quot;"/>
<keyword attribute="SpecialTokens" context="#stay" String="specialtokens"/>
<IncludeRules context="CommentRules" />
<RegExpr attribute="Error" context="#pop" String=".+"/>
</context>
<!-- \u 4HexDigits -->
<context name="UnicodeShort" attribute="EscapeSequence" lineEndContext="#pop">
<RegExpr attribute="EscapeSequence" context="#pop" String="[\da-fA-F]{4}"/>
</context>
<!-- \U 8HexDigits -->
<context name="UnicodeLong" attribute="EscapeSequence" lineEndContext="#pop">
<RegExpr attribute="EscapeSequence" context="#pop" String="[\da-fA-F]{8}"/>
</context>
<!-- \& Alpha Alphanumerical+ ; -->
<context name="HTMLEntity" attribute="EscapeSequence" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<RegExpr attribute="EscapeSequence" context="#pop" String="[a-zA-Z]\w+;"/>
</context>
<context name="ModuleName" attribute="Module Name" lineEndContext="#stay">
<DetectSpaces/>
<IncludeRules context="CommentRules" />
<RegExpr context="#pop" String="[^\s\w.:,=]" lookAhead="true"/>
</context>
<context name="Linkage" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces/>
<DetectChar attribute="Normal Text" context="Linkage2" char="("/>
<IncludeRules context="CommentRules" />
</context>
<context name="Linkage2" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<StringDetect attribute="Linkage Type" context="#pop#pop" String="C++"/>
<keyword attribute="Linkage Type" context="#pop#pop" String="ltypes"/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
<RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
</context>
<context name="Version" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<DetectChar attribute="Normal Text" context="Version2" char="="/>
<DetectChar attribute="Normal Text" context="Version2" char="("/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/>
</context>
<context name="Version2" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<keyword attribute="Version Type" context="#pop#pop" String="vtypes"/>
<DetectIdentifier attribute="Normal Text" context="#pop#pop"/>
<RegExpr attribute="Integer" context="#pop#pop" String="\d+[\d_]*(L[uU]?|[uU]L?)?"/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
<RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
</context>
<context name="Scope" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces/>
<DetectChar attribute="Normal Text" context="Scope2" char="("/>
<IncludeRules context="CommentRules" />
</context>
<context name="Scope2" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<keyword String="scope_keywords" attribute="Expression" context="#pop#pop"/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
<RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
</context>
<context name="Pragma" attribute="Pragma" lineEndContext="#stay">
<DetectSpaces/>
<DetectChar attribute="Normal Text" context="Pragma2" char="("/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<RegExpr String="[^\s\n]+" attribute="Error" context="#pop"/>
</context>
<context name="Pragma2" attribute="Pragma" lineEndContext="#stay">
<DetectSpaces/>
<keyword attribute="Version Type" context="#pop#pop" String="ptypes"/>
<DetectIdentifier attribute="Normal Text" context="#pop#pop"/>
<IncludeRules context="CommentRules" />
<!-- Fall-through rules, highlighting errors: -->
<DetectChar char=")" attribute="Normal Text" context="#pop#pop"/>
<RegExpr String="[^)\s\n]+" attribute="Error" context="#pop#pop"/>
</context>
<!-- Strings -->
<!-- r"..." -->
<context name="RawString" attribute="RawString" lineEndContext="#stay">
<DetectChar attribute="RawString" context="#pop" char="&quot;"/>
</context>
<!-- `...` -->
<context name="BQString" attribute="BQString" lineEndContext="#stay">
<DetectChar attribute="BQString" context="#pop" char="`"/>
</context>
<!-- x"..." -->
<context name="HexString" attribute="HexString" lineEndContext="#stay">
<DetectChar attribute="HexString" context="#pop" char="&quot;"/>
<RegExpr attribute="Error" context="#stay" String="[^\sa-fA-F\d&quot;]+" />
</context>
<!-- '...' -->
<context name="CharLiteral" attribute="Char" lineEndContext="CharLiteralClosing" fallthrough="true" fallthroughContext="#pop">
<!-- Empty '' -->
<DetectChar attribute="Char" context="#pop" char="'"/>
<!-- \t \n \r etc. -->
<HlCStringChar attribute="EscapeSequence" context="CharLiteralClosing"/>
<!-- \u 4HexDigits | \U 8HexDigits | HTMLEntity -->
<RegExpr attribute="EscapeSequence" context="CharLiteralClosing" String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&amp;[a-zA-Z]\w+;)"/>
<!-- Invalid escape sequences -->
<RegExpr attribute="Error" context="CharLiteralClosing" String="\\."/>
<!-- Any character -->
<RegExpr attribute="Char" context="CharLiteralClosing" String="."/>
</context>
<context attribute="String" lineEndContext="#stay" name="String">
<!-- Anything other than a closing ' is now be an error -->
<context name="CharLiteralClosing" attribute="Error" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
<DetectChar attribute="Char" context="#pop#pop" char="'"/>
</context>
<!-- "..." -->
<context name="String" attribute="String" lineEndContext="#stay">
<HlCStringChar attribute="EscapeSequence"/>
<Detect2Chars attribute="String" context="#pop" char="&quot;" char1="c"/>
<Detect2Chars attribute="String" context="#pop" char="&quot;" char1="w"/>
<Detect2Chars attribute="String" context="#pop" char="&quot;" char1="d"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
<Detect2Chars attribute="EscapeSequence" context="UnicodeShort" char="\" char1="u"/>
<Detect2Chars attribute="EscapeSequence" context="UnicodeLong" char="\" char1="U"/>
<Detect2Chars attribute="EscapeSequence" context="HTMLEntity" char="\" char1="&amp;"/>
</context>
<!-- Comments -->
<context name="CommentRules" attribute="Normal Text" lineEndContext="#pop">
<IncludeRules context="DdocNormal" />
<Detect2Chars attribute="Comment" context="CommentLine" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
<Detect2Chars attribute="Comment" context="CommentNested" char="/" char1="+" beginRegion="CommentNested"/>
<!-- This context is only for including rules from. -->
</context>
<context name="Region Marker" attribute="Region Marker" lineEndContext="#pop">
</context>
<context name="CommentLine" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
</context>
<context name="CommentBlock" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="CommentBlock"/>
<IncludeRules context="##Alerts" />
</context>
<context name="CommentNested" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="CommentNested" char="/" char1="+" beginRegion="CommentNested"/>
<Detect2Chars attribute="Comment" context="#pop" char="+" char1="/" endRegion="CommentNested"/>
<IncludeRules context="##Alerts" />
</context>
<!-- Ddoc contexts -->
<context name="DdocNormal" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Comment" context="DdocLine" String="/{3,}"/>
<RegExpr attribute="Comment" context="DdocBlock" String="/\*{2,}(?!/)" beginRegion="DdocBlock"/>
<RegExpr attribute="Comment" context="DdocNested" String="/\+{2,}(?!/)" beginRegion="DdocNested"/>
</context>
<context name="DdocLine" attribute="Ddoc" lineEndContext="#pop">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
</context>
<context name="DdocBlock" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<RegExpr attribute="Comment" context="#pop" String="\*+/" endRegion="DdocBlock"/>
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
<!-- Avoid matching this; do it this way since (^|\s)-* always matches .- and \s-* never
matches .- (spaces have already been matched); however -*($|\s) matches just fine.
Also can't use \b since - is not a word character. -->
<RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="DdocBlockCode" String="-{3,}($|\s)" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="CommentLine">
<context name="DdocNested" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<!-- Ddoc recognises nested comments/ddoc, but ignores them as far as formatting is concerned. -->
<Detect2Chars attribute="Ddoc" context="DdocNested2" char="/" char1="+"/>
<RegExpr attribute="Comment" context="#pop" String="\++/" endRegion="DdocNested"/>
<DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
<!-- As above. -->
<RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="DdocNestedCode" String="-{3,}($|\s)" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="CommentBlockA">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="CommentA"/>
<context name="DdocNested2" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<!-- Identical to DdocNested except that nested comments don't recieve any formatting -->
<RegExpr attribute="Ddoc" context="#pop" String="\++/"/>
<!-- The above rules should match before the unwanted rule in DdocNested -->
<IncludeRules context="DdocNested" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="CommentBlockB">
<Detect2Chars attribute="Comment" context="#pop" char="+" char1="/" endRegion="CommentB"/>
<!-- When entering a macro: provides highlighting for first symbol (macro name) -->
<context name="DdocMacro" attribute="Error" lineEndContext="#stay">
<DetectSpaces attribute="Macro Text" /> <!-- avoid showing space as an error -->
<DetectChar attribute="Macros" context="#pop" char=")" /> <!-- early end of macro -->
<IncludeRules context="MacroRules" />
<!-- first symbol of macro -->
<DetectIdentifier attribute="Macros" context="DdocMacro2" />
</context>
<!-- For rest of macro -->
<context name="DdocMacro2" attribute="Macro Text" lineEndContext="#stay">
<DetectChar attribute="Macros" context="#pop#pop" char=")" /> <!-- end of macro -->
<IncludeRules context="MacroRules" />
</context>
<!-- For embedded brackets (yeah, extra work to ignore them) -->
<context name="DdocMacro3" attribute="Macro Text" lineEndContext="#stay">
<DetectChar attribute="Macro Text" context="#pop" char=")" /> <!-- end of embedded brackets -->
<IncludeRules context="MacroRules" />
</context>
<!-- Rules common to all macros -->
<context name="MacroRules" attribute="Macro Text" lineEndContext="#stay">
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" /> <!-- embedded -->
<DetectChar attribute="Macro Text" context="DdocMacro3" char="(" /> <!-- extra brackets -->
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
</context>
<context name="DdocBlockCode" attribute="DdocCode" lineEndContext="#stay">
<DetectSpaces />
<!-- See update 1.11 -->
<RegExpr attribute="Comment" context="#pop#pop" String="\*+/" endRegion="DdocBlock"/>
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
<!-- As above. -->
<RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="#pop" String="-{3,}($|\s)" />
<IncludeRules context="##D" />
</context>
<context name="DdocNestedCode" attribute="DdocCode" lineEndContext="#stay">
<DetectSpaces />
<!-- See update 1.11 -->
<RegExpr attribute="Comment" context="#pop#pop" String="\++/" endRegion="DdocNested"/>
<DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
<!-- As above. -->
<RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="#pop" String="-{3,}($|\s)" />
<IncludeRules context="##D" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Module" defStyleNum="dsKeyword" color="#0000ff" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Module Name" defStyleNum="dsKeyword" color="#0000ff" selColor="#ffffff" bold="1" italic="1"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<!-- keywords -->
<itemData name="Statement" defStyleNum="dsKeyword"/>
<itemData name="Expression" defStyleNum="dsKeyword" color="#000080"/>
<itemData name="Declarator" defStyleNum="dsKeyword" color="#800000"/>
<itemData name="Template" defStyleNum="dsKeyword" color="#008000"/>
<itemData name="Attribute" defStyleNum="dsKeyword" color="#800080"/>
<itemData name="Deprecated" defStyleNum="dsKeyword" color="#800080" strikeOut="true"/>
<itemData name="Property" defStyleNum="dsDataType" color="#000080"/>
<itemData name="Type" defStyleNum="dsDataType"/>
<itemData name="Phobos Library" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="1"/>
<itemData name="Linkage" defStyleNum="dsKeyword" color="#ff0000" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Linkage Type" defStyleNum="dsDataType" color="#ff0000" selColor="#ffffff" bold="1" italic="1"/>
<itemData name="Debug" defStyleNum="dsKeyword" color="#ff00ff" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Assert" defStyleNum="dsKeyword" color="#0000ff" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Version" defStyleNum="dsKeyword" color="#ff0000" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Version Type" defStyleNum="dsDataType" color="#ff0000" selColor="#ffffff" bold="1" italic="1"/>
<itemData name="Unit Test" defStyleNum="dsKeyword" color="#ff00ff" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Pragma" defStyleNum="dsKeyword" color="#00aa00" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="LibrarySymbols" defStyleNum="dsDataType" italic="1"/>
<itemData name="Integer" defStyleNum="dsDecVal"/>
<itemData name="Binary" defStyleNum="dsBaseN" color="#00dddd" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Octal" defStyleNum="dsBaseN" color="#00aaaa" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Hex" defStyleNum="dsBaseN" color="#006666" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="UserKeywords" defStyleNum="dsDataType" italic="1"/>
<!-- module, import -->
<itemData name="Module" defStyleNum="dsKeyword" color="#008000"/>
<itemData name="Module Name" defStyleNum="dsNormal" color="#008000"/>
<!-- pragma, special tokens -->
<itemData name="SpecialTokens" defStyleNum="dsNormal" color="#00aa00"/>
<itemData name="Pragma" defStyleNum="dsKeyword" color="#00aa00"/>
<itemData name="Escape String" defStyleNum="dsString" color="#00aa00" selColor="#ff0000" bold="0" italic="0"/>
<itemData name="String" defStyleNum="dsString" color="#00aa00" selColor="#ff0000" bold="0" italic="0"/>
<itemData name="Char" defStyleNum="dsChar" color="#ff00ff" selColor="#ff00ff" bold="0" italic="0"/>
<itemData name="Wysiwyg" defStyleNum="dsChar" color="#a100a1" selColor="#ff00ff" bold="0" italic="0"/>
<!-- version, extern -->
<itemData name="Version" defStyleNum="dsKeyword" color="#808000"/>
<itemData name="Version Type" defStyleNum="dsNormal" bold="1"/>
<itemData name="Linkage" defStyleNum="dsKeyword" color="#808000"/>
<itemData name="Linkage Type" defStyleNum="dsNormal" bold="1"/>
<itemData name="Tests" defStyleNum="dsKeyword" color="#ff00ff"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
<itemData name="Error" defStyleNum="dsError"/>
<!-- literals -->
<itemData name="Integer" defStyleNum="dsDecVal"/>
<itemData name="Binary" defStyleNum="dsBaseN"/>
<itemData name="Octal" defStyleNum="dsBaseN"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="EscapeSequence" defStyleNum="dsString" color="#00aa88" selColor="#ff0000"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Char" defStyleNum="dsChar"/>
<itemData name="RawString" defStyleNum="dsString" color="#a100a1" selColor="#ff00ff"/>
<itemData name="BQString" defStyleNum="dsString" color="#a100a1" selColor="#ff00ff"/>
<itemData name="HexString" defStyleNum="dsString" color="#a10022" selColor="#ff0055"/>
<!-- Ddoc specific -->
<itemData name="Macros" defStyleNum="dsOthers" color="#bf5fbf" selColor="#ffffff" bold="1" italic="0" />
<itemData name="Macro Text" defStyleNum="dsNormal" color="#bf7fff" selColor="#ffffff" bold="0" italic="0" />
<itemData name="Ddoc" defStyleNum="dsComment" color="#7f7fff" />
<itemData name="DdocSection" defStyleNum="dsKeyword" color="#7f7fff" bold="1" />
<itemData name="DdocCode" defStyleNum="dsNormal" italic="1" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//"/>
<comment name="multiLine" start="/+" end="+/"/>
<comment name="multiLine" start="/+" end="+/" region="CommentNested"/>
</comments>
<keywords casesensitive="true"/>
</general>

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
This file is part of KDE's kate project.
Copyright 2007-2008 Kate project.
Author: Diggory Hardy <diggory.hardy@gmail.com>
This contains highlighting for Ddoc, the D language embedded documentation comments. Implemented
for d.xml version 1.46.
Macros are highlighted but the macro name and macro contents/parameters are not highlighted
differently. Currently the only way I can think of doing this is by matching the macro using a
RegExpr matching $(XX where XX are the first symbols before any spaces. If anyone has a better
idea please let me know.
Section names are matched, but too often since it can't really check that they're the first non-
whitespace item excluding a leading * or +. They could easily be made to match too little instead
of too much by adding firstNonSpace="true".
Code sections are matched, and formatted by using the standard d highlighting rules. This looks
good as far as I've tested it, but could lead to some confusion. Note that it does make
unhighlighted non-identifiers (i.e. things not matching [a-zA-Z_][a-zA-Z0-9_]*) italic.
Updates:
2008.02.22 ddoc 1.14 Fixes/improvements for macros. Highlights first symbol and non-symbols before as errors; matches embedded brackets () properly.
2007.11.15 ddoc 1.13 Fixed a couple of bugs found by checkdtd and changed the version number format.
2007.11.5 ddoc 1.12 Fixed: correct matching of things like /***/ .
2007.10.11 ddoc 1.11 Safety catch: check for unterminated code sections (i.e. check for end of ddoc comment even in code sections).
Used DetectIdentifier to (presumably) improve performance.
2007.10.9 ddoc 1.10 Enabled embedded ddoc code highlighting
2007.10.9 ddoc 1.00 Initial version
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the *
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language name="Ddoc" version="1.14" kateversion="2.5" section="Markup" author="Diggory Hardy (diggory.hardy@gmail.com)" license="LGPL" extensions="">
<highlighting>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Comment" context="DdocLine" String="/{3,}"/>
<RegExpr attribute="Comment" context="DdocBlock" String="/\*{2,}(?!/)" beginRegion="DdocBlock"/>
<RegExpr attribute="Comment" context="DdocNested" String="/\+{2,}(?!/)" beginRegion="DdocNested"/>
</context>
<context name="DdocLine" attribute="Ddoc" lineEndContext="#pop">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
</context>
<context name="DdocBlock" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<RegExpr attribute="Comment" context="#pop" String="\*+/" endRegion="DdocBlock"/>
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
<!-- Avoid matching this; do it this way since (^|\s)-* always matches .- and \s-* never
matches .- (spaces have already been matched); however -*($|\s) matches just fine.
Also can't use \b since - is not a word character. -->
<RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="DdocBlockCode" String="-{3,}($|\s)" />
</context>
<context name="DdocNested" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<!-- Ddoc recognises nested comments/ddoc, but ignores them as far as formatting is concerned. -->
<Detect2Chars attribute="Ddoc" context="DdocNested2" char="/" char1="+"/>
<RegExpr attribute="Comment" context="#pop" String="\++/" endRegion="DdocNested"/>
<DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" />
<RegExpr attribute="DdocSection" context="#stay" String="[\w_]+:($|\s)" />
<IncludeRules context="##Alerts" />
<!-- As above. -->
<RegExpr attribute="Ddoc" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="DdocNestedCode" String="-{3,}($|\s)" />
</context>
<context name="DdocNested2" attribute="Ddoc" lineEndContext="#stay">
<DetectSpaces />
<DetectIdentifier attribute="Ddoc"/>
<!-- Identical to DdocNested except that nested comments don't recieve any formatting -->
<RegExpr attribute="Ddoc" context="#pop" String="\++/"/>
<!-- The above rules should match before the unwanted rule in DdocNested -->
<IncludeRules context="DdocNested" />
</context>
<!-- When entering a macro: provides highlighting for first symbol (macro name) -->
<context name="DdocMacro" attribute="Error" lineEndContext="#stay">
<DetectSpaces attribute="Macro Text" /> <!-- avoid showing space as an error -->
<DetectChar attribute="Macros" context="#pop" char=")" /> <!-- early end of macro -->
<IncludeRules context="MacroRules" />
<!-- first symbol of macro -->
<DetectIdentifier attribute="Macros" context="DdocMacro2" />
</context>
<!-- For rest of macro -->
<context name="DdocMacro2" attribute="Macro Text" lineEndContext="#stay">
<DetectChar attribute="Macros" context="#pop#pop" char=")" /> <!-- end of macro -->
<IncludeRules context="MacroRules" />
</context>
<!-- For embedded brackets (yeah, extra work to ignore them) -->
<context name="DdocMacro3" attribute="Macro Text" lineEndContext="#stay">
<DetectChar attribute="Macro Text" context="#pop" char=")" /> <!-- end of embedded brackets -->
<IncludeRules context="MacroRules" />
</context>
<!-- Rules common to all macros -->
<context name="MacroRules" attribute="Macro Text" lineEndContext="#stay">
<Detect2Chars attribute="Macros" context="DdocMacro" char="$" char1="(" /> <!-- embedded -->
<DetectChar attribute="Macro Text" context="DdocMacro3" char="(" /> <!-- extra brackets -->
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
</context>
<context name="DdocBlockCode" attribute="DdocCode" lineEndContext="#stay">
<DetectSpaces />
<!-- See update 1.11 -->
<RegExpr attribute="Comment" context="#pop#pop" String="\*+/" endRegion="DdocBlock"/>
<DetectChar attribute="Comment" context="#stay" char="*" firstNonSpace="true" />
<!-- As above. -->
<RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="#pop" String="-{3,}($|\s)" />
<IncludeRules context="##D" />
</context>
<context name="DdocNestedCode" attribute="DdocCode" lineEndContext="#stay">
<DetectSpaces />
<!-- See update 1.11 -->
<RegExpr attribute="Comment" context="#pop#pop" String="\++/" endRegion="DdocNested"/>
<DetectChar attribute="Comment" context="#stay" char="+" firstNonSpace="true" />
<!-- As above. -->
<RegExpr attribute="DdocCode" context="#stay" String="[^-]-{3,}" />
<RegExpr attribute="Comment" context="#pop" String="-{3,}($|\s)" />
<IncludeRules context="##D" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Macros" defStyleNum="dsOthers" color="#bf5fbf" selColor="#ffffff" bold="1" italic="0" />
<itemData name="Macro Text" defStyleNum="dsNormal" color="#bf7fff" selColor="#ffffff" bold="0" italic="0" />
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Ddoc" defStyleNum="dsComment" color="#7f7fff" />
<itemData name="DdocSection" defStyleNum="dsKeyword" color="#7f7fff" bold="1" />
<itemData name="DdocCode" defStyleNum="dsNormal" italic="1" />
<itemData name="Error" defStyleNum="dsError"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="0" />
</general>
</language>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Debian Changelog" version="0.62" kateversion="2.4" section="Other" extensions="" mimetype="">
<language name="Debian Changelog" version="0.63" kateversion="2.4" section="Other" extensions="" mimetype="">
<highlighting>
<list name="keywords">
<item>urgency</item>
@ -8,10 +8,69 @@
<list name="distributions">
<item>stable</item>
<item>stable-security</item>
<item>testing</item>
<item>testing-proposed-updates</item>
<item>frozen</item>
<item>unstable</item>
<item>experimental</item>
<item>UNRELEASED</item>
<!-- Debian releases -->
<item>sarge-backports</item>
<item>sarge-volatile</item>
<item>etch-backports</item>
<item>etch-volatile</item>
<item>lenny-backports</item>
<item>lenny-volatile</item>
<!-- Ubuntu releases -->
<item>dapper</item>
<item>dapper-security</item>
<item>dapper-proposed</item>
<item>dapper-updates</item>
<item>dapper-backports</item>
<item>dapper-commercial</item>
<item>edgy</item>
<item>edgy-security</item>
<item>edgy-proposed</item>
<item>edgy-updates</item>
<item>edgy-backports</item>
<item>edgy-commercial</item>
<item>feisty</item>
<item>feisty-security</item>
<item>feisty-proposed</item>
<item>feisty-updates</item>
<item>feisty-backports</item>
<item>feisty-commercial</item>
<item>gutsy</item>
<item>gutsy-security</item>
<item>gutsy-proposed</item>
<item>gutsy-updates</item>
<item>gutsy-backports</item>
<item>gutsy-partner</item>
<item>hardy</item>
<item>hardy-security</item>
<item>hardy-proposed</item>
<item>hardy-updates</item>
<item>hardy-backports</item>
<item>hardy-partner</item>
<item>intrepid</item>
<item>intrepid-security</item>
<item>intrepid-proposed</item>
<item>intrepid-updates</item>
<item>intrepid-backports</item>
<item>intrepid-partner</item>
<item>jaunty</item>
<item>jaunty-security</item>
<item>jaunty-proposed</item>
<item>jaunty-updates</item>
<item>jaunty-backports</item>
<item>jaunty-partner</item>
<item>karmic</item>
<item>karmic-security</item>
<item>karmic-proposed</item>
<item>karmic-updates</item>
<item>karmic-backports</item>
<item>karmic-partner</item>
</list>
<list name="urgencies">
@ -20,6 +79,7 @@
<item>high</item>
<item>emergency</item>
<item>bug</item>
<item>critical</item>
</list>
<contexts>
@ -28,7 +88,7 @@
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;"/>
<RegExpr attribute="Keyword" context="#stay" String=" \-\-" column="0"/>
<RegExpr attribute="Keyword" context="#stay" String=" \*" column="0"/>
<RegExpr attribute="Bug" context="#stay" String="[Cc][Ll][Oo][Ss][Ee][Ss]:[\s]*(([Bb][Uu][Gg]\s*)?#\s*\d+)(\s*, *([Bb[Uu][Gg]\s*)?#\s*\d+)*"/>
<RegExpr attribute="Bug" context="#stay" String="closes:[\s]*((bug\s*)?#\s*\d+)(\s*, *(bug\s*)?#\s*\d+)*" insensitive="true"/>
</context>
<context attribute="Normal Text" lineEndContext="#pop" name="Head">
@ -55,6 +115,6 @@
</highlighting>
<general>
<keywords casesensitive="1" />
<keywords casesensitive="1" weakDeliminator="-"/>
</general>
</language>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Debian Control" version="0.82" kateversion="2.4" section="Other" extensions="" mimetype="">
<language name="Debian Control" version="0.83" kateversion="2.4" section="Other" extensions="control" mimetype="">
<highlighting>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="INIT">
@ -21,7 +21,7 @@
</context>
<context attribute="Value" lineEndContext="#pop" name="Field">
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;"/>
<Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>
</context>
@ -30,7 +30,7 @@
</context>
<context attribute="Value" lineEndContext="#pop" name="DependencyField">
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;"/>
<Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>
<RegExpr attribute="Keyword" context="#stay" String="[,\|]"/>
<DetectChar attribute="Keyword" context="Constrain" char="("/>

@ -4,6 +4,7 @@
<!ENTITY file "(====|\*\*\*|\-\-\-|diff|Only in .*:).*$">
<!ENTITY chunk "(\@\@|\d).*$">
<!ENTITY csep "(\+\+\+|\-\-\-).*$">
<!ENTITY index "Index:.*">
]>
<!--
2006-08-02: 1.10 Matthew Woehlke <mw_triad@sourceforge.net>
@ -11,8 +12,10 @@
seperate attributes). Recognize 'Only in' from 'diff -r' output.
There is currently a bug (KATE limitation?) where regions may sometimes
pick up one line too many.
2008-02-13: 1.11 Eduardo Robles Elvira <edulix AT gmail DOT com>
Fixed folding.
-->
<language name="Diff" version="1.10" kateversion="2.1" section="Other" extensions="*.diff;*patch" mimetype="text/x-diff">
<language name="Diff" version="1.11" kateversion="2.1" section="Other" extensions="*.diff;*patch" mimetype="text/x-patch">
<highlighting>
@ -22,13 +25,15 @@
<RegExpr attribute="Header" context="Chunk" String="&chunk;" beginRegion="chunk" column="0"/>
<RegExpr attribute="Header" context="RChunk" String="\*+$" beginRegion="chunk" column="0"/>
<RegExpr attribute="File" context="#stay" String="Only in .*:.*$" column="0"/>
<RegExpr attribute="File" context="RFile" String="diff.*$" beginRegion="file" column="0"/>
<RegExpr attribute="File" context="File" String="(====|\*\*\*|\-\-\-).*$" beginRegion="file" column="0"/>
<RegExpr attribute="File" context="RFile" String="diff.*$" Region="chunk" column="0"/>
<RegExpr attribute="File" context="#stay" String="====.*$" column="0"/>
<RegExpr attribute="File" context="File" String="(\*\*\*|\-\-\-).*$" beginRegion="chunk" column="0"/>
<IncludeRules context="FindDiff"/>
<DetectChar attribute="Changed line" context="ChangedOld" char="!" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="FindDiff">
<RegExpr attribute="File" context="#stay" String="\-\-\-.*$" column="0"/>
<RegExpr attribute="Header" context="#stay" String="&csep;" column="0"/>
<AnyChar attribute="Added line" context="Added" String="+&gt;" column="0"/>
<AnyChar attribute="Removed line" context="Removed" String="-&lt;" column="0"/>
@ -36,31 +41,32 @@
<!-- block contexts -->
<context attribute="Normal Text" lineEndContext="#stay" name="File">
<IncludeRules context="FindDiff"/>
<RegExpr attribute="Header" context="ChunkInFile" String="&chunk;" beginRegion="chunk" column="0"/>
<RegExpr attribute="Header" context="RChunkInFile" String="\*+$" beginRegion="block" column="0"/>
<RegExpr attribute="File" context="#pop" String="&file;" endRegion="block" lookAhead="true" column="0"/>
<RegExpr attribute="Header" context="RChunkInFile" String="\*+$" beginRegion="chunk" column="0"/>
<RegExpr attribute="File" context="#pop" String="&file;" endRegion="chunk" column="0"/>
<DetectChar attribute="Changed line (old)" context="ChangedOld" char="!" column="0"/>
<IncludeRules context="FindDiff"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="Chunk">
<RegExpr attribute="Header" context="#pop" String="&chunk;" endRegion="block" lookAhead="true" column="0"/>
<DetectChar attribute="Changed line (old)" context="ChangedOld" char="!" column="0"/>
<IncludeRules context="FindDiff"/>
<RegExpr attribute="Header" context="#pop" String="&chunk;" endRegion="chunk" lookAhead="true" column="0"/>
<DetectChar attribute="Changed line (old)" context="ChangedOld" char="!" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="ChunkInFile">
<RegExpr attribute="Header" context="#pop" String="&chunk;" endRegion="block" lookAhead="true" column="0"/>
<RegExpr attribute="File" context="#pop" String="&file;" endRegion="block" lookAhead="true" column="0"/>
<DetectChar attribute="Changed line (old)" context="ChangedOld" char="!" column="0"/>
<IncludeRules context="FindDiff"/>
<RegExpr attribute="Header" context="#pop" String="&chunk;" endRegion="chunk" lookAhead="true" column="0"/>
<RegExpr attribute="Normal Text" context="#pop" String="&index;" endRegion="chunk" column="0"/>
<RegExpr attribute="File" context="#pop" String="&file;" endRegion="chunk" lookAhead="true" column="0"/>
<DetectChar attribute="Changed line (old)" context="ChangedOld" char="!" column="0"/>
</context>
<!-- block contexts (diff -r) -->
<context attribute="Normal Text" lineEndContext="#stay" name="RFile">
<RegExpr attribute="File" context="#pop" String="(diff|Only in .*:).*$" endRegion="block" lookAhead="true" column="0"/>
<RegExpr attribute="File" context="#pop" String="(diff|Only in .*:).*$" endRegion="chunk" lookAhead="true" column="0"/>
<RegExpr attribute="Header" context="#stay" String="&file;" column="0"/>
<RegExpr attribute="Header" context="RChunkInFile" String="\*+$" beginRegion="block" column="0"/>
<RegExpr attribute="Header" context="RChunkInFile" String="\*+$" beginRegion="chunk" column="0"/>
<IncludeRules context="File"/>
</context>
@ -84,7 +90,7 @@
<context attribute="Normal Text" lineEndContext="#stay" name="RChunkInFileNew">
<RegExpr attribute="Header" context="#pop#pop" String="&chunk;" lookAhead="true" column="0"/>
<RegExpr attribute="File" context="#pop#pop" String="&file;" endRegion="block" lookAhead="true" column="0"/>
<RegExpr attribute="File" context="#pop#pop" String="&file;" endRegion="chunk" lookAhead="true" column="0"/>
<DetectChar attribute="Changed line (new)" context="ChangedNew" char="!" column="0"/>
<IncludeRules context="FindDiff"/>
</context>

@ -0,0 +1,328 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
<language name="Django HTML Template" version="1.2" kateversion="2.4" section="Markup" extensions="*.htm;*.html" mimetype="text/html" author="Matthew Marshall (matthew@matthewmarshall.org)" license="LGPL" priority="9">
<!--
Based off of the katepart html syntax highlighting by Wilbert Berendsen.
Email me with any bugs/suggestions/requests!
-->
<highlighting>
<list name="blocktags">
<item>for</item>
<item>block</item>
<item>if</item>
<item>ifequal</item>
<item>ifnotequal</item>
<item>ifchanged</item>
<item>blocktrans</item>
<item>spaceless</item>
</list>
<list name="endblocktags">
<item>endfor</item>
<item>endblock</item>
<item>endif</item>
<item>endifequal</item>
<item>endifnotequal</item>
<item>endifchanged</item>
<item>endblocktrans</item>
<item>endspaceless</item>
</list>
<contexts>
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Mismatched Block Tag" context="#stay" String="\{%\s*end[a-z]+\s*%\}" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="FindHTML" />
</context>
<context name="In Block" attribute="Normal Text" lineEndContext="#stay">
<RegExpr context="#pop" String="\{%\s*end[a-z]+\s*%\}" lookAhead="true" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="FindHTML" />
</context>
<context name="FindTemplate" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Template Comment" context="Template Comment" String="\{%\s*comment\s*%\}" beginRegion="templatecomment" />
<Detect2Chars attribute="Template Var" context="Template Var" char="{" char1="{" />
<Detect2Chars attribute="Template Tag" context="Template Tag" char="{" char1="%" />
</context>
<context name="Template Comment" attribute="Template Comment" lineEndContext="#stay">
<RegExpr attribute="Template Comment" context="#pop" String="\{%\s*endcomment\s*%\}" endRegion="templatecomment" />
</context>
<context name="Template Var" attribute="Template Var" lineEndContext="#stay">
<Detect2Chars attribute="Template Var" context="#pop" char="}" char1="}" />
<DetectChar attribute="Template Filter" context="Template Filter" char='|' />
<Detect2Chars attribute="Error" context="#stay" char="{" char1="{" />
<Detect2Chars attribute="Error" context="#stay" char="{" char1="%" />
<Detect2Chars attribute="Error" context="#stay" char="%" char1="}" />
</context>
<context name="Template Filter" attribute="Template Filter" lineEndContext="#stay">
<Detect2Chars attribute="Template Var" context="#pop#pop" char="}" char1="}" />
<DetectChar attribute="Template String" char="'" context="Single A-string"/>
<DetectChar attribute="Template String" char="&quot;" context="Single Q-string"/>
<Detect2Chars attribute="Error" context="#stay" char="{" char1="{" />
<Detect2Chars attribute="Error" context="#stay" char="{" char1="%" />
<Detect2Chars attribute="Error" context="#stay" char="%" char1="}" />
</context>
<context name="Template Tag" attribute="Template Tag" lineEndContext="#stay">
<keyword String="blocktags" context="Found Block Tag" lookAhead="true" attribute="Template Tag" />
<DetectIdentifier attribute="Template Tag" context="In Template Tag" />
</context>
<context name="Found Block Tag" attribute="Template Tag" lineEndContext="#stay">
<!-- This context is entered when a matching block tag was found through lookAhead. We need to capture it in an re, so that it can be matched with the end[blockname] tag later -->
<RegExpr attribute="Template Tag" String="(&name;)" context="In Block Tag"/>
</context>
<context name="In Block Tag" attribute="Template Tag Argument" dynamic="true" lineEndContext="#stay" >
<RegExpr context="#pop#pop#pop" String="\{%\s*end%1\s*%\}" dynamic="true" attribute="Template Tag"/>
<RegExpr context="Non Matching Tag" String="\{%\s*end[a-z]+\s*%\}" lookAhead="true" />
<Detect2Chars attribute="Template Tag" context="In Block" char="%" char1="}" />
<IncludeRules context="In Template Tag" />
</context>
<context name="Non Matching Tag" attribute="Template Tag" lineEndContext="#stay">
<keyword String="endblocktags" attribute="Mismatched Block Tag" context="#pop" />
<!-- If the mismatched tag is one we don't know about, ignore it. -->
<DetectIdentifier attribute="Template Tag" context="#pop" />
</context>
<context name="In Template Tag" attribute="Template Tag Argument" lineEndContext="#stay">
<Detect2Chars attribute="Template Tag" context="#pop#pop" char="%" char1="}" />
<DetectChar attribute="Template String" char="'" context="Single A-string"/>
<DetectChar attribute="Template String" char="&quot;" context="Single Q-string"/>
<Detect2Chars attribute="Error" context="#stay" char="{" char1="{" />
<Detect2Chars attribute="Error" context="#stay" char="{" char1="%" />
<Detect2Chars attribute="Error" context="#stay" char="}" char1="}" />
</context>
<context name="Single A-string" attribute="Template String" lineEndContext="#stay">
<HlCStringChar attribute="Template String" context="#stay"/>
<!-- <RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/> -->
<DetectChar attribute="Template String" char="'" context="#pop"/>
</context>
<context name="Single Q-string" attribute="Template String" lineEndContext="#stay">
<HlCStringChar attribute="Template String" context="#stay"/>
<!-- <RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/> -->
<DetectChar attribute="Template String" char="&quot;" context="#pop"/>
</context>
<context name="FindHTML" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<DetectIdentifier/>
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<StringDetect attribute="CDATA" context="CDATA" String="&lt;![CDATA[" beginRegion="cdata" />
<RegExpr attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE\s+" beginRegion="doctype" />
<RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:-]*" beginRegion="pi" />
<RegExpr attribute="Element" context="CSS" String="&lt;style\b" insensitive="TRUE" beginRegion="style" />
<RegExpr attribute="Element" context="JS" String="&lt;script\b" insensitive="TRUE" beginRegion="script" />
<RegExpr attribute="Element" context="El Open" String="&lt;pre\b" insensitive="TRUE" beginRegion="pre" />
<RegExpr attribute="Element" context="El Open" String="&lt;div\b" insensitive="TRUE" beginRegion="div" />
<RegExpr attribute="Element" context="El Open" String="&lt;table\b" insensitive="TRUE" beginRegion="table" />
<RegExpr attribute="Element" context="El Open" String="&lt;&name;" />
<RegExpr attribute="Element" context="El Close" String="&lt;/pre\b" insensitive="TRUE" endRegion="pre" />
<RegExpr attribute="Element" context="El Close" String="&lt;/div\b" insensitive="TRUE" endRegion="div" />
<RegExpr attribute="Element" context="El Close" String="&lt;/table\b" insensitive="TRUE" endRegion="table" />
<RegExpr attribute="Element" context="El Close" String="&lt;/&name;" />
<!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" />
<IncludeRules context="FindEntityRefs" />
</context>
<context name="FindEntityRefs" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<AnyChar attribute="Error" context="#stay" String="&amp;&lt;" />
</context>
<context name="FindPEntityRefs" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
<AnyChar attribute="Error" context="#stay" String="&amp;%" />
</context>
<context name="FindAttributes" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Attribute" context="#stay" String="&name;" column="0"/>
<RegExpr attribute="Attribute" context="#stay" String="\s+&name;" />
<DetectChar attribute="Attribute" context="Value" char="=" />
</context>
<context name="FindDTDRules" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces/>
<IncludeRules context="##Alerts" />
<IncludeRules context="FindTemplate" />
<DetectIdentifier/>
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
<RegExpr attribute="Error" context="#stay" String="-(-(?!-&gt;))+" />
</context>
<context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces/>
<DetectIdentifier/>
<StringDetect attribute="CDATA" context="#pop" String="]]&gt;" endRegion="cdata" />
<StringDetect attribute="EntityRef" context="#stay" String="]]&amp;gt;" />
</context>
<context name="PI" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
</context>
<context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="&gt;" endRegion="doctype" />
<DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
</context>
<context name="Doctype Internal Subset" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
<IncludeRules context="FindDTDRules" />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:-]*" beginRegion="pi" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="&gt;" />
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char="&quot;" />
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="&apos;" />
</context>
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop" char="&quot;" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop" char="&apos;" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="El Open" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" />
<DetectChar attribute="Element" context="#pop" char="&gt;" />
<IncludeRules context="FindAttributes" />
<IncludeRules context="FindTemplate" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="El Close" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Element" context="#pop" char="&gt;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="El Close 2" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Element" context="#pop#pop#pop" char="&gt;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="El Close 3" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Element" context="#pop#pop#pop#pop" char="&gt;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="CSS" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" endRegion="style" />
<DetectChar attribute="Element" context="CSS content" char="&gt;" />
<IncludeRules context="FindAttributes" />
<IncludeRules context="FindTemplate" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="CSS content" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Element" context="El Close 2" String="&lt;/style\b" insensitive="TRUE" endRegion="style" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="##CSS" includeAttrib="true"/>
</context>
<context name="JS" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" endRegion="script" />
<DetectChar attribute="Element" context="JS content" char="&gt;" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="FindAttributes" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="JS content" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Element" context="El Close 2" String="&lt;/script\b" insensitive="TRUE" endRegion="script" />
<RegExpr attribute="Comment" context="JS comment close" String="//(?=.*&lt;/script\b)" insensitive="TRUE" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="##JavaScript" includeAttrib="true"/>
</context>
<context name="JS comment close" attribute="Comment" lineEndContext="#pop">
<RegExpr attribute="Element" context="El Close 3" String="&lt;/script\b" insensitive="TRUE" endRegion="script" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="##Alerts" />
</context>
<context name="Value" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="Value NQ">
<DetectChar attribute="Value" context="Value DQ" char="&quot;" />
<DetectChar attribute="Value" context="Value SQ" char="&apos;" />
<DetectSpaces />
</context>
<context name="Value NQ" attribute="Normal Text" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
<IncludeRules context="FindEntityRefs" />
<IncludeRules context="FindTemplate" />
<RegExpr attribute="Value" context="#stay" String="/(?!&gt;)" />
<RegExpr attribute="Value" context="#stay" String="[^/&gt;&lt;&quot;&apos;\s]" />
</context>
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop#pop" char="&quot;" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="FindEntityRefs" />
</context>
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop#pop" char="&apos;" />
<IncludeRules context="FindTemplate" />
<IncludeRules context="FindEntityRefs" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="CDATA" defStyleNum="dsBaseN" bold="1" />
<itemData name="Processing Instruction" defStyleNum="dsKeyword" />
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" />
<itemData name="Element" defStyleNum="dsKeyword" />
<itemData name="Attribute" defStyleNum="dsOthers" />
<itemData name="Value" defStyleNum="dsString" color="#a00" />
<itemData name="EntityRef" defStyleNum="dsDecVal" />
<itemData name="PEntityRef" defStyleNum="dsDecVal" />
<itemData name="Error" defStyleNum="dsError" />
<itemData name="Template Var" defStyleNum="dsFunction" />
<itemData name="Template Tag" defStyleNum="dsFunction" />
<itemData name="Template Tag Argument" defStyleNum="dsFunction" />
<itemData name="Template String" defStyleNum="dsString" />
<itemData name="Template Comment" defStyleNum="dsComment" />
<itemData name="Template Filter" defStyleNum="dsOthers" />
<itemData name="Mismatched Block Tag" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="{% comment %}" end="{% endcomment %}" region="templatecomment" />
</comments>
</general>
</language>

@ -1,29 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord -->
]>
<!--
This file is part of KDE's kate project.
copyright : (C) 2004 by Dominik Haumann
email : dhdev at gmx dot de
Copyright 2004 Dominik Haumann (dhdev@gmx.de)
Copyright 2007 Matthew Woehlke (mw_triad@users.sourceforge.net)
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Library General Public License for more details. *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the *
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language name="Doxygen" version="1.25" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<language name="Doxygen" version="1.30" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" priority="9">
<highlighting>
<!-- note: all tags may begin with a \ or @ char
so if you add/change tags you have to do it twice -->
@ -36,6 +39,7 @@
<item> \dot </item>
<item> \else </item>
<item> \endcode </item>
<item> \endcond </item>
<item> \enddot </item>
<item> \endhtmlonly </item>
<item> \endif </item>
@ -64,7 +68,6 @@
<item> \nosubgrouping </item>
<item> \note </item>
<item> \only </item>
<item> \par </item>
<item> \post </item>
<item> \pre </item>
<item> \remarks </item>
@ -88,6 +91,7 @@
<item> @dot </item>
<item> @else </item>
<item> @endcode </item>
<item> @endcond </item>
<item> @enddot </item>
<item> @endhtmlonly </item>
<item> @endif </item>
@ -116,7 +120,6 @@
<item> @nosubgrouping </item>
<item> @note </item>
<item> @only </item>
<item> @par </item>
<item> @post </item>
<item> @pre </item>
<item> @remarks </item>
@ -140,6 +143,7 @@
<item> \b </item>
<item> \c </item>
<item> \class </item>
<item> \cond </item>
<item> \copydoc </item>
<item> \def </item>
<item> \dontinclude </item>
@ -160,7 +164,6 @@
<item> \namespace </item>
<item> \p </item>
<item> \package </item>
<item> \param </item>
<item> \ref </item>
<item> \relatesalso </item>
<item> \relates </item>
@ -177,6 +180,7 @@
<item> @b </item>
<item> @c </item>
<item> @class </item>
<item> @cond </item>
<item> @copydoc </item>
<item> @def </item>
<item> @dontinclude </item>
@ -197,7 +201,6 @@
<item> @namespace </item>
<item> @p </item>
<item> @package </item>
<item> @param </item>
<item> @ref </item>
<item> @relatesalso </item>
<item> @relates </item>
@ -208,6 +211,11 @@
<item> @version </item>
<item> @xrefitem </item>
</list>
<list name="TagParam">
<item> \param </item>
<item> @param </item>
</list>
<list name="TagWordWord">
<item> \image </item>
@ -246,6 +254,7 @@
<item> \mainpage </item>
<item> \name </item>
<item> \overload </item>
<item> \par </item>
<item> \short </item>
<item> \skip </item>
<item> \skipline </item>
@ -264,6 +273,7 @@
<item> @mainpage </item>
<item> @name </item>
<item> @overload </item>
<item> @par </item>
<item> @short </item>
<item> @skip </item>
<item> @skipline </item>
@ -281,72 +291,85 @@
-->
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))&lt;?"/>
<RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|\*$)&lt;?" beginRegion="BlockComment"/>
<RegExpr attribute="Comment" context="BlockComment" String="/\*(\*[^*/]|!|[*!]&lt;|\*$)" beginRegion="BlockComment"/>
<RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup"/>
<RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup"/>
<RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup"/>
<RegExpr attribute="Region" context="#stay" String="/\*\s*@\}\s*\*/" endRegion="MemberGroup"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="LineComment">
<LineContinue attribute="Comment" context="#stay"/>
<DetectSpaces />
<IncludeRules context="##Alerts" />
<keyword attribute="Tags" context="#stay" String="TagOnly" />
<keyword attribute="Tags" context="SL_TagWord" String="TagWord" />
<keyword attribute="Tags" context="SL_TagParam" String="TagParam" />
<keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" />
<keyword attribute="Tags" context="SL_TagString" String="TagString" />
<keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" />
<DetectIdentifier />
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="BlockComment">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment"/>
<IncludeRules context="##Alerts" />
<Detect2Chars attribute="Region" context="#stay" char="@" char1="{" />
<Detect2Chars attribute="Region" context="#stay" char="@" char1="}" />
<keyword attribute="Tags" context="#stay" String="TagOnly" />
<keyword attribute="Tags" context="ML_TagWord" String="TagWord" />
<keyword attribute="Tags" context="ML_TagParam" String="TagParam" />
<keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" />
<keyword attribute="Tags" context="ML_TagString" String="TagString" />
<keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" />
<DetectIdentifier />
<RegExpr attribute="Tags" context="#stay" String="\\(&lt;|&gt;)" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
</context>
<!-- NOTE: all contexts beginning with ML_ are for multiline comments
The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand!
The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.)
-->
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWord">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="#stay" String="\S" />
<IncludeRules context="SL_TagWord" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">
<context attribute="Comment" lineEndContext="#pop" name="ML_TagParam">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_Tag2ndWord">
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" -->
<context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord">
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true"/>
<IncludeRules context="SL_Tag2ndWord" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagString">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="Description" context="#stay" String="." />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="#stay" String="\S" />
<IncludeRules context="SL_TagWordString" />
</context>
<!-- html contexts -->
@ -380,29 +403,39 @@
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWord">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true"/>
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagParam">
<DetectSpaces />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_Tag2ndWord">
<!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" -->
<context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagString">
<DetectSpaces />
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="Description" context="#stay" String="." />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S\s" />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
@ -436,6 +469,7 @@
<itemData name="HTML Tag" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="0" />
<itemData name="Description" defStyleNum="dsString" color="#ff0000" />
<itemData name="Comment" defStyleNum="dsComment" color="#0000ff" selColor="#ffffff" italic="1" />
<itemData name="Region" defStyleNum="dsRegionMarker" />
<itemData name="Identifier" defStyleNum="dsOthers" />
<itemData name="HTML Comment" defStyleNum="dsComment" />
<itemData name="Types" defStyleNum="dsDataType" />

@ -0,0 +1,481 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord -->
]>
<!--
Version 1.01 by Bruno Massa
Based on the original Doxygen Highlighter version 1.0 from
Copyright 2004 Dominik Haumann (dhdev@gmx.de)
Copyright 2007 Matthew Woehlke (mw_triad@users.sourceforge.net)
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the *
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language name="DoxygenLua" version="1.01" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Bruno Massa (brmassa@gmail.com)" license="LGPL">
<highlighting>
<!-- note: all tags may begin with a \ or @ char
so if you add/change tags you have to do it twice -->
<list name="TagOnly">
<item> \arg </item>
<item> \attention </item>
<item> \author </item>
<item> \callgraph </item>
<item> \code </item>
<item> \dot </item>
<item> \else </item>
<item> \endcode </item>
<item> \endcond </item>
<item> \enddot </item>
<item> \endhtmlonly </item>
<item> \endif </item>
<item> \endlatexonly </item>
<item> \endlink </item>
<item> \endmanonly </item>
<item> \endverbatim </item>
<item> \endxmlonly </item>
<item> \f[ </item>
<item> \f] </item>
<item> \f$ </item>
<item> \hideinitializer </item>
<item> \htmlonly </item>
<item> \interface </item>
<item> \internal </item>
<item> \invariant </item>
<item> \~ </item>
<item> \@ </item>
<item> \$ </item>
<item> \\ </item>
<item> \# </item>
<item> \latexonly </item>
<item> \li </item>
<item> \manonly </item>
<item> \n </item>
<item> \nosubgrouping </item>
<item> \note </item>
<item> \only </item>
<item> \post </item>
<item> \pre </item>
<item> \remarks </item>
<item> \return </item>
<item> \returns </item>
<item> \sa </item>
<item> \see </item>
<item> \showinitializer </item>
<item> \since </item>
<item> \test </item>
<item> \todo </item>
<item> \verbatim </item>
<item> \warning </item>
<item> \xmlonly </item>
<item> @arg </item>
<item> @attention </item>
<item> @author </item>
<item> @callgraph </item>
<item> @code </item>
<item> @dot </item>
<item> @else </item>
<item> @endcode </item>
<item> @endcond </item>
<item> @enddot </item>
<item> @endhtmlonly </item>
<item> @endif </item>
<item> @endlatexonly </item>
<item> @endlink </item>
<item> @endmanonly </item>
<item> @endverbatim </item>
<item> @endxmlonly </item>
<item> @f[ </item>
<item> @f] </item>
<item> @f$ </item>
<item> @hideinitializer </item>
<item> @htmlonly </item>
<item> @interface </item>
<item> @internal </item>
<item> @invariant </item>
<item> @~ </item>
<item> @@ </item>
<item> @$ </item>
<item> @\ </item>
<item> @# </item>
<item> @latexonly </item>
<item> @li </item>
<item> @manonly </item>
<item> @n </item>
<item> @nosubgrouping </item>
<item> @note </item>
<item> @only </item>
<item> @post </item>
<item> @pre </item>
<item> @remarks </item>
<item> @return </item>
<item> @returns </item>
<item> @sa </item>
<item> @see </item>
<item> @showinitializer </item>
<item> @since </item>
<item> @test </item>
<item> @todo </item>
<item> @verbatim </item>
<item> @warning </item>
<item> @xmlonly </item>
</list>
<list name="TagWord">
<item> \addtogroup </item>
<item> \a </item>
<item> \anchor </item>
<item> \b </item>
<item> \c </item>
<item> \class </item>
<item> \cond </item>
<item> \copydoc </item>
<item> \def </item>
<item> \dontinclude </item>
<item> \dotfile </item>
<item> \e </item>
<item> \elseif </item>
<item> \em </item>
<item> \enum </item>
<item> \example </item>
<item> \exception </item>
<item> \exceptions </item>
<item> \file </item>
<item> \htmlinclude </item>
<item> \if </item>
<item> \ifnot </item>
<item> \include </item>
<item> \link </item>
<item> \namespace </item>
<item> \p </item>
<item> \package </item>
<item> \ref </item>
<item> \relatesalso </item>
<item> \relates </item>
<item> \retval </item>
<item> \throw </item>
<item> \throws </item>
<item> \verbinclude </item>
<item> \version </item>
<item> \xrefitem </item>
<item> @addtogroup </item>
<item> @a </item>
<item> @anchor </item>
<item> @b </item>
<item> @c </item>
<item> @class </item>
<item> @cond </item>
<item> @copydoc </item>
<item> @def </item>
<item> @dontinclude </item>
<item> @dotfile </item>
<item> @e </item>
<item> @elseif </item>
<item> @em </item>
<item> @enum </item>
<item> @example </item>
<item> @exception </item>
<item> @exceptions </item>
<item> @file </item>
<item> @htmlinclude </item>
<item> @if </item>
<item> @ifnot </item>
<item> @include </item>
<item> @link </item>
<item> @namespace </item>
<item> @p </item>
<item> @package </item>
<item> @ref </item>
<item> @relatesalso </item>
<item> @relates </item>
<item> @retval </item>
<item> @throw </item>
<item> @throws </item>
<item> @verbinclude </item>
<item> @version </item>
<item> @xrefitem </item>
</list>
<list name="TagParam">
<item> \param </item>
<item> @param </item>
</list>
<list name="TagWordWord">
<item> \image </item>
<item> @image </item>
</list>
<list name="TagWordString">
<item> \defgroup </item>
<item> \page </item>
<item> \paragraph </item>
<item> \section </item>
<item> \struct </item>
<item> \subsection </item>
<item> \subsubsection </item>
<item> \union </item>
<item> \weakgroup </item>
<item> @defgroup </item>
<item> @page </item>
<item> @paragraph </item>
<item> @section </item>
<item> @struct </item>
<item> @subsection </item>
<item> @subsubsection </item>
<item> @union </item>
<item> @weakgroup </item>
</list>
<list name="TagString">
<item> \addindex </item>
<item> \brief </item>
<item> \bug </item>
<item> \date </item>
<item> \deprecated </item>
<item> \fn </item>
<item> \ingroup </item>
<item> \line </item>
<item> \mainpage </item>
<item> \name </item>
<item> \overload </item>
<item> \par </item>
<item> \short </item>
<item> \skip </item>
<item> \skipline </item>
<item> \typedef </item>
<item> \until </item>
<item> \var </item>
<item> @addindex </item>
<item> @brief </item>
<item> @bug </item>
<item> @date </item>
<item> @deprecated </item>
<item> @fn </item>
<item> @ingroup </item>
<item> @line </item>
<item> @mainpage </item>
<item> @name </item>
<item> @overload </item>
<item> @par </item>
<item> @short </item>
<item> @skip </item>
<item> @skipline </item>
<item> @typedef </item>
<item> @until </item>
<item> @var </item>
</list>
<contexts>
<!-- different formats:
@tag : TagOnly
@tag rest_of_line : TagString
@tag <word> : TagWord
@tag <word> <word> : TagWordWord
@tag <word> rest_of_line : TagWordString
-->
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Comment" context="BlockComment" beginRegion="BlockComment" String="--\[(=*)\[" dynamic="true" />
<StringDetect attribute="Comment" context="LineComment" String="--"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="LineComment">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<keyword attribute="Tags" context="#stay" String="TagOnly" />
<keyword attribute="Tags" context="SL_TagWord" String="TagWord" />
<keyword attribute="Tags" context="SL_TagParam" String="TagParam" />
<keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" />
<keyword attribute="Tags" context="SL_TagString" String="TagString" />
<keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" />
<DetectIdentifier />
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="BlockComment" dynamic="true" >
<DetectSpaces />
<RegExpr attribute="Comment" context="#pop" endRegion="BlockComment" String="\]%1\]" dynamic="true" />
<IncludeRules context="##Alerts" />
<Detect2Chars attribute="Region" context="#stay" char="@" char1="{" />
<Detect2Chars attribute="Region" context="#stay" char="@" char1="}" />
<keyword attribute="Tags" context="#stay" String="TagOnly" />
<keyword attribute="Tags" context="ML_TagWord" String="TagWord" />
<keyword attribute="Tags" context="ML_TagParam" String="TagParam" />
<keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" />
<keyword attribute="Tags" context="ML_TagString" String="TagString" />
<keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" />
<DetectIdentifier />
<RegExpr attribute="Tags" context="#stay" String="\\(&lt;|&gt;)" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
</context>
<!-- NOTE: all contexts beginning with ML_ are for multiline comments
The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.)
-->
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWord">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<IncludeRules context="SL_TagWord" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagParam">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[out]" />
<StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in,out]" />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectSpaces />
<RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<!-- TODO for kate 2.x, convert references to "#pop!ML_TagWord" -->
<context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord">
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true"/>
<IncludeRules context="SL_Tag2ndWord" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagString">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="Description" context="#stay" String="." />
</context>
<context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<IncludeRules context="SL_TagWordString" />
</context>
<!-- html contexts -->
<context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
<DetectChar attribute="HTML Tag" context="#pop" char="&gt;"/>
<RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*"/>
</context>
<context name="ML_htmlcomment" attribute="HTML Comment" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<IncludeRules context="##Alerts" />
<StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
</context>
<context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
<DetectChar attribute="Types" context="ML_types1" char="'" />
<DetectChar attribute="Types" context="ML_types2" char="&quot;" />
</context>
<context name="ML_types1" attribute="Types" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectChar attribute="Types" context="#pop#pop" char="'" />
</context>
<context name="ML_types2" attribute="Types" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true"/>
<DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
</context>
<!-- NOTE: all contexts beginning with SL_ are for singleline comments -->
<!-- tag contexts -->
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWord">
<DetectSpaces />
<keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true"/>
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagParam">
<DetectSpaces />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in]" />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" />
<StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord">
<DetectSpaces />
<RegExpr attribute="Word" context="SL_Tag2ndWord" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" -->
<context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagString">
<DetectSpaces />
<StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="&lt;!--" />
<Detect2Chars attribute="Comment" context="#stay" char="&lt;" char1="&lt;" />
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
<RegExpr attribute="Description" context="#stay" String="." />
</context>
<context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">
<DetectSpaces />
<RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />
<RegExpr attribute="Word" context="#stay" String="\S" />
</context>
<!-- html contexts -->
<context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop">
<Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1="&gt;" />
<DetectChar attribute="HTML Tag" context="#pop" char="&gt;"/>
<RegExpr attribute="Identifier" context="SL_identifiers" String="\s*=\s*"/>
</context>
<context name="SL_htmlcomment" attribute="HTML Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts" />
<StringDetect attribute="HTML Comment" context="#pop" String="--&gt;" />
</context>
<context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop">
<RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
<DetectChar attribute="Types" context="SL_types1" char="'" />
<DetectChar attribute="Types" context="SL_types2" char="&quot;" />
</context>
<context name="SL_types1" attribute="Types" lineEndContext="#pop">
<DetectChar attribute="Types" context="#pop#pop" char="'" />
</context>
<context name="SL_types2" attribute="Types" lineEndContext="#pop">
<DetectChar attribute="Types" context="#pop#pop" char="&quot;" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Tags" defStyleNum="dsKeyword" color="#ca60ca" selColor="#ffffff" bold="1" italic="0" />
<itemData name="Word" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" italic="0" />
<itemData name="HTML Tag" defStyleNum="dsKeyword"/>
<itemData name="Description" defStyleNum="dsString" />
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Region" defStyleNum="dsRegionMarker" />
<itemData name="Identifier" defStyleNum="dsOthers" />
<itemData name="HTML Comment" defStyleNum="dsComment" />
<itemData name="Types" defStyleNum="dsDataType" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="--" />
<comment name="multiLine" start="--[[" end="]]" />
</comments>
<keywords casesensitive="0" weakDeliminator="\$~" />
</general>
</language>

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE language SYSTEM "language.dtd"[
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>
<language name="DTD" version="1.02" kateversion="2.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk (s-andy@in.if.ua)" license="LGPL">
<highlighting>
<list name="Category">
<item>EMPTY</item>
<item>ANY</item>
<item>CDATA</item>
<item>ID</item>
<item>IDREF</item>
<item>IDREFS</item>
<item>NMTOKEN</item>
<item>NMTOKENS</item>
<item>ENTITY</item>
<item>ENTITIES</item>
<item>NOTATION</item>
<item>PUBLIC</item>
<item>SYSTEM</item>
<item>NDATA</item>
</list>
<list name="Keywords">
<item>#PCDATA</item>
<item>#REQUIRED</item>
<item>#IMPLIED</item>
<item>#FIXED</item>
</list>
<contexts>
<context name="Normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<StringDetect attribute="Processing Instruction" context="PI" String="&lt;?xml" beginRegion="pi" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ELEMENT" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ATTLIST" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!NOTATION" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="&lt;!ENTITY" beginRegion="declaration" />
<DetectIdentifier />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context name="PI" attribute="Normal" lineEndContext="#stay">
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
</context>
<context name="Declaration" attribute="Normal" lineEndContext="#stay">
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<Detect2Chars attribute="Comment" context="InlineComment" char="-" char1="-" />
<DetectChar attribute="Declaration" context="#pop" char="&gt;" endRegion="declaration" />
<DetectChar attribute="String" context="String" char="&quot;" />
<RegExpr attribute="Declaration" context="#stay" String="(-|O)\s(-|O)" />
<AnyChar attribute="Delimiter" context="#stay" String="(|)," />
<RegExpr attribute="Entity" context="#stay" String="(%|&amp;)&entref;" />
<AnyChar attribute="Symbol" context="#stay" String="?*+-&amp;" />
<RegExpr attribute="Local" context="#stay" String="%\s" />
<keyword attribute="Keyword" context="#stay" String="Category" />
<keyword attribute="Keyword" context="#stay" String="Keywords" />
<RegExpr attribute="Name" context="#stay" String="\b&nmtoken;\b" />
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<DetectSpaces />
<DetectChar attribute="String" context="#pop" char="&quot;" />
<RegExpr attribute="Entity" context="#stay" String="%&nmtoken;;" />
</context>
<context name="InlineComment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="-" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Processing Instruction" defStyleNum="dsKeyword" />
<itemData name="Declaration" defStyleNum="dsDataType" bold="1" />
<itemData name="Name" defStyleNum="dsFunction" />
<itemData name="Delimiter" defStyleNum="dsDecVal" />
<itemData name="Symbol" defStyleNum="dsFloat" bold="1" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Entity" defStyleNum="dsDecVal" />
<itemData name="Local" defStyleNum="dsDecVal" bold="1" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="&lt;!--" end="--&gt;" />
</comments>
</general>
</language>
<!-- kate: indent-width 2; indent-mode normal; tab-indents on; -->

@ -0,0 +1,250 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY atomstr "\b[a-z][_a-z@-Z0-9]*(?:(?=[^_a-z@-Z0-9])|$)" >
<!ENTITY varstr "\b[_A-Z][_a-z@-Z0-9]*(?:(?=[^_a-z@-Z0-9])|$)" >
<!-- pragmas defined here, because "keyword" can't handle the leading '-' -->
<!ENTITY pragmas
"^(?:-module|-export|-define|-undef|-ifdef|-ifndef|-else|-endif|-include|-include_lib)" >
<!-- same with separators: (from s3.9 p 24 of erlang spec) -->
<!ENTITY separators "(?:\(|\)|\{|\}|\[|\]|\.|\:|\||\|\||;|\,|\?|-&gt;|\#)" >
<!-- and operators - although words are dealt with separately -->
<!ENTITY opsymbols
"(?:\+|-|\*|\/|==|\/=|=:=|=\/=|&lt;|=&lt;|&gt;|&gt;=|\+\+|--|=|!|&lt;-)" >
]
>
<!--
Copyright (C) 2007 Bill Ross <bill@emailme.net.au>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
Changes
v1-0-2 (2008-01-10) - fixed to '_" in atom and variable names (thanks to Vito De Tullio)
- fixed highlighting problem when '@' at end of atom/variable
-->
<language name="Erlang" version="1.02" kateversion="2.5" section="Scripts" extensions="*.erl" mimetype="" author="Bill Ross (bill@emailme.net.au)" license="LGPL">
<highlighting>
<list name="keywords">
<!-- ====== s3.8 p 24 of erlang spec ===== -->
<item> after </item>
<item> begin </item>
<item> case </item>
<item> catch </item>
<item> cond </item>
<item> end </item>
<item> fun </item>
<item> if </item>
<item> let </item>
<item> of </item>
<item> query </item>
<item> receive </item>
<item> all_true </item>
<item> some_true </item>
</list>
<list name="operators">
<!-- operators: s3.9 p 24 of erlang spec -->
<!-- see also opsymbols for the symbols -->
<item> div </item>
<item> rem </item>
<item> or </item>
<item> xor </item>
<item> bor </item>
<item> bxor </item>
<item> bsl </item>
<item> bsr </item>
<item> and </item>
<item> band </item>
<item> not </item>
<item> bnot </item>
</list>
<list name="functions">
<!-- all standard (erlang) functions are here, -->
<!-- except those defined as erlang:function (those will show as functions anyway -->
<item>abs</item>
<item>accept</item>
<item>alarm</item>
<item>apply</item>
<item>atom_to_list</item>
<item>binary_to_list</item>
<item>binary_to_term</item>
<item>check_process_code</item>
<item>concat_binary</item>
<item>date</item>
<item>delete_module</item>
<item>disconnect_node</item>
<item>element</item>
<item>erase</item>
<item>exit</item>
<item>float</item>
<item>float_to_list</item>
<item>garbage_collect</item>
<item>get</item>
<item>get_keys</item>
<item>group_leader</item>
<item>halt</item>
<item>hd</item>
<item>integer_to_list</item>
<item>is_alive</item>
<item>is_atom</item>
<item>is_binary</item>
<item>is_boolean</item>
<item>is_float</item>
<item>is_function</item>
<item>is_integer</item>
<item>is_list</item>
<item>is_number</item>
<item>is_pid</item>
<item>is_port</item>
<item>is_process_alive</item>
<item>is_record</item>
<item>is_reference</item>
<item>is_tuple</item>
<item>length</item>
<item>link</item>
<item>list_to_atom</item>
<item>list_to_binary</item>
<item>list_to_float</item>
<item>list_to_integer</item>
<item>list_to_pid</item>
<item>list_to_tuple</item>
<item>load_module</item>
<item>loaded</item>
<item>localtime</item>
<item>make_ref</item>
<item>module_loaded</item>
<item>node</item>
<item>nodes</item>
<item>now</item>
<item>open_port</item>
<item>pid_to_list</item>
<item>port_close</item>
<item>port_command</item>
<item>port_connect</item>
<item>port_control</item>
<item>ports</item>
<item>pre_loaded</item>
<item>process_flag</item>
<item>process_info</item>
<item>processes</item>
<item>purge_module</item>
<item>put</item>
<item>register</item>
<item>registered</item>
<item>round</item>
<item>self</item>
<item>setelement</item>
<item>size</item>
<item>spawn</item>
<item>spawn_link</item>
<item>spawn_opt</item>
<item>split_binary</item>
<item>statistics</item>
<item>term_to_binary</item>
<item>throw</item>
<item>time</item>
<item>tl</item>
<item>trunc</item>
<item>tuple_to_list</item>
<item>unlink</item>
<item>unregister</item>
<item>whereis</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<RegExpr attribute="Pragma" context="#stay" column="0" String="&pragmas;" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Operator" context="#stay" String="operators" />
<RegExpr attribute="Operator" context="#stay" String="&opsymbols;" />
<keyword attribute="Function" context="#stay" String="functions" />
<RegExpr attribute="Separator" context="#stay" String="&separators;" />
<DetectSpaces />
<DetectChar attribute="Comment" context="comment" char="%" />
<!-- Functions (in addition to named functions dealt with above) -->
<!-- simple version - got to be in form module:function -->
<RegExpr attribute="Function" context="#pop" String="&atomstr;:&atomstr;" />
<RegExpr attribute="Functon" context="isfunction" String="&atomstr;\(" lookAhead="true" />
<!-- Variables - begin with upper case, or between single quotes -->
<RegExpr attribute="Variable" context="#pop" String="&varstr;" />
<!-- atoms - begin with lower case (letters, numbers, @),
or anything between single quotes -->
<DetectChar attribute="Atom" context="atomquote" char="'" />
<RegExpr attribute="Atom" context="#pop" String="&atomstr;" />
<DetectChar attribute="String" context="stringquote" char="&quot;" />
<!-- numbers - these work -->
<!-- integers have three forms 7, 3#22, $A -->
<!-- float must have a number after the decimal point, or it doesn't count -->
<RegExpr attribute="Float" context="#pop" String="[0-9]+\.[0-9]+(?:[eE][+-]?[0-9]+)?" />
<RegExpr attribute="Number" context="#pop" String="\d+#[a-zA-Z0-9]+" />
<RegExpr attribute="Integer" context="#pop" String="\$\S" />
<RegExpr attribute="Integer" context="#pop" String="[0-9]+" />
</context>
<!-- isfunction -->
<!-- confirm that this is a function and capture name for formatting -->
<!-- lookahead for '(' already performed by the time we are here -->
<context name="isfunction" attribute="Function" lineEndContext="#pop" >
<RegExpr attribute="Function" context="#pop" String="&atomstr;" />
</context>
<!-- finish off the atom in quoted string (allow for escaped single quotes -->
<context name="atomquote" attribute="Atom" lineEndContext="#pop">
<RegExpr attribute="Atom" context="#pop" String="(?:(?:\\')?[^']*)*'" />
</context>
<!-- finish off the atom in quoted string (allow for escaped single quotes -->
<context name="stringquote" attribute="String" lineEndContext="#pop">
<RegExpr attribute="String" context="#pop" String="(?:(?:\\&quot;)?[^&quot;]*)*&quot;" />
</context>
<!-- finish off the comment (allows for alerts) -->
<context name="comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Pragma" defStyleNum="dsKeyword" />
<itemData name="Function" defStyleNum="dsFunction" />
<itemData name="Separator" defStyleNum="dsFunction" />
<itemData name="Operator" defStyleNum="dsKeyword" />
<itemData name="Variable" defStyleNum="dsDataType" />
<itemData name="Integer" defStyleNum="dsDecVal" />
<itemData name="Number" defStyleNum="dsBaseN" />
<itemData name="Float" defStyleNum="dsFloat" />
<itemData name="Atom" defStyleNum="dsChar" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="%" />
</comments>
<keywords casesensitive="1" />
</general>
</language>
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->

@ -0,0 +1,609 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="FreeBASIC" version="0.14" kateversion="2.3" section="Sources" extensions="*.bas;*.bi;*.BAS;*.BI" mimetype="text/x-freebasic" author="Chris Neugebauer (chrisjrn@gmail.com)" license="GPL">
<highlighting>
<list name="preproc">
<item> #DEFINE </item>
<item> #ELSE </item>
<item> #ELSEIF </item>
<item> #ENDIF </item>
<item> #IF </item>
<item> #IFDEF </item>
<item> #IFNDEF </item>
<item> #UNDEF </item>
<item> $DYNAMIC </item>
<item> $INCLIB </item>
<item> $INCLUDE </item>
<item> $STATIC </item>
</list>
<list name="keywords">
<item> Declare </item>
<item> Open </item>
<item> For </item>
<item> For Input </item>
<item> For Output </item>
<item> For Binary </item>
<item> For Random </item>
<item> Close </item>
<item> To </item>
<item> Step </item>
<item> Next </item>
<item> As </item>
<item> Break </item>
<item> Exit </item>
<item> If </item>
<item> Then </item>
<item> Else </item>
<item> Until </item>
<item> Select </item>
<item> System </item>
<item> Case </item>
<item> Default </item>
<item> EndSelect </item>
<item> Do </item>
<item> Loop </item>
<item> While </item>
<item> Wend </item>
<item> End </item>
<item> Type </item>
<item> DefType </item>
<item> Dim </item>
<item> Global </item>
<item> Function </item>
<item> Sub </item>
<item> Shared </item>
<item> Protected </item>
<item> Static </item>
<item> Declare </item>
<item> Unsigned </item>
<item> Data </item>
<item> Restore </item>
<item> Read </item>
<item> Goto </item>
<item> Gosub </item>
<item> Return </item>
<item> DEFBYTE </item>
<item> DEFDBL </item>
<item> DEFINT </item>
<item> DEFLNG </item>
<item> DEFSHORT </item>
<item> DEFSNG </item>
<item> DEFSTR </item>
<item> DEFUBYTE </item>
<item> DEFUINT </item>
<item> DEFUSHORT </item>
</list>
<list name="Assembly Operators">
<item> AH </item>
<item> AL </item>
<item> AX </item>
<item> BH </item>
<item> BL </item>
<item> BP </item>
<item> BX </item>
<item> CH </item>
<item> CL </item>
<item> CS </item>
<item> CX </item>
<item> DH </item>
<item> DI </item>
<item> DL </item>
<item> DS </item>
<item> DX </item>
<item> EAX </item>
<item> EBP </item>
<item> EBX </item>
<item> ECX </item>
<item> EDI </item>
<item> EDX </item>
<item> ES </item>
<item> ESI </item>
<item> ESP </item>
<item> FS </item>
<item> GS </item>
<item> SI </item>
<item> SP </item>
<item> SS </item>
</list>
<list name="Data Types">
<item> Integer </item>
<item> Long </item>
<item> Single </item>
<item> Double </item>
<item> String </item>
<item> Byte PTR </item>
<item> Dword PTR </item>
<item> Qword PTR </item>
<item> Word PTR </item>
</list>
<list name="functions">
<item> AAA </item>
<item> AAD </item>
<item> AAM </item>
<item> AAS </item>
<item> ABS </item>
<item> ACOS </item>
<item> ADC </item>
<item> ADD </item>
<item> ALLOCATE </item>
<item> AND </item>
<item> AND </item>
<item> ARPL </item>
<item> ASC </item>
<item> ASIN </item>
<item> ASM </item>
<item> ATAN2 </item>
<item> ATN </item>
<item> BEEP </item>
<item> BIN$ </item>
<item> BLOAD </item>
<item> BOUND </item>
<item> BREAK </item>
<item> BSAVE </item>
<item> BSF </item>
<item> BSR </item>
<item> BSWAP </item>
<item> BT </item>
<item> BTC </item>
<item> BTR </item>
<item> BTS </item>
<item> BYREF </item>
<item> CALL </item>
<item> CALLOCATE </item>
<item> CALLS </item>
<item> CBW </item>
<item> CBYTE </item>
<item> CDBL </item>
<item> CDQ </item>
<item> CHAIN </item>
<item> CHDIR </item>
<item> CHR$ </item>
<item> CINT </item>
<item> CIRCLE </item>
<item> CLC </item>
<item> CLD </item>
<item> CLEAR </item>
<item> CLI </item>
<item> CLNG </item>
<item> CLOSE </item>
<item> CLTS </item>
<item> CMC </item>
<item> CMP </item>
<item> CMPS </item>
<item> CMPSB </item>
<item> CMPSD </item>
<item> CMPSW </item>
<item> CMPXCHG </item>
<item> COLOR </item>
<item> COMMAND$ </item>
<item> COMMON </item>
<item> CONST </item>
<item> CONTINUE </item>
<item> COS </item>
<item> CSHORT </item>
<item> CSIGN </item>
<item> CSNG </item>
<item> CUNSG </item>
<item> CURDIR$ </item>
<item> CVD </item>
<item> CVI </item>
<item> CVL </item>
<item> CVS </item>
<item> CWD </item>
<item> CWDE </item>
<item> DAA </item>
<item> DAS </item>
<item> DATA </item>
<item> DATE$ </item>
<item> DEALLOCATE </item>
<item> DEC </item>
<item> DIM </item>
<item> DIR$ </item>
<item> DIV </item>
<item> DRAW </item>
<item> END </item>
<item> ENTER </item>
<item> ENUM </item>
<item> ENVIRON </item>
<item> ENVIRON$ </item>
<item> EOF </item>
<item> EQV </item>
<item> ERASE </item>
<item> EXEC </item>
<item> EXEPATH </item>
<item> EXP </item>
<item> FIX </item>
<item> FLIP </item>
<item> FRE </item>
<item> FREEFILE </item>
<item> GET </item>
<item> GETKEY </item>
<item> GETMOUSE </item>
<item> HEX$ </item>
<item> HLT </item>
<item> IDIV </item>
<item> IMP </item>
<item> IMUL </item>
<item> IN </item>
<item> INC </item>
<item> INKEY$ </item>
<item> INP </item>
<item> INPUT </item>
<item> INPUT$ </item>
<item> INS </item>
<item> INSB </item>
<item> INSD </item>
<item> INSTR </item>
<item> INT </item>
<item> INT </item>
<item> INTO </item>
<item> INVD </item>
<item> INVLPG </item>
<item> IRET </item>
<item> IRETD </item>
<item> JA </item>
<item> JAE </item>
<item> JB </item>
<item> JBE </item>
<item> JC </item>
<item> JCXZ </item>
<item> JE </item>
<item> JECXZ </item>
<item> JG </item>
<item> JGE </item>
<item> JL </item>
<item> JLE </item>
<item> JMP </item>
<item> JNA </item>
<item> JNAE </item>
<item> JNB </item>
<item> JNBE </item>
<item> JNC </item>
<item> JNE </item>
<item> JNG </item>
<item> JNGE </item>
<item> JNL </item>
<item> JNLE </item>
<item> JNO </item>
<item> JNP </item>
<item> JNS </item>
<item> JNZ </item>
<item> JO </item>
<item> JP </item>
<item> JPE </item>
<item> JPO </item>
<item> JS </item>
<item> JUMP </item>
<item> JZ </item>
<item> KILL </item>
<item> LAHF </item>
<item> LAR </item>
<item> LBOUND </item>
<item> LCASE$ </item>
<item> LDS </item>
<item> LEA </item>
<item> LEAVE </item>
<item> LEAVED </item>
<item> LEAVEW </item>
<item> LEFT$ </item>
<item> LEN </item>
<item> LES </item>
<item> LET </item>
<item> LFS </item>
<item> LGDT </item>
<item> LGS </item>
<item> LIB </item>
<item> LIDT </item>
<item> LINE </item>
<item> LLDT </item>
<item> LMSW </item>
<item> LOC </item>
<item> LOCK </item>
<item> LOCK </item>
<item> LODS </item>
<item> LODSB </item>
<item> LODSD </item>
<item> LODSW </item>
<item> LOF </item>
<item> LOG </item>
<item> LOOPD </item>
<item> LOOPDE </item>
<item> LOOPDNE </item>
<item> LOOPDNZ </item>
<item> LOOPDZ </item>
<item> LOOPE </item>
<item> LOOPNE </item>
<item> LOOPNZ </item>
<item> LOOPW </item>
<item> LOOPWE </item>
<item> LOOPWNE </item>
<item> LOOPWNZ </item>
<item> LOOPWZ </item>
<item> LOOPZ </item>
<item> LSET </item>
<item> LSL </item>
<item> LSS </item>
<item> LTR </item>
<item> LTRIM$ </item>
<item> MID$ </item>
<item> MKD$ </item>
<item> MKDIR </item>
<item> MKI$ </item>
<item> MKL$ </item>
<item> MKS$ </item>
<item> MOD </item>
<item> MOV </item>
<item> MOVS </item>
<item> MOVSB </item>
<item> MOVSD </item>
<item> MOVSW </item>
<item> MOVSX </item>
<item> MOVZX </item>
<item> MUL </item>
<item> MULTIKEY </item>
<item> NAME </item>
<item> NEG </item>
<item> NOP </item>
<item> NOT </item>
<item> NOTHING </item>
<item> OCT$ </item>
<item> OPTION BASE </item>
<item> OPTION PRIVATE </item>
<item> OR </item>
<item> OUT </item>
<item> OUTS </item>
<item> OUTSB </item>
<item> OUTSD </item>
<item> OUTSW </item>
<item> PAINT </item>
<item> PALETTE </item>
<item> PCOPY </item>
<item> PEEK </item>
<item> PEEKI </item>
<item> PEEKS </item>
<item> PMAP </item>
<item> POINT </item>
<item> POKE </item>
<item> POKEI </item>
<item> POKES </item>
<item> POP </item>
<item> POPA </item>
<item> POPAD </item>
<item> POPF </item>
<item> POPFD </item>
<item> POS </item>
<item> PRESERVE </item>
<item> PRESET </item>
<item> PRINT </item>
<item> PRIVATE </item>
<item> PROCPTR </item>
<item> PSET </item>
<item> PTR </item>
<item> PUBLIC </item>
<item> PUSH </item>
<item> PUSHA </item>
<item> PUSHAD </item>
<item> PUSHF </item>
<item> PUSHFD </item>
<item> PUT </item>
<item> RANDOMIZE </item>
<item> RCL </item>
<item> RCR </item>
<item> REALLOCATE </item>
<item> REDIM </item>
<item> REM </item>
<item> REP </item>
<item> REPE </item>
<item> REPNE </item>
<item> REPNZ </item>
<item> REPZ </item>
<item> RESET </item>
<item> RET </item>
<item> RETURN </item>
<item> RGB </item>
<item> RIGHT$ </item>
<item> RMDIR </item>
<item> RND </item>
<item> ROL </item>
<item> ROR </item>
<item> RSET </item>
<item> RTRIM$ </item>
<item> RUN </item>
<item> SADD </item>
<item> SAHF </item>
<item> SAL </item>
<item> SAR </item>
<item> SBB </item>
<item> SCAS </item>
<item> SCASB </item>
<item> SCASD </item>
<item> SCASW </item>
<item> SCREEN </item>
<item> SCREENCOPY </item>
<item> SCREENINFO </item>
<item> SCREENLOCK </item>
<item> SCREENPTR </item>
<item> SCREENSET </item>
<item> SCREENUNLOCK </item>
<item> SEEK </item>
<item> SETA </item>
<item> SETAE </item>
<item> SETB </item>
<item> SETBE </item>
<item> SETC </item>
<item> SETDATE </item>
<item> SETE </item>
<item> SETENVIRON </item>
<item> SETG </item>
<item> SETGE </item>
<item> SETL </item>
<item> SETLE </item>
<item> SETNA </item>
<item> SETNAE </item>
<item> SETNB </item>
<item> SETNBE </item>
<item> SETNC </item>
<item> SETNE </item>
<item> SETNG </item>
<item> SETNGE </item>
<item> SETNL </item>
<item> SETNLE </item>
<item> SETNO </item>
<item> SETNP </item>
<item> SETNS </item>
<item> SETNZ </item>
<item> SETO </item>
<item> SETP </item>
<item> SETPE </item>
<item> SETPO </item>
<item> SETS </item>
<item> SETZ </item>
<item> SGDT </item>
<item> SGN </item>
<item> SHARED </item>
<item> SHELL </item>
<item> SHL </item>
<item> SHLD </item>
<item> SHR </item>
<item> SHRD </item>
<item> SIDT </item>
<item> SIN </item>
<item> SLDT </item>
<item> SLEEP </item>
<item> SMSW </item>
<item> SPACE$ </item>
<item> SQR </item>
<item> STATIC </item>
<item> STC </item>
<item> STD </item>
<item> STI </item>
<item> STOP </item>
<item> STOS </item>
<item> STOSB </item>
<item> STOSD </item>
<item> STOSW </item>
<item> STR </item>
<item> STR$ </item>
<item> STRING$ </item>
<item> SWAP </item>
<item> TAN </item>
<item> TEST </item>
<item> TIME$ </item>
<item> TIMER </item>
<item> TRIM$ </item>
<item> TYPE </item>
<item> UBOUND </item>
<item> UCASE$ </item>
<item> UNION </item>
<item> UNLOCK </item>
<item> VAL </item>
<item> VARPTR </item>
<item> VERR </item>
<item> VERW </item>
<item> VIEW </item>
<item> WAIT </item>
<item> WINDOWTITLE </item>
<item> WRITE </item>
<item> XADD </item>
<item> XCHG </item>
<item> XLAT </item>
<item> XLATB </item>
<item> XOR </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Keyword" context="#stay" String="\b(exit (function|sub|for|do|while|type|select))([\s]|$)" insensitive="true" />
<RegExpr attribute="Keyword" context="#stay" String="\b(declare (function|sub))([\s]|$)" insensitive="true" />
<RegExpr attribute="Keyword" context="#stay" String="\b(while)([\s]|$)" insensitive="true" beginRegion="WhileRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(wend)([\s]|$)" insensitive="true" endRegion="WhileRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(do)([\s]|$)" insensitive="true" beginRegion="DoRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(loop)([\s]|$)" insensitive="true" endRegion="DoRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(select)([\s]|$)" insensitive="true" beginRegion="SelectRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(end select)([\s]|$)" insensitive="true" endRegion="SelectRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(for (input|output|binary|random))([\s]|$)" insensitive="true" />
<RegExpr attribute="Keyword" context="#stay" String="\b(for)([\s]|$)" insensitive="true" beginRegion="ForRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(next)([\s]|$)" insensitive="true" endRegion="ForRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(function)([.\s]|$)" insensitive="true" beginRegion="fProcedureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(end function)([\s]|$)" insensitive="true" endRegion="fProcedureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(sub)([.\s]|$)" insensitive="true" beginRegion="sProcedureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(end sub)([\s]|$)" insensitive="true" endRegion="sProcedureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(type)([\s]|$)" insensitive="true" beginRegion="StructureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(end type)([\s]|$)" insensitive="true" endRegion="StructureRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(if)([\s]|$)" insensitive="true" beginRegion="IfRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(then )[a-zA-Z_\x7f-\xff]." insensitive="true" endRegion="IfRegion"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(end if)([\s]|$)" insensitive="true" endRegion="IfRegion"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Data Types" context="#stay" String="Data Types"/>
<keyword attribute="preproc" context="#stay" lineEndContext="#pop" String="Preprocessor"/>
<keyword attribute="Functions" context="#stay" String="functions"/>
<RegExpr attribute="Constant" context="#stay" String="\#+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"/>
<Float attribute="Number" context="#stay"/>
<Int attribute="Number" context="#stay"/>
<DetectChar attribute="String" context="String" char="&quot;" />
<RegExpr attribute="Region Marker" context="#stay" String="^\s*;+\s*BEGIN.*$" beginRegion="marker"/>
<RegExpr attribute="Region Marker" context="#stay" String="^\s*;+\s*END.*$" endRegion="marker"/>
<DetectChar attribute="Comment" context="Comment1" char="'"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment1">
<keyword attribute="Number" context="#stay" String="attention" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Functions" defStyleNum="dsFunction"/>
<itemData name="Data Types" defStyleNum="dsDataType"/>
<itemData name="Constant" defStyleNum="dsConstant"/>
<itemData name="Number" defStyleNum="dsDecVal"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Region Marker " defStyleNum="dsRegionMarker"/>
<itemData name="Preprocessor" defStyleNum="dsPreProc"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="0" />
<comments>
<comment name="singleLine" start="'" />
<comment name="remark" start="REM " />
</comments>
</general>
</language>
<!-- // kate: space-indent on; indent-width 2; replace-tabs on; -->

File diff suppressed because it is too large Load Diff

@ -3,8 +3,10 @@
<!--
This file is part of KDE's kate project.
copyright : (C) 2004 by Dominik Haumann
email : dhdev at gmx dot de
Copyright 2004, Dominik Haumann <dhdev@gmx.de>
Copyright 2008, Chusslove Illich <caslav.ilic@gmx.net>
Last change: 2008-01-30
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@ -21,7 +23,7 @@
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
-->
<language name="GNU Gettext" version="1.03" kateversion="2.4" section="Markup" extensions="*.po;*.pot" mimetype="application/x-gettext" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<language name="GNU Gettext" version="2.00" kateversion="2.4" section="Markup" extensions="*.po;*.pot" mimetype="text/x-gettext-translation" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">
<highlighting>
<contexts>
@ -29,29 +31,113 @@
<RegExpr attribute = "Keyword" String = "^(msgid_plural|msgid|msgstr|msgctxt)" context="#stay"/>
<RegExpr attribute = "Automatic Comment" String = "#\..*$" context="#stay" firstNonSpace="true"/>
<RegExpr attribute = "Reference" String = "#:.*$" context="#stay" firstNonSpace="true"/>
<RegExpr attribute = "Flag" String = "#,.*$" context="#stay" firstNonSpace="true"/>
<StringDetect attribute = "Flag" String = "#," context="Flags" firstNonSpace="true"/>
<StringDetect attribute = "StringPrevious" String = "#|" context="Previous" firstNonSpace="true"/>
<RegExpr attribute = "Translator Comment" String = "#.*$" context="#stay" firstNonSpace="true"/>
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<DetectChar attribute = "String" char="&quot;" context="String"/>
<RegExpr attribute = "Index" String="\[\d+\]" context="#stay"/>
</context>
<!--
Make fuzzy-flag stand out from the rest, being the most important.
-->
<context name = "Flags" attribute = "Flag" lineEndContext="#pop">
<StringDetect attribute = "FlagFuzzy" String="fuzzy" context="#stay"/>
</context>
<!--
Tag-context should be carried over if split by string continuation,
to not loose markup highlighting when that happens.
-->
<context name = "String" attribute = "String" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<RegExpr attribute = "Entity" String="&amp;([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/>
<DetectChar attribute = "StringTag" char="&lt;" context="StringTag"/>
<DetectChar attribute = "String" char="&quot;" context="StringWrap"/>
</context>
<context name = "StringTag" attribute = "StringTag" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<DetectChar attribute = "StringTag" char="&gt;" context="#pop"/>
<DetectChar attribute = "String" char="&quot;" context="StringWrapSub"/>
</context>
<context name = "StringWrap" lineEndContext="#stay">
<DetectChar attribute = "String" char="&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop"/>
</context>
<context name = "StringWrapSub" lineEndContext="#stay">
<DetectChar attribute = "String" char="&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop#pop"/>
</context>
<!--
Previous strings are those in #| comments, introduced by Gettext 0.16.
They should have all the same highlight types as normal strings.
A special addition are embedded diff-segments: {+...+} and {-...-},
which are not Gettext standard, but some tools can produce them.
-->
<context name = "Previous" attribute = "Normal Text" lineEndContext="#pop">
<RegExpr attribute = "KeywordPrevious" String = "(msgctxt|msgid_plural|msgid)" context="#stay"/>
<RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringPrevious"/>
</context>
<context name = "StringPrevious" attribute = "StringPrevious" lineEndContext="#stay">
<RegExpr attribute = "CharPrevious" String="\\." context="#stay"/>
<RegExpr attribute = "EntityPrevious" String="&amp;([a-zA-Z0-9_.-]+|#[0-9]+);" context="#stay"/>
<StringDetect attribute = "StringDiffNew" String="{+" context="StringDiffNew"/>
<StringDetect attribute = "StringDiffOld" String="{-" context="StringDiffOld"/>
<DetectChar attribute = "StringTagPrevious" char="&lt;" context="StringTagPrevious"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapPrevious"/>
</context>
<context name = "StringTagPrevious" attribute = "StringTagPrevious" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<StringDetect attribute = "StringDiffNew" String="{+" context="StringDiffNew"/>
<StringDetect attribute = "StringDiffOld" String="{-" context="StringDiffOld"/>
<DetectChar attribute = "StringTagPrevious" char="&gt;" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
<context name = "StringDiffNew" attribute = "StringDiffNew" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<StringDetect attribute = "StringDiffNew" String="+}" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
<context name = "StringDiffOld" attribute = "StringDiffOld" lineEndContext="#stay">
<RegExpr attribute = "Char" String="\\." context="#stay"/>
<StringDetect attribute = "StringDiffOld" String="-}" context="#pop"/>
<DetectChar attribute = "StringPrevious" char="&quot;" context="StringWrapSubPrevious"/>
</context>
<context name = "StringWrapPrevious" lineEndContext="#stay">
<RegExpr String="[^#]" firstNonSpace="true" lookAhead="true" context="#pop#pop"/>
<RegExpr attribute = "StringPrevious" String="(#\|)? *&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop"/>
</context>
<context name = "StringWrapSubPrevious" lineEndContext="#stay">
<RegExpr String="[^#]" firstNonSpace="true" lookAhead="true" context="#pop#pop#pop"/>
<RegExpr attribute = "StringPrevious" String="(#\|)? *&quot;" context="#pop"/>
<RegExpr String="." lookAhead="true" context="#pop#pop#pop"/>
</context>
</contexts>
<itemDatas>
<itemData name = "Normal Text" defStyleNum ="dsNormal"/>
<itemData name = "Keyword" defStyleNum ="dsKeyword"/>
<itemData name = "String" defStyleNum ="dsString"/>
<itemData name = "KeywordPrevious" defStyleNum ="dsKeyword" italic="true" color="#006060"/>
<itemData name = "String" defStyleNum ="dsString" color="#ff0000"/>
<itemData name = "StringPrevious" defStyleNum ="dsString" italic="true" color="#008080"/>
<itemData name = "Translator Comment" defStyleNum ="dsComment"/>
<itemData name = "Automatic Comment" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "Reference" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "Flag" defStyleNum ="dsComment" color="#0000ff"/>
<itemData name = "FlagFuzzy" defStyleNum ="dsComment" color="#800080" bold="true"/>
<itemData name = "Char" defStyleNum ="dsChar"/>
<itemData name = "CharPrevious" defStyleNum ="dsChar" italic="true" color="#00c040"/>
<itemData name = "Entity" defStyleNum ="dsString" color="#ff0040" bold="true"/>
<itemData name = "EntityPrevious" defStyleNum ="dsString" color="#40c080" bold="true" italic="true"/>
<itemData name = "StringTag" defStyleNum ="dsString" color="#c00000" bold="true"/>
<itemData name = "StringTagPrevious" defStyleNum ="dsString" color="#006060" bold="true"/>
<itemData name = "Index" defStyleNum ="dsDecVal"/>
<itemData name = "StringDiffNew" defStyleNum ="dsString" italic="true" color="#0060f0"/>
<itemData name = "StringDiffOld" defStyleNum ="dsString" italic="true" color="#f00060"/>
</itemDatas>
</highlighting>
<general>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Haskell syntax highlighting by Marcel Martin <mmar@freenet.de> -->
<language name="Haskell" version="1.05" kateversion="2.3" section="Sources" extensions="*.hs" author="Marcel Martin (mmar@freenet.de)" license="">
<language name="Haskell" version="1.2" kateversion="2.3" section="Sources" extensions="*.hs" mimetype="text/x-haskell" author="Marcel Martin (mmar@freenet.de)" license="" indenter="haskell">
<highlighting>
<list name="keywords">
<item> case </item>

@ -4,7 +4,7 @@
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
<language name="HTML" version="1.98" kateversion="2.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
<language name="HTML" version="1.99" kateversion="2.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10">
<highlighting>
<contexts>
@ -24,10 +24,16 @@
<RegExpr attribute="Element" context="El Open" String="&lt;pre\b" insensitive="TRUE" beginRegion="pre" />
<RegExpr attribute="Element" context="El Open" String="&lt;div\b" insensitive="TRUE" beginRegion="div" />
<RegExpr attribute="Element" context="El Open" String="&lt;table\b" insensitive="TRUE" beginRegion="table" />
<RegExpr attribute="Element" context="El Open" String="&lt;ul\b" insensitive="TRUE" beginRegion="ul" />
<RegExpr attribute="Element" context="El Open" String="&lt;ol\b" insensitive="TRUE" beginRegion="ol" />
<RegExpr attribute="Element" context="El Open" String="&lt;dl\b" insensitive="TRUE" beginRegion="dl" />
<RegExpr attribute="Element" context="El Open" String="&lt;&name;" />
<RegExpr attribute="Element" context="El Close" String="&lt;/pre\b" insensitive="TRUE" endRegion="pre" />
<RegExpr attribute="Element" context="El Close" String="&lt;/div\b" insensitive="TRUE" endRegion="div" />
<RegExpr attribute="Element" context="El Close" String="&lt;/table\b" insensitive="TRUE" endRegion="table" />
<RegExpr attribute="Element" context="El Close" String="&lt;/ul\b" insensitive="TRUE" endRegion="ul" />
<RegExpr attribute="Element" context="El Close" String="&lt;/ol\b" insensitive="TRUE" endRegion="ol" />
<RegExpr attribute="Element" context="El Close" String="&lt;/dl\b" insensitive="TRUE" endRegion="dl" />
<RegExpr attribute="Element" context="El Close" String="&lt;/&name;" />
<!-- as long as kde gives DTDs the text/html mimetype--><IncludeRules context="FindDTDRules" />
<IncludeRules context="FindEntityRefs" />

@ -2,7 +2,6 @@
<!DOCTYPE language SYSTEM "language.dtd">
<!-- author: Giancarlo Niccolai (giancarlo@niccolai.ws) -->
<!-- This file is released under GPL license 2.0 or any later version at your choice. -->
<!-- $Id$ -->
<language name="Inform" version="1.23" kateversion="2.3" section="Sources" extensions="*.inf;*.h" mimetype="text/x-inform-src" author="Giancarlo Niccolai (giancarlo@niccolai.ws)" license="GPL">
<highlighting>
<list name="keywords">

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Java" version="1.16" kateversion="2.4" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<language name="Java" version="1.19" kateversion="2.4" section="Sources" extensions="*.java" mimetype="text/x-java" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<highlighting>
<list name="java15">
<item> ACTIVE </item>
@ -3273,6 +3273,431 @@
<item> _Remote_Stub </item>
<item> _ServantActivatorStub </item>
<item> _ServantLocatorStub </item>
<!-- new classes of jdk 6.0 -->
<item> AbstractAnnotationValueVisitor6 </item>
<item> AbstractElementVisitor6 </item>
<item> AbstractMarshallerImpl </item>
<item> AbstractOwnableSynchronizer </item>
<item> AbstractProcessor </item>
<item> AbstractQueuedLongSynchronizer </item>
<item> AbstractScriptEngine </item>
<item> AbstractTypeVisitor6 </item>
<item> AbstractUnmarshallerImpl </item>
<item> ActivationDataFlavor </item>
<item> AlgorithmMethod </item>
<item> AnnotationMirror </item>
<item> AnnotationValue </item>
<item> AnnotationValueVisitor </item>
<item> ArrayDeque </item>
<item> AsyncHandler </item>
<item> AttachmentMarshaller </item>
<item> AttachmentPart </item>
<item> AttachmentUnmarshaller </item>
<item> Binder </item>
<item> BindingProvider </item>
<item> Bindings </item>
<item> BlockingDeque </item>
<item> BreakIteratorProvider </item>
<item> C14NMethodParameterSpec </item>
<item> CanonicalizationMethod </item>
<item> Characters </item>
<item> ClientInfoStatus </item>
<item> CollapsedStringAdapter </item>
<item> CollatorProvider </item>
<item> CommandInfo </item>
<item> CommandMap </item>
<item> CommandObject </item>
<item> CommonDataSource </item>
<item> Compilable </item>
<item> CompiledScript </item>
<item> Completion </item>
<item> Completions </item>
<item> CompositeDataInvocationHandler </item>
<item> CompositeDataView </item>
<item> ConcurrentNavigableMap </item>
<item> ConcurrentSkipListMap </item>
<item> ConcurrentSkipListSet </item>
<item> ConfigurationSpi </item>
<item> Console </item>
<item> ConstructorProperties </item>
<item> CookieManager </item>
<item> CookiePolicy </item>
<item> CookieStore </item>
<item> CurrencyNameProvider </item>
<item> Data </item>
<item> DataContentHandler </item>
<item> DataContentHandlerFactory </item>
<item> DataHandler </item>
<item> DatatypeConverter </item>
<item> DatatypeConverterInterface </item>
<item> DateFormatProvider </item>
<item> DateFormatSymbolsProvider </item>
<item> DecimalFormatSymbolsProvider </item>
<item> DeclaredType </item>
<item> DefaultRowSorter </item>
<item> DefaultValidationEventHandler </item>
<item> DeflaterInputStream </item>
<item> Deque </item>
<item> DescriptorKey </item>
<item> DescriptorRead </item>
<item> Desktop </item>
<item> Detail </item>
<item> DetailEntry </item>
<item> Diagnostic </item>
<item> DiagnosticCollector </item>
<item> DiagnosticListener </item>
<item> DigestMethod </item>
<item> DigestMethodParameterSpec </item>
<item> Dispatch </item>
<item> DOMCryptoContext </item>
<item> DomHandler </item>
<item> DOMSignContext </item>
<item> DOMStructure </item>
<item> DOMURIReference </item>
<item> DOMValidateContext </item>
<item> DropMode </item>
<item> ElementFilter </item>
<item> ElementKind </item>
<item> ElementKindVisitor6 </item>
<item> Elements </item>
<item> ElementScanner6 </item>
<item> ElementVisitor </item>
<item> EndDocument </item>
<item> EndElement </item>
<item> Endpoint </item>
<item> EntityDeclaration </item>
<item> ErrorType </item>
<item> EventException </item>
<item> EventFilter </item>
<item> EventReaderDelegate </item>
<item> EventTarget </item>
<item> ExcC14NParameterSpec </item>
<item> ExecutableElement </item>
<item> ExecutableType </item>
<item> FileDataSource </item>
<item> FileNameExtensionFilter </item>
<item> FileObject </item>
<item> Filer </item>
<item> FilerException </item>
<item> FileTypeMap </item>
<item> ForwardingFileObject </item>
<item> ForwardingJavaFileManager </item>
<item> ForwardingJavaFileObject </item>
<item> Generated </item>
<item> GridBagLayoutInfo </item>
<item> GroupLayout </item>
<item> HandlerChain </item>
<item> HandlerResolver </item>
<item> HexBinaryAdapter </item>
<item> HMACParameterSpec </item>
<item> Holder </item>
<item> HTTPBinding </item>
<item> HttpCookie </item>
<item> HTTPException </item>
<item> IDN </item>
<item> ImmutableDescriptor </item>
<item> InflaterOutputStream </item>
<item> InitParam </item>
<item> InterfaceAddress </item>
<item> Invocable </item>
<item> IOError </item>
<item> JavaCompiler </item>
<item> JavaFileManager </item>
<item> JavaFileObject </item>
<item> JAXBContext </item>
<item> JAXBElement </item>
<item> JAXBException </item>
<item> JAXBIntrospector </item>
<item> JAXBResult </item>
<item> JAXBSource </item>
<item> JMX </item>
<item> JMXAddressable </item>
<item> KeyInfo </item>
<item> KeyInfoFactory </item>
<item> KeyName </item>
<item> KeySelector </item>
<item> KeySelectorException </item>
<item> KeySelectorResult </item>
<item> KeyValue </item>
<item> LayoutPath </item>
<item> LayoutStyle </item>
<item> LinearGradientPaint </item>
<item> LinkedBlockingDeque </item>
<item> LocaleNameProvider </item>
<item> LocaleServiceProvider </item>
<item> Location </item>
<item> LockInfo </item>
<item> LogicalHandler </item>
<item> LogicalMessage </item>
<item> LogicalMessageContext </item>
<item> MailcapCommandMap </item>
<item> Marshaller </item>
<item> MessageContext </item>
<item> MessageFactory </item>
<item> Messager </item>
<item> MimeHeader </item>
<item> MimeHeaders </item>
<item> MimeType </item>
<item> MimeTypeParameterList </item>
<item> MimetypesFileTypeMap </item>
<item> MirroredTypeException </item>
<item> MirroredTypesException </item>
<item> MLetContent </item>
<item> MonitorInfo </item>
<item> MultipleGradientPaint </item>
<item> MutationEvent </item>
<item> MXBean </item>
<item> Namespace </item>
<item> NavigableMap </item>
<item> NavigableSet </item>
<item> NClob </item>
<item> NestingKind </item>
<item> NodeSetData </item>
<item> NormalizedStringAdapter </item>
<item> Normalizer </item>
<item> NoSuchMechanismException </item>
<item> NotationDeclaration </item>
<item> NotIdentifiableEvent </item>
<item> NotIdentifiableEventImpl </item>
<item> NoType </item>
<item> NullType </item>
<item> NumberFormatProvider </item>
<item> OctetStreamData </item>
<item> Oneway </item>
<item> OptionChecker </item>
<item> PackageElement </item>
<item> ParseConversionEvent </item>
<item> ParseConversionEventImpl </item>
<item> Path2D </item>
<item> PGPData </item>
<item> PolicySpi </item>
<item> PortInfo </item>
<item> PostConstruct </item>
<item> PreDestroy </item>
<item> PrimitiveType </item>
<item> PrintConversionEvent </item>
<item> PrintConversionEventImpl </item>
<item> ProcessingEnvironment </item>
<item> Processor </item>
<item> PropertyException </item>
<item> RadialGradientPaint </item>
<item> ReferenceType </item>
<item> RequestWrapper </item>
<item> Resource </item>
<item> Resources </item>
<item> Response </item>
<item> ResponseWrapper </item>
<item> RetrievalMethod </item>
<item> RoundEnvironment </item>
<item> RowFilter </item>
<item> RowId </item>
<item> RowIdLifetime </item>
<item> RowSorter </item>
<item> RowSorterEvent </item>
<item> RowSorterListener </item>
<item> RunnableFuture </item>
<item> RunnableScheduledFuture </item>
<item> SAAJMetaFactory </item>
<item> SAAJResult </item>
<item> SchemaOutputResolver </item>
<item> ScriptContext </item>
<item> ScriptEngine </item>
<item> ScriptEngineFactory </item>
<item> ScriptEngineManager </item>
<item> ScriptException </item>
<item> Service </item>
<item> ServiceConfigurationError </item>
<item> ServiceDelegate </item>
<item> ServiceLoader </item>
<item> ServiceMode </item>
<item> SignatureMethod </item>
<item> SignatureMethodParameterSpec </item>
<item> SignatureProperties </item>
<item> SignatureProperty </item>
<item> SignedInfo </item>
<item> SimpleAnnotationValueVisitor6 </item>
<item> SimpleBindings </item>
<item> SimpleElementVisitor6 </item>
<item> SimpleJavaFileObject </item>
<item> SimpleScriptContext </item>
<item> SimpleTypeVisitor6 </item>
<item> SOAPBinding </item>
<item> SOAPBinding </item>
<item> SOAPBody </item>
<item> SOAPBodyElement </item>
<item> SOAPConnection </item>
<item> SOAPConnectionFactory </item>
<item> SOAPConstants </item>
<item> SOAPElement </item>
<item> SOAPElementFactory </item>
<item> SOAPEnvelope </item>
<item> SOAPException </item>
<item> SOAPFactory </item>
<item> SOAPFault </item>
<item> SOAPFaultElement </item>
<item> SOAPFaultException </item>
<item> SOAPHandler </item>
<item> SOAPHeader </item>
<item> SOAPHeaderElement </item>
<item> SOAPMessage </item>
<item> SOAPMessageContext </item>
<item> SOAPMessageHandler </item>
<item> SOAPMessageHandlers </item>
<item> SOAPPart </item>
<item> SortOrder </item>
<item> SourceVersion </item>
<item> SplashScreen </item>
<item> SQLClientInfoException </item>
<item> SQLDataException </item>
<item> SQLFeatureNotSupportedException </item>
<item> SQLIntegrityConstraintViolationException </item>
<item> SQLInvalidAuthorizationSpecException </item>
<item> SQLNonTransientConnectionException </item>
<item> SQLNonTransientException </item>
<item> SQLRecoverableException </item>
<item> SQLSyntaxErrorException </item>
<item> SQLTimeoutException </item>
<item> SQLTransactionRollbackException </item>
<item> SQLTransientConnectionException </item>
<item> SQLTransientException </item>
<item> SQLXML </item>
<item> SSLParameters </item>
<item> StandardEmitterMBean </item>
<item> StandardJavaFileManager </item>
<item> StandardLocation </item>
<item> StartDocument </item>
<item> StartElement </item>
<item> StatementEvent </item>
<item> StatementEventListener </item>
<item> StAXResult </item>
<item> StAXSource </item>
<item> StreamFilter </item>
<item> StreamReaderDelegate </item>
<item> SupportedAnnotationTypes </item>
<item> SupportedOptions </item>
<item> SupportedSourceVersion </item>
<item> SwingWorker </item>
<item> SystemTray </item>
<item> TableRowSorter </item>
<item> TableStringConverter </item>
<item> TimeZoneNameProvider </item>
<item> Tool </item>
<item> ToolProvider </item>
<item> Transform </item>
<item> TransformException </item>
<item> TransformParameterSpec </item>
<item> TransformService </item>
<item> TrayIcon </item>
<item> TypeConstraintException </item>
<item> TypeElement </item>
<item> TypeKind </item>
<item> TypeKindVisitor6 </item>
<item> TypeMirror </item>
<item> TypeParameterElement </item>
<item> TypeVisitor </item>
<item> UIEvent </item>
<item> UnknownAnnotationValueException </item>
<item> UnknownElementException </item>
<item> UnknownTypeException </item>
<item> Unmarshaller </item>
<item> UnmarshallerHandler </item>
<item> UnsupportedDataTypeException </item>
<item> URIDereferencer </item>
<item> URIParameter </item>
<item> URIReference </item>
<item> URIReferenceException </item>
<item> URLDataSource </item>
<item> ValidationEvent </item>
<item> ValidationEventCollector </item>
<item> ValidationEventHandler </item>
<item> ValidationEventImpl </item>
<item> ValidationEventLocator </item>
<item> ValidationEventLocatorImpl </item>
<item> ValidationException </item>
<item> VariableElement </item>
<item> W3CDomHandler </item>
<item> WebEndpoint </item>
<item> WebFault </item>
<item> WebMethod </item>
<item> WebParam </item>
<item> WebResult </item>
<item> WebService </item>
<item> WebServiceClient </item>
<item> WebServiceContext </item>
<item> WebServiceException </item>
<item> WebServicePermission </item>
<item> WebServiceProvider </item>
<item> WebServiceRef </item>
<item> WebServiceRefs </item>
<item> Wrapper </item>
<item> X509Data </item>
<item> X509IssuerSerial </item>
<item> XmlAccessOrder </item>
<item> XmlAccessorOrder </item>
<item> XmlAccessorType </item>
<item> XmlAccessType </item>
<item> XmlAdapter </item>
<item> XmlAnyAttribute </item>
<item> XmlAnyElement </item>
<item> XmlAttachmentRef </item>
<item> XmlAttribute </item>
<item> XMLCryptoContext </item>
<item> XmlElement </item>
<item> XmlElementDecl </item>
<item> XmlElementRef </item>
<item> XmlElementRefs </item>
<item> XmlElements </item>
<item> XmlElementWrapper </item>
<item> XmlEnum </item>
<item> XmlEnumValue </item>
<item> XMLEvent </item>
<item> XMLEventAllocator </item>
<item> XMLEventConsumer </item>
<item> XMLEventFactory </item>
<item> XMLEventReader </item>
<item> XMLEventWriter </item>
<item> XmlID </item>
<item> XmlIDREF </item>
<item> XmlInlineBinaryData </item>
<item> XMLInputFactory </item>
<item> XmlJavaTypeAdapter </item>
<item> XmlJavaTypeAdapters </item>
<item> XmlList </item>
<item> XmlMimeType </item>
<item> XmlMixed </item>
<item> XmlNs </item>
<item> XmlNsForm </item>
<item> XMLObject </item>
<item> XMLOutputFactory </item>
<item> XmlRegistry </item>
<item> XMLReporter </item>
<item> XMLResolver </item>
<item> XmlRootElement </item>
<item> XmlSchema </item>
<item> XmlSchemaType </item>
<item> XmlSchemaTypes </item>
<item> XMLSignature </item>
<item> XMLSignatureException </item>
<item> XMLSignatureFactory </item>
<item> XMLSignContext </item>
<item> XMLStreamConstants </item>
<item> XMLStreamException </item>
<item> XMLStreamReader </item>
<item> XMLStreamWriter </item>
<item> XMLStructure </item>
<item> XmlTransient </item>
<item> XmlType </item>
<item> XMLValidateContext </item>
<item> XmlValue </item>
<item> XPathFilter2ParameterSpec </item>
<item> XPathFilterParameterSpec </item>
<item> XPathType </item>
<item> XSLTTransformParameterSpec </item>
<item> ZipError </item>
<!-- end new classes -->
</list>
<list name="keywords">
<item> abstract </item>
@ -3352,10 +3777,11 @@
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
</Int>
<HlCChar attribute="Char" context="#stay"/>
<RegExpr attribute="Char" context="#stay" String="'\\u[0-9a-fA-F]{4}'"/>
<RegExpr attribute="Decimal" context="#stay" String="//\s*BEGIN.*$" beginRegion="Region1"/>
<RegExpr attribute="Decimal" context="#stay" String="//\s*END.*$" endRegion="Region1"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<RegExpr attribute="Function" context="Printf" String="\.(format|printf)\b" />
<RegExpr attribute="Function" context="EnterPrintf" String="\.(format|printf)\b"/>
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
@ -3365,16 +3791,26 @@
<RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" />
<RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" />
<RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
<DetectChar attribute="Symbol" context="InFunctionCall" char="("/>
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;+,-/.*&lt;=&gt;?[]|~^&#59;"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="InFunctionCall">
<IncludeRules context="Normal"/>
<DetectChar attribute="Symbol" context="#pop" char=")"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Char" context="#stay" String="\\u[0-9a-fA-F]{4}"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Printf" lineEndContext="#pop" name="Printf">
<DetectChar attribute="Normal Text" context="#pop" char="&#059;" />
<context attribute="Normal Text" lineEndContext="#stay" name="EnterPrintf" fallthrough="true" fallthroughContext="#pop">
<DetectChar attribute="Symbol" context="Printf" char="("/>
<DetectSpaces attribute="Normal Text" context="#stay"/>
</context>
<context attribute="Printf" lineEndContext="#stay" name="Printf">
<DetectChar attribute="String" context="PrintfString" char="&quot;"/>
<IncludeRules context="InFunctionCall"/>
</context>
<context attribute="PrintfString" lineEndContext="#pop" name="PrintfString">
<LineContinue attribute="String" context="#stay"/>

@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Javadoc" version="1.03" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<language name="Javadoc" version="1.04" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)">
<highlighting>
<contexts>
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="FindJavadoc" />
</context>
<context name="FindJavadoc" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="JavadocFS" context="#stay" String="/**/"/>
<StringDetect attribute="JavadocFS" context="JavadocFSar" String="/**" beginRegion="Javadoc"/>
</context>
<context attribute="JavadocFS" lineEndContext="#stay" name="JavadocFSar">

@ -3,7 +3,7 @@
<!-- Author: Anders Lund <anders@alweb.dk> //-->
<!-- Minor changes: Joseph Wenninger <jowenn@kde.org> //-->
<!-- Full JavaScript 1.0 support by Whitehawk Stormchaser //-->
<language name="JavaScript" version="1.10" kateversion="2.3" section="Scripts" extensions="*.js" mimetype="text/x-javascript" author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
<language name="JavaScript" version="1.13" kateversion="2.3" section="Scripts" extensions="*.js" mimetype="text/x-javascript;application/x-javascript" author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
<highlighting>
<list name="keywords">
<item> if </item>
@ -395,7 +395,7 @@
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<DetectSpaces/>
<StringDetect attribute="Region Marker" context="region_marker" String="//BEGIN" beginRegion="Region1"/>
<RegExpr attribute="Region Marker" context="region_marker" String="//END" endRegion="Region1"/>
<StringDetect attribute="Region Marker" context="region_marker" String="//END" endRegion="Region1"/>
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Function" context="#stay" String="functions" />
<keyword attribute="Objects" context="#stay" String="objects" />
@ -419,11 +419,13 @@
<context attribute="String" lineEndContext="#pop" name="String">
<DetectIdentifier/>
<HlCStringChar attribute="String Char" context="#stay"/>
<LineContinue attribute="String" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="String Char" lineEndContext="#pop" name="String 1">
<DetectIdentifier/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<LineContinue attribute="String" context="#stay"/>
<DetectChar attribute="String Char" context="#pop" char="'"/>
</context>

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
***************************************************************************
** Writing a Kate Highlighting XML File
** http://kate-editor.org/article/writing_a_kate_highlighting_xml_file
**
** Introducing JSON
** http://www.json.org/
**
** The application/json Media Type for JavaScript Object Notation (JSON)
** http://tools.ietf.org/html/rfc4627
***************************************************************************
-->
<language name="JSON" section="Markup" version="1.00" kateversion="2.3" extensions="*.json" mimetype="application/json" author="Sebastian Pipping (webmaster@hartwork.org)" license="GPL">
<highlighting>
<list name="Constants">
<item>null</item>
<item>true</item>
<item>false</item>
</list>
<contexts>
<context name="Normal" lineEndContext="#stay" attribute="Style_Error">
<DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" />
</context>
<context name="Pair" lineEndContext="#stay" attribute="Style_Error">
<DetectChar char="&quot;" context="String_Key" attribute="Style_String_Key" />
<DetectChar char=":" context="Value" attribute="Style_Seperator_Pair" />
<DetectChar char="}" context="#pop" endRegion="Region_Object" attribute="Style_Seperator_Pair" />
<DetectChar char="," context="#stay" attribute="Style_Seperator_Pair" />
<DetectSpaces context="#stay" attribute="Style_Normal" />
</context>
<context name="String_Key" lineEndContext="#stay" attribute="Style_String_Key">
<DetectChar char="&quot;" context="#pop" attribute="Style_String_Key" />
<RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Key_Char" />
</context>
<context name="Value" lineEndContext="#stay" attribute="Style_Error" >
<DetectChar char="&quot;" context="String_Value" attribute="Style_String_Value" />
<DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" />
<DetectChar char="[" context="Array" beginRegion="Region_Array" attribute="Style_Seperator_Array" />
<DetectChar char="}" context="#pop" lookAhead="true" />
<DetectChar char="," context="#pop" lookAhead="true" />
<DetectSpaces context="#stay" attribute="Style_Normal" />
<keyword String="Constants" context="#stay" attribute="Style_Keyword" />
<RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" />
<RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" />
</context>
<context name="String_Value" lineEndContext="#stay" attribute="Style_String_Value">
<DetectChar char="&quot;" context="#pop" attribute="Style_String_Value" />
<RegExpr String="\\(?:[&quot;\\/bfnrt]|u[0-9a-fA-f]{4})" context="#stay" insensitive="false" minimal="false" attribute="Style_String_Value_Char" />
</context>
<context name="Array" lineEndContext="#stay" attribute="Style_Error">
<DetectChar char="," context="#stay" attribute="Style_Seperator_Array" />
<DetectChar char="]" context="#pop" endRegion="Region_Array" attribute="Style_Seperator_Array" />
<DetectChar char="{" context="Pair" beginRegion="Region_Object" attribute="Style_Seperator_Pair" />
<DetectChar char="&quot;" context="String_Value" attribute="Style_String_Value" />
<DetectSpaces context="#stay" attribute="Style_Normal" />
<keyword String="Constants" context="#stay" attribute="Style_Keyword" />
<RegExpr String="-?(?:[0-9]|[1-9][0-9]+)\.[0-9]+(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Float" />
<RegExpr String="-?(?:[0-9]|[1-9][0-9]+)(?:[eE][+-]?[0-9]+)?" context="#stay" insensitive="false" minimal="false" attribute="Style_Decimal" />
</context>
</contexts>
<itemDatas>
<itemData name="Style_Normal" defStyleNum="dsNormal" />
<itemData name="Style_Seperator_Pair" defStyleNum="dsNormal" bold="1" color="#EF0000" />
<itemData name="Style_Seperator_Array" defStyleNum="dsNormal" bold="1" color="#0000AF" />
<itemData name="Style_Decimal" defStyleNum="dsDecVal" />
<itemData name="Style_Float" defStyleNum="dsFloat" />
<itemData name="Style_String_Key" defStyleNum="dsDataType" />
<itemData name="Style_String_Value" defStyleNum="dsString" color="#FF00FF" />
<itemData name="Style_String_Key_Char" defStyleNum="dsDataType" underline="1" />
<itemData name="Style_String_Value_Char" defStyleNum="dsString" color="#FF00FF" underline="1" />
<itemData name="Style_Keyword" defStyleNum="dsDecVal" bold="1" />
<itemData name="Style_Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
</language>
<!--
// kate: space-indent on; indent-width 2; replace-tabs on;
-->

@ -1,27 +1,39 @@
<?xml version="1.01" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="LaTeX" version="1.25" section="Markup" kateversion="2.3" extensions="*.tex; *.ltx; *.dtx; *.sty; *.cls;" mimetype="text/x-tex" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)" license="LGPL" >
<language name="LaTeX" version="1.33" section="Markup" kateversion="2.3" priority="10" extensions="*.tex;*.ltx;*.dtx;*.sty;*.cls;" mimetype="text/x-tex" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (braun@physik.fu-berlin.de)" license="LGPL" >
<highlighting>
<contexts>
<!-- Normal text -->
<context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
<RegExpr String="\\begin(?=[^a-zA-Z])" attribute="Structure" context="FindEnvironment" beginRegion="block" />
<RegExpr String="\\end(?=[^a-zA-Z])" attribute="Structure" context="FindEnvironment" endRegion="block" />
<RegExpr String="\\(label|pageref|ref|vpageref|vref|cite)(?=[^a-zA-Z])" attribute="Structure" context="Label"/>
<RegExpr String="\\(cite|parencite|autocite|Autocite|citetitle)\*(?=[^a-zA-Z])" attribute="Structure" context="Label"/>
<RegExpr String="\\(cites|Cites|parencites|Parencites|autocites|Autocites|supercites|footcites|Footcites)(?=[^a-zA-Z])" attribute="Structure" context="FancyLabel"/>
<RegExpr String="\\(cite|nocite|Cite|parencite|Parencite|footcite|Footcite|textcite|Textcite|supercite|autocite|Autocite|citeauthor|Citeauthor|citetitle|citeyear|citeurl|nocite|fullcite|footfullcite)(?=[^a-zA-Z])" attribute="Structure" context="Label"/>
<RegExpr String="\\(subref\*?|cref\*?|label|pageref|autoref|ref|vpageref|vref|pagecite)(?=[^a-zA-Z])" attribute="Structure" context="Label"/>
<RegExpr String="\\(part|chapter|section|subsection|subsubsection|paragraph|subparagraph)\*?\s*(?=[\{\[])" attribute="Structure" context="Sectioning"/>
<RegExpr String="\\(re)?newcommand(?=[^a-zA-Z])" attribute="Keyword" context="NewCommand"/>
<RegExpr String="\\(footnote)\*?\s*(?=[\{\[])" attribute="Footnote" context="Footnoting"/>
<RegExpr String="\\(renewcommand|providenewcommand|newcommand)\*?(?=[^a-zA-Z])" attribute="Keyword" context="NewCommand"/>
<RegExpr String="\\(e|g|x)?def(?=[^a-zA-Z])" attribute="Keyword" context="DefCommand"/>
<RegExpr String="&lt;&lt;.*&gt;&gt;=" attribute="Normal Text" context="NoWeb" />
<StringDetect String="\(" attribute="Math" context="MathMode" beginRegion="mathMode" />
<StringDetect String="\[" attribute="Math" context="MathModeEquation" beginRegion="mathMode" />
<StringDetect String="\iffalse" attribute="Comment" context="Multiline Comment"/>
<StringDetect String="\ensuremath{" attribute="Math" context="MathModeEnsure"/>
<DetectChar char="\" attribute="Keyword" context="ContrSeq"/>
<StringDetect String="$$" attribute="Math" context="MathModeDisplay" beginRegion="mathMode" />
<DetectChar char="$" attribute="Math" context="MathMode" beginRegion="mathMode" />
<DetectChar char="%" attribute="Comment" context="Comment"/>
<RegExpr String="%\s*BEGIN.*$" attribute="Region Marker" context="#stay" beginRegion="regionMarker" firstNonSpace="true" />
<RegExpr String="%\s*END.*$" attribute="Region Marker" context="#stay" endRegion="regionMarker" firstNonSpace="true" />
<DetectChar char="%" attribute="Comment" context="Comment"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
</context>
<!-- NoWeb -->
<context name="NoWeb" attribute="Normal Text" lineEndContext="#stay" >
<RegExpr String="^\s*@\s*" attribute="Normal Text" context="#pop" />
</context>
<!-- LaTeX sectioning commands -->
<context name="Sectioning" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<RegExpr String="\[[^\]]*\]" attribute="Normal Text" context="#stay"/>
@ -59,9 +71,46 @@
<RegExpr String="[^a-zA-Z]" attribute="Structure Keyword Mathmode" context="#pop" />
</context>
<!-- LaTeX Footnote commands -->
<context name="Footnoting" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<RegExpr String="\[[^\]]*\]" attribute="Normal Text" context="#stay"/>
<DetectChar char=" " attribute="Normal Text" context="#stay"/>
<DetectChar char="{" attribute="Normal Text" context="FootnotingInside"/>
<DetectChar char="}" attribute="Normal Text" context="#pop"/>
<DetectChar char="%" attribute="Comment" context="Comment"/>
</context>
<context name="FootnotingInside" attribute="Footnote Text" lineEndContext="#stay">
<DetectChar char="{" attribute="Normal Text" context="FootnotingInside"/>
<DetectChar char="}" attribute="Normal Text" context="#pop"/>
<StringDetect String="\(" attribute="Footnote Math" context="FootnotingMathMode" beginRegion="mathMode" />
<DetectChar char="\" attribute="Footnote Keyword" context="FootnotingContrSeq"/>
<DetectChar char="$" attribute="Footnote Math" context="FootnotingMathMode" beginRegion="mathMode" />
<DetectChar char="%" attribute="Comment" context="Comment"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
</context>
<context name="FootnotingContrSeq" attribute="Keyword" lineEndContext="#pop">
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="[a-zA-Z]+(\+?|\*{0,3})" attribute="Footnote Keyword" context="#pop"/>
<RegExpr String="[^a-zA-Z]" attribute="Footnote Keyword" context="#pop" />
</context>
<context name="FootnotingMathMode" attribute="Footnote Math" lineEndContext="#stay">
<StringDetect String="$$" attribute="Error" context="#stay" />
<DetectChar char="$" attribute="Footnote Math" context="#pop" endRegion="mathMode" />
<Detect2Chars char="\" char1=")" attribute="Footnote Math" context="#pop" endRegion="mathMode" />
<Detect2Chars char="\" char1="]" attribute="Error" context="#stay" />
<DetectChar char="\" attribute="Footnote Keyword Mathmode" context="FootnotingMathContrSeq"/>
<DetectChar char="%" attribute="Comment" context="Comment"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
</context>
<context name="FootnotingMathContrSeq" attribute="Footnote Keyword Mathmode" lineEndContext="#pop">
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="[a-zA-Z]+\*?" attribute="Footnote Keyword Mathmode" context="#pop"/>
<RegExpr String="[^a-zA-Z]" attribute="Footnote Keyword Mathmode" context="#pop" />
</context>
<!-- LaTeX commands \newcommand and \renewcommand -->
<context name="NewCommand" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<RegExpr String="\s*\{\s*\\[a-zA-Z]+\s*\}(\[\d\](\[[^\]]+\])?)?\{" attribute="Normal Text" context="CommandParameterStart"/>
<RegExpr String="\s*\{\s*\\[a-zA-Z]+\s*\}(\[\d\](\[[^\]]*\])?)?\{" attribute="Normal Text" context="CommandParameterStart"/>
<DetectChar char="}" attribute="Error" context="#pop"/>
</context>
@ -90,7 +139,7 @@
<StringDetect String="verb*" attribute="Keyword" context="Verb"/>
<RegExpr String="verb(?=[^a-zA-Z])" attribute="Keyword" context="Verb"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="[a-zA-Z]+(\+?|\*{0,3})" attribute="Keyword" context="#pop"/>
<RegExpr String="[a-zA-Z@]+(\+?|\*{0,3})" attribute="Keyword" context="#pop"/>
<RegExpr String="[^a-zA-Z]" attribute="Keyword" context="#pop" />
</context>
<context name="ToEndOfLine" attribute="Normal Text" lineEndContext="#pop">
@ -127,6 +176,27 @@
<RegExpr String="\s*\}\s*" attribute="Normal Text" context="#pop#pop"/>
</context>
<!-- labels from biblatex commands -->
<context name="FancyLabel" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop">
<RegExpr String="\s*\{\s*" attribute="Normal Text" context="FancyLabelParameter"/>
<RegExpr String="\s*\[\s*" attribute="Normal Text" context="LabelOption"/>
<RegExpr String="\s*\(\s*" attribute="Normal Text" context="FancyLabelRoundBrackets"/>
</context>
<context name="FancyLabelParameter" attribute="Environment" lineEndContext="#stay">
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="\s*\}\s*" attribute="Normal Text" context="#pop"/>
</context>
<context name="FancyLabelRoundBrackets" attribute="Normal Text" lineEndContext="#stay">
<StringDetect String="\(" attribute="Math" context="MathMode" beginRegion="mathMode" />
<DetectChar char="\" attribute="Keyword" context="ContrSeq"/>
<DetectChar char="$" attribute="Math" context="MathMode" beginRegion="mathMode" />
<DetectChar char="%" attribute="Comment" context="Comment"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="\s*\)\s*" attribute="Normal Text" context="#pop"/>
</context>
<!-- start of an environment -->
<context name="FindEnvironment" attribute="Normal Text" lineEndContext="#stay">
<DetectChar char="{" attribute="Normal Text" context="Environment"/>
@ -137,8 +207,9 @@
<context name="Environment" attribute="Environment" lineEndContext="#stay">
<RegExpr String="(lstlisting|(B|L)?Verbatim)" attribute="Environment" context="VerbatimEnvParam"/>
<RegExpr String="(verbatim|boxedverbatim)" attribute="Environment" context="VerbatimEnv"/>
<RegExpr String="(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|flalign)" attribute="Environment" context="MathEnv"/>
<RegExpr String="(alignat|xalignat|xxalignat)" attribute="Environment" context="MathEnvParam"/>
<RegExpr String="(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|flalign)" attribute="Environment" context="MathEnv"/>
<RegExpr String="(tabularx|tabular|supertabular|mpsupertabular|xtabular|mpxtabular|longtable)" attribute="Environment" context="TabEnv"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="[a-zA-Z]" attribute="Environment" context="LatexEnv"/>
<RegExpr String="\s+" attribute="Error" context="#pop"/>
@ -217,6 +288,7 @@
<StringDetect String="$$" attribute="Error" context="#stay" />
<DetectChar char="$" attribute="Error" context="#stay" />
<DetectChar char="%" attribute="Comment" context="Comment"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="%\s*BEGIN.*$" attribute="Region Marker" context="#stay" beginRegion="regionMarker" firstNonSpace="true"/>
<RegExpr String="%\s*END.*$" attribute="Region Marker" context="#stay" endRegion="regionMarker" firstNonSpace="true"/>
</context>
@ -228,6 +300,35 @@
<DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop" endRegion="block"/>
</context>
<!-- environment type 9: tabular -->
<context name="TabEnv" attribute="Environment" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop#pop">
<DetectChar char="}" attribute="Normal Text" context="Tab"/>
<RegExpr String="[a-zA-Z]" attribute="Environment" lookAhead="true" context="#pop"/>
<IncludeRules context="EnvCommon" />
</context>
<!-- parse tabular text -->
<context name="Tab" attribute="Tab" lineEndContext="#stay">
<DetectChar char="&amp;" attribute="Ampersand" context="#stay"/>
<StringDetect String="@{" attribute="Column Separator" context="Column Separator"/>
<RegExpr String="\\end(?=\s*\{(tabularx|tabular|supertabular|mpsupertabular|xtabular|mpxtabular|longtable)\*?\})" attribute="Structure" context="TabFindEnd"/>
<IncludeRules context="Normal Text" />
</context>
<context name="Column Separator" attribute="Column Separator" lineEndContext="#stay">
<DetectChar char="{" attribute="Column Separator" context="Column Separator"/>
<DetectChar char="}" attribute="Column Separator" context="#pop"/>
<RegExpr String="." attribute="Column Separator" context="#stay"/>
<!-- the last regexp is very stupid. Suggestions are welcome! Fallthrough did not help-->
</context>
<!-- end of tabular environment -->
<context name="TabFindEnd" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<RegExpr String="\s*\{" attribute="Normal Text" context="#stay"/>
<RegExpr String="(tabularx|tabular|supertabular|mpsupertabular|xtabular|mpxtabular|longtable)\*?" attribute="Environment" context="#stay"/>
<DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop" endRegion="block"/>
</context>
<!-- math mode: starting with $ or \( -->
<context name="MathMode" attribute="Math" lineEndContext="#stay">
<StringDetect String="$$" attribute="Error" context="#stay" />
@ -255,6 +356,13 @@
<IncludeRules context="MathModeCommon" />
</context>
<!-- math mode: \ensuremath{...} !-->
<context name="MathModeEnsure" attribute="Math" lineEndContext="#stay">
<DetectChar char="{" attribute="Math" context="MathModeEnsure" />
<DetectChar char="}" attribute="Math" context="#pop" />
<IncludeRules context="MathModeCommon" />
</context>
<!-- math mode common -->
<context name="MathModeCommon" attribute="Math" lineEndContext="#stay">
<RegExpr String="\\(begin|end)\s*\{(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|flalign|alignat|xalignat|xxalignat)\*?\}" attribute="Error" context="#stay"/>
@ -283,6 +391,7 @@
<context name="MathModeTextParameterStart" attribute="Normal Text" lineEndContext="#stay" >
<RegExpr String="\\." attribute="Normal Text" context="#stay"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<RegExpr String="\$.*\$" minimal="true" attribute="Math" context="#stay"/>
<DetectChar char="{" attribute="Normal Text" context="MathModeTextParameter"/>
<DetectChar char="}" attribute="Normal Text" context="#pop#pop"/>
<DetectChar char="%" attribute="Comment" context="Comment"/>
@ -296,10 +405,17 @@
<DetectChar char="%" attribute="Comment" context="Comment"/>
</context>
<!-- iffalse aka multiline comment -->
<context name="Multiline Comment" attribute="Comment" lineEndContext="#stay">
<StringDetect String="\fi" attribute="Comment" context="#pop"/>
<StringDetect String="\else" attribute="Comment" context="#pop"/>
</context>
<!-- comment -->
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<RegExpr String="(FIXME|TODO):?" attribute="Alert" context="#stay"/>
<DetectChar char="&#xd7;" attribute="Bullet" context="#stay"/>
<StringDetect String="\KileResetHL" attribute="Comment" context="Normal Text"/>
<StringDetect String="\KateResetHL" attribute="Comment" context="Normal Text"/>
</context>
</contexts>
@ -315,11 +431,18 @@
<itemData name="Verbatim" defStyleNum="dsNormal" color="#a08000" selColor="#80D0FF" bold="0" italic="0"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
<itemData name="Bullet" defStyleNum="dsNormal" color="#FF00C4" bold="1" underline="1"/>
<itemData name="Ampersand" defStyleNum="dsNormal" color="#002793" bold="1" />
<itemData name="Column Separator" defStyleNum="dsNormal" color="#002793" />
<itemData name="Alert" defStyleNum="dsAlert" />
<itemData name="Structure Text" defStyleNum="dsNormal" color="#000000" selColor="#FFFFFF" bold="1" italic="0"/>
<itemData name="Structure Keyword" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="1" italic="0"/>
<itemData name="Structure Math" defStyleNum="dsNormal" color="#00A000" selColor="#FF40FF" bold="1" italic="0"/>
<itemData name="Structure Keyword Mathmode" defStyleNum="dsNormal" color="#606000" selColor="#FFD0FF" bold="1" italic="0"/>
<itemData name="Footnote" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="Footnote Text" defStyleNum="dsNormal" color="#000000" selColor="#FFFFFF" bold="0" italic="0"/>
<itemData name="Footnote Keyword" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="Footnote Math" defStyleNum="dsNormal" color="#00A000" selColor="#FF40FF" bold="0" italic="0"/>
<itemData name="Footnote Keyword Mathmode" defStyleNum="dsNormal" color="#606000" selColor="#FFD0FF" bold="0" italic="0"/>
</itemDatas>
</highlighting>

@ -6,17 +6,13 @@
<!ENTITY duration "(\\(longa|breve)\b|(1|2|4|8|16|32|64|128|256|512|1024|2048)(?!\d))(\s*\.+)?(\s*\*\s*\d+(/\d+)?)*">
<!ENTITY dynamics "p{1,5}|mp|mf|f{1,4}|s?fp|sff?|spp?|[sr]?fz">
<!ENTITY scripts "\d+|accent|marcato|staccat(issim)?o|espressivo|tenuto|portato|(up|down)(bow|mordent|prall)|flageolet|thumb|[lr](heel|toe)|open|stopped|turn|reverseturn|trill|mordent|prall(prall|mordent|down|up)?|lineprall|signumcongruentiae|(short|long|verylong)?fermata|segno|(var)?coda">
<!ENTITY keywords "accepts|alias|consists|defaultchild|denies|description|grobdescriptions|include|invalid|name|objectid|once|remove|sequential|simultaneous|type|version|score|book">
<!ENTITY deprecatedkeywords "consistsend">
<!ENTITY commands "acciaccatura|addQuote|afterGrace|aikenHeads|allowPageTurn|alternative|apply(Context|Music|Output)|appoggiatura|arpeggio(Bracket|Down|Neutral|Up)?|(a|de)scendens|auctum|augmentum|autoBeamO(ff|n)|autochange|balloon(Grob)?Text|bar|barNumberCheck|bendAfter|breathe|break|cadenzaO(ff|n)|caesura|cavum|clef(\s+(treble|violin|G|alto|C|(sub)?bass|F|french|(mezzo)?soprano|(var)?baritone|percussion|tab))?|compressMusic|(end)?(de)?cr|(cue|transposedCue)During|default|deminutum|display(Lily)?Music|divisio(Maior|Maxima|Minima)|(dynamic|dots|phrasingSlur|slur|stem|tie|tuplet)(Down|Neutral|Up)|textLengthO(ff|n)|featherDurations|figure(mode|s)|finalis|flexa|(french|german|italian|semiGerman)Chords|glissando|grace|harmonic|(unH|h)ideNotes|(hide|show)StaffSwitch|inclinatum|(keep|remove)WithTag|key(\s+&pitch;)?|killCues|label|laissezVibrer|linea|mark|maxima|melisma(End)?|newSpacingSection|no(Beam|Break|PageBreak|PageTurn)|normalsize|octave|oneVoice|oriscus|page(-ref|Break|Turn)|parallelMusic|parenthesize|partcombine|partial(\s*&duration;)?|pes|pitchedTrill|quilisma|quoteDuring|relative(\s+&pitch;)?|RemoveEmptyStaffContext|repeat(\s+(unfold|volta|tremolo|percent)(\s+\d+)?)?|repeatTie|resetRelativeOctave|rest|sacredHarpHeads|scoreTweak|easyHeadsO(ff|n)|set(Hairpin|Text)(Cresc|Decresc|Dim)|setTextDecr|shift(Durations|Off|On{1,3})|(slur|tie)(Both|Dashed|Dotted|Solid)|small|spacingTweaks|(start|stop)(Group|(Text|Trill)Span|Staff)|stemBoth|stropha|super|(sustain|sostenuto)(Down|Up)|table-of-contents|tag|tempo(\s*\d+\.*\s*=\s*\d+)?|times?(\s*\d+/\d+)?|tiny|tocItem|transpose(\s+&pitch;\s*&pitch;)?|transposition(\s+&pitch;)|tweak|unfoldRepeats|virg(ul)?a|voice(One|Two|Three|Four)|withMusicProperty|cm|mm|in|pt|major|minor|ionian|locrian|aeolian|mixolydian|lydian|phrygian|dorian">
<!ENTITY deprecatedcommands "newpage|script(Up|Down|Both)|(empty|fat)Text|setEasyHeads|(default|voice|modernVoice|piano|forget)Accidentals|(modern(Voice)?|piano)Cautionaries|noResetKey">
<!ENTITY keywords "accepts|alias|consists|defaultchild|denies|description|grobdescriptions|include|invalid|name|objectid|once|property|remove|sequential|simultaneous|type|version|score|book">
<!ENTITY commands "acciaccatura|addQuote|afterGrace|aikenHeads|allowPageTurn|alternative|apply(Context|Music|Output)|appoggiatura|arpeggio(Bracket|Down|Neutral|Up)?|(a|de)scendens|auctum|augmentum|autoBeamO(ff|n)|autochange|balloon(Grob)?Text|bar|barNumberCheck|bendAfter|breathe|break|cadenzaO(ff|n)|caesura|cavum|clef(\s+(treble|violin|G|alto|C|(sub)?bass|F|french|(mezzo)?soprano|(var)?baritone|percussion|tab))?|compressMusic|(end)?(de)?cr|(cue|transposedCue)During|default|deminutum|display(Lily)?Music|divisio(Maior|Maxima|Minima)|(dynamic|dots|phrasingSlur|slur|stem|tie|tuplet)(Down|Neutral|Up)|(empty|fat)Text|featherDurations|figure(mode|s)|finalis|flexa|(french|german|italian|semiGerman)Chords|glissando|grace|harmonic|(unH|h)ideNotes|(hide|show)StaffSwitch|inclinatum|(keep|remove)WithTag|key(\s+&pitch;)?|killCues|label|laissezVibrer|linea|mark|maxima|melisma(End)?|newSpacingSection|no(Beam|Break|PageBreak|PageTurn)|normalsize|octave|oneVoice|oriscus|page(-ref|Break|Turn)|parallelMusic|parenthesize|partcombine|partial(\s*&duration;)?|pes|pitchedTrill|quilisma|quoteDuring|relative(\s+&pitch;)?|RemoveEmptyStaffContext|repeat(\s+(unfold|volta|tremolo|percent)(\s+\d+)?)?|repeatTie|resetRelativeOctave|rest|sacredHarpHeads|scoreTweak|setEasyHeads|set(Hairpin|Text)(Cresc|Decresc|Dim)|setTextDecr|shift(Durations|Off|On{1,3})|(slur|tie)(Both|Dashed|Dotted|Solid)|small|spacingTweaks|(start|stop)(Group|(Text|Trill)Span|Staff)|stemBoth|stropha|super|(sustain|sostenuto)(Down|Up)|table-of-contents|tag|tempo(\s*\d+\.*\s*=\s*\d+)?|times?(\s*\d+/\d+)?|tiny|tocItem|transpose(\s+&pitch;\s*&pitch;)?|transposition(\s+&pitch;)|tweak|unfoldRepeats|virg(ul)?a|voice(One|Two|Three|Four)|withMusicProperty|cm|mm|in|pt|major|minor|ionian|locrian|aeolian|mixolydian|lydian|phrygian|dorian">
<!ENTITY markupnotextargs "arrow-head|beam|char|double(flat|sharp)|draw-(circle|line)|epsfile|filled-box|flat|fret-diagram(-terse|-verbose)?|fromproperty|justify-(field|string)|lookup|markalphabet|markletter|musicglyph|natural|note-by-number|note|null|semi(flat|sharp)|sesqui(flat|sharp)|sharp|simple|slashed-digit|stencil|strut|tied-lyric|triangle|verbatim-file|wordwrap-field">
<!ENTITY markupwithtextargs "markup|bigger|bold|box|bracket|caps|(center|general|left|right)-align|circle|column|combine|concat|dir-column|dynamic|fill-line|finger|fontCaps|fontsize|fraction|halign|hbracket|hcenter-in|hcenter|hspace|huge|italic|justify|larger?|line|lower|magnify|medium|normal-size-(sub|super)|normal-text|normalsize|number|on-the-fly|override|pad-(around|markup|to-box|x)|page-ref|postscript|put-adjacent|raise|roman|rotate|sans|small(er)?|smallCaps|sub|super|teeny|text|tiny|translate(-scaled)?|transparent|typewriter|underline|upright|vcenter|whiteout|with-(color|dimensions|url)|wordwrap(-string)?|(markup|column-|justified-|override-|wordwrap-)lines">
<!ENTITY deprecatedmarkup "center">
<!ENTITY headervars "dedication|(sub){,2}title|poet|composer|meter|opus|arranger|instrument|piece|breakbefore|copyright|tagline|mutopia(title|composer|poet|opus|instrument)|date|enteredby|source|style|maintainer(Email|Web)?|moreInfo|lastupdated|texidoc">
<!ENTITY papervars "annotate-spacing|(print-)?first-page-number|print-page-number|paper-(width|height)|(top|bottom|left|right)-margin|line-width|(head|foot)-separation|page-top-space|ragged-(bottom|last-bottom|right)|page-count|between-system-(space|padding)|page-breaking-between-system-padding|horizontal-shift|(before|after|between)-title-space|printallheaders|indent|force-assignment|input-encoding|output-scale|blank(-after-score|-last)?-page-force|page-limit-inter-system-space(-factor)?|(systemSeparator|(even|odd)(Footer|Header)|(book|score|toc)Title|tocItem)Markup">
<!ENTITY layoutvars "system-count|indent">
<!ENTITY toplevelvars "dash(Hat|Plus|Dash|Bar|Larger|Dot|Underscore)|fermataMarkup|pipeSymbol|slashSeparator">
<!ENTITY performer "Beam|Control_track|Drum_note|Dynamic|Key|Lyric|Note|Piano_pedal|Slur|Staff|Swallow|Tempo|Tie|Time_signature">
<!ENTITY translator "Note_swallow|Rest_swallow|Skip_event_swallow|Timing">
<!ENTITY engraver "Accidental|Ambitus|Arpeggio|Auto_beam|Axis_group|Balloon|Bar|Bar_number|Beam|Bend|Break_align|Breathing_sign|Chord_name|Chord_tremolo|Clef|Cluster_spanner|Collision|Completion_heads|Custos|Default_bar_line|Dot_column|Dots|Drum_notes|Dynamic|Engraver|Extender|Figured_bass|Figured_bass_position|Fingering|Font_size|Forbid_line_break|Fretboard|Glissando|Grace_beam|Grace|Grace_spacing|Grid_line_span|Grid_point|Grob_pq|Hara_kiri|Horizontal_bracket|Hyphen|Instrument_name|Instrument_switch|Key|Laissez_vibrer|Ledger_line|Ligature_bracket|Lyric|Mark|Measure_grouping|Melody|Mensural_ligature|Metronome_mark|Multi_measure_rest|New_fingering|Note_head_line|Note_heads|Note_name|Note_spacing|Ottava_spanner|Output_property|Page_turn|Paper_column|Parenthesis|Part_combine|Percent_repeat|Phrasing_slur|Piano_pedal_align|Piano_pedal|Pitch_squash|Pitched_trill|Repeat_acknowledge|Repeat_tie|Rest_collision|Rest|Rhythmic_column|Script_column|Script|Script_row|Separating_line_group|Slash_repeat|Slur|Spacing|Span_arpeggio|Span_bar|Spanner_break_forbid|Staff_collecting|Staff_symbol|Stanza_number_align|Stanza_number|Stem|String_number|Swallow|System_start_delimiter|Tab_harmonic|Tab_note_heads|Tab_staff_symbol|Text|Text_spanner|Tie|Time_signature|Translator|Trill_spanner|Tuplet|Tweak|Vaticana_ligature|Vertical_align|Vertically_spaced_contexts|Volta">
@ -24,7 +20,7 @@
<!ENTITY schemename "[a-zA-Z#][^\s(){}[\];$&quot;]*">
<!ENTITY schemefunc "\b(define|defined\?|define\*(-public)?|define-(\*|builtin-markup-(list-)?command|class|(extra-)?display-method|fonts?|grob-property|ly-syntax(-loc|-simple)?|macro(-public)?|markup-(list-)command|method|module|music-function|post-event-display-method|public(-macro|-toplevel)?|safe-public|span-event-display-method)|defmacro(\*(-public)?)?|lambda\*?|and|or|if|cond|case|let\*?|letrec|begin|do|delay|set!|else|(quasi)?quote|unquote(-splicing)?|(define|let|letrec)-syntax|syntax-rules|not|boolean\?|eq\?|eqv\?|equal\?|pair\?|cons|set-c[ad]r!|c[ad]{1,4}r|null\?|list\?|list|length|append|reverse|list-ref|mem[qv]|member|ass[qv]|assoc|symbol\?|symbol-&gt;string|string-&gt;symbol|number\?|complex\?|real\?|rational\?|integer\?|exact\?|inexact\?|zero\?|positive\?|negative\?|odd\?|even\?|max|min|abs|quotient|remainder|modulo|gcd|lcm|numerator|denominator|floor|ceiling|truncate|round|rationalize|exp|log|sin|cos|tan|asin|acos|atan|sqrt|expt|make-rectangular|make-polar|real-part|imag-part|magnitude|angle|exact-&gt;inexact|inexact-&gt;exact|number-&gt;string|string-&gt;number|char((-ci)?(=\?|&lt;\?|&gt;\?|&lt;=\?|&gt;=\?)|-alphabetic\?|\?|-numeric\?|-whitespace\?|-upper-case\?|-lower-case\?|-&gt;integer|-upcase|-downcase|-ready\?)|integer-&gt;char|make-string|string(\?|-copy|-fill!|-length|-ref|-set!|(-ci)?(=\?|&lt;\?|&gt;\?|&lt;=\?|&gt;=\?)|-append)|substring|make-vector|vector(\?|-length|-ref|-set!|-fill!)?|procedure\?|apply|map|for-each|force|call-with-(current-continuation|(in|out)put-file)|(in|out)put-port\?|current-(in|out)put-port|open-(in|out)put-file|close-(in|out)put-port|eof-object\?|read|(read|peek)-char|write(-char)?|display|newline|call/cc|list-tail|string-&gt;list|list-&gt;string|vector-&gt;list|list-&gt;vector|with-input-from-file|with-output-to-file|load|transcript-(on|off)|eval|dynamic-wind|port\?|values|call-with-values|(scheme-report-|null-|interaction-)environment)(?=($|\s|\)))">
]>
<language name="LilyPond" section="Other" version="2.20" kateversion="2.4" extensions="*.ly;*.LY;*.ily;*.ILY;*.lyi;*.LYI" mimetype="text/x-lilypond" author="Wilbert Berendsen (info@wilbertberendsen.nl)" license="LGPL">
<language name="LilyPond" section="Other" version="2.20" kateversion="2.4" extensions="*.ly;*.LY;*.ily;*.ILY" mimetype="text/x-lilypond" author="Wilbert Berendsen (info@wilbertberendsen.nl)" license="LGPL">
<!--
@ -39,8 +35,6 @@
- recognize lilypond words like ChoirStaff etc. only in sections and after \set, \override etc.
- highlight some standard Scheme function names
- add \figuremode recognition
- all Scheme stuff has a nice, very light background, to show where Lilypond is in Scheme mode.
- mark some deprecated (pre 2.12) LilyPond commands and properties
October, 2007
New version by Wilbert Berendsen (info@wilbertberendsen.nl)
@ -267,7 +261,6 @@
<item> doubleSlurs </item>
<item> drumPitchTable </item>
<item> drumStyleTable </item>
<item> dynamicAbsoluteVolumeFunction </item>
<item> explicitClefVisibility </item>
<item> explicitKeySignatureVisibility </item>
<item> extendersOverRests </item>
@ -307,8 +300,6 @@
<item> measurePosition </item>
<item> melismaBusyProperties </item>
<item> metronomeMarkFormatter </item>
<item> middleCClefPosition </item>
<item> middleCOffset </item>
<item> middleCPosition </item>
<item> midiInstrument </item>
<item> midiMaximumVolume </item>
@ -374,20 +365,6 @@
<item> voltaSpannerDuration </item>
<item> whichBar </item>
</list>
<list name="deprecatedproperties">
<item> barNumberAlignSymbol </item>
<item> centralCPosition </item>
<item> extraVerticalExtent </item>
<item> fingerHorizontalDirection </item>
<item> instr </item>
<item> instrument </item>
<item> keyAccidentalOrder </item>
<item> minimumVerticalExtent </item>
<item> rehearsalMarkAlignSymbol </item>
<item> soloADue </item>
<item> tupletNumberFormatFunction </item>
<item> vocNam </item>
</list>
<list name="musicexpressions">
<item> AbsoluteDynamicEvent </item>
<item> AnnotateOutputEvent </item>
@ -632,7 +609,7 @@
<!-- Entry point -->
<context name="lilypond" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="music"/>
<RegExpr String="\b[a-z]+\s*=" insensitive="true" lookAhead="true" context="assignment"/>
<RegExpr String="[a-z]+\s*=" insensitive="true" attribute="User Command"/>
</context>
<!-- Music expressions -->
@ -692,24 +669,14 @@
<RegExpr String="\\(header|paper|layout|midi|with)\b" context="section"/>
<RegExpr String="\\(new|context|change)\b" attribute="Keyword" context="context"/>
<RegExpr String="\\(un)?set\b" attribute="Keyword" context="set"/>
<RegExpr String="\\(override(Property)?|revert)&b;" attribute="Keyword" context="override"/>
<RegExpr String="\\skip&b;" attribute="Command" context="duration"/>
<RegExpr String="\\(override(Property)?|revert)\b" attribute="Keyword" context="override"/>
<RegExpr String="\\(&keywords;)&b;" attribute="Keyword"/>
<RegExpr String="\\(&commands;)&b;" attribute="Command"/>
<RegExpr String="\\(&toplevelvars;)&b;" attribute="Variable"/>
<RegExpr String="\\(&deprecatedkeywords;)&b;" attribute="Deprecated Keyword"/>
<RegExpr String="\\(&deprecatedcommands;)&b;" attribute="Deprecated Command"/>
<RegExpr String="\\(translator|newcontext)\b" attribute="Deprecated Keyword" context="context"/>
<RegExpr String="\\property&b;" attribute="Deprecated Keyword" context="override"/>
<RegExpr String="\\skip&b;" attribute="Command" context="duration"/>
<RegExpr String="\\[A-Za-z]+" attribute="User Command"/>
<DetectChar char="\" attribute="Invalid"/>
</context>
<context name="assignment" attribute="Normal Text" lineEndContext="#pop">
<RegExpr String="\b(&toplevelvars;)\b" attribute="Variable" context="#pop"/>
<RegExpr String="[a-z]+" insensitive="true" attribute="User Command" context="#pop"/>
</context>
<context name="pitch" attribute="Pitch" lineEndContext="#stay"
fallthrough="true" fallthroughContext="#pop">
<RegExpr String="=\s*('+|,+)?" attribute="Check"/>
@ -725,8 +692,8 @@
<context name="chord" attribute="Normal Text" lineEndContext="#stay">
<DetectChar char="&gt;" context="chordend"/>
<RegExpr String="&pitch;" context="chordpitch"/>
<AnyChar String="&lt;{}srR" attribute="Invalid"/><!-- no rests in chord allowed -->
<RegExpr String="&pitch;" context="chordpitch"/>
<IncludeRules context="music"/>
</context>
@ -767,13 +734,13 @@
<!-- Scheme -->
<context name="scheme" attribute="Scheme" lineEndContext="#stay"
fallthrough="true" fallthroughContext="scheme2">
<DetectSpaces/>
<DetectSpaces context="scheme2"/>
</context>
<context name="scheme2" attribute="Scheme" lineEndContext="#pop#pop">
<DetectChar char="(" attribute="Scheme Keyword" context="scheme3" beginRegion="scheme"/>
<IncludeRules context="schemerules"/>
<DetectSpaces lookAhead="true" context="#pop#pop"/>
<DetectSpaces context="#pop#pop"/>
</context>
<context name="scheme3" attribute="Scheme" lineEndContext="#stay">
@ -784,15 +751,15 @@
<context name="schemerules" attribute="Scheme" lineEndContext="#stay">
<DetectChar char="(" context="schemerules" beginRegion="scheme"/>
<DetectChar char=")" context="#pop" endRegion="scheme"/>
<DetectChar char="&quot;" context="schemestring"/>
<DetectChar char=";" context="schemecommentline"/>
<DetectChar char="&quot;" context="string"/>
<DetectChar char=";" context="commentline"/>
<DetectChar char="$" context="schemesub"/>
<DetectChar char="'" context="schemequote"/>
<Detect2Chars char="#" char1="!" context="schemecommentblock" beginRegion="schemecomment"/>
<Detect2Chars char="#" char1="!" context="commentblockscheme" beginRegion="schemecomment"/>
<Detect2Chars char="#" char1="{" attribute="Scheme Keyword" context="schemelily" beginRegion="schemelily"/>
<keyword String="musicexpressions" attribute="Scheme Keyword"/>
<keyword String="contexts" attribute="Scheme Keyword"/>
<keyword String="layoutobjects" attribute="Scheme Keyword"/>
<keyword String="contexts" attribute="Context"/>
<keyword String="layoutobjects" attribute="Layout Object"/>
<RegExpr String="[-+]?(\d+(\.\d+)?|\.\d+)" attribute="Scheme Value"/>
<RegExpr String="#(t|f|b[-+]?[01.]+|o[-+]?[0-7.]+|d[-+]?[0-9.]+|x[-+]?[0-9a-f.]+)"
insensitive="true" attribute="Scheme Value"/>
@ -811,12 +778,8 @@
<IncludeRules context="lilypond"/>
</context>
<context name="schemecommentline" attribute="Scheme Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts"/>
</context>
<context name="schemecommentblock" attribute="Scheme Comment" lineEndContext="#stay">
<Detect2Chars char="!" char1="#" attribute="Scheme Comment" context="#pop" endRegion="schemecomment"/>
<context name="commentblockscheme" attribute="Comment" lineEndContext="#stay">
<Detect2Chars char="!" char1="#" attribute="Comment" context="#pop" endRegion="schemecomment"/>
<IncludeRules context="##Alerts"/>
</context>
@ -825,11 +788,6 @@
<RegExpr String="&schemename;" attribute="Scheme Subst" context="#pop"/>
</context>
<context name="schemestring" attribute="Scheme String" lineEndContext="#stay">
<DetectChar char="&quot;" attribute="Scheme String" context="#pop"/>
<RegExpr String="\\[0fnrtav\\&quot;]"/>
</context>
<!-- NoteMode -->
<context name="notemode" attribute="Other Mode" lineEndContext="#stay"
fallthrough="true" fallthroughContext="#pop">
@ -976,7 +934,6 @@
<DetectChar char="{" attribute="Keyword" context="markuprules" beginRegion="markup"/>
<RegExpr String="\\score\b" attribute="Markup" context="notemode"/>
<RegExpr String="\\(&markupnotextargs;|&markupwithtextargs;)&b;" attribute="Markup"/>
<RegExpr String="\\(&deprecatedmarkup;)&b;" attribute="Deprecated Markup"/>
<RegExpr String="\\[A-Za-z]+(-[A-Za-z]+)*" attribute="User Command"/>
<IncludeRules context="basic"/>
</context>
@ -999,7 +956,6 @@
<keyword String="contexts" attribute="Context"/>
<keyword String="layoutobjects" attribute="Layout Object"/>
<keyword String="properties" attribute="Property"/>
<keyword String="deprecatedproperties" attribute="Deprecated Property"/>
<RegExpr String="\b(&headervars;|&papervars;|&layoutvars;)\b" attribute="Variable"/>
<RegExpr String="(&quot;?)\b(&engravers;)\b\1" attribute="Engraver"/>
<IncludeRules context="default"/>
@ -1011,7 +967,6 @@
<DetectSpaces/>
<keyword String="contexts" attribute="Context" context="context2"/>
<RegExpr String="[A-Za-z]+" attribute="User Command" context="context2"/>
<DetectChar char="{" attribute="Keyword" context="section2" beginRegion="section"/>
</context>
<context name="context2" attribute="Normal Text" lineEndContext="#stay"
@ -1027,7 +982,6 @@
<keyword String="contexts" attribute="Context"/>
<DetectChar char="."/>
<keyword String="properties" attribute="Property" context="#pop"/>
<keyword String="deprecatedproperties" attribute="Deprecated Property" context="#pop"/>
<RegExpr String="[A-Za-z]+" attribute="User Command" context="#pop"/>
</context>
@ -1068,16 +1022,10 @@
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Quoted Text" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Scheme" defStyleNum="dsFloat" backgroundColor="#fff6ff"/>
<itemData name="Scheme Keyword" defStyleNum="dsFloat" bold="true" backgroundColor="#fff6ff"/>
<itemData name="Scheme Subst" defStyleNum="dsDecVal" bold="true" backgroundColor="#fff6ff"/>
<itemData name="Scheme Value" defStyleNum="dsDecVal" backgroundColor="#fff6ff"/>
<itemData name="Scheme String" defStyleNum="dsString" backgroundColor="#fff6ff"/>
<itemData name="Scheme Comment" defStyleNum="dsComment" backgroundColor="#fff6ff"/>
<itemData name="Deprecated Keyword" defStyleNum="dsKeyword" backgroundColor="#fcc"/>
<itemData name="Deprecated Command" defStyleNum="dsFunction" backgroundColor="#fcc"/>
<itemData name="Deprecated Property" defStyleNum="dsDataType" backgroundColor="#fcc"/>
<itemData name="Deprecated Markup" defStyleNum="dsBaseN" color="#009817" backgroundColor="#fcc"/>
<itemData name="Scheme" defStyleNum="dsFloat"/>
<itemData name="Scheme Keyword" defStyleNum="dsFloat" bold="true"/>
<itemData name="Scheme Subst" defStyleNum="dsDecVal" bold="true"/>
<itemData name="Scheme Value" defStyleNum="dsDecVal"/>
<itemData name="Invalid" defStyleNum="dsError"/>
</itemDatas>
</highlighting>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Literate Haskell" version="1.04" kateversion="2.4" section="Sources" extensions="*.lhs" author="Marcel Martin (mmar@freenet.de)" license="">
<language name="Literate Haskell" version="1.05" kateversion="2.4" section="Sources" extensions="*.lhs" author="Marcel Martin (mmar@freenet.de)" license="">
<highlighting>
<list name="keywords">
<item> case </item>
@ -327,7 +327,7 @@
<context attribute="Comment" lineEndContext="#stay" name="literate-normal">
<DetectChar attribute="Special" context="normal" char="&gt;" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="literate-normal" name="normal">
<context attribute="Normal Text" lineEndContext="#pop" name="normal">
<Detect2Chars attribute="Comment" context="comment_multi_line" char="{" char1="-" />
<Detect2Chars attribute="Comment" context="comment_single_line" char="-" char1="-" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
@ -343,7 +343,7 @@
<Float attribute="Float" context="#stay" />
<Int attribute="Decimal" context="#stay" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="comment_single_line" />
<context attribute="Comment" lineEndContext="#pop#pop" name="comment_single_line" />
<context attribute="Comment" lineEndContext="#stay" name="comment_multi_line">
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" />
</context>

@ -1,237 +1,300 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Lua" version="0.23" kateversion="2.3" section="Scripts" extensions="*.lua" mimetype="text/x-lua">
<!--
LUA (www.lua.org) syntax highlighting for Kate
CHANGES
[ Version 1.03 (2007-09-12) by Bruno Massa ]
- [=[ ]=] comment and string style is now working (thanks to Dominik and Sebastian)
- it uses DoxygenLua.xml to format the comments in a Doxygen style
[ Version 1.02 (2007-07-15) by Bruno Massa ]
- based on Lua 5.1
- highlight the Kepler function (cgilua, luasql, lfs, luazip)
- true, false and nil are highlighted in black
- table.foreach and foreachi are marked as alerts
[ Version 1.01 (2007-01-01) by Bruno Massa ]
- highlighting similar to PHP
- error detection on one-line strings and common mistakes from other languages like using "!=" "++"
- uppercase-only variables are highlighted as constants
- { } now is collapsable
[ Version 1.00 (2006-12-05) by Bruno Massa ]
- based on Lua 5.0.2 syntax
- strings "[[ ]]" and single quoted strings
- block comments
- function, if/elseif/else, do-end chunks, comment blocks, strings using [[ ]] collapsable
- nil, false and true consided pseudo-variables (displayed as numbers)
- NOTE, FIXME, TODO alerts added on comments
- improved highlighting
-->
<language name="Lua" version="1.03" kateversion="2.4" section="Scripts" extensions="*.lua" mimetype="text/x-lua">
<highlighting>
<list name="keywords">
<item> and </item>
<item> end </item>
<item> function </item>
<item> in </item>
<item> local </item>
<item> return </item>
<item> not </item>
<item> or </item>
</list>
<list name="control">
<item> break </item>
<item> for </item>
<item> do </item>
<item> else </item>
<item> elseif </item>
<item> end </item>
<item> for </item>
<item> if </item>
<item> nil </item>
<item> repeat </item>
<item> return </item>
<item> then </item>
<item> function </item>
<item> not </item>
<item> until </item>
<item> else </item>
<item> or </item>
<item> while </item>
<item> elseif </item>
<item> in </item>
<item> repeat </item>
</list>
<list name="pseudo-variables">
<item> nil </item>
<item> false </item>
<item> true </item>
</list>
<list name="basefunc">
<item> string.byte </item>
<item> string.char </item>
<item> string.find </item>
<item> string.len </item>
<item> string.lower </item>
<item> string.rep </item>
<item> string.sub </item>
<item> string.upper </item>
<item> string.format </item>
<item> string.gfind </item>
<item> string.gsub </item>
<item> table.concat </item>
<item> table.foreach </item>
<item> table.foreachi </item>
<item> table.getn </item>
<item> table.sort </item>
<item> table.insert </item>
<item> table.remove </item>
<item> table.setn </item>
<item> math.abs </item>
<item> math.sin </item>
<item> math.cos </item>
<item> math.tan </item>
<item> math.asin </item>
<item> math.acos </item>
<item> math.atan </item>
<item> math.atan2 </item>
<item> math.ceil </item>
<item> math.floor </item>
<item> math.mod </item>
<item> math.frexp </item>
<item> math.ldexp </item>
<item> math.squrt </item>
<item> math.min </item>
<item> math.max </item>
<item> math.log </item>
<item> math.log10 </item>
<item> math.exp </item>
<item> math.deg </item>
<item> math.rad </item>
<item> math.random </item>
<item> math.randomseed </item>
<item> io.close </item>
<item> io.flush </item>
<item> io.input </item>
<item> io.lines </item>
<item> io.open </item>
<item> io.output </item>
<item> io.read </item>
<item> io.stderr </item>
<item> io.stdin </item>
<item> io.stdout </item>
<item> io.tmpfile </item>
<item> io.write </item>
<item> os.clock </item>
<item> os.date </item>
<item> os.difftime </item>
<item> os.execute </item>
<item> os.exit </item>
<item> os.getenv </item>
<item> os.remove </item>
<item> os.rename </item>
<item> os.setlocale </item>
<item> os.time </item>
<item> os.tmpname </item>
<item> debug.getinfo </item>
<item> debug.getlocal </item>
<item> debug.setlocal </item>
<item> debug.sethook </item>
<item> debug.gethook </item>
<item> assert </item>
<item> collectgarbage </item>
<item> dofile </item>
<item> error </item>
<item> next </item>
<item> print </item>
<item> rawget </item>
<item> rawset </item>
<item> tonumber </item>
<item> tostring </item>
<item> type </item>
<item> _ALERT </item>
<item> _ERRORMESSAGE </item>
<item> call </item>
<item> copytagmethods </item>
<item> dostring </item>
<item> foreach </item>
<item> foreachi </item>
<item> getglobal </item>
<item> getn </item>
<item> gettagmethod </item>
<item> globals </item>
<item> newtag </item>
<item> setglobal </item>
<item> settag </item>
<item> settagmethod </item>
<item> sort </item>
<item> tag </item>
<item> tinsert </item>
<item> tremove </item>
<item> openfile </item>
<item> closefile </item>
<item> flush </item>
<item> seek </item>
<item> setlocale </item>
<item> execute </item>
<item> remove </item>
<item> rename </item>
<item> tmpname </item>
<item> getenv </item>
<item> date </item>
<item> clock </item>
<item> exit </item>
<item> readfrom </item>
<item> writeto </item>
<item> appendto </item>
<item> read </item>
<item> write </item>
<item> abs </item>
<item> sin </item>
<item> cos </item>
<item> tan </item>
<item> asin </item>
<item> acos </item>
<item> atan </item>
<item> atan2 </item>
<item> ceil </item>
<item> floor </item>
<item> mod </item>
<item> frexp </item>
<item> ldexp </item>
<item> squrt </item>
<item> min </item>
<item> max </item>
<item> log </item>
<item> log10 </item>
<item> exp </item>
<item> deg </item>
<item> rad </item>
<item> random </item>
<item> randomseed </item>
<item> strlen </item>
<item> strsub </item>
<item> strlower </item>
<item> strupper </item>
<item> strchar </item>
<item> strrep </item>
<item> ascii </item>
<item> strbyte </item>
<item> format </item>
<item> strfind </item>
<item> gsub </item>
<item> getinfo </item>
<item> getlocal </item>
<item> setlocal </item>
<item> setcallhook </item>
<item> setlinehook </item>
<item> getglobals </item>
<item> getmetatable </item>
<item> gcinfo </item>
<item> ipairs </item>
<item> loadfile </item>
<item> loadstring </item>
<item> pairs </item>
<item> pcall </item>
<item> require </item>
<item> setglobals </item>
<item> setmetatable </item>
<item> unpack </item>
<item> LUA_PATH </item>
<item> _LOADED </item>
<item> _VERSION </item>
<item> string.byte </item> <item> string.char </item>
<item> string.find </item> <item> string.len </item>
<item> string.lower </item> <item> string.rep </item>
<item> string.sub </item> <item> string.upper </item>
<item> string.format </item><item> string.gfind </item>
<item> string.gsub </item> <item> table.concat </item>
<item> table.getn </item> <item> table.sort </item>
<item> table.insert </item> <item> table.remove </item>
<item> table.setn </item> <item> math.abs </item>
<item> math.sin </item> <item> math.cos </item>
<item> math.tan </item> <item> math.asin </item>
<item> math.acos </item> <item> math.atan </item>
<item> math.atan2 </item> <item> math.ceil </item>
<item> math.floor </item> <item> math.mod </item>
<item> math.frexp </item> <item> math.ldexp </item>
<item> math.squrt </item> <item> math.min </item>
<item> math.max </item> <item> math.log </item>
<item> math.log10 </item> <item> math.exp </item>
<item> math.deg </item> <item> math.rad </item>
<item> math.random </item> <item> math.randomseed </item>
<item> io.close </item> <item> io.flush </item>
<item> io.input </item> <item> io.lines </item>
<item> io.open </item> <item> io.output </item>
<item> io.read </item> <item> io.stderr </item>
<item> io.stdin </item> <item> io.stdout </item>
<item> io.tmpfile </item> <item> io.write </item>
<item> os.clock </item> <item> os.date </item>
<item> os.difftime </item> <item> os.execute </item>
<item> os.exit </item> <item> os.getenv </item>
<item> os.remove </item> <item> os.rename </item>
<item> os.setlocale </item> <item> os.time </item>
<item> os.tmpname </item> <item> debug.getinfo </item>
<item> debug.getlocal </item><item> debug.setlocal </item>
<item> debug.sethook </item><item> debug.gethook </item>
<item> assert </item> <item> collectgarbage </item>
<item> dofile </item> <item> error </item>
<item> next </item> <item> print </item>
<item> rawget </item> <item> rawset </item>
<item> tonumber </item> <item> tostring </item>
<item> type </item> <item> _ALERT </item>
<item> _ERRORMESSAGE </item><item> call </item>
<item> getmetatable </item><item> gcinfo </item>
<item> ipairs </item> <item> loadfile </item>
<item> loadstring </item> <item> pairs </item>
<item> pcall </item> <item> require </item>
<item> LUA_PATH </item> <item> setmetatable </item>
<item> _LOADED </item> <item> _VERSION </item>
<item> gettagmethod </item><item> globals </item>
<item> newtag </item> <item> setglobal </item>
<item> settag </item> <item> settagmethod </item>
<item> setlinehook </item> <item> getglobals </item>
<item> copytagmethods </item><item> dostring </item>
<item> getglobal </item> <item> tag </item>
<item> setglobals </item> <item> unpack </item>
<item> exit </item> <item> readfrom </item>
<item> writeto </item> <item> appendto </item>
<item> read </item> <item> write </item>
<item> getinfo </item> <item> getlocal </item>
<item> setlocal </item> <item> setcallhook </item>
<item> tinsert </item> <item> tremove </item>
<item> flush </item> <item> seek </item>
<item> setlocale </item> <item> execute </item>
<item> remove </item> <item> rename </item>
<item> tmpname </item> <item> getenv </item>
<item> getn </item> <item> sort </item>
<item> table.foreach </item> <item> table.foreachi </item>
<item> foreach </item> <item> foreachi </item>
<item> abs </item> <item> sin </item>
<item> cos </item> <item> tan </item>
<item> asin </item> <item> acos </item>
<item> atan </item> <item> atan2 </item>
<item> ceil </item> <item> floor </item>
<item> mod </item> <item> frexp </item>
<item> ldexp </item> <item> squrt </item>
<item> min </item> <item> max </item>
<item> log </item> <item> log10 </item>
<item> exp </item> <item> deg </item>
<item> rad </item> <item> random </item>
<item> randomseed </item> <item> strlen </item>
<item> strsub </item> <item> strlower </item>
<item> strupper </item> <item> strchar </item>
<item> strrep </item> <item> ascii </item>
<item> strbyte </item> <item> format </item>
<item> strfind </item> <item> gsub </item>
<item> openfile </item> <item> closefile </item>
<item> date </item> <item> clock </item>
<item> cgilua </item> <item> cgilua.lp.translate </item>
<item> cgilua.contentheader </item> <item> cgilua.script_file </item>
<item> cgilua.header </item> <item> cgilua.script_path </item>
<item> cgilua.htmlheader </item> <item> cgilua.script_pdir </item>
<item> cgilua.redirect </item> <item> cgilua.script_vdir </item>
<item> cgilua.mkabsoluteurl </item> <item> cgilua.script_vpath </item>
<item> cgilua.mkurlpath </item> <item> cgilua.servervariable </item>
<item> cgilua.put </item> <item> cgilua.urlpath </item>
<item> cgilua.handlelp </item> <item> cgilua.errorlog </item>
<item> cgilua.lp.compile </item> <item> cgilua.seterrorhandler </item>
<item> cgilua.lp.include </item> <item> cgilua.seterroroutput </item>
<item> cgilua.lp.setcompatmode </item> <item> cgilua.addclosefunction </item>
<item> cgilua.lp.setoutfunc </item> <item> cgilua.addopenfunction </item>
<item> cgilua.addscripthandler </item> <item> cgilua.addscripthandler </item>
<item> cgilua.buildprocesshandler </item> <item> cgilua.setmaxfilesize </item>
<item> cgilua.setmaxinput </item> <item> cgilua.urlcode.encodetable </item>
<item> cgilua.urlcode.escape </item> <item> cgilua.urlcode.parsequery </item>
<item> cgilua.urlcode.unescape </item> <item> cgilua.urlcode.insertfield </item>
<item> cgilua.setoutfunc </item> <item> cgilua.addopenfunction </item>
<item> cgilua.doif </item> <item> cgilua.doscript </item>
<item> cgilua.pack </item> <item> cgilua.splitpath </item>
<item> cgilua.cookies.get </item> <item> cgilua.cookies.set </item>
<item> cgilua.cookies.sethtml </item> <item> cgilua.cookies.delete </item>
<item> cgilua.serialize </item> <item> cgilua.session.close </item>
<item> cgilua.session.data </item> <item> cgilua.session.load </item>
<item> cgilua.session.new </item> <item> cgilua.session.open </item>
<item> cgilua.session.save </item> <item> cgilua.session.setsessiondir </item>
<item> cgilua.session.delete </item> <item> cgilua.session </item>
<item> cgilua.cookies </item>
<item> numrows </item> <item> connect </item>
<item> close </item> <item> fetch </item>
<item> getcolnames </item> <item> getcoltypes </item>
<item> commit </item> <item> rollback </item>
<item> setautocommit </item>
<item> lfs </item> <item> lfs.attributes </item>
<item> lfs.chdir </item> <item> lfs.currentdir </item>
<item> lfs.dir </item> <item> lfs.lock </item>
<item> lfs.mkdir </item> <item> lfs.rmdir </item>
<item> lfs.touch </item> <item> lfs.unlock </item>
<item> zip </item> <item> zip.open </item>
<item> zip.openfile </item> <item> files </item>
<item> seek </item> <item> close </item>
<item> lines </item>
</list>
<list name="attention">
<item> TODO </item>
<item> FIXME </item>
<item> NOTE </item>
</list>
<list name="deprecated">
<item> table.foreach </item> <item> table.foreachi </item>
<item> foreach </item> <item> foreachi </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="BaseFunc" context="#stay" String="basefunc"/>
<HlCChar attribute="Char" context="#stay"/>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="##DoxygenLua" />
<keyword attribute="Error" context="#stay" String="deprecated" />
<DetectSpaces />
<RegExpr attribute="Comment" context="Block Comment" beginRegion="block comment" String="--\[(=*)\[" dynamic="true" />
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
<DetectChar attribute="Comment" context="Comment" char="#"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<AnyChar attribute="Symbol" context="#stay" String="!%&amp;()+,-&lt;=&gt;?[]^{|}~"/>
<RegExpr attribute="Number" context="#stay" String="\d*\.?\d*e?\d+"/>
<RegExpr attribute="Strings" context="String_block" String="\[(=*)\[" dynamic="true" />
<DetectChar attribute="Strings" context="String_single" char="'"/>
<DetectChar attribute="Strings" context="String_double" char="&quot;"/>
<keyword attribute="BFunc" context="#stay" String="basefunc"/>
<RegExpr attribute="Keyword" context="#stay" beginRegion="chunk" String="\bfunction\b" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Keyword" context="#stay" String="pseudo-variables" />
<RegExpr attribute="Control" context="#stay" endRegion="chunk" beginRegion="chunk" String="\belse\b" />
<RegExpr attribute="Control" context="#stay" endRegion="chunk" beginRegion="chunk" String="\belseif\b" />
<RegExpr attribute="Control" context="#stay" beginRegion="chunk" String="\bdo\b" />
<RegExpr attribute="Control" context="#stay" beginRegion="chunk" String="\bif\b" />
<RegExpr attribute="Control" context="#stay" endRegion="chunk" String="\bend\b" />
<keyword attribute="Control" context="#stay" String="control" />
<DetectChar attribute="Symbols" context="#stay" beginRegion="table" char="{" />
<DetectChar attribute="Symbols" context="#stay" endRegion="table" char="}" />
<RegExpr attribute="Numbers" context="#stay" String="\b\d*\.?\d*(e|e\-|e\+)?\d+\b"/>
<RegExpr attribute="Numbers" context="#stay" String="\b-?0[xX][0-9a-fA-F]+\b"/>
<RegExpr attribute="Normal Text" context="#stay" String="\b[a-zA-Z_][a-zA-Z0-9_]*(?=\s*([({'&quot;]|\[\[))\b" />
<RegExpr attribute="Constant" context="#stay" String="\b[A-Z_][A-Z0-9_]*\b" />
<RegExpr attribute="Variable" context="#stay" String="\b[a-zA-Z_][a-zA-Z0-9_]*\b" />
<Detect2Chars attribute="Error" context="#stay" char="!" char1="="/>
<Detect2Chars attribute="Error" context="#stay" char="-" char1="="/>
<Detect2Chars attribute="Error" context="#stay" char="+" char1="="/>
<Detect2Chars attribute="Error" context="#stay" char="+" char1="+"/>
<Detect2Chars attribute="Error" context="#stay" char="." char1="="/>
<AnyChar attribute="Symbols" context="#stay" String="[]().=~+-*/^&gt;&lt;#;" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<Detect2Chars attribute="Alerts" context="#stay" char="-" char1="-" />
<keyword attribute="Alerts" context="#stay" String="attention"/>
</context>
<context name="Block Comment" attribute="Comment" lineEndContext="#stay" dynamic="true" >
<RegExpr attribute="Comment" context="#pop" endRegion="block comment" String="\]%1\]" dynamic="true" />
<Detect2Chars attribute="Alerts" context="#stay" char="-" char1="-" />
<keyword attribute="Alerts" context="#stay" String="attention" />
</context>
<context name="String_single" attribute="Strings" lineEndContext="Error">
<RegExpr attribute="Symbols" context="#stay" String="\\(a|b|f|n|r|t|v|\\|&quot;|\'|[|])" />
<DetectChar attribute="Strings" context="#pop" char="'"/>
</context>
<context name="String_double" attribute="Strings" lineEndContext="Error">
<RegExpr attribute="Symbols" context="#stay" String="\\[abfnrtv'&quot;\\\[\]]" />
<DetectChar attribute="Strings" context="#pop" char="&quot;"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" />
<context name="String_block" attribute="Strings" lineEndContext="#stay" dynamic="true">
<RegExpr attribute="Symbols" context="#stay" String="\\(a|b|f|n|r|t|v|\\|&quot;|\'|[|])" />
<RegExpr attribute="Strings" context="#pop" String="\]%1\]" dynamic="true" />
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
<context name="Error" attribute="Error" lineEndContext="#stay">
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Alerts" defStyleNum="dsAlert" />
<itemData name="BFunc" defStyleNum="dsFunction"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Number" defStyleNum="dsBaseN"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="BaseFunc" defStyleNum="dsNormal" color="#0095FF" selColor="#FFFFFF" bold="1" italic="0"/>
<itemData name="Alert" defStyleNum="dsAlert" />
<itemData name="Constant" defStyleNum="dsKeyword"/>
<itemData name="Control" defStyleNum="dsKeyword" color="#A1A100" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Error" defStyleNum="dsError"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Numbers" defStyleNum="dsDecVal"/>
<itemData name="Strings" defStyleNum="dsString"/>
<itemData name="Symbols" defStyleNum="dsOthers"/>
<itemData name="Variable" defStyleNum="dsKeyword" color="#5555FF" selColor="#ffffff" bold="0" italic="0" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="--" />
<comment name="multiLine" start="--[[" end="]]" />
</comments>
<keywords casesensitive="1" weakDeliminator="&#46;" additionalDeliminator="&quot;"/>
</general>
</language>
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->

@ -2,7 +2,8 @@
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Makefile syntaxfile v0.9 by Per Wigren <wigren@home.se> -->
<!-- Modified by Joseph Wenninger <jowenn@kde.org> -->
<language name="Makefile" version="1.08" kateversion="2.4" section="Other" extensions="*makefile*;*Makefile*" mimetype="text/x-makefile" author="Per Wigren (wigren@home.se)" license="">
<!-- Modified by Rui Santana <santana.rui@gmail.com> -->
<language name="Makefile" version="1.10" kateversion="2.4" section="Other" extensions="GNUmakefile;Makefile*;makefile*" mimetype="text/x-makefile" author="Per Wigren (wigren@home.se)" license="">
<highlighting>
<list name = "keywords">
<item> include </item>
@ -15,6 +16,43 @@
<item> ifndef </item>
<item> ifneq </item>
</list>
<list name = "functions">
<item> call </item>
<item> subst </item>
<item> patsubst </item>
<item> strip </item>
<item> findstring </item>
<item> filter </item>
<item> filter-out </item>
<item> sort </item>
<item> word </item>
<item> wordlist </item>
<item> words </item>
<item> firstword </item>
<item> lastword </item>
<item> dir </item>
<item> notdir </item>
<item> suffix </item>
<item> basename </item>
<item> addsuffix </item>
<item> addprefix </item>
<item> join </item>
<item> wildcard </item>
<item> realpath </item>
<item> abspath </item>
<item> if </item>
<item> or </item>
<item> and </item>
<item> foreach </item>
<item> value </item>
<item> eval </item>
<item> origin </item>
<item> flavor </item>
<item> shell </item>
<item> error </item>
<item> warning </item>
<item> info </item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
@ -51,9 +89,15 @@
</context>
<context name="VarFromNormal" attribute="Variable" lineEndContext="#stay">
<keyword attribute="Keyword" context="FunctionCall" String="functions"/>
<AnyChar attribute="Operator" String=")}" context="#pop"/>
</context>
<context name="FunctionCall" attribute="String" lineEndContext="#stay">
<RegExpr attribute="Operator" context="VarFromNormal" String="[$][\({]"/>
<AnyChar attribute="Operator" String=")}" context="#pop#pop"/>
</context>
<context name="Commands" attribute="Normal Text" lineEndContext="#pop">
<RegExpr attribute="Operator" context="VarFromNormal" String="[$][\({]"/>
<RegExpr attribute="Commands" context="#pop" String="[_\w-]*\b"/>

@ -49,13 +49,15 @@
Change log:
19-Nov-03 Created from scratch.
08-Mar-04 Small corrections. Added default colors of MATLAB editor.
25-Jan-09 Addedd basic support for OOP (Matlab 2008) (by Leonardo Finetti)
Author: Stefan Stoll, Swiss Federal Institute of Technology, Zurich
Co-author: Leonardo Finetti, www.finex.org
-->
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Matlab" version="1.20" kateversion="2.2" section="Scientific" extensions="*.m;*.M" mimetype="text/mfile" casesensitive="1">
<language name="Matlab" version="1.30" kateversion="2.2" section="Scientific" extensions="*.m;*.M" mimetype="text/mfile" casesensitive="1">
<highlighting>
<!-- Reserved keywords in MATLAB -->
@ -63,6 +65,7 @@
<item> break </item>
<item> case </item>
<item> catch </item>
<item> classdef </item>
<item> continue </item>
<item> else </item>
<item> elseif </item>
@ -72,11 +75,16 @@
<item> global </item>
<item> if </item>
<item> otherwise </item>
<item> parfor </item>
<item> persistent </item>
<item> return </item>
<item> spmd </item>
<item> switch </item>
<item> try </item>
<item> while </item>
<item> methods </item>
<item> properties </item>
<item> events </item>
</list>
<contexts>

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="MediaWiki" section="Markup" version="1.01" kateversion="2.4" extensions="" mimetype="" license="FDL" >
<language name="MediaWiki" section="Markup" version="1.02" kateversion="2.4" extensions="" mimetype="" license="FDL" >
<highlighting>
<contexts>
<context attribute="Normal" lineEndContext="#stay" name="normal" >
@ -48,10 +48,13 @@
<DetectChar char="'" context="Error" attribute="Error" />
</context>
<context attribute="Link" lineEndContext="#stay" name="WikiLink" >
<DetectChar char="|" attribute="Wiki-Tag" context="#stay" />
<DetectChar char="|" attribute="Wiki-Tag" context="WikiLinkDescription" />
<Detect2Chars char="]" char1="]" context="#pop" attribute="Wiki-Tag" />
<DetectChar char="'" context="Error" attribute="Error" />
</context>
<context attribute="Link" lineEndContext="#stay" name="WikiLinkDescription" >
<Detect2Chars char="]" char1="]" context="#pop" attribute="Wiki-Tag" lookAhead="true" />
</context>
<context attribute="Template" lineEndContext="#stay" name="Link" >
<Detect2Chars char="}" char1="}" context="#pop" attribute="Wiki-Tag" />
<AnyChar String="'[]" context="Error" attribute="Error" />

@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
Copyright 2008 Diggory Hardy
Author: Diggory Hardy <diggory.hardy@gmail.com>
This contains highlighting for mergetag text files, a sub-part of the mde project.
dsource.org/projects/mde
**********************************************************************
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the *
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language name="mergetag text" version="0.1" kateversion="2.5" section="Configuration" author="Diggory Hardy (diggory.hardy@gmail.com)" license="LGPL" extensions="*.mtt;">
<highlighting>
<contexts>
<context name="Normal" attribute="Error" lineEndContext="#stay">
<DetectSpaces />
<Detect2Chars attribute="Comment Brackets" context="SecComment" char="!" char1="{" beginRegion="SecComment" />
<Detect2Chars attribute="Comment Brackets" context="TagCommentType" char="!" char1="&lt;" />
<DetectChar attribute="Brackets" context="SectionIdentifier" char="{" beginRegion="SecID" />
<DetectChar attribute="Tag Character" context="TagType" char="&lt;" />
</context>
<context name="SectionIdentifier" attribute="ID" lineEndContext="#stay">
<DetectChar attribute="Brackets" context="#pop" char="}" endRegion="SecID" />
</context>
<context name="SecComment" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment Brackets" context="#pop" char="}" endRegion="SecComment" />
<DetectChar attribute="Comment Brackets" context="SecComment" char="{" beginRegion="SecID" />
</context>
<context name="TagType" attribute="Type" lineEndContext="#stay">
<DetectChar attribute="Tag Character" context="TagID" char="|" />
<IncludeRules context="TagErrors" />
</context>
<context name="TagID" attribute="ID" lineEndContext="#stay">
<DetectChar attribute="Tag Character" context="TagData" char="=" />
<IncludeRules context="TagErrors" />
</context>
<context name="TagData" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Tag Character" context="#pop#pop#pop" char="&gt;" />
<DetectChar attribute="Char" context="CharLiteral" char="'"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<!-- Number literals -->
<Float attribute="Float" context="#stay" />
<RegExpr attribute="Binary" context="#pop" String="0[bB][01]+"/>
<RegExpr attribute="Octal" context="#pop" String="0[oO][0-7]+"/>
<HlCHex attribute="Hex" context="#stay"/>
<Int attribute="Integer" context="#stay" />
<IncludeRules context="TagErrors" />
</context>
<context name="TagErrors" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Error" context="#stay" char="&lt;" />
<DetectChar attribute="Error" context="#stay" char="|" />
<DetectChar attribute="Error" context="#stay" char="=" />
<DetectChar attribute="Error" context="#stay" char="&gt;" />
</context>
<context name="TagCommentType" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment Brackets" context="TagCommentID" char="|" />
<IncludeRules context="TagErrors" />
</context>
<context name="TagCommentID" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment Brackets" context="TagCommentData" char="=" />
<IncludeRules context="TagErrors" />
</context>
<context name="TagCommentData" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment Brackets" context="#pop#pop#pop" char="&gt;" />
<DetectChar attribute="Comment" context="CommentChar" char="'"/>
<DetectChar attribute="Comment" context="CommentString" char="&quot;"/>
<IncludeRules context="TagErrors" />
</context>
<context name="CommentString" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment" context="#pop" char="&quot;" />
<RegExpr String="\\." attribute="Comment" context="#stay"/>
</context>
<context name="CommentChar" attribute="Comment" lineEndContext="#stay">
<DetectChar attribute="Comment" context="#pop" char="'" />
<RegExpr String="\\." attribute="Comment" context="#stay"/>
</context>
<!-- 'char' -->
<context name="CharLiteral" attribute="Char" lineEndContext="CharLiteralClosing" fallthrough="true" fallthroughContext="#pop">
<!-- Empty '' -->
<DetectChar attribute="Char" context="#pop" char="'"/>
<HlCStringChar attribute="EscapeSequence" context="CharLiteralClosing"/>
<RegExpr attribute="Char" context="CharLiteralClosing" String="."/>
</context>
<!-- Anything other than a closing ' is now be an error -->
<context name="CharLiteralClosing" attribute="Error" lineEndContext="#pop#pop" fallthrough="true" fallthroughContext="#pop#pop">
<DetectChar attribute="Char" context="#pop#pop" char="'"/>
</context>
<!-- "string" -->
<context name="String" attribute="String" lineEndContext="#stay">
<HlCStringChar attribute="EscapeSequence"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
</contexts>
<itemDatas>
<itemData name="Brackets" defStyleNum="dsKeyword"/>
<itemData name="Tag Character" defStyleNum="dsKeyword" color="#008040"/>
<itemData name="Type" defStyleNum="dsDataType"/>
<itemData name="Error" defStyleNum="dsError"/>
<itemData name="Comment Brackets" defStyleNum="dsComment" italic="0" color="#404040" />
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="ID" defStyleNum="dsOthers"/>
<itemData name="Integer" defStyleNum="dsDecVal"/>
<itemData name="Binary" defStyleNum="dsBaseN"/>
<itemData name="Octal" defStyleNum="dsBaseN"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="EscapeSequence" defStyleNum="dsString" color="#00aa88" selColor="#ff0000"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Char" defStyleNum="dsChar"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="!{" end="}" region="SecComment"/>
</comments>
<keywords casesensitive="true" />
</general>
</language>

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
====================================================================
Modelica syntax highlighting file for the KDE editors Kate and Kwrite
====================================================================
Based on Modelica 3.0, available at the following link:
http://www.modelica.org/documents/ModelicaSpec30.pdf
License: LGPL v2 or later
ChangeLog: Aug 21, 2008: first version committed.
Author: Federico Zenith, Max Planck Institute for Complex Technical
Systems, Magdeburg (Germany).
-->
<language name="Modelica" version="3.1" kateversion="2.0" casesensitive="1" section="Sources" extensions="*.mo" author="Federico Zenith" >
<highlighting>
<!-- Classes in Modelica can be called different names; "class" is the
most general one, others will limit its capabilities in some ways;
for instance, "record" can only contain data members, "connector"
does not allow equations, and so on. -->
<list name="classTypes">
<item> block </item>
<item> class </item>
<item> connector </item>
<item> function </item>
<item> model </item>
<item> package </item>
<item> record </item>
</list>
<list name="classType_type">
<!-- NOTE this should actually be with the rest in classTypes, but
"type" shall not start an environment. -->
<item> type </item>
</list>
<!-- The primitive data types already defined in Modelica. -->
<list name="primitiveTypes">
<item> Boolean </item>
<item> enumeration </item>
<item> ExternalObject </item>
<item> Integer </item>
<item> Real </item>
<item> StateSelect </item>
<item> String </item>
</list>
<!-- The attributes of data types defined in Modelica and those derived
from them. Not all primitive data types have all attributes. -->
<list name="defaultAttributes">
<item> display </item>
<item> fixed </item>
<item> max </item>
<item> min </item>
<item> nominal </item>
<item> quantity </item>
<item> start </item>
<item> stateSelect </item>
<item> unit </item>
<item> value </item>
</list>
<!-- The keywords defined in the Modelica specification (for the 3.0
specification it is in section 2.3.3), minus the class types. -->
<list name="keywords">
<item> algorithm </item>
<item> and </item>
<item> annotation </item>
<item> assert </item>
<item> break </item>
<item> connect </item>
<item> constant </item>
<item> constrainedby </item>
<item> discrete </item>
<item> else </item>
<item> elseif </item>
<item> elsewhen </item>
<item> encapsulated </item>
<item> end </item>
<item> equation </item>
<item> expandable </item>
<item> extends </item>
<item> external </item>
<item> false </item>
<item> final </item>
<item> flow </item>
<item> for </item>
<item> if </item>
<item> import </item>
<item> in </item>
<item> inner </item>
<item> input </item>
<item> loop </item>
<item> not </item>
<item> or </item>
<item> outer </item>
<item> output </item>
<item> parameter </item>
<item> partial </item>
<item> protected </item>
<item> public </item>
<item> redeclare </item>
<item> replaceable </item>
<item> return </item>
<item> then </item>
<item> true </item>
<item> when </item>
<item> while </item>
<item> within </item>
</list>
<!-- The functions that are by default available in Modelica 3.0. -->
<list name="functions">
<!-- NOTE this is more like a built-in variable, but as it changes
its value during the simulation it is more like a function
without the (), and has therefore been placed here.-->
<item> time </item>
<item> abs </item>
<item> ceil </item>
<item> div </item>
<item> floor </item>
<item> integer </item>
<item> mod </item>
<item> rem </item>
<item> sign </item>
<item> sqrt </item>
<item> sin </item>
<item> cos </item>
<item> tan </item>
<item> asin </item>
<item> acos </item>
<item> atan </item>
<item> atan2 </item>
<item> sinh </item>
<item> cosh </item>
<item> tanh </item>
<item> exp </item>
<item> log </item>
<item> log10 </item>
<item> analysisType </item>
<item> cardinality </item> <!-- NOTE deprecated in 3.0. -->
<item> change </item>
<item> delay </item>
<item> der </item>
<item> direction </item>
<item> edge </item>
<item> initial </item>
<item> isPresent </item>
<item> noEvent </item>
<item> pre </item>
<item> reinit </item>
<item> sample </item>
<item> semiLinear </item>
<item> smooth </item>
<item> terminal </item>
<item> terminate </item>
<item> ndims </item>
<item> size </item>
<item> scalar </item>
<item> vector </item>
<item> matrix </item>
<item> array </item>
<item> zeros </item>
<item> ones </item>
<item> fill </item>
<item> identity </item>
<item> diagonal </item>
<item> linspace </item>
<item> min </item>
<item> max </item>
<item> sum </item>
<item> product </item>
<item> transpose </item>
<item> outerProduct </item>
<item> symmetric </item>
<item> cross </item>
<item> skew </item>
<item> cat </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<RegExpr attribute="Keyword" String="\bend\s+(for|while|loop)\b" endRegion="loopBlock"/>
<RegExpr attribute="Keyword" String="\bloop\b" beginRegion="loopBlock"/>
<RegExpr attribute="Keyword" String="\bend\s+(if|when)\b" endRegion="thenBlock"/>
<RegExpr attribute="Keyword" String="\bend\s+(if|when)\b" endRegion="thenBlock"/>
<RegExpr attribute="Keyword" String="\b(if|when)\b" beginRegion="thenBlock"/>
<keyword attribute="Class Type" String="classType_type"/>
<keyword attribute="Class Type" String="classTypes" beginRegion="class"/>
<RegExpr attribute="Keyword" String="\bend " endRegion="class"/>
<keyword attribute="Data Type" String="primitiveTypes"/>
<keyword attribute="Default Attribute" String="defaultAttributes"/>
<keyword attribute="Keyword" String="keywords"/>
<keyword attribute="Function" String="functions"/>
<Float attribute="Floating-Point Number"/>
<Int attribute="Integer Number"/>
<AnyChar attribute="Delimiter" String="()[]{}"/>
<RegExpr attribute="Variable" String="[_a-zA-Z]\w*"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<Detect2Chars attribute="Comment" context="Single-line comment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Multi-line comment" char="/" char1="*" beginRegion="Comment"/>
</context>
<context attribute="String" lineEndContext="#stay" name="String">
<LineContinue attribute="String" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Single-line comment">
<DetectSpaces/>
<IncludeRules context="##Alerts"/>
<DetectIdentifier/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Multi-line comment">
<DetectSpaces/>
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts"/>
<DetectIdentifier/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Variable" defStyleNum="dsNormal"/>
<itemData name="Class Type" defStyleNum="dsKeyword"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Default Attribute" defStyleNum="dsOthers"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Function" defStyleNum="dsFunction"/>
<itemData name="Floating-Point Number" defStyleNum="dsFloat"/>
<itemData name="Integer Number" defStyleNum="dsDecVal"/>
<itemData name="Comment" defStyleNum="dsComment"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//"/>
<comment name="multiLine" start="/**" end="*/"/>
<comment name="multiLine" start="/*" end="*/"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
Mono Basic syntax
Created: Davide Bettio <davide.bettio@kdemail.net>
Date: 09/09/2005
Version: 1.01
License: GNU General Public License
-->
<language name="MonoBasic" section="Sources" version="1.01" kateversion="2.3" extensions="*.vb" mimetype="" author="Davide Bettio (davide.bettio@kdemail.net)" license="GPL">
<highlighting>
<list name="keywords">
<item> Option </item>
<item> Explicit </item>
<item> Strict </item>
<item> Imports </item>
<item> Inherits </item>
<item> As </item>
<item> New </item>
<item> Dim </item>
<item> Redim </item>
<item> Private </item>
<item> Friend </item>
<item> Public </item>
<item> Const </item>
<item> ReadOnly </item>
<item> WriteOnly </item>
<item> Default </item>
<item> Shared </item>
<item> Shadows </item>
<item> Protected </item>
<item> Overloads </item>
<item> Overrides </item>
<item> NotOverridable </item>
<item> NotInheritable </item>
<item> MustInherit </item>
<item> MustOverride </item>
<item> MyBase </item>
<item> MyClass </item>
<item> Me </item>
<item> Delegate </item>
<item> Catch </item>
<item> Finaly </item>
<item> When </item>
<item> Throw </item>
<item> To </item>
<item> Step </item>
<item> Then </item>
<item> Else </item>
<item> True </item>
<item> False </item>
<item> Nothing </item>
<item> Call </item>
<item> ByVal </item>
<item> ByRef </item>
<item> Optional </item>
<item> ParamArray </item>
<item> Return </item>
<item> Declare </item>
<item> WithEvents </item>
<item> Event </item>
<item> RaiseEvent </item>
<item> AddHandler </item>
<item> And </item>
<item> Or </item>
<item> Not </item>
<item> Xor </item>
<item> AndAlso </item>
<item> OrElse </item>
<item> Goto </item>
<item> On </item>
<item> Error </item>
<item> Resume </item>
</list>
<list name="types">
<item> Boolean </item>
<item> Char </item>
<item> String </item>
<item> Integer </item>
<item> Long </item>
<item> Double </item>
<item> Object </item>
<item> Exception </item>
<item> Date </item>
<item> DateTime </item>
<item> Int16 </item>
<item> Int32 </item>
<item> Int64 </item>
<item> ParamArray </item>
<item> TimeSpan </item>
<item> Byte </item>
<item> Decimal </item>
<item> IntPtr </item>
<item> Single </item>
<item> Guid </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Type" context="#stay" String="types"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="Comment" context="Comment" char="'" />
<!-- Namespace -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Namespace)([\s]|$)" insensitive="true" beginRegion="Namespace1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Namespace.*$" insensitive="true" endRegion="Namespace1"/>
<!-- Module -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Module)([\s]|$)" insensitive="true" beginRegion="Module1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Module.*$" insensitive="true" endRegion="Module1"/>
<!-- Class -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Class)([\s]|$)" insensitive="true" beginRegion="Class1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Class.*$" insensitive="true" endRegion="Class1"/>
<!-- Interface -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Interface)([\s]|$)" insensitive="true" beginRegion="Interface1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Interface.*$" insensitive="true" endRegion="Interface1"/>
<!-- Structure -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Structure)([\s]|$)" insensitive="true" beginRegion="Structure1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Structure.*$" insensitive="true" endRegion="Structure1"/>
<!-- Enum -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Enum)([\s]|$)" insensitive="true" beginRegion="Enum1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Enum.*$" insensitive="true" endRegion="Enum1"/>
<!-- Property -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Property)([\s]|$)" insensitive="true" beginRegion="Property1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Property.*$" insensitive="true" endRegion="Property1"/>
<!-- Get -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Get)([\s]|$)" insensitive="true" beginRegion="Get1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Get.*$" insensitive="true" endRegion="Get1"/>
<!-- Set -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Set)([\s]|$)" insensitive="true" beginRegion="Set1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Set.*$" insensitive="true" endRegion="Set1"/>
<!-- Sub -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Sub)([.\s]|$)" insensitive="true" beginRegion="Sub1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Sub.*$" insensitive="true" endRegion="Sub1"/>
<RegExpr attribute="Keyword" context="#stay" String="Exit.Sub.*$" insensitive="true"/>
<!-- Function -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Function)([\s]|$)" insensitive="true" beginRegion="Function1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Function.*$" insensitive="true" endRegion="Function1"/>
<RegExpr attribute="Keyword" context="#stay" String="Exit.Function.*$" insensitive="true"/>
<!-- Try -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Try)([\s]|$)" insensitive="true" beginRegion="Try1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Try.*$" insensitive="true" endRegion="Try1"/>
<!-- If -->
<RegExpr attribute="Keyword" context="#stay" String="\b(If)([\s]|$)" insensitive="true" beginRegion="If1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.If.*$" insensitive="true" endRegion="If1"/>
<!-- Select case -->
<RegExpr attribute="Keyword" context="#stay" String="Select.Case.*$" insensitive="true" beginRegion="SelectCase1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.Select.*$" insensitive="true" endRegion="SelectCase1"/>
<!-- For -->
<RegExpr attribute="Keyword" context="#stay" String="\b(For)([\s]|$)" insensitive="true" beginRegion="For1"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(Next)([\s]|$)" insensitive="true" endRegion="For1"/>
<!-- Do Loop -->
<RegExpr attribute="Keyword" context="#stay" String="\b(Do)([\s]|$)" insensitive="true" beginRegion="DoLoop1"/>
<RegExpr attribute="Keyword" context="#stay" String="\b(Loop)([\s]|$)" insensitive="true" endRegion="DoLoop1"/>
<!-- While -->
<RegExpr attribute="Keyword" context="#stay" String="\b(While)([\s]|$)" insensitive="true" beginRegion="While1"/>
<RegExpr attribute="Keyword" context="#stay" String="End.While.*$" insensitive="true" endRegion="While1"/>
<RegExpr attribute="Keyword" context="#stay" String="Exit.While.*$" insensitive="true"/>
<!-- #Region -->
<RegExpr attribute="Preprocessor" context="#stay" String="#Region.*$" insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="Preprocessor" context="#stay" String="#End.Region.*$" insensitive="true" endRegion="Region1"/>
<!-- #If -->
<RegExpr attribute="Preprocessor" context="#stay" String="#If.*$" insensitive="true" beginRegion="PreprocessorIf1"/>
<RegExpr attribute="Preprocessor" context="#stay" String="#End.If.*$" insensitive="true" endRegion="PreprocessorIf1"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#pop"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop"/>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword" color="#000080" bold="0"/>
<itemData name="Type" defStyleNum="dsDataType" color="#000080" bold="0"/>
<itemData name="String" defStyleNum="dsString" color="#800000"/>
<itemData name="Preprocessor" defStyleNum="dsOthers" color="#008000"/>
<itemData name="Comment" defStyleNum="dsComment" color="#008000"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="0"/>
<comments>
<comment name="singleLine" start="'"/>
</comments>
</general>
</language>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,208 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Nemerle syntax highlighting v0.2 by caminoix, approved of and corrected by Kamil Skalski (Nazgul) -->
<language name="Nemerle" version="0.32" kateversion="2.4" section="Sources" extensions="*.n" mimetype="text/x-nemerle" casesensitive="1" author="caminoix + Kamil Skalski (Nazgul)" license="">
<highlighting>
<list name="Attributes">
<item>abstract</item>
<item>def</item>
<item>delegate</item>
<item>event</item>
<item>extern</item>
<item>internal</item>
<item>mutable</item>
<item>override</item>
<item>public</item>
<item>private</item>
<item>protected</item>
<item>sealed</item>
<item>static</item>
<item>volatile</item>
<item>virtual</item>
<item>new</item>
</list>
<list name="CompilationUnits">
<item>macro</item>
<item>namespace</item>
<item>using</item>
<item>\[Record\]</item>
</list>
<list name="DataTypes">
<item>array</item>
<item>bool</item>
<item>byte</item>
<item>char</item>
<item>decimal</item>
<item>double</item>
<item>enum</item>
<item>float</item>
<item>int</item>
<item>list</item>
<item>long</item>
<item>object</item>
<item>sbyte</item>
<item>short</item>
<item>string</item>
<item>uint</item>
<item>ulong</item>
<item>ushort</item>
<item>variant</item>
<item>void</item>
</list>
<list name="Keywords">
<item>_</item>
<item>as</item>
<item>assert</item>
<item>base</item>
<item>catch</item>
<item>checked</item>
<item>do</item>
<item>else</item>
<item>false</item>
<item>finally</item>
<item>for</item>
<item>foreach</item>
<item>fun</item>
<item>get</item>
<item>if</item>
<item>ignore</item>
<item>implements</item>
<item>in</item>
<item>is</item>
<item>lock</item>
<item>match</item>
<item>null</item>
<item>out</item>
<item>params</item>
<item>ref</item>
<item>repeat</item>
<item>set</item>
<item>syntax</item>
<item>this</item>
<item>throw</item>
<item>true</item>
<item>try</item>
<item>typeof</item>
<item>unchecked</item>
<item>unless</item>
<item>when</item>
<item>where</item>
<item>while</item>
<item>with</item>
</list>
<list name="Preprocessing">
<item>#define</item>
<item>#elif</item>
<item>#else</item>
<item>#endif</item>
<item>#endregion</item>
<item>#error</item>
<item>#if</item>
<item>#line</item>
<item>#region</item>
<item>#undef</item>
<item>#warning</item>
<item>#pragma</item>
</list>
<list name="TypeDeclarations">
<item>class</item>
<item>interface</item>
<item>module</item>
<item>struct</item>
<item>type</item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="Comment" context="SingleLineComment" String="//" />
<StringDetect attribute="Comment" context="MultiLineComment" String="/*" />
<DetectChar attribute="String" context="NormalString" char="&quot;" />
<Detect2Chars attribute="String" context="StringInterpolation" char="$" char1="&quot;" />
<Int attribute="Number" context="#stay" />
<Float attribute="Number" context="#stay" />
<keyword attribute="Attribute" context="#stay" String="Attributes" />
<keyword attribute="CompilationUnit" context="#stay" String="CompilationUnits" />
<keyword attribute="DataType" context="#stay" String="DataTypes" />
<keyword attribute="Keyword" context="#stay" String="Keywords" />
<keyword attribute="Preprocessing" context="#stay" String="Preprocessing" />
<keyword attribute="TypeDeclaration" context="#stay" String="TypeDeclarations" />
<DetectChar attribute="Keyword" context="#stay" char="{" beginRegion="Region1" />
<DetectChar attribute="Keyword" context="#stay" char="}" endRegion="Region1" />
<DetectChar attribute="Keyword" context="#stay" char="(" beginRegion="Region2" />
<DetectChar attribute="Keyword" context="#stay" char=")" endRegion="Region2" />
<Detect2Chars attribute="CompilationUnit" context="#stay" char="&#60;" char1="[" beginRegion="Region3" />
<Detect2Chars attribute="CompilationUnit" context="#stay" char="]" char1="&#62;" endRegion="Region3" />
</context>
<context name="SingleLineComment" attribute="Comment" lineEndContext="#pop">
<StringDetect attribute="Comment" String="//" context="#pop" />
</context>
<context name="MultiLineComment" attribute="Comment" lineEndContext="#stay">
<StringDetect attribute="Comment" String="*/" context="#pop" />
</context>
<context name="NormalString" attribute="String" lineEndContext="#stay">
<DetectChar attribute="String" char="&quot;" context="#pop" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\{[0-9]+\}" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="&quot;" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="t" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="n" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u0008" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000D" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000d" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000A" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000a" />
</context>
<context name="StringInterpolation" attribute="String" lineEndContext="#stay">
<DetectChar attribute="String" char="&quot;" context="#pop" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\{[0-9]+\}" />
<RegExpr attribute="EscapeSequence" context="#stay" String="\$(\S)+\s" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="&quot;" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="t" />
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1="n" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u0008" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000D" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000d" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000A" />
<StringDetect attribute="EscapeSequence" context="#stay" String="\u000a" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Number" defStyleNum="dsOthers" color="#00009f" selColor="#0000e9"/>
<itemData name="Attribute" defStyleNum="dsOthers" color="#28712f" selColor="#34923d" />
<itemData name="CompilationUnit" defStyleNum="dsChar" />
<itemData name="DataType" defStyleNum="dsDataType" />
<itemData name="EscapeSequence" defStyleNum="dsBaseN" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Preprocessing" defStyleNum="dsChar" />
<itemData name="TypeDeclaration" defStyleNum="dsOthers" color="#eeb312" selColor="ffc013" bold="1" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
</comments>
</general>
</language>

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="noweb" version="1.0" kateversion="2.4" section="Sources" extensions="*.w;*.nw" author="Scott Collins (scc@scottcollins.net)">
<!--
#########################################################################
# First version added to repository was 0.4, added as 1.0 .
#
# Article about this highlighter:
# http://scottcollins.net/articles/Kate.html
#
# Indirect source file:
# http://scottcollins.net/articles/Kate.w
#
# Command used for extraction:
# $ notangle Kate.w -R"noweb.xml" > syntax/data/noweb.xml
#########################################################################
-->
<highlighting>
<contexts>
<context name="RawDocumentation" attribute="Prose" lineEndContext="#stay">
<RegExpr String="^&lt;&lt;.*&gt;&gt;=$" attribute="SectionName" context="CodeSection" beginRegion="CodeSection" />
<Detect2Chars char="@" char1="[" context="#stay" />
<Detect2Chars char="[" char1="[" attribute="Punctuation" context="CodeQuote" />
<IncludeRules context="##HTML" includeAttrib="true" />
</context>
<context name="CodeQuote" attribute="Code" lineEndContext="#stay">
<Detect2Chars char="@" char1="]" context="#stay" />
<RegExpr String="\]\](?!\])" minimal="true" attribute="Punctuation" context="#pop" />
<IncludeRules context="SectionNames" />
<IncludeRules context="##C++" includeAttrib="true" />
</context>
<context name="CodeSection" attribute="Code" lineEndContext="#stay">
<RegExpr String="^@$" attribute="Punctuation" context="RawDocumentation" endRegion="CodeSection" />
<RegExpr String="^@(?=[\s%])" attribute="Punctuation" context="RawDocumentation" endRegion="CodeSection" />
<RegExpr String="^&lt;&lt;.*&gt;&gt;=$" context="RawDocumentation" lookAhead="true" endRegion="CodeSection" />
<IncludeRules context="SectionNames" />
<IncludeRules context="##C++" includeAttrib="true" />
</context>
<context name="SectionNames" attribute="Prose" lineEndContext="#stay">
<RegExpr String="@&lt;&lt;" context="#stay" />
<RegExpr String="&lt;&lt;.*[^@]&gt;&gt;(?!=)" minimal="true" attribute="SectionName" />
</context>
</contexts>
<itemDatas>
<itemData name="Prose" defStyleNum="dsNormal" />
<itemData name="Code" defStyleNum="dsNormal" />
<itemData name="Punctuation" defStyleNum="dsRegionMarker" bold="true" />
<itemData name="SectionName" defStyleNum="dsRegionMarker" italic="true" />
</itemDatas>
</highlighting>
</language>

@ -0,0 +1,321 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Objective-C++" version="1.00" kateversion="2.4" section="Sources" extensions="*.mm;*.M;*.h" mimetype="text/x-objcpp-src;text/x-c-hdr" author="Gennady Telegin (gepo@lvk.cs.msu.su">
<highlighting>
<list name="keywords">
<item> break </item>
<item> case </item>
<item> continue </item>
<item> default </item>
<item> do </item>
<item> else </item>
<item> enum </item>
<item> extern </item>
<item> for </item>
<item> goto </item>
<item> if </item>
<item> return </item>
<item> sizeof </item>
<item> struct </item>
<item> switch </item>
<item> typedef </item>
<item> union </item>
<item> while </item>
<item> @class </item>
<item> @defs </item>
<item> @encode </item>
<item> @end </item>
<item> @implementation </item>
<item> @interface </item>
<item> @private </item>
<item> @protected </item>
<item> @protocol </item>
<item> @public </item>
<item> @selector </item>
<item> self </item>
<item> super </item>
<item> asm </item>
<item> catch </item>
<item> class </item>
<item> const_cast </item>
<item> delete </item>
<item> dynamic_cast</item>
<item> explicit </item>
<item> export </item>
<item> false </item>
<item> friend </item>
<item> inline </item>
<item> namespace </item>
<item> new </item>
<item> operator </item>
<item> private </item>
<item> protected </item>
<item> public </item>
<item> qobject_cast </item>
<item> reinterpret_cast </item>
<item> static_cast </item>
<item> template </item>
<item> this </item>
<item> throw </item>
<item> true </item>
<item> try </item>
<item> typeid </item>
<item> type_info </item>
<item> typename </item>
<item> using </item>
<item> virtual </item>
<item> and </item>
<item> and_eq </item>
<item> bad_cast </item>
<item> bad_typeid </item>
<item> bitand </item>
<item> bitor </item>
<item> compl </item>
<item> not </item>
<item> not_eq </item>
<item> or </item>
<item> or_eq </item>
<item> xor </item>
<item> xor_eq </item>
<item> except </item>
<item> finally </item>
<item> xalloc </item>
</list>
<list name="extensions">
<item> K_DCOP </item>
<item> SLOT </item>
<item> SIGNAL </item>
<item> Q_CLASSINFO </item>
<item> Q_ENUMS </item>
<item> Q_EXPORT </item>
<item> Q_OBJECT </item>
<item> Q_OVERRIDE </item>
<item> Q_PROPERTY </item>
<item> Q_SETS </item>
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_FOREACH </item>
<item> Q_DECLARE_FLAGS </item>
<item> Q_INIT_RESOURCE </item>
<item> Q_CLEANUP_RESOURCE </item>
<item> Q_GLOBAL_STATIC </item>
<item> Q_GLOBAL_STATIC_WITH_ARGS </item>
<item> Q_DECLARE_INTERFACE </item>
<item> Q_DECLARE_TYPEINFO </item>
<item> Q_DECLARE_SHARED </item>
<item> Q_DECLARE_FLAGS </item>
<item> Q_DECLARE_OPERATORS_FOR_FLAGS </item>
<item> Q_FOREVER </item>
<item> Q_DECLARE_PRIVATE </item>
<item> Q_DECLARE_PUBLIC </item>
<item> Q_D </item>
<item> Q_Q </item>
<item> Q_DISABLE_COPY </item>
<item> Q_INTERFACES </item>
<item> Q_FLAGS </item>
<item> Q_SCRIPTABLE </item>
<item> Q_INVOKABLE </item>
<item> Q_GADGET </item>
<item> Q_ARG </item>
<item> Q_RETURN_ARG </item>
<item> Q_ASSERT </item>
<item> Q_ASSERT_X </item>
<item> TRUE </item>
<item> FALSE </item>
<item> connect </item>
<item> disconnect </item>
<item> emit </item>
<item> signals </item>
<item> slots </item>
<item> foreach </item>
<item> forever </item>
</list>
<list name="types">
<item> auto </item>
<item> char </item>
<item> const </item>
<item> double </item>
<item> float </item>
<item> int </item>
<item> long </item>
<item> register </item>
<item> short </item>
<item> signed </item>
<item> static </item>
<item> unsigned </item>
<item> void </item>
<item> volatile </item>
<item> bool </item>
<item> mutable </item>
<item> uchar </item>
<item> uint </item>
<item> int8_t </item>
<item> int16_t </item>
<item> int32_t </item>
<item> int64_t </item>
<item> uint8_t </item>
<item> uint16_t </item>
<item> uint32_t </item>
<item> uint64_t </item>
<item> wchar_t </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Default">
<DetectSpaces />
<RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" />
<DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
<StringDetect attribute="Region Marker" context="Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
<DetectIdentifier />
<Float attribute="Float" context="#stay">
<AnyChar String="fF" attribute="Float" context="#stay"/>
</Float>
<HlCOct attribute="Octal" context="#stay"/>
<HlCHex attribute="Hex" context="#stay"/>
<Int attribute="Decimal" context="#stay" >
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
</Int>
<HlCChar attribute="Char" context="#stay"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<Detect2Chars attribute="Comment" context="SingleLineComment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="MultiLineComment" char="/" char1="*"/>
<RegExpr attribute="Preprocessor" context="Preprocessor" String="^#"/>
<Detect2Chars attribute="String" context="String" char="@" char1="&quot;" />
<keyword attribute="Extensions" context="#stay" String="extensions" />
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]{|}~^&#59;"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="SingleLineComment"/>
<context attribute="Comment" lineEndContext="#stay" name="MultiLineComment">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/"/>
</context>
<context attribute="Preprocessor" lineEndContext="Default" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="#stay"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="SingleLineComment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="MultiLineCommentPrep" char="/" char1="*"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="MultiLineCommentPrep">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/"/>
<DetectIdentifier />
</context>
<!-- from c++ -->
<context attribute="Region Marker" lineEndContext="#pop" name="Region Marker">
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="#stay"/>
<RegExpr attribute="Preprocessor" context="Define" String="define.*((?=\\))"/>
<RegExpr attribute="Preprocessor" context="#stay" String="define.*"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&quot;" char1="&quot;"/>
<RangeDetect attribute="Prep. Lib" context="#stay" char="&lt;" char1="&gt;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="MultiLineCommentPrep" char="/" char1="*"/>
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Define">
<LineContinue attribute="Preprocessor" context="#stay"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped" >
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
<DetectChar attribute="String" context="String" char="&quot;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true" />
<RegExpr attribute="Preprocessor" context="#pop" String="#\s*(endif|else|elif)" endRegion="Outscoped" firstNonSpace="true" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Outscoped intern">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
<DetectChar attribute="String" context="String" char="&quot;"/>
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Comment" context="Outscoped intern" String="#\s*if" beginRegion="Outscoped" firstNonSpace="true"/>
<RegExpr attribute="Comment" context="#pop" String="#\s*endif" endRegion="Outscoped" firstNonSpace="true"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Extensions" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Octal" defStyleNum="dsBaseN"/>
<itemData name="Hex" defStyleNum="dsBaseN"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Char" defStyleNum="dsChar"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
</comments>
<keywords casesensitive="1" />
</general>
</language>

@ -5,10 +5,11 @@
<!-- Regular expresion constants: -->
<!ENTITY LETTER "A-Za-z\0300-\0326\0330-\0366\0370-\0377"> <!-- Latin-1 letters. -->
<!ENTITY IDENT "[&LETTER;_][&LETTER;0-9_']*"> <!-- OCaml identifiers. -->
<!ENTITY MIDENT "[A-Z][&LETTER;0-9_']*"> <!-- OCaml uppercase identifiers. -->
<!ENTITY ESC "(\\[ntbr'&quot;\\]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2})"> <!-- OCaml character code escapes. -->
<!ENTITY DEC "[0-9][0-9_]*"> <!-- Decimal digits with underscores. -->
]>
<language name="Objective Caml" version="1.04" kateversion="2.4" section="Sources" extensions="*.ml;*.mli" mimetype="" priority="10" author="Glyn Webster (glyn@wave.co.nz)" license="LGPL">
<language name="Objective Caml" version="1.05" kateversion="2.4" section="Sources" extensions="*.ml;*.mli" mimetype="" priority="10" author="Glyn Webster (glyn@wave.co.nz)" license="LGPL">
<highlighting>
<!-- Revised Syntax keywords are highlighted as identifiers by default. -->
@ -24,15 +25,15 @@
<item> as </item>
<item> assert </item>
<item> asr </item>
<item> begin </item>
<!-- <item> begin </item> -->
<item> class </item>
<item> closed </item>
<item> constraint </item>
<item> do </item>
<item> done </item>
<!-- <item> do </item> -->
<!-- <item> done </item> -->
<item> downto </item>
<item> else </item>
<item> end </item>
<!-- <item> end </item> -->
<item> exception </item>
<item> external </item>
<item> false </item>
@ -42,8 +43,9 @@
<item> functor </item>
<item> if </item>
<item> in </item>
<item> include </item>
<!-- <item> include </item> -->
<item> inherit </item>
<item> initializer </item>
<item> land </item>
<item> lazy </item>
<item> let </item>
@ -54,17 +56,18 @@
<item> match </item>
<item> method </item>
<item> mod </item>
<item> module </item>
<!-- <item> module </item> -->
<item> mutable </item>
<item> new </item>
<!-- <item> object </item> -->
<item> of </item>
<item> open </item>
<!-- <item> open </item> -->
<item> or </item>
<item> parser </item>
<item> private </item>
<item> rec </item>
<item> sig </item>
<item> struct </item>
<!-- <item> sig </item> -->
<!-- <item> struct </item> -->
<item> then </item>
<item> to </item>
<item> true </item>
@ -91,12 +94,64 @@
<item> list </item>
<item> option </item>
</list>
<list name="symbols">
<item> ? </item>
</list>
<list name="end">
<item> end </item>
</list>
<list name="sig">
<item> sig </item>
</list>
<list name="struct">
<item> struct </item>
</list>
<list name="object">
<item> object </item>
</list>
<list name="begin">
<item> begin </item>
</list>
<list name="do">
<item> do </item>
</list>
<list name="done">
<item> done </item>
</list>
<list name="module_environment">
<item> module </item>
<item> open </item>
<item> include </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<Detect2Chars attribute="Comment" context="Multiline Comment" char="(" char1="*" beginRegion="comment" />
<DetectChar attribute="Symbol" context="#stay" char="(" beginRegion="paren"/>
<DetectChar attribute="Symbol" context="#stay" char=")" endRegion="paren"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="record"/>
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="record"/>
<Detect2Chars attribute="Symbol" context="#stay" char="[" char1="|" beginRegion="array"/>
<Detect2Chars attribute="Symbol" context="#stay" char="|" char1="]" endRegion="array"/>
<DetectChar attribute="Symbol" context="#stay" char="[" beginRegion="list"/>
<DetectChar attribute="Symbol" context="#stay" char="]" endRegion="list"/>
<keyword attribute="Keyword" context="#stay" String="do" beginRegion="loop"/>
<keyword attribute="Keyword" context="#stay" String="done" endRegion="loop"/>
<keyword attribute="Directive" context="ModuleEnv" String="module_environment"/>
<keyword attribute="Region Marker" context="Block" String="begin" beginRegion="block"/>
<keyword attribute="Region Marker" context="Object" String="object" beginRegion="object"/>
<keyword attribute="Region Marker" context="Sig" String="sig" beginRegion="sig"/>
<keyword attribute="Region Marker" context="Struct" String="struct" beginRegion="struct"/>
<RegExpr attribute="Constructor" context="#stay" String="`\s*&IDENT;"/>
<RegExpr attribute="Module" lookAhead="true" context="ModuleEnv2" String="&MIDENT;\s*\."/>
<RegExpr attribute="Constructor" context="#stay" String="&MIDENT;"/>
<!-- Interpreter directives. -->
<!-- (These are lines where the first symbol is a '#' followed by an identifier. -->
<!-- Such lines could also be part of a method call split over two lines but -->
@ -122,7 +177,7 @@
<RegExpr attribute="Hexadecimal" context="#stay" String="-?0[xX][0-9A-Fa-f_]+" />
<RegExpr attribute="Octal" context="#stay" String="-?0[oO][0-7_]+" />
<RegExpr attribute="Binary" context="#stay" String="-?0[bB][01_]+" />
<RegExpr attribute="Float" context="#stay" String="-?&DEC;(\.&DEC;([eE][-+]?&DEC;)?|[eE][-+]?&DEC;)" />
<RegExpr attribute="Float" context="#stay" String="-?&DEC;((\.(&DEC;)?([eE][-+]?&DEC;)?)|([eE][-+]?&DEC;))" />
<RegExpr attribute="Decimal" context="#stay" String="-?&DEC;" />
</context>
@ -140,6 +195,38 @@
<RegExpr attribute="Escaped characters" context="#stay" String="\\$" />
</context>
<context attribute="Normal text" lineEndContext="#stay" name="Block">
<keyword attribute="Region Marker" context="#pop" String="end" endRegion="block"/>
<IncludeRules context="Normal"/>
</context>
<context attribute="Normal text" lineEndContext="#stay" name="Sig">
<keyword attribute="Region Marker" context="#pop" String="end" endRegion="sig"/>
<IncludeRules context="Normal"/>
</context>
<context attribute="Normal text" lineEndContext="#stay" name="Struct">
<keyword attribute="Region Marker" context="#pop" String="end" endRegion="struct"/>
<IncludeRules context="Normal"/>
</context>
<context attribute="Normal text" lineEndContext="#stay" name="Object">
<keyword attribute="Region Marker" context="#pop" String="end" endRegion="object"/>
<IncludeRules context="Normal"/>
</context>
<context attribute="Normal text" lineEndContext="#stay" name="ModuleEnv" fallthrough="true" fallthroughContext="#pop">
<DetectSpaces attribute="Normal text" context="#stay"/>
<RegExpr attribute="Module" lookAhead="true" context="ModuleEnv2" String="&MIDENT;\s*\."/>
<RegExpr attribute="Module" context="#pop" String="&MIDENT;"/>
</context>
<context attribute="Normal text" lineEndContext="#stay" name="ModuleEnv2">
<RegExpr attribute="Module" context="#stay" String="&MIDENT;"/>
<DetectSpaces attribute="Normal text" context="#stay"/>
<StringDetect attribute="Keyword" context="#pop" String="."/>
</context>
<!-- Camlp4 Quotations. These are source code literals used by the Campl4 preprocessor. -->
<!-- The only escapes allowed in a Camlp4 quotation are for the quotation start and stop symbols. -->
<context attribute="Camlp4 Quotation" lineEndContext="#stay" name="Camlp4 Quotation Constant">
@ -154,6 +241,7 @@
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Identifier" defStyleNum="dsNormal"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Revised Syntax Keyword" defStyleNum="dsNormal"/>
<itemData name="Core Data Type" defStyleNum="dsDataType"/>
@ -168,6 +256,9 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Camlp4 Quotation" defStyleNum="dsString"/>
<itemData name="Directive" defStyleNum="dsOthers"/>
<itemData name="Constructor" defStyleNum="dsDataType"/>
<itemData name="Module" defStyleNum="dsNormal"/>
<itemData name="Region Marker" defStyleNum="dsKeyword"/>
</itemDatas>
</highlighting>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Pascal" version="1.21" kateversion="2.3" section="Sources" extensions="*.pp;*.pas;*.p" mimetype="text/x-pascal">
<language name="Pascal" version="1.22" kateversion="2.5.9" section="Sources" extensions="*.pp;*.pas;*.p" mimetype="text/x-pascal" author="Unnamed people and Liu Sizhuang(oldherl@gmail.com)">
<highlighting>
<list name="keywords">
<item> and </item>
@ -105,6 +105,8 @@
<item> Byte </item>
<item> Word </item>
<item> LongWord </item>
<item> DWord </item>
<item> QWord </item>
<item> Char </item>
<item> AnsiChar </item>
<item> WideChar </item>
@ -131,6 +133,7 @@
<list name="attention">
<item> FIXME </item>
<item> TODO </item>
<item> NOTE </item>
<item> ### </item>
</list>
<contexts>
@ -138,11 +141,14 @@
<RegExpr attribute="Keyword" context="#stay" String="\b(begin|case|record)(?=(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*([\s]|$|//))" insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="ISO/Delphi Extended" context="#stay" String="\b((object|class)(?=(\(.*\))?(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*;?([\s]|$|//))|try(?=(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*([\s]|$|//)))" insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="Keyword" context="#stay" String="\bend(?=((\{[^}]*(\}|$)|\(\*.*(\*\)|$))*)([.;\s]|$)|//|$)" insensitive="true" endRegion="Region1"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="ISO/Delphi Extended" context="#stay" String="ISO/Delphi Extended"/>
<keyword attribute="Type" context="#stay" String="types"/>
<Float attribute="Number" context="#stay"/>
<Int attribute="Number" context="#stay"/>
<DetectChar attribute="Hex" context="Hex" char="$" />
<DetectChar attribute="String" context="CharNum" char="#" />
<DetectChar attribute="String" context="String" char="&apos;" />
<StringDetect attribute="Directive" context="Prep1" String="(*$"/>
<Detect2Chars attribute="Directive" context="Prep2" char="{" char1="$"/>
@ -150,6 +156,16 @@
<Detect2Chars attribute="Comment" context="Comment2" char="(" char1="*" beginRegion="Region3"/>
<Detect2Chars attribute="Comment" context="Comment3" char="/" char1="/"/>
</context>
<context attribute="String" lineEndContext="#pop" name="CharNum">
<DetectChar attribute="Hex" context="HexCharNum" char="$" />
<RegExpr String="[^0-9]" context="#pop"/>
</context>
<context attribute="Hex" lineEndContext="#pop" name="HexCharNum">
<RegExpr String="[^a-fA-F0-9]" context="#pop#pop"/>
</context>
<context attribute="Hex" lineEndContext="#pop" name="Hex">
<RegExpr String="[^a-fA-F0-9]" context="#pop"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<DetectChar attribute="String" context="#pop" char="&apos;"/>
</context>
@ -173,6 +189,7 @@
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Hex" defStyleNum="dsBaseN" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="ISO/Delphi Extended" defStyleNum="dsKeyword" color="#000080" />
<itemData name="Type" defStyleNum="dsDataType"/>

@ -39,7 +39,7 @@
Enhance tr/// and y/// support.
-->
<language name="Perl" version="1.20" kateversion="2.4" section="Scripts" extensions="*.pl;*.pm" mimetype="application/x-perl;text/x-perl" author="Anders Lund (anders@alweb.dk)" license="LGPL">
<language name="Perl" version="1.23" kateversion="2.4" section="Scripts" extensions="*.pl;*.pm" mimetype="application/x-perl;text/x-perl" author="Anders Lund (anders@alweb.dk)" license="LGPL">
<highlighting>
<list name="keywords">
<item> if </item>
@ -114,6 +114,11 @@
<item> not </item>
<item> eq </item>
<item> ne </item>
<item> lt </item>
<item> gt </item>
<item> le </item>
<item> ge </item>
<item> cmp </item>
</list>
<list name="functions">
<item>abs</item>
@ -363,7 +368,7 @@
<RegExpr attribute="Normal Text" context="#stay" String="\w+[=]" />
<RegExpr attribute="Operator" context="find_quoted" String="\bq(?=[qwx]?\s*[^\w\s])" />
<RegExpr attribute="Operator" context="find_subst" String="\bs(?=\s*[^\w\s])" />
<RegExpr attribute="Operator" context="find_subst" String="\bs(?=\s*[^\w\s\]})])" />
<RegExpr attribute="Operator" context="tr" String="\b(?:tr|y)\s*(?=[^\w\s\]})])" />
<RegExpr attribute="Operator" context="find_pattern" String="\b(?:m|qr)(?=\s*[^\w\s\]})])" />
@ -547,8 +552,9 @@
<IncludeRules context="regex_pattern_internal_ip" />
</context>
<context name="subst_slash_replace" attribute="String (interpolated)" lineEndContext="#stay" dynamic="true">
<IncludeRules context="ipstring_internal" />
<RegExpr attribute="Operator" context="#pop#pop#pop" String="%1[cegimosx]*" dynamic="true" endRegion="Replacement" />
<IncludeRules context="ipstring_internal" />
</context>
<context name="subst_sq_pattern" attribute="Pattern" lineEndContext="#stay">

@ -0,0 +1,108 @@
<!--
====================================================================
PGN - Portable Game Notation syntax highlighting file for the
KDE editors Kate and Kwrite
====================================================================
// PGN - Portable Game Notation highlighter
// To write your chess (and others) games
// written by Ruben Carlo Benante. - dr.beco@gmail.com
// 14/oct/2005, v.2.0
- Know bugs:
* None.
-->
<language name="PGN" version="2.01" kateversion="2.4" section="Other" extensions="*.pgn;*.PGN" priority="5" mimetype="" casesensitive="1" author="Ruben Carlo Benante (dr.beco@gmail.com)" license="GNU/GPL">
<highlighting>
<list name="keywords_list">
<item> Event </item>
<item> Site </item>
<item> Date </item>
<item> Round </item>
<item> White </item>
<item> Black </item>
<item> Result </item>
<item> ECO </item>
<item> Annotator </item>
<item> PlyCount </item>
<item> EventDate </item>
<item> EventCountry </item>
<item> SourceDate </item>
<item> WhiteTitle </item>
<item> BlackTitle </item>
<item> FM </item>
<item> IM </item>
<item> GM </item>
<item> WhiteElo </item>
<item> BlackElo </item>
<item> WhiteNA </item>
<item> BlackNA </item>
<item> WhiteType </item>
<item> BlackType </item>
<item> program </item>
<item> human </item>
<item> TimeControl </item>
<item> FEN </item>
<item> Termination </item>
<item> abandoned </item>
<item> adjudication </item>
<item> death </item>
<item> emergency </item>
<item> normal </item>
<item> rules </item>
<item> infraction </item>
<item> time </item>
<item> forfeit </item>
<item> unterminated </item>
<item> Mode </item>
<item> OTB </item>
<item> PM </item>
<item> EM </item>
<item> ICS </item>
<item> TC </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords_list"/>
<AnyChar attribute="Piece" context="#stay" String="KQBNRPODCTA"/>
<DetectChar attribute="Commentp" context="Comment_p" char="("/>
<DetectChar attribute="Commentc" context="Comment_c" char="{"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<RegExpr attribute="Symbol" context="#stay" String="(\$\d*|1\-0|0\-1|1/2\-1/2|\*|#|\+|\?|!|=|x|\+\-|\-\+)"/>
<RegExpr attribute="Number" context="#stay" String="\d*(\.|\.\.\.)( |$)"/>
</context>
<context attribute="Commentp" lineEndContext="#stay" name="Comment_p">
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="Commentp" context="Comment_p" char="("/>
<DetectChar attribute="Commentc" context="Comment_c" char="{"/>
<DetectChar attribute="Commentp" context="#pop" char=")" endRegion="Comment_p"/>
</context>
<context attribute="Commentc" lineEndContext="#stay" name="Comment_c">
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="Commentp" context="Comment_p" char="("/>
<DetectChar attribute="Commentc" context="Comment_c" char="{"/>
<DetectChar attribute="Commentc" context="#pop" char="}" endRegion="Comment_c"/>
</context>
<context attribute="String" lineEndContext="#stay" name="String">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword" bold="true"/>
<itemData name="Piece" defStyleNum="dsNormal" color="#0095FF" bold="1" italic="0"/>
<itemData name="Commentp" defStyleNum="dsComment"/>
<itemData name="Commentc" defStyleNum="dsComment" bold="true"/>
<itemData name="String" defStyleNum="dsString" bold="false"/>
<itemData name="Number" defStyleNum="dsDecVal" color="#bb00bb"/>
<itemData name="Symbol" defStyleNum="dsOthers" color="#00bb00"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="(" end=")"/>
<comment name="multiLine" start="{" end="}"/>
</comments>
<keywords casesensitive="0" weakDeliminator=""/>
</general>
</language>

@ -3,6 +3,19 @@
Changes:
[ Version 1.35 (2009-04-08) ]
- fix uppercase <?PHP
- add missing magic constants
[ Version 1.32 (2007-12-02) ]
- When leaving PHP context, make sure to close all brace regions (braces open a nested phpsource context for this purpose). This is a WORKAROUND for bug #143022 until feature #103257 is available.
[ Version 1.31 (2007-11-29) ]
- Add support for backtick operator. This has basically the same syntax as double quotes, so the two share most rules.
[ Version 1.28 (2006-11-02) ]
- Moved the special method names to a dedicated section (the coloration will default to the coloration of functions, but it can be customized independently, to revert to the previous coloration styles, that is, black, and bold).
@ -18,7 +31,7 @@ Changes:
-->
<!DOCTYPE language SYSTEM "language.dtd">
<language name="PHP/PHP" version="1.28" kateversion="2.4" section="Scripts" extensions="" priority="5" mimetype="" hidden="true">
<language name="PHP/PHP" version="1.35" kateversion="2.4" section="Scripts" extensions="" priority="5" mimetype="" hidden="true">
<highlighting>
<list name="control structures">
<item>as</item>
@ -50,11 +63,14 @@ Changes:
<item> abstract </item>
<item> catch </item>
<item> class </item>
<item> clone </item>
<item> const </item>
<item> exception </item>
<item> extends </item>
<item> final </item>
<item> function </item>
<item> implements </item>
<item> instanceof </item>
<item> interface </item>
<item> new </item>
<item> self </item>
@ -69,8 +85,15 @@ Changes:
<item> or </item>
<item> xor </item>
<item> var </item>
<item> __FILE__ </item>
<!-- magic constants, see http://php.net/manual/en/language.constants.predefined.php -->
<item> __LINE__ </item>
<item> __FILE__ </item>
<item> __DIR__ </item>
<item> __FUNCTION__ </item>
<item> __CLASS__ </item>
<item> __METHOD__ </item>
<item> __NAMESPACE__ </item>
<item> E_ERROR </item>
<item> E_WARNING </item>
<item> E_PARSE </item>
@ -3375,10 +3398,7 @@ Changes:
<item> YPERR_VERS </item>
<item> FORCE_GZIP </item>
<item> FORCE_DEFLATE </item>
</list>
<list name="special_methods">
<item> __autoload </item>
<item> __call </item>
@ -3394,7 +3414,6 @@ Changes:
<item> __unset </item>
<item> __wakeup </item>
</list>
<list name="functions">
<item> abs </item>
<item> acos </item>
@ -6455,21 +6474,29 @@ Changes:
</list>
<contexts>
<context name="start" lineEndContext="#stay" attribute="Normal Text">
<RegExpr context="phpsource" attribute="Keyword" String="&lt;\?(?:=|php)?" beginRegion="php" />
<RegExpr context="phpsource" attribute="Keyword" String="&lt;\?(?:=|php)?" insensitive="true" beginRegion="php" />
<StringDetect attribute="Keyword" context="#pop" String="?&gt;" endRegion="php" />
</context>
<context name="braceregion" lineEndContext="#stay" attribute="Normal Text">
<IncludeRules context="phpsource"/>
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="Brace1" />
</context>
<context name="phpsource" attribute="PHP Text" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Keyword" context="#pop#pop" String="?&gt;" endRegion="php" />
<!-- WORKAROUND for bug #143022 / missing feature #103257 -->
<StringDetect attribute="Keyword" context="#pop" String="?&gt;" endRegion="Brace1" lookAhead="true" />
<DetectChar attribute="Comment" context="onelinecomment" char="#" />
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="onelinecomment" char="/" char1="/" />
<Detect2Chars attribute="Comment" context="twolinecomment" char="/" char1="&#42;" beginRegion="Comment"/>
<keyword attribute="Control Structures" context="#stay" String="control structures" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
<DetectChar attribute="Function" context="#stay" char="@" />
<keyword attribute="Function" context="#stay" String="functions" />
<keyword attribute="Special method" context="#stay" String="special_methods" />
<DetectIdentifier />
<DetectChar attribute="String" context="doblequotestring" char="&quot;" />
<DetectChar attribute="String" context="doublequotestring" char="&quot;" />
<DetectChar attribute="String" context="backquotestring" char="`" />
<DetectChar attribute="String" context="singlequotestring" char="&#39;" />
<RegExpr attribute="Backslash Code" context="heredoc" String="&lt;&lt;&lt;([A-Za-z_][A-Za-z0-9_]*)" />
<RegExpr attribute="Variable" context="#stay" String="\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" />
@ -6478,9 +6505,8 @@ Changes:
<HlCHex attribute="Hex" context="#stay" />
<Float attribute="Float" context="#stay" />
<Int attribute="Decimal" context="#stay" />
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
<AnyChar attribute="Symbol" context="#stay" String=";()}{:,[]" />
<DetectChar attribute="Normal Text" context="braceregion" char="{" beginRegion="Brace1" />
<AnyChar attribute="Other" context="#stay" String=";():,[]" />
</context>
<context name="onelinecomment" attribute="Comment" lineEndContext="#pop">
<StringDetect attribute="Keyword" context="#pop" lookAhead="true" String="?&gt;" />
@ -6488,9 +6514,9 @@ Changes:
<context name="twolinecomment" attribute="Comment" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" />
</context>
<context name="doblequotestring" attribute="String" lineEndContext="#stay">
<!-- URL: http://de3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -->
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="&quot;" />
<context name="doublebackquotestringcommon" attribute="String" lineEndContext="#stay">
<!-- Common rules for double quoted strings and backticks (execution operator) URL:
http://de3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -->
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="n" />
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="r" />
@ -6500,7 +6526,16 @@ Changes:
<RegExpr attribute="Backslash Code" context="#stay" String="\\x[0-9A-Fa-f]{1,2}" />
<RegExpr attribute="Variable" context="#stay" String="\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[[a-zA-Z0-9_]*\])*" />
<RegExpr attribute="Variable" context="#stay" String="\$\{[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[[a-zA-Z0-9_]*\])*\}" />
<RegExpr attribute="Variable" context="#stay" String="\{\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[([0-9]*|&quot;[^&quot;]*&quot;)|'[^']*'|\])*(->[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[[a-zA-Z0-9_]*\])*(\[([0-9]*|&quot;[a-zA-Z_]*&quot;)|'[a-zA-Z_]*'|\])*)*\}" />
<RegExpr attribute="Variable" context="#stay" String="\{\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[([0-9]*|&quot;[^&quot;]*&quot;|\$[a-zA-Z]*)|'[^']*'|\])*(->[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[[a-zA-Z0-9_]*\])*(\[([0-9]*|&quot;[a-zA-Z_]*&quot;)|'[a-zA-Z_]*'|\])*)*\}" />
</context>
<context name="backquotestring" attribute="String" lineEndContext="#stay">
<IncludeRules context="doublebackquotestringcommon"/>
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="`" />
<DetectChar attribute="String" context="#pop" char="`" />
</context>
<context name="doublequotestring" attribute="String" lineEndContext="#stay">
<IncludeRules context="doublebackquotestringcommon"/>
<Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="&quot;" />
<DetectChar attribute="String" context="#pop" char="&quot;" />
</context>
<context name="singlequotestring" attribute="String" lineEndContext="#stay">
@ -6517,7 +6552,6 @@ Changes:
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Symbol" defStyleNum="dsNormal" />
<itemData name="PHP Text" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Function" defStyleNum="dsFunction" />
@ -6544,6 +6578,6 @@ Changes:
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
</comments>
<keywords casesensitive="0" weakDeliminator=""/>
<keywords casesensitive="0" weakDeliminator="" additionalDeliminator="@"/>
</general>
</language>

@ -4,7 +4,8 @@
<!-- Christoph Hormann <chris_hormann@gmx.de>, March 2004 -->
<!-- features full POV-Ray 3.6 syntax with special highlighting -->
<!-- of variable and macro declarations -->
<language name="POV-Ray" version="1.04" kateversion="2.4" section="Other" extensions="*.inc;*.pov" mimetype="text/x-povray-script;text/x-povray-include" priority="2">
<!-- v1.1: added MegaPOV 1.2.1 keywords (Febuary 2006) -->
<language name="POV-Ray" version="1.1" kateversion="2.4" section="Other" extensions="*.inc;*.pov" mimetype="text/x-povray-script;text/x-povray-include" author="Christoph Hormann (chris_hormann@gmx.de)" license="LGPL" priority="2">
<highlighting>
<list name="keywords">
<item> aa_threshold </item>
@ -449,7 +450,107 @@
<item> internal </item>
<item> noise_generator </item>
</list>
<list name="unofficial">
<item> akima_spline </item>
<item> aoi </item>
<item> basic_x_spline </item>
<item> camera_view </item>
<item> displace </item>
<item> exposure </item>
<item> exposure_gain </item>
<item> extended_x_spline </item>
<item> float </item>
<item> frame_step </item>
<item> date </item>
<item> start_chrono </item>
<item> current_chrono </item>
<item> general_x_spline </item>
<item> glow </item>
<item> h_align_left </item>
<item> h_align_right </item>
<item> h_align_center </item>
<item> v_align_top </item>
<item> v_align_bottom </item>
<item> v_align_center </item>
<item> inverted_normals </item>
<item> is </item>
<item> listed </item>
<item> mpeg </item>
<item> n_roots </item>
<item> noise_pigment </item>
<item> output_filename </item>
<item> post_process </item>
<item> projection </item>
<item> point </item>
<item> blur </item>
<item> set </item>
<item> sor_spline </item>
<item> string </item>
<item> structure </item>
<item> tcb_spline </item>
<item> tension </item>
<item> continuity </item>
<item> bias </item>
<item> user_defined </item>
<item> vector </item>
<item> unofficial_version </item>
<item> gravity </item>
<item> environment </item>
<item> friction </item>
<item> damping </item>
<item> simcloth </item>
<item> wind </item>
<item> neighbors </item>
<item> neighbours </item>
<item> internal_collision </item>
<item> viscosity </item>
<item> iterations </item>
<item> input </item>
<item> mesh_output </item>
<item> smooth_mesh </item>
<item> uv_mesh </item>
<item> output </item>
<item> stiffness </item>
<item> topology </item>
<item> mass </item>
<item> connection </item>
<item> face </item>
<item> velocity </item>
<item> position </item>
<item> mass_count </item>
<item> connection_count </item>
<item> face_count </item>
<item> index1 </item>
<item> index2 </item>
<item> index3 </item>
<item> time </item>
<item> time_step </item>
<item> step_count </item>
<item> start_time </item>
<item> end_time </item>
<item> fixed </item>
<item> collision </item>
<item> interaction </item>
<item> group </item>
<item> attach </item>
<item> field </item>
<item> mechsim </item>
<item> bounding </item>
<item> viscoelastic </item>
<item> viscoelastic_count </item>
<item> element </item>
<item> length </item>
<item> force </item>
<item> message </item>
<item> weight </item>
<item> randomize </item>
<item> hdr </item>
<item> no_radiosity </item>
<item> motion_blur </item>
<item> tone_mapping </item>
<item> show_samples </item>
<item> show_low_count </item>
</list>
<list name="objects">
<item> bicubic_patch </item>
<item> blob </item>
@ -486,7 +587,6 @@
<item> triangle </item>
<item> union </item>
</list>
<list name="texturing">
<item> aa_threshold </item>
<item> aa_level </item>
@ -635,7 +735,6 @@
<item> pigment_pattern </item>
<item> no_bump_scale </item>
</list>
<list name="transforms">
<item> matrix </item>
<item> rotate </item>
@ -643,7 +742,6 @@
<item> translate </item>
<item> transform </item>
</list>
<list name="filetypes">
<item> df3 </item>
<item> gif </item>
@ -657,7 +755,6 @@
<item> tiff </item>
<item> ttf </item>
</list>
<list name="identifiers">
<item> clock </item>
<item> clock_delta </item>
@ -676,7 +773,6 @@
<item> y </item>
<item> z </item>
</list>
<list name="constants">
<item> false </item>
<item> no </item>
@ -686,7 +782,6 @@
<item> true </item>
<item> yes </item>
</list>
<list name="functions">
<item> abs </item>
<item> acos </item>
@ -748,7 +843,6 @@
<item> vstr </item>
<item> vturbulence </item>
</list>
<list name="directives">
<item> #debug </item>
<item> #default </item>
@ -772,13 +866,11 @@
<item> #while </item>
<item> #write </item>
</list>
<list name="attention">
<item> FIXME </item>
<item> TODO </item>
<item> ### </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<StringDetect attribute="Declaration" context="Declaration" String="#declare" />
@ -793,6 +885,7 @@
<keyword attribute="Functions" context="#stay" String="functions" />
<keyword attribute="Directives" context="#stay" String="directives" />
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Unofficial" context="#stay" String="unofficial" />
<Float attribute="Float" context="#stay"/>
<Int attribute="Float" context="#stay"/>
<HlCChar attribute="Char" context="#stay"/>
@ -851,8 +944,9 @@
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" color="#000000" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Keyword" defStyleNum="dsKeyword" color="#000080" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Unofficial" defStyleNum="dsKeyword" color="#0080d0" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Objects" defStyleNum="dsKeyword" color="#800000" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Texturing" defStyleNum="dsKeyword" color="#008080" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Texturing" defStyleNum="dsKeyword" color="#000080" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Transforms" defStyleNum="dsKeyword" color="#000080" selColor="#ffffff" bold="0" italic="0"/>
<itemData name="Declaration" defStyleNum="dsKeyword" color="#000080" selColor="#000080" bold="1" italic="0"/>
<itemData name="Macro" defStyleNum="dsKeyword" color="#000080" selColor="#000080" bold="1" italic="0"/>
@ -869,7 +963,6 @@
<itemData name="Comment" defStyleNum="dsComment" color="#008000" selColor="#008000" bold="0" italic="0"/>
<itemData name="Symbol" defStyleNum="dsNormal" color="#660099" selColor="#660099" bold="0" italic="0"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker"/>
<!-- <itemData name="Region Marker" defStyleNum="dsRegionMarker" />-->
</itemDatas>
</highlighting>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="progress" version="1.09" kateversion="2.4" section="Database" extensions="*.p;*.w;*.i;*.cls" author="Rares Stanciulescu (rstanciu@operamail.com)" license="GPL">
<language name="progress" version="1.10" kateversion="2.4" section="Database" extensions="*.p;*.w;*.i;*.cls;" author="Rares Stanciulescu (rstanciu@operamail.com)" license="GPL">
<highlighting>
@ -22,13 +22,19 @@
<item> WIDGET-HANDLE </item>
<item> RAW </item>
<item> LONG </item>
<item> BYTE </item>
<item> SHORT </item>
<item> BLOB </item>
<item> UNSIGNED-SHORT </item>
<item> FLOAT </item>
<item> DOUBLE </item>
<item> CLOB </item>
<item> LONGCHAR </item>
<item> DATETIME </item>
<item> DATETIME-TZ </item>
<item> TEMP-TABLE </item>
<item> DATASET </item>
<item> DATASET-HANDLE </item>
<item> BUFFER </item>
<item> STREAM </item>
<item> SAX-WRITER </item>
@ -72,6 +78,11 @@
</list>
<list name="phrases">
<item> VOID </item>
<item> IMPLEMENTS </item>
<item> OVERRIDE </item>
<item> FINAL </item>
<item> INHERITS </item>
<item> AS </item>
<item> WORD-INDEX </item>
<item> LIKE </item>
@ -79,7 +90,6 @@
<item> AT </item>
<item> COLOR </item>
<item> COMBO-BOX </item>
<item> EDITING </item>
<item> EDITOR </item>
<item> FORMAT </item>
<item> FRAME </item>
@ -146,6 +156,16 @@
</list>
<list name="functions">
<item> ROW-UPDATE </item>
<item> VALID-OBJECT </item>
<item> TYPE-OF </item>
<item> CAST </item>
<item> AUDIT-ENABLED </item>
<item> GENERATE-UUID </item>
<item> GUID </item>
<item> HEX-DECODE </item>
<item> HEX-ENCODE </item>
<item> SET-DB-CLIENT </item>
<item> output-content-type </item>
<item> get-value </item>
<item> get-cgi </item>
@ -216,7 +236,6 @@
<item> FRAME-NAME </item>
<item> FRAME-ROW </item>
<item> FRAME-VALUE </item>
<item> GATEWAYS </item>
<item> GENERATE-PBE-KEY </item>
<item> GENERATE-PBE-SALT </item>
<item> GENERATE-RANDOM-KEY </item>
@ -236,11 +255,9 @@
<item> GET-SIZE </item>
<item> GET-STRING </item>
<item> GET-UNSIGNED-SHORT </item>
<item> GO-PENDING </item>
<item> INDEX </item>
<item> INTEGER </item>
<item> INTERVAL </item>
<item> IS-ATTR-SPACE </item>
<item> IS-CODEPAGE-FIXED </item>
<item> IS-COLUMN-CODEPAGE </item>
<item> IS-LEAD-BYTE </item>
@ -354,7 +371,6 @@
<item> BELL </item>
<item> BUFFER-COMPARE </item>
<item> BUFFER-COPY </item>
<item> CHOOSE </item>
<item> CLEAR </item>
<item> CLOSE </item>
<item> QUERY </item>
@ -364,12 +380,12 @@
<item> CONNECT </item>
<item> COPY-LOB </item>
<item> CREATE </item>
<item> CLIENT-PRINCIPAL </item>
<item> ALIAS </item>
<item> BROWSE </item>
<item> BUFFER </item>
<item> CALL </item>
<item> DATABASE </item>
<item> DATASET </item>
<item> DATA-SOURCE </item>
<item> QUERY </item>
<item> SAX-READER </item>
@ -400,7 +416,6 @@
<item> BROWSE </item>
<item> BUFFER </item>
<item> BUTTON </item>
<item> DATASET </item>
<item> DATA-SOURCE </item>
<item> FRAME </item>
<item> IMAGE </item>
@ -476,7 +491,6 @@
<item> PUBLISH </item>
<item> CURSOR </item>
<item> PUT </item>
<item> SCREEN </item>
<item> PUT-BITS </item>
<item> PUT-BYTE </item>
<item> PUT-BYTES </item>
@ -507,7 +521,6 @@
<item> SET-BYTE-ORDER </item>
<item> SET-POINTER-VALUE </item>
<item> SET-SIZE </item>
<item> SCROLL </item>
<item> SHOW-STATS </item>
<item> STATUS </item>
<item> STOP </item>
@ -562,6 +575,10 @@
</list>
<list name="handles">
<item> THIS-OBJECT </item>
<item> AUDIT-CONTROL </item>
<item> AUDIT-POLICY </item>
<item> SECURITY-POLICY </item>
<item> ACTIVE-WINDOW </item>
<item> BUFFER </item>
<item> BUFFER-FIELD </item>
@ -619,6 +636,42 @@
</list>
<list name="attributes">
<item> ANYWHERE </item>
<item> SCHEMA-MARSHAL </item>
<item> ATTACHED-PAIRLIST </item>
<item> DATA-SOURCE-COMPLETE-MAP </item>
<item> KEYS </item>
<item> NEXT-ROWID </item>
<item> NUM-REFERENCES </item>
<item> RESTART-ROWID </item>
<item> CLASS-TYPE </item>
<item> FIRST-OBJECT </item>
<item> LAST-OBJECT </item>
<item> MULTI-COMPILE </item>
<item> WIDGET-ID </item>
<item> SCHEMA-LOCATION </item>
<item> STANDALONE </item>
<item> STRICT </item>
<item> VERSION </item>
<item> WRITE-STATUS </item>
<item> NONAMESPACE-SCHEMA-LOCATION </item>
<item> FRAGMENT </item>
<item> APPL-CONTEXT-ID </item>
<item> AUDIT-EVENT-CONTEXT </item>
<item> CLIENT-TTY </item>
<item> CLIENT-WORKSTATION </item>
<item> DOMAIN-DESCRIPTION </item>
<item> DOMAIN-NAME </item>
<item> DOMAIN-TYPE </item>
<item> EVENT-GROUP-ID </item>
<item> LOGIN-EXPIRATION-TIMESTAMP </item>
<item> LOGIN-HOST </item>
<item> LOGIN-STATE </item>
<item> ROLES </item>
<item> SEAL-TIMESTAMP </item>
<item> SESSION-ID </item>
<item> STATE-DETAIL </item>
<item> USER-ID </item>
<item> ACCELERATOR </item>
<item> ACTIVE </item>
<item> ACTOR </item>
@ -1164,6 +1217,7 @@
<item> Y </item>
<item> YEAR-OFFSET </item>
<item> WRITE-XMLSCHEMA </item>
<item> READ-XMLSCHEMA </item>
<item> WRITE-XML </item>
<item> READ-XML </item>
<item> NESTED </item>
@ -1178,10 +1232,47 @@
<item> END-DOCUMENT </item>
<item> WRITE-DATA-ELEMENT </item>
<item> INSERT-ATTRIBUTE </item>
</list>
<list name="methods">
<item> COPY-DATASET </item>
<item> COPY-TEMP-TABLE </item>
<item> GET-CALLBACK-PROC-CONTEXT </item>
<item> GET-CALLBACK-PROC-NAME </item>
<item> GET-BINARY-DATA </item>
<item> ADD-SCHEMA-LOCATION </item>
<item> DECLARE-NAMESPACE </item>
<item> RESET </item>
<item> WRITE-CDATA </item>
<item> WRITE-COMMENT </item>
<item> WRITE-EMPTY-ELEMENT </item>
<item> WRITE-ENTITY-REF </item>
<item> WRITE-EXTERNAL-DTD </item>
<item> WRITE-FRAGMENT </item>
<item> WRITE-PROCESSING-INSTRUCTION </item>
<item> CLEAR-LOG </item>
<item> CLOSE-LOG </item>
<item> WRITE-MESSAGE </item>
<item> AUTHENTICATION-FAILED </item>
<item> BEGIN-EVENT-GROUP </item>
<item> CLEAR-APPL-CONTEXT </item>
<item> ENCRYPT-AUDIT-MAC-KEY </item>
<item> END-EVENT-GROUP </item>
<item> EXPORT-PRINCIPAL </item>
<item> GET-PROPERTY </item>
<item> IMPORT-PRINCIPAL </item>
<item> LIST-PROPERTY-NAMES </item>
<item> LOAD-DOMAINS </item>
<item> LOCK-REGISTRATION </item>
<item> LOG-AUDIT-EVENT </item>
<item> LOGOUT </item>
<item> REFRESH-AUDIT-POLICY </item>
<item> REGISTER-DOMAIN </item>
<item> SEAL </item>
<item> SET-APPL-CONTEXT </item>
<item> SET-CLIENT </item>
<item> SET-PROPERTY </item>
<item> VALIDATE-SEAL </item>
<item> ACCEPT-CHANGES </item>
<item> ACCEPT-ROW-CHANGES </item>
<item> ADD-BUFFER </item>
@ -1421,7 +1512,6 @@
<item> WRITE </item>
<item> MAX-HEIGHT </item>
<item> MAX-WIDTH </item>
</list>
<list name="envvariables">
@ -1480,7 +1570,6 @@
<item> APPPROGRAM </item>
<item> OUTPUT-CONTENT-TYPE </item>
<item> WEB_SRC_PATH </item>
</list>
@ -1540,6 +1629,18 @@
<StringDetect attribute="Region Marker" context="#stay"
String="END CONSTRUCTOR" insensitive="TRUE"
endRegion="CN1" firstNonSpace="TRUE"/>
<StringDetect attribute="Region Marker" context="#stay"
String="DESTRUCTOR" insensitive="TRUE"
beginRegion="DS1" firstNonSpace="TRUE"/>
<StringDetect attribute="Region Marker" context="#stay"
String="END DESTRUCTOR" insensitive="TRUE"
endRegion="DS1" firstNonSpace="TRUE"/>
<StringDetect attribute="Region Marker" context="#stay"
String="INTERFACE" insensitive="TRUE"
beginRegion="IF1" firstNonSpace="TRUE"/>
<StringDetect attribute="Region Marker" context="#stay"
String="END INTERFACE" insensitive="TRUE"
endRegion="IF1" firstNonSpace="TRUE"/>
<StringDetect attribute="Function" context="#stay"
String="DO:" insensitive="TRUE"

@ -1,64 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<!-- Python syntax highlightning v0.9 by Per Wigren -->
<language name="Python" version="1.24" kateversion="2.4" section="Scripts" extensions="*.py;*.pyw;SConstruct;SConscript" mimetype="application/x-python;text/x-python" casesensitive="1" author="Per Wigren" license="">
<!-- Python syntax highlighting v1.9 by Michael Bueker (improved keyword differentiation) -->
<!-- Python syntax highlighting v1.97 by Paul Giannaros -->
<!-- Python syntax highlighting v1.99 by Primoz Anzur -->
<language name="Python" version="1.99" kateversion="2.4" section="Scripts" extensions="*.py;*.pyw" mimetype="application/x-python;text/x-python" casesensitive="1" author="Michael Bueker" license="">
<highlighting>
<list name="prep">
<item> import </item>
<item> from </item>
<item> as </item>
</list>
<list name="statements">
<list name="defs">
<item> class </item>
<item> def </item>
<item> del </item>
<item> global </item>
<item> lambda </item>
</list>
<list name="operators">
<item> and </item>
<item> assert </item>
<item> in </item>
<item> is </item>
<item> not </item>
<item> or </item>
</list>
<list name="commands">
<item> exec </item>
<item> print </item>
</list>
<list name="flow">
<item> break </item>
<item> class </item>
<item> continue </item>
<item> def </item>
<item> del </item>
<item> elif </item>
<item> else </item>
<item> except </item>
<item> exec </item>
<item> finally </item>
<item> for </item>
<item> global </item>
<item> if </item>
<item> in </item>
<item> is </item>
<item> lambda </item>
<item> not </item>
<item> or </item>
<item> pass </item>
<item> print </item>
<item> raise </item>
<item> return </item>
<item> try </item>
<item> while </item>
<item> yield </item>
</list>
<list name="builtinfuncs">
<item> __future__ </item>
<item> __import__ </item>
<item> __name__ </item>
<item> abs </item>
<item> all </item>
<item> any </item>
<item> apply </item>
<item> basestring </item>
<item> bool </item>
<item> buffer </item>
<item> callable </item>
<item> chr </item>
<item> classmethod </item>
<item> cmp </item>
<item> coerce </item>
<item> compile </item>
<item> complex </item>
<item> copyright </item>
<item> credits </item>
<item> delattr </item>
<item> dict </item>
<item> dir </item>
<item> divmod </item>
<item> enumerate </item>
<item> eval </item>
<item> execfile </item>
<item> exit </item>
<item> file </item>
<item> filter </item>
<item> float </item>
<item> frozenset </item>
<item> getattr </item>
<item> globals </item>
<item> hasattr </item>
@ -72,27 +88,33 @@
<item> issubclass </item>
<item> iter </item>
<item> len </item>
<item> license </item>
<item> list </item>
<item> locals </item>
<item> long </item>
<item> map </item>
<item> max </item>
<item> min </item>
<item> object </item>
<item> oct </item>
<item> open </item>
<item> ord </item>
<item> pow </item>
<item> quit </item>
<item> property </item>
<item> range </item>
<item> raw_input </item>
<item> reduce </item>
<item> reload </item>
<item> repr </item>
<item> reversed </item>
<item> round </item>
<item> set </item>
<item> setattr </item>
<item> slice </item>
<item> sorted </item>
<item> staticmethod </item>
<item> str </item>
<item> sum </item>
<item> super </item>
<item> tuple </item>
<item> type </item>
<item> unichr </item>
@ -101,38 +123,114 @@
<item> xrange </item>
<item> zip </item>
</list>
<list name="specialvars">
<item> None </item>
<item> self </item>
<item> cls </item>
<item> True </item>
<item> False </item>
<item> NotImplemented </item>
<item> Ellipsis </item>
</list>
<list name="bindings">
<item> SIGNAL </item>
<item> SLOT </item>
<item> connect </item>
</list>
<list name="overloaders">
<item>__new__</item>
<item>__init__</item>
<item>__del__</item>
<item>__repr__</item>
<item>__str__</item>
<item>__lt__</item>
<item>__le__</item>
<item>__eq__</item>
<item>__ne__</item>
<item>__gt__</item>
<item>__ge__</item>
<item>__cmp__</item>
<item>__rcmp__</item>
<item>__hash__</item>
<item>__nonzero__</item>
<item>__unicode__</item>
</list>
<list name="exceptions">
<item>ArithmeticError</item>
<item>AssertionError</item>
<item>AttributeError</item>
<item>BaseException</item>
<item>DeprecationWarning</item>
<item>EnvironmentError</item>
<item>EOFError</item>
<item>Exception</item>
<item>FloatingPointError</item>
<item>FutureWarning</item>
<item>GeneratorExit</item>
<item>IOError</item>
<item>ImportError</item>
<item>ImportWarning</item>
<item>IndexError</item>
<item>KeyError</item>
<item>KeyboardInterrupt</item>
<item>LookupError</item>
<item>MemoryError</item>
<item>NameError</item>
<item>NotImplementedError</item>
<item>OSError</item>
<item>OverflowError</item>
<item>PendingDeprecationWarning</item>
<item>ReferenceError</item>
<item>RuntimeError</item>
<item>RuntimeWarning</item>
<item>StandardError</item>
<item>StopIteration</item>
<item>SyntaxError</item>
<item>SyntaxWarning</item>
<item>SystemError</item>
<item>SystemExit</item>
<item>TypeError</item>
<item>UnboundLocalError</item>
<item>UserWarning</item>
<item>UnicodeError</item>
<item>UnicodeWarning</item>
<item>UnicodeEncodeError</item>
<item>UnicodeDecodeError</item>
<item>UnicodeTranslateError</item>
<item>ValueError</item>
<item>Warning</item>
<item>WindowsError</item>
<item>ZeroDivisionError</item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<keyword attribute="Preprocessor" String="prep" context="#stay"/>
<keyword attribute="Keyword" String="statements" context="#stay"/>
<keyword attribute="Definition Keyword" String="defs" context="#stay"/>
<keyword attribute="Operator" String="operators" context="#stay"/>
<keyword attribute="Command Keyword" String="commands" context="#stay"/>
<keyword attribute="Flow Control Keyword" String="flow" context="#stay"/>
<keyword attribute="Builtin Function" String="builtinfuncs" context="#stay"/>
<keyword attribute="Special Variable" String="specialvars" context="#stay"/>
<RegExpr attribute="Normal" String="[a-zA-Z_]\w+" context="#stay"/>
<keyword attribute="Extensions" String="bindings" context="#stay"/>
<keyword attribute="Exceptions" String="exceptions" context="#stay"/>
<keyword attribute="Overloaders" String="overloaders" context="#stay"/>
<RegExpr attribute="Normal" String="[a-zA-Z_][a-zA-Z_0-9]+" context="#stay"/>
<RegExpr attribute="Complex" String=" ((([0-9]*\.[0-9]+|[0-9]+\.)|([0-9]+|([0-9]*\.[0-9]+|[0-9]+\.))[eE](\+|-)?[0-9]+)|[0-9]+)[jJ]" context="#stay"/>
<RegExpr attribute="Float" String="([0-9]+\.[0-9]*|\.[0-9]+)([eE][0-9]+)?" context="#stay"/>
<RegExpr attribute="Int" String="([1-9][0-9]*([eE][0-9]+)?|0)" context="#stay"/>
<RegExpr attribute="Long" String="[1-9][0-9]*([eE][0-9.]+)?[Ll]" context="#stay"/>
<RegExpr attribute="Hex" String="0[Xx][0-9a-fA-F]+" context="#stay"/>
<RegExpr attribute="Octal" String="0[1-9][0-9]*" context="#stay"/>
<RegExpr attribute="Complex" String=" (((\d*\.\d+|\d+\.)|(\d+|(\d*\.\d+|\d+\.))[eE][+-]?\d+)|\d+)[jJ]" context="#stay"/>
<RegExpr attribute="Float" String="(\d+\.\d*|\.\d+)([eE]\d+)?" context="#stay"/>
<RegExpr attribute="Int" String="([1-9]\d*([eE]\d+)?|0)" context="#stay"/>
<RegExpr attribute="Long" String="[1-9]\d*([eE][\d.]+)?[Ll]" context="#stay"/>
<RegExpr attribute="Hex" String="0[Xx][\da-fA-F]+" context="#stay"/>
<RegExpr attribute="Octal" String="0[1-9]\d*" context="#stay"/>
<RegExpr attribute="Raw String" String="[rR]'''" context="Raw Tripple A-string"/>
<RegExpr attribute="Raw String" String="[rR]&quot;&quot;&quot;" context="Raw Tripple Q-string"/>
<RegExpr attribute="Raw String" String="[rR]'" context="Raw A-string"/>
<RegExpr attribute="Raw String" String="[rR]&quot;" context="Raw Q-string"/>
<RegExpr attribute="Comment" String="#.*$" context="#stay"/>
<StringDetect attribute="Comment" String="'''" context="Tripple A-comment" firstNonSpace="true" beginRegion="Tripple A-region"/>
<StringDetect attribute="Comment" String="&quot;&quot;&quot;" context="Tripple Q-comment" firstNonSpace="true" beginRegion="Tripple Q-region"/>
<RegExpr attribute="Comment" String="^\s*'''" context="Tripple A-comment" beginRegion="Tripple A-region"/>
<RegExpr attribute="Comment" String="^\s*&quot;&quot;&quot;" context="Tripple Q-comment" beginRegion="Tripple Q-region"/>
<StringDetect attribute="String" String="'''" context="Tripple A-string" beginRegion="Tripple A-region"/>
<StringDetect attribute="String" String="&quot;&quot;&quot;" context="Tripple Q-string" beginRegion="Tripple Q-region"/>
@ -141,34 +239,51 @@
<DetectChar attribute="Operator" char="(" context="parenthesised" beginRegion="parenthesis"/>
<DetectChar attribute="Operator" char=")" context="#pop" endRegion="parenthesis"/>
<RegExpr attribute="Operator" String="[+*/\(\)%\|\[\]\{\}:=;\!&lt;&gt;!^&amp;~-]" context="#stay"/>
<RegExpr attribute="Operator" String="[+*/%\|=;\!&lt;&gt;!^&amp;~-]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
</context>
<context name="parenthesised" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="True">
<context name="parenthesised" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true">
<IncludeRules context="Normal" />
</context>
<context name="Tripple A-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="True">
<HlCChar attribute="Comment" context="#stay"/>
<context name="Tripple A-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true">
<StringDetect attribute="Comment" String="'''" context="#pop" endRegion="Tripple A-region"/>
</context>
<context name="Tripple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="True">
<context name="Tripple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCChar attribute="Comment" context="#stay"/>
<StringDetect attribute="Comment" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<RegExpr attribute="Comment" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
</context>
<context name="Tripple A-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
</context>
<context name="Tripple A-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="True">
<HlCChar attribute="String" context="#stay"/>
<RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/>
<StringDetect attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
<context name="Raw Tripple A-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
</context>
<context name="Tripple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="True">
<HlCStringChar attribute="String" context="#stay"/>
<RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/>
<StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<context name="Tripple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
</context>
<context name="Raw Tripple Q-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
</context>
<context name="Single A-comment" attribute="Comment" lineEndContext="#stay">
@ -182,24 +297,30 @@
</context>
<context name="Single A-string" attribute="String" lineEndContext="#stay">
<HlCStringChar attribute="String" context="#stay"/>
<RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<DetectChar attribute="String" char="'" context="#pop"/>
</context>
<context name="Single Q-string" attribute="String" lineEndContext="#stay">
<HlCStringChar attribute="String" context="#stay"/>
<RegExpr attribute="Operator" String="%[a-zA-Z]" context="#stay"/>
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<DetectChar attribute="String" char="&quot;" context="#pop"/>
</context>
<context name="Raw A-string" attribute="Raw String" lineEndContext="#stay">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<DetectChar attribute="Raw String" char="'" context="#pop"/>
</context>
<context name="Raw Q-string" attribute="Raw String" lineEndContext="#stay">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<DetectChar attribute="Raw String" char="&quot;" context="#pop"/>
</context>
@ -207,11 +328,18 @@
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Operator" defStyleNum="dsChar"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Definition Keyword" defStyleNum="dsKeyword"/>
<itemData name="Operator" defStyleNum="dsNormal"/>
<itemData name="String Substitution" defStyleNum="dsNormal"/>
<itemData name="Command Keyword" defStyleNum="dsKeyword"/>
<itemData name="Flow Control Keyword" defStyleNum="dsKeyword"/>
<itemData name="Builtin Function" defStyleNum="dsDataType"/>
<itemData name="Special Variable" defStyleNum="dsOthers"/>
<itemData name="Extensions" defStyleNum="dsOthers" color="#0095ff" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Exceptions" defStyleNum="dsOthers" color="#054d00" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Overloaders" defStyleNum="dsOthers" color="#000e52" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Preprocessor" defStyleNum="dsChar"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Long" defStyleNum="dsOthers"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Int" defStyleNum="dsDecVal"/>
@ -225,6 +353,10 @@
</highlighting>
<general>
<folding indentationsensitive="1" />
<emptyLines>
<emptyLine regexpr="\s+" casesensitive="false"/>
<emptyLine regexpr="\s*#.*$" casesensitive="false"/>
</emptyLines>
<comments>
<comment name="singleLine" start="#" position="afterwhitespace"/>
</comments>

@ -8,7 +8,7 @@
R : http://www.r-project.org/
RKWard : http://rkward.sourceforge.net/
-->
<language version="2.01" kateversion="2.5" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL">
<language version="2.02" kateversion="2.5" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL">
<highlighting>
<list name="controls">
@ -28,6 +28,10 @@
<item> FALSE </item>
<item> NULL </item>
<item> NA </item>
<item> NA_integer_ </item>
<item> NA_real_ </item>
<item> NA_complex_ </item>
<item> NA_character_ </item>
<item> Inf </item>
<item> NaN </item>
</list>
@ -50,7 +54,7 @@
<context attribute="In Parenthesis" lineEndContext="#stay" name="parenthesis">
<LineContinue attribute="Boolean" context="#stay"/>
<DetectChar attribute="Keyword" context="#pop" char=")"/>
<DetectChar attribute="Symbol" context="#pop" char=")"/>
<RegExpr attribute="Identifier" context="#stay" String="[a-zA-Z_\.][0-9a-zA-Z_\.]*[\s]*=(?=([^=]|$))"/>
@ -60,6 +64,10 @@
<context attribute="String" lineEndContext="#stay" name="string">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
<HlCStringChar attribute="String Char" context="#stay"/>
</context>
<context attribute="String" lineEndContext="#stay" name="string2">
<DetectChar attribute="String" context="#pop" char="'"/>
<HlCStringChar attribute="String Char" context="#stay"/>
</context>
@ -75,7 +83,7 @@
<!-- This context is not really used, but contains the common rules -->
<context name="CommonRules" lineEndContext="#stay" attribute="Normal Text" >
<DetectChar attribute="String" context="string" char="&quot;"/>
<DetectChar attribute="String" context="string" char="'"/>
<DetectChar attribute="String" context="string2" char="'"/>
<DetectChar attribute="String" context="backquotedsymbol" char="`"/>
<keyword attribute="Control Structure" context="#stay" String="controls"/>
<keyword attribute="Reserved Words" context="#stay" String="words"/>
@ -83,7 +91,7 @@
<Int attribute="Int" context="#stay"/>
<RegExpr attribute="Keyword" context="#stay" String="[a-zA-Z_]+[a-zA-Z_\.0-9]*(?=[\s]*[(])"/>
<RegExpr attribute="Keyword" context="#stay" String="\.[a-zA-Z_\.]+[a-zA-Z_\.0-9]*(?=[\s]*[(])"/>
<RegExpr attribute="Keyword" context="parenthesis" String="\("/>
<RegExpr attribute="Symbol" context="parenthesis" String="\("/>
<StringDetect attribute="Headline" context="Headline" String="##"/>
<DetectChar attribute="Comment" context="Comment" char="#"/>
@ -99,11 +107,15 @@
<RegExpr attribute="Assign" context="#stay" String="=(?!=)"/>
<!-- These operators are fine as long as they're followed by something else or end of line. Error otherwise -->
<RegExpr attribute="Operator" context="#stay" String="(\+|\-|\*|/|&lt;=|&gt;=|={1,2}|\!=|\|{1,2}|&amp;{1,2}|:{1,2}|\^|@|\$|~)((?!(\+|\-|\*|/|&lt;=|&gt;=|=|\!=|\||&amp;|:|\^|@|\$|~))|$)"/>
<RegExpr attribute="Error" context="#stay" String="(\+|\-|\*|/|&lt;=|&gt;=|={1,2}|\!=|\|{1,2}|&amp;{1,2}|:{1,2}|\^|@|\$|~){2,}"/>
<RegExpr attribute="Operator" context="#stay" String="(\+|\-|\*|/|&lt;=|&gt;=|={1,2}|\!=|\|{1,2}|&amp;{1,2}|:{1,3}|\^|@|\$|~)((?!(\+|\-|\*|/|&lt;=|&gt;=|=|\!=|\||&amp;|:|\^|@|\$|~))|$)"/>
<RegExpr attribute="Error" context="#stay" String="(\+|\-|\*|/|&lt;=|&gt;=|={1,2}|\!=|\|{1,2}|&amp;{1,2}|:{1,3}|\^|@|\$|~){2,}"/>
<RegExpr attribute="Operator" context="#stay" String="%[^%]*%"/>
<DetectChar attribute="Symbol" context="ctx0" char="{" beginRegion="Brace1" />
<!-- This is needed only to assist variable based indentation -->
<DetectChar attribute="Symbol" context="#stay" char="[" />
<DetectChar attribute="Symbol" context="#stay" char="]" />
</context>
</contexts>

@ -0,0 +1,432 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="RapidQ" version="1.01" kateversion="2.1" section="Sources" extensions="*.rqb" author="Tiberiu Dragulinescu" license="LGPL">
<highlighting>
<list name="keywords">
<item>abs</item>
<item>acos</item>
<item>asc</item>
<item>asin</item>
<item>atn</item>
<item>atan</item>
<item>bin$</item>
<item>bind</item>
<item>callfunc</item>
<item>chdir</item>
<item>chr$</item>
<item>cint</item>
<item>clng</item>
<item>const</item>
<item>convbase$</item>
<item>cos</item>
<item>data</item>
<item>date$</item>
<item>dec</item>
<item>def</item>
<item>delete$</item>
<item>dim</item>
<item>dir$</item>
<item>direxists</item>
<item>doevents</item>
<item>end</item>
<item>environ</item>
<item>environ$</item>
<item>exp</item>
<item>extractresource</item>
<item>field$</item>
<item>fileexists</item>
<item>fix</item>
<item>format$</item>
<item>frac</item>
<item>hex$</item>
<item>iif</item>
<item>inc</item>
<item>inp</item>
<item>insert$</item>
<item>instr</item>
<item>int</item>
<item>kill</item>
<item>lcase$</item>
<item>left$</item>
<item>len</item>
<item>log</item>
<item>lbound</item>
<item>lflush</item>
<item>lprint</item>
<item>ltrim$</item>
<item>messagedlg</item>
<item>mid$</item>
<item>mkdir</item>
<item>out</item>
<item>playwav</item>
<item>postmessage</item>
<item>quicksort</item>
<item>randomize</item>
<item>read</item>
<item>redim</item>
<item>rem</item>
<item>rename</item>
<item>replace$</item>
<item>replacesubstr$</item>
<item>resource</item>
<item>resourcecount</item>
<item>restore</item>
<item>reverse$</item>
<item>rgb</item>
<item>right$</item>
<item>rinstr</item>
<item>rmdir</item>
<item>rnd</item>
<item>round</item>
<item>rtrim$</item>
<item>run</item>
<item>sendmessage</item>
<item>sgn</item>
<item>shell</item>
<item>showmessage</item>
<item>sin</item>
<item>sizeof</item>
<item>space$</item>
<item>sqr</item>
<item>str$</item>
<item>strf$</item>
<item>string$</item>
<item>swap</item>
<item>tally</item>
<item>tan</item>
<item>time$</item>
<item>timer</item>
<item>ubound</item>
<item>ucase$</item>
<item>val</item>
<item>varptr</item>
<item>varptr$</item>
<item>true</item>
<item>false</item>
<item>sound</item>
<item>call</item>
<item>goto</item>
<item>gosub</item>
<item>sub</item>
<item>function</item>
<item>declare</item>
<item>do</item>
<item>doevent</item>
<item>loop</item>
<item>while</item>
<item>wend</item>
<item>until</item>
<item>if</item>
<item>then</item>
<item>elseif</item>
<item>select</item>
<item>case</item>
<item>functioni</item>
<item>subi</item>
<item>create</item>
<item>type</item>
<item>exit</item>
<item>messagebox</item>
<item>as</item>
<item>string</item>
<item>integer</item>
<item>word</item>
<item>long</item>
<item>byte</item>
<item>off</item>
<item>on</item>
<item>else</item>
<item>gui</item>
<item>for</item>
<item>next</item>
<item>with</item>
<item>mask</item>
<item>and</item>
<item>or</item>
<item>constructor</item>
<item>extends</item>
<item>defint</item>
<item>defstr</item>
<item>static</item>
<item>public</item>
<item>private</item>
<item>event</item>
<item>single</item>
<item>double</item>
<item>to</item>
</list>
<list name="objects">
<item>clipboard</item>
<item>printer</item>
<item>qbitmap</item>
<item>qbutton</item>
<item>qcanvas</item>
<item>qcheckbox</item>
<item>qcombobox</item>
<item>qcomport</item>
<item>qcoolbtn</item>
<item>qdirtree</item>
<item>qedit</item>
<item>qfilelistbox</item>
<item>qfilestream</item>
<item>qfont</item>
<item>qfontdialog</item>
<item>qform</item>
<item>qgauge</item>
<item>qglassframe</item>
<item>qgroupbox</item>
<item>qheader</item>
<item>qimage</item>
<item>qimagelist</item>
<item>qlabel</item>
<item>qlistbox</item>
<item>qlistview</item>
<item>qmainmenu</item>
<item>qmemorystream</item>
<item>qmenuitem</item>
<item>qmysql</item>
<item>qnotifyicondata</item>
<item>qopendialog</item>
<item>qoutline</item>
<item>qovalbtn</item>
<item>qpanel</item>
<item>qpopupmenu</item>
<item>qradiobutton</item>
<item>qrect</item>
<item>qregistry</item>
<item>qrichedit</item>
<item>qsavedialog</item>
<item>qscrollbar</item>
<item>qsocket</item>
<item>qsplitter</item>
<item>qstatusbar</item>
<item>qstringgrid</item>
<item>qstringlist</item>
<item>qtabcontrol</item>
<item>qtimer</item>
<item>qtrackbar</item>
<item>qdximagelist</item>
<item>qdxscreen</item>
<item>qdxtimer</item>
<item>qd3dface</item>
<item>qd3dframe</item>
<item>qd3dlight</item>
<item>qd3dmesh</item>
<item>qd3dtexture</item>
<item>qd3dvector</item>
<item>qd3dvisual</item>
<item>qd3dwarp</item>
<item>application</item>
<item>screen</item>
<item>command$</item>
<item>curdir$</item>
<item>sender</item>
</list>
<list name="directives">
<item>$apptype</item>
<item>$typecheck</item>
<item>$include</item>
<item>$resource</item>
<item>$define</item>
<item>$undef</item>
<item>$ifdef</item>
<item>$ifndef</item>
<item>$option</item>
<item>$optimize</item>
<item>$escapechars</item>
<item>$EndIf</item>
</list>
<list name="propsandmeths">
<item>left</item>
<item>top</item>
<item>width</item>
<item>height</item>
<item>open</item>
<item>close</item>
<item>readstring</item>
<item>readinteger</item>
<item>readudt</item>
<item>writestring</item>
<item>writeinteger</item>
<item>writeudt</item>
<item>rootkey</item>
<item>openkey</item>
<item>closekey</item>
<item>flat</item>
<item>cursor</item>
<item>showhint</item>
<item>hint</item>
<item>transparent</item>
<item>caption</item>
<item>onclick</item>
<item>onkeydown</item>
<item>onkeyup</item>
<item>onmousedown</item>
<item>onmouseup</item>
<item>tag</item>
<item>color</item>
<item>onchange</item>
<item>autosize</item>
<item>borderstyle</item>
<item>wordwrap</item>
<item>align</item>
<item>alignment</item>
<item>font</item>
<item>visible</item>
<item>enabled</item>
<item>readline</item>
<item>writeline</item>
<item>additems</item>
<item>addstrings</item>
<item>addstring</item>
<item>delitems</item>
<item>itemcount</item>
<item>itemindex</item>
<item>item</item>
<item>handle</item>
<item>icon</item>
<item>bmphandle</item>
<item>terminate</item>
<item>wndproc</item>
<item>onclose</item>
<item>ontimer</item>
<item>interval</item>
<item>name</item>
<item>size</item>
<item>addstyles</item>
<item>hidetitlebar</item>
<item>show</item>
<item>showmodal</item>
<item>text</item>
<item>button</item>
<item>labelstyle</item>
<item>center</item>
<item>taborder</item>
<item>position</item>
<item>delbordericons</item>
<item>onshow</item>
<item>addbordericons</item>
<item>onkeypress</item>
<item>key</item>
<item>mousex</item>
<item>mousey</item>
<item>onpaint</item>
<item>parent</item>
<item>icohandle</item>
<item>directory</item>
<item>filter</item>
<item>execute</item>
<item>+</item>
<item>filename</item>
<item>bevelinner</item>
<item>bold</item>
<item>checked</item>
<item>clear</item>
<item>underline</item>
<item>maxlength</item>
<item>inputmask</item>
<item>forecolor</item>
<item></item>
<item>backcolor</item>
<item>deldrivetypes</item>
<item>adddrivetypes</item>
<item>update</item>
<item>bevelouter</item>
<item></item>
<item>loadfromfile</item>
<item>subitem</item>
<item>viewstyle</item>
<item>rowselect</item>
<item>readonly</item>
<item>gridlines</item>
<item></item>
<item>addcolumns</item>
<item>oncolumnclick</item>
<item>ondblclick</item>
<item>addsubitem</item>
<item>scrollbars</item>
<item></item>
<item>addchilditems</item>
<item>plaintext</item>
<item>selstart</item>
<item>sellength</item>
<item>sorted</item>
<item>ColCount</item>
<item></item>
<item>onmoved</item>
<item>groupindex</item>
<item>OnResize</item>
<item>RowCount</item>
<item>cell</item>
<item>TabPosition</item>
<item>KeyPreview</item>
<item>AddTabs</item>
<item>DelTabs</item>
<item>HotTrack</item>
<item>TabIndex</item>
<item>SizeGrip</item>
<item>AddPanels</item>
<item>Panel</item>
<item>DefaultColWidth</item>
<item>FixedCols</item>
<item>AddOptions</item>
<item>Separator</item>
<item>Col</item>
<item>Row</item>
<item>Rectangle</item>
<item>FillRect</item>
<item>Draw</item>
<item>Count</item>
<item>Line</item>
<item>Circle</item>
<item>TextWidth</item>
<item>TextHeight</item>
<item>TextOut</item>
<item>BeginDoc</item>
<item>EndDoc</item>
<item>CopyRect</item>
<item>FilterIndex</item>
<item>SaveToStream</item>
<item>LoadFromStream</item>
<item>PrinterIndex</item>
<item>Orientation</item>
<item>PageWidth</item>
<item>PageHeight</item>
<item>Right</item>
<item>Bottom</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Object" context="#stay" String="objects"/>
<keyword attribute="Directive" context="#stay" String="directives"/>
<keyword attribute="Propormeth" context="#stay" String="propsandmeths"/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="Comment" context="Comment" char="'"/>
<Float attribute="Float" context="#stay" />
<Int attribute="Decimal" context="#stay" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop"/>
<context name="String" attribute="String" lineEndContext="#pop">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Object" defStyleNum="dsFunction"/>
<itemData name="Directive" defStyleNum="dsOthers"/>
<itemData name="Propormeth" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal" />
<itemData name="Float" defStyleNum="dsFloat" />
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="'" />
</comments>
<keywords casesensitive="0" />
</general>
</language>

@ -44,7 +44,7 @@
-->
<!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". -->
<language name="Ruby/Rails/RHTML" version="1.00" kateversion="2.4" section="Markup" extensions="*.rhtml;*.html.erb" mimetype="" author="Richard Dale rdale@foton.es" license="LGPL">
<language name="Ruby/Rails/RHTML" version="1.01" kateversion="2.4" section="Markup" extensions="*.rhtml;*.html.erb" mimetype="" author="Richard Dale rdale@foton.es" license="LGPL">
<highlighting>
@ -1227,7 +1227,6 @@
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#"/>
<comment name="multiLine" start="&lt;!--" end="--&gt;" />
</comments>
<keywords casesensitive="1" weakDeliminator="!?"/>

@ -1,80 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="RPM Spec" version="1.1" kateversion="2.4" section="Other" extensions="*.spec" mimetype="">
<!DOCTYPE language SYSTEM "language.dtd" [
<!ENTITY a_valid_char_in_macro_names "A-Za-z0-9_">
]>
<language name="RPM Spec" version="1.4" kateversion="2.4" section="Other" extensions="*.spec" mimetype="" license="public domain">
<highlighting>
<list name="keywords">
<item> Name </item>
<item> Summary </item>
<item> Version </item>
<item> Epoch </item>
<item> Serial </item>
<item> Release </item>
<item> Source </item>
<item> Group </item>
<item> Copyright </item>
<item> License </item>
<item> Vendor </item>
<item> Distribution </item>
<item> Packager </item>
<item> Url </item>
<item> URL </item>
<item> Prefix </item>
<item> Conflicts </item>
<item> Obsoletes </item>
<item> Provides </item>
<item> PreReq </item>
<item> Requires </item>
<item> BuildArch </item>
<item> BuildArchitectures </item>
<item> BuildConflicts </item>
<item> BuildRequires </item>
<item> BuildRoot </item>
<item> ExclusiveArch </item>
<item> ExclusiveOs </item>
<item> ExcludeArch </item>
<item> ExcludeOs </item>
</list>
<list name="types">
<item> GPL </item>
<item> LGPL </item>
<item> Artistic </item>
</list>
<contexts>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Data" context="#stay" String="types"/>
<RegExpr attribute="Red" context="#stay" String="%\w*" />
<DetectChar attribute="Comment" context="Comment" char="#" />
<RegExpr attribute="Keyword" context="Some Context" String="\{\w*" />
<RegExpr attribute="Blue" context="Some Context2" String="&lt;\s*[\w@\.]*" />
<RegExpr attribute="Data" context="#stay" String="\$\w*" />
<RegExpr attribute="Keyword" context="#stay" String="(Source|Patch)\d*" />
<RegExpr attribute="Keyword" context="#stay" String="\*.*" firstNonSpace="true"/> <!-- ChangeLog -->
<Int attribute="Blue" context="#stay" />
<!-- Handle tags: -->
<RegExpr attribute="Tag" context="tag_line" String="((Name|Summary|Summary\(.*\)|Version|Epoch|Serial|Release|Group|Copyright|License|Icon|Vendor|Distribution|Packager|Url|URL|Prefix|Conflicts|Obsoletes|Provides|AutoReqProv|PreReq|Requires|Requires\(.*\)|Enhances|Suggests|Recommends|BuildArch|BuildArchitectures|BuildConflicts|BuildRequires|BuildRoot|ExclusiveArch|ExclusiveOs|ExcludeArch|ExcludeOs|Source\d*|Nosource|Patch\d*|Nopatch)[ \t]*:)" column="0" />
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
<!-- Handle comments. "# norootforbuild" is displayed like a tag. -->
<DetectChar context="Comment" char="#" column="0" lookAhead="true" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="command section">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
<!-- Handle comments. "# norootforbuild" is displayed like a tag. -->
<DetectChar context="Comment" char="#" column="0" lookAhead="true" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="changelog section">
<Detect2Chars attribute="Value" context="tag_line" char="-" char1=" " column="0" />
<Detect2Chars attribute="Tag" context="changelog_header" char="*" char1=" " column="0" />
<!-- Handle comments. "# norootforbuild" is displayed like a tag. -->
<DetectChar context="Comment" char="#" column="0" lookAhead="true" />
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
<context attribute="Normal" lineEndContext="description section" name="description section start line">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
<context attribute="Value" lineEndContext="#stay" name="description section">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
<!-- Handle comments. "# norootforbuild" is displayed like a tag. -->
<DetectChar context="Comment" char="#" column="0" lookAhead="true" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<StringDetect attribute="Tag" context="every_non_whitespace_is_error" String="# norootforbuild" column="0" />
<!-- Error on single percent ("%"), but not on double percent ("%%"): -->
<Detect2Chars attribute="Comment" char="%" char1="%"/>
<DetectChar attribute="Error" char="%"/>
<!-- Alert on "TODO" -->
<StringDetect attribute="Alert" String="TODO" insensitive="true" />
<StringDetect attribute="Alert" String="FIXME" insensitive="true" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment"/>
<context attribute="Normal Text" lineEndContext="#pop" name="every_non_whitespace_is_error">
<RegExpr attribute="Error" context="#stay" String="[^\s]" />
</context>
<context attribute="Value" lineEndContext="#pop" name="tag_line">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
<context attribute="Tag" lineEndContext="#pop" name="changelog_header">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
<context attribute="Normal Text" lineEndContext="#pop" name="parameters after keyword">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
<context attribute="Keyword" lineEndContext="#pop" name="Some Context">
<DetectChar attribute="Keyword" char="}" context="#pop"/>
<!-- Expects a string starting with % or $ (otherwise, this context will fail!). -->
<context lineEndContext="#pop" name="handle_percent">
<Detect2Chars attribute="Escaped character" context="#pop" char="%" char1="%"/>
<!-- Keywords: -->
<RegExpr attribute="Keyword" context="parameters after keyword" String="%(if|ifarch|ifnarch|ifos|ifnos)(?=($| |\t))" column="0" beginRegion="if_block" />
<RegExpr attribute="Keyword" context="every_non_whitespace_is_error" String="%else(?=($| |\t))" column="0" />
<RegExpr attribute="Keyword" context="every_non_whitespace_is_error" String="%endif(?=($| |\t))" column="0" endRegion="if_block" />
<RegExpr attribute="Keyword" context="parameters after keyword" String="%(define|global|undefine)(?=($| |\t))" column="0" />
<!-- If a command section starts (=section macro at begin of the line), we switch
to the corresponding context. There will never be a return to THIS context...: -->
<RegExpr attribute="Section" context="Normal" String="%package(?=($| |\t))" column="0" />
<RegExpr attribute="Section" context="description section start line" String="%description(?=($| |\t))" column="0" />
<RegExpr attribute="Section" context="command section" String="%(prep|build|pre|preun|install|post|postun|clean|files|trigger|triggerin|triggerun|triggerpostun|verifyscript)(?=($| |\t))" column="0" />
<RegExpr attribute="Section" context="changelog section" String="%changelog(?=($| |\t))" column="0" />
<!-- Handle normal macros -->
<RegExpr attribute="Error" context="#pop" String="%([\{\(][ \t]{0,}){0,1}(if|ifarch|ifnarch|ifos|ifnos|else|endif|define|global|undefine|package|description|prep|build|pre|preun|install|post|postun|clean|files|trigger|triggerin|triggerun|triggerpostun|verifyscript|changelog)(?=($|[^&a_valid_char_in_macro_names;]))" />
<RegExpr attribute="Macro call" context="macro content in parenthesis" String="%[&a_valid_char_in_macro_names;]*\(" />
<RegExpr attribute="Macro call" context="macro content in braces" String="(%|\$)\{" />
<RegExpr attribute="Macro call" context="#pop" String="(%|\$)([&a_valid_char_in_macro_names;]{1,}|\*|\#)(?=($|[^&a_valid_char_in_macro_names;]))" /> <!-- ')' and '}' are only allowed as macro terminator in the lookahead because when you do something like %__make %{?jobs:-j %jobs}, then the "%jobs" is a valid macro. However, the disadvantage is that a line like "%abc} isn't marked as error. But it is to complicate to distinguish this properly. -->
<RegExpr attribute="Error" context="#pop" String="(%|\$)([&a_valid_char_in_macro_names;]{1,}|\*|\#)" />
<AnyChar attribute="Error" context="#pop" String="%$" /> <!-- a single % or $ is also an error -->
</context>
<context attribute="Blue" lineEndContext="#pop" name="Some Context2">
<DetectChar attribute="Blue" char="&gt;" context="#pop"/>
<context attribute="Macro call" lineEndContext="#pop#pop" name="macro content in parenthesis">
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
<DetectChar attribute="Macro call" context="#pop#pop" char=")" />
<AnyChar attribute="Error" context="#stay" String="({}" />
</context>
<context attribute="Macro call" lineEndContext="#pop#pop" name="macro content in braces">
<DetectChar attribute="Macro call" context="#pop#pop" char="}" />
<AnyChar attribute="Error" context="#stay" String="({)" />
<!-- Handle % -->
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Red" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Blue" defStyleNum="dsDecVal"/>
<itemData name="Data" defStyleNum="dsDataType"/>
<itemData name="Tag" defStyleNum="dsDataType"/>
<itemData name="Value" defStyleNum="dsDecVal"/>
<itemData name="Error" defStyleNum="dsError"/>
<itemData name="Macro call" defStyleNum="dsFunction"/>
<itemData name="Section" defStyleNum="dsRegionMarker"/>
<itemData name="Alert" defStyleNum="dsAlert"/>
<itemData name="Escaped character" defStyleNum="dsChar"/>
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="1" />
</general>
</language>

@ -6,7 +6,7 @@
Copyright (C) 2004 by Sebastian Vuorinen (sebastian dot vuorinen at helsinki dot fi)
Copyright (C) 2004 by Stefan Lang (langstefan@gmx.at)
Copyright (C) 2008 by Robin Pedersen (robin.pedersen@runbox.com)
Copyright (C) 2008 by Robin Pedersen (robinpeder@gmail.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@ -30,7 +30,12 @@
-->
<!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". -->
<language name="Ruby" version="1.17" kateversion="2.4" section="Scripts" extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb" mimetype="application/x-ruby" author="Stefan Lang (langstefan@gmx.at), Sebastian Vuorinen (sebastian.vuorinen@helsinki.fi), Robin Pedersen (robin.pedersen@runbox.com)" license="LGPL">
<language name="Ruby" section="Scripts"
version="1.18" kateversion="2.4"
extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb"
mimetype="application/x-ruby"
style="ruby" indenter="ruby"
author="Stefan Lang (langstefan@gmx.at), Sebastian Vuorinen (sebastian.vuorinen@helsinki.fi), Robin Pedersen (robinpeder@gmail.com)" license="LGPL">
<highlighting>
@ -209,7 +214,7 @@
<RegExpr attribute="Keyword" String="\bdef\b" context="#stay" beginRegion="def block"/>
<RegExpr attribute="Keyword" String="\bend\b" context="#stay" endRegion="def block"/>
<!-- elsif/else close the current block and start a new one -->
<RegExpr attribute="Keyword" String="(\b|^\s*)(else|elsif|rescue|ensure)(\b|$)" context="#stay" endRegion="def block" beginRegion="def block"/>
<RegExpr attribute="Keyword" String="\b(else|elsif|rescue|ensure)\b" context="#stay" endRegion="def block" beginRegion="def block"/>
<StringDetect attribute="Operator" String="..." context="#stay"/>
<Detect2Chars attribute="Operator" char="." char1="." context="#stay"/>
@ -248,7 +253,7 @@
<HlCChar attribute="Char" context="check_div_1"/>
<!-- Check for =begin before assignment operator. -->
<StringDetect attribute="Blockcomment" String="=begin" context="Embedded documentation" beginRegion="comment block" column="0"/>
<RegExpr attribute="Blockcomment" String="^=begin(?:\s|$)" context="Embedded documentation" beginRegion="comment block" column="0"/>
<!-- recognize the beginning of a HEREDOC
This uses new features in Kate 2.3 and later
@ -271,7 +276,8 @@
<StringDetect attribute="Operator" String="%=" context="#stay" insensitive="0"/>
<Detect2Chars attribute="Operator" char=":" char1=":" context="Member Access"/>
<RegExpr attribute="Symbol" String=":[a-zA-Z_][a-zA-Z0-9_]*" context="check_div_1"/>
<RegExpr attribute="Symbol" String=":(@{1,2}|\$)?[a-zA-Z_][a-zA-Z0-9_]*[=?!]?" context="check_div_1"/>
<RegExpr attribute="Symbol" String=":\[\]=?" contex="check_div_1"/>
<DetectChar attribute="String" char="&quot;" context="Quoted String"/>
<DetectChar attribute="Raw String" char="'" context="Apostrophed String"/>
@ -309,34 +315,36 @@
<!-- A slash is always a division operator, even if preceeded by whitespace -->
<context name="check_div_1" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop">
<RegExpr attribute="Normal Text" String="\s*" context="#stay"/>
<DetectChar attribute="Operator" char="/" context="#pop"/>
<AnyChar attribute="Operator" String="/%" context="#pop"/>
</context>
<!-- Same as check_div_1, but with double pop to exit the surrounding context -->
<context name="check_div_1_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
<RegExpr attribute="Normal Text" String="\s*" context="#stay"/>
<DetectChar attribute="Operator" char="/" context="#pop#pop"/>
<AnyChar attribute="Operator" String="/%" context="#pop#pop"/>
</context>
<!-- A slash is division operator if it's the first character, or if preceeded and followed by whitespace -->
<context name="check_div_2" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#pop">
<DetectChar attribute="Operator" char="/" context="#pop"/>
<AnyChar attribute="Operator" String="/%" context="#pop"/>
<RegExpr attribute="Normal Text" String="\s+" context="check_div_2_internal"/>
</context>
<!-- Internal context used by check_div_2 -->
<context name="check_div_2_internal" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
<RegExpr attribute="Operator" String="/(?=\s)" context="#pop#pop"/>
<!-- <DetectChar attribute="Operator" char="%" context="#pop#pop"/> -->
<RegExpr attribute="Operator" String="[/%](?=\s)" context="#pop#pop"/>
</context>
<!-- Same as check_div_2, but with double pop to exit the surrounding context -->
<context name="check_div_2_pop" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop" lineEndContext="#pop#pop">
<DetectChar attribute="Operator" char="/" context="#pop#pop"/>
<AnyChar attribute="Operator" String="/%" context="#pop#pop"/>
<RegExpr attribute="Normal Text" String="\s+" context="check_div_2_pop_internal"/>
</context>
<!-- Internal context used by check_div_2_pop -->
<context name="check_div_2_pop_internal" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop#pop#pop" lineEndContext="#pop#pop#pop">
<DetectChar attribute="Operator" char="%" context="#pop#pop#pop"/>
<RegExpr attribute="Operator" String="/(?=\s)" context="#pop#pop#pop"/>
</context>
@ -356,12 +364,10 @@
<RegExpr attribute="String" String="\\\&quot;" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
<!--HlCChar attribute="Char" context="#pop"/-->
<DetectChar char="&quot;" attribute="String" context="check_div_1_pop"/>
</context>
<context name="Apostrophed String" attribute="Raw String" lineEndContext="#stay">
<!-- <HlCChar attribute="Char" context="#pop"/> -->
<StringDetect attribute="String" String="\\" context="#stay"/>
<RegExpr attribute="String" String="\\\'" context="#stay"/>
<DetectChar char="'" attribute="Raw String" context="check_div_1_pop"/>
@ -372,12 +378,11 @@
<RegExpr attribute="String" String="\\\`" context="#stay"/>
<RegExpr attribute="Substitution" String="#@{1,2}" context="Short Subst"/>
<Detect2Chars attribute="Substitution" char="#" char1="{" context="Subst"/>
<HlCChar attribute="Char" context="check_div_1_pop"/>
<DetectChar char="`" attribute="Command" context="check_div_1_pop"/>
</context>
<context name="Embedded documentation" attribute="Comment" lineEndContext="#stay">
<StringDetect attribute="Comment" String="=end" context="#pop" endRegion="comment block" column="0"/>
<context name="Embedded documentation" attribute="Blockcomment" lineEndContext="#stay">
<RegExpr attribute="Comment" String="^=end(?:\s.*|$)" context="#pop" endRegion="comment block" column="0"/>
</context>
<context name="RegEx 1" attribute="Regular Expression" lineEndContext="#stay">
@ -442,22 +447,22 @@
<RegExpr attribute="Keyword" context="indented_heredoc" String="&quot;?(\w+)&quot;?" />
</context>
<!-- these are the real heredoc contexts -->
<context name="indented_heredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<context name="indented_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
<!-- <RegExpr attribute="Keyword" context="#pop#pop" String="^\s*%1$" dynamic="true" endRegion="HereDocument"/>-->
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" firstNonSpace="true"/>
<IncludeRules context="heredoc_rules" />
</context>
<context name="apostrophed_indented_heredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<context name="apostrophed_indented_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
<!-- <RegExpr attribute="Keyword" context="#pop#pop" String="^\s*%1$" dynamic="true" endRegion="HereDocument"/>-->
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" firstNonSpace="true"/>
</context>
<context name="normal_heredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<context name="normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
<!-- <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument"/>-->
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/>
<IncludeRules context="heredoc_rules" />
</context>
<context name="apostrophed_normal_heredoc" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<context name="apostrophed_normal_heredoc" attribute="Here Document" lineEndContext="#stay" dynamic="true">
<!-- <RegExpr attribute="Keyword" context="#pop#pop" String="^%1$" dynamic="true" endRegion="HereDocument"/>-->
<RegExpr attribute="Keyword" context="#pop#pop" String="%1$" dynamic="true" endRegion="HereDocument" column="0"/>
</context>
@ -890,13 +895,15 @@
<itemData name="Region Marker" defStyleNum="dsNormal" color="#0000ff"/>
<itemData name="RDoc Value" defStyleNum="dsOthers"/>
<itemData name="Here Document" defStyleNum="dsOthers"/>
<!-- use these to mark errors and alerts things -->
<itemData name="Error" defStyleNum="dsError" />
<itemData name="Alert" defStyleNum="dsAlert" />
<itemData name="Delimiter" defStyleNum="dsChar"/>
<itemData name="Delimiter" defStyleNum="dsNormal" color="#FF9FEC"/>
<itemData name="Expression" defStyleNum="dsOthers"/>
<itemData name="Operator" defStyleNum="dsChar"/>
<itemData name="Operator" defStyleNum="dsNormal" color="#FF9FEC"/>
</itemDatas>
</highlighting>
<general>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="SiSU" version="1.01" section="Markup" kateversion="2.4" extensions="*.sst;*.ssm;*.ssi;*._sst;*.-sst;" author="Ralph Amissah (ralph.amissah@gmail.com)" license="LGPL" >
<highlighting>
<list name="somename">
<item> class </item>
<item> const </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" >
<keyword attribute="Keyword" context="#stay" String="somename" />
<DetectChar attribute="String" context="string" char="&quot;" />
<RegExpr String="^(0~\S+|@\S+)\s.+$" attribute="Header" context="#pop" />
<RegExpr String="^:?[A-C1-6]~.+$" attribute="Heading" context="#pop" />
<StringDetect String="~{" attribute="Endnote" context="footnote"/>
<StringDetect String="^~" attribute="Endnote" context="endnote"/>
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
<StringDetect String="&lt;br&gt;" attribute="Break" context="#pop" />
<RegExpr String="\{.+?\}(http:\/\/\S+|image)" attribute="Link" context="#stay"/>
<RegExpr String="(^|\s)http:\/\/\S+" attribute="Link" context="#stay"/>
<RegExpr String="^!_ .+" attribute="Bold" context="boldline"/>
<RegExpr String="^(_[12]|_\*|_[12]\*)\s" attribute="Indent" context="#stay"/>
<RegExpr String="~\^" attribute="Endnote" context="#stay"/>
<RegExpr String="^%+\s.+$" attribute="Comment" context="#stay" endRegion="regionMarker" firstNonSpace="true" />
</context>
<context attribute="String" lineEndContext="#stay" name="string" >
<DetectChar attribute="String" context="#pop" char="&quot;" />
</context>
<context attribute="Endnote" lineEndContext="#stay" name="footnote" >
<StringDetect attribute="Endnote" context="#pop" String="}~" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Bold" lineEndContext="#stay" name="bold" >
<StringDetect attribute="Bold" context="#pop" String="}*" />
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Bold" lineEndContext="#stay" name="emphasis" >
<StringDetect attribute="Bold" context="#pop" String="}!" />
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Italic" lineEndContext="#stay" name="italic" >
<StringDetect attribute="Italic" context="#pop" String="}/" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Underscore" lineEndContext="#stay" name="underscore" >
<StringDetect attribute="Underscore" context="#pop" String="}_" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Superscript" lineEndContext="#stay" name="superscript" >
<StringDetect attribute="Superscript" context="#pop" String="}^" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Subscript" lineEndContext="#stay" name="subscript" >
<StringDetect attribute="Subscript" context="#pop" String="}," />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Strike" lineEndContext="#stay" name="strike" >
<StringDetect attribute="Strike" context="#pop" String="}-" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="+{" attribute="Insert" context="insert"/>
</context>
<context attribute="Insert" lineEndContext="#stay" name="insert" >
<StringDetect attribute="Insert" context="#pop" String="}+" />
<StringDetect String="!{" attribute="Bold" context="emphasis"/>
<StringDetect String="*{" attribute="Bold" context="bold"/>
<StringDetect String="/{" attribute="Italic" context="italic"/>
<StringDetect String="_{" attribute="Underscore" context="underscore"/>
<StringDetect String="^{" attribute="Superscript" context="superscript"/>
<StringDetect String=",{" attribute="Subscript" context="subscript"/>
<StringDetect String="-{" attribute="Strike" context="strike"/>
</context>
<context attribute="Endnote" lineEndContext="#pop" name="endnote" />
<context attribute="Bold" lineEndContext="#pop" name="boldline" />
<context attribute="Indent" lineEndContext="#pop" name="indent" />
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Header" defStyleNum="dsNormal" color="#1c869b" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="Heading" defStyleNum="dsNormal" color="#ff0000" selColor="#60FFFF" bold="1" italic="0"/>
<itemData name="Bold" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="1" italic="0"/>
<itemData name="Italic" defStyleNum="dsNormal" color="#800000" selColor="#60FFFF" bold="0" italic="1"/>
<itemData name="Underscore" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Superscript" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Subscript" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Strike" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Insert" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Endnote" defStyleNum="dsNormal" color="#086800" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="Link" defStyleNum="dsNormal" color="#0000FF" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="String" defStyleNum="dsString" />
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Group" defStyleNum="dsRegionMarker"/>
<itemData name="Break" defStyleNum="dsNormal" color="#FF0000" selColor="#60FFFF" bold="0" italic="0"/>
<itemData name="Indent" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
<itemData name="Structure" defStyleNum="dsNormal" color="#F00000" selColor="#80FFD0" bold="0" italic="0"/>
</itemDatas>
</highlighting>
<general>
<keywords weakDeliminator="\" wordWrapDeliminator=",{}[]"/>
<comments>
<comment name="singleLine" start="%" />
</comments>
</general>
</language>

@ -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.08" kateversion="2.4" 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.09" kateversion="2.4" 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>
@ -754,6 +754,10 @@
<AnyChar attribute="Symbol" context="#stay" String=":&#38;"/>
<RegExpr attribute="Symbol" context="#stay" String="/$" column="0"/>
<RegExpr attribute="Preprocessor" context="Preprocessor" String="@@?[^@ \t\r\n]" column="0"/>
<RegExpr attribute="Operator" context="MultiLineString" String="\$([^$]*)\$" dynamic="true"/>
</context>
<context name="MultiLineString" attribute="String" lineEndContext="#stay" dynamic="true">
<RegExpr attribute="Operator" context="Normal" String="\$%1\$" dynamic="true"/>
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<LineContinue attribute="String" context="#pop"/>

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
Copyright (C) Joseph Wenninger, 2008
Highlighting for SystemC (www.systemc.org)
Highlighting licensed as LGPL 2+
================================================================================
July 17th 2008 Initial version
-->
<language name="SystemC" version="0.01" kateversion="2.4" section="Hardware" extensions="*.c++;*.cxx;*.cpp;*.cc;*.C;*.h;*.hh;*.H;*.h++;*.hxx;*.hpp;*.hcc;*.moc" mimetype="text/x-c++src;text/x-c++hdr;text/x-chdr" priority="1" author="Joseph Wenninger (jowenn@kde.org)" license="LGPL">
<highlighting>
<list name="systemc_keywords">
<item> sensitive </item>
</list>
<list name="systemc_functions">
<item> dont_initialize </item>
<item> gen_unique_name </item>
<item> name </item>
<item> next_trigger </item>
<item> sc_assert_fail </item>
<item> sc_copyright </item>
<item> sc_cycle </item>
<item> sc_initialize </item>
<item> sc_simulation_time </item>
<item> sc_start </item>
<item> sc_stop </item>
<item> sc_get_default_time_unit </item>
<item> sc_get_default_time_resolution </item>
<item> sc_time_stamp </item>
<item> sc_version </item>
<item> timed_out </item>
<item> wait </item>
<item> sc_trace </item>
<item> sc_create_vcd_trace_file </item>
<item> sc_close_vcd_trace_file </item>
</list>
<list name="systemc_macros">
<item> SC_MODULE </item>
<item> SC_CTOR </item>
<item> SC_METHOD </item>
<item> SC_THREAD </item>
</list>
<list name="systemc_datatypes">
<item> sc_time_unit </item>
<item> sc_clock </item>
<item> sc_int </item>
<item> sc_uint </item>
<item> sc_bigint </item>
<item> sc_biguint </item>
<item> sc_logic </item>
<item> sc_lv </item>
<item> sc_bit </item>
<item> sc_bv </item>
<item> sc_fixed </item>
<item> sc_ufixed </item>
<item> sc_fixed_fast </item>
<item> sc_ufixed_fast </item>
<item> sc_fix </item>
<item> sc_ufix </item>
<item> sc_buffer </item>
<item> sc_fifo </item>
<item> sc_mutex </item>
<item> sc_semaphore </item>
<item> sc_signal </item>
<item> sc_signal_resolved </item>
<item> sc_signal_rv </item>
<item> sc_fifo_in_if </item>
<item> sc_fifo_out_if </item>
<item> sc_mutex_if </item>
<item> sc_semaphore_if </item>
<item> sc_signal_in_if </item>
<item> sc_signal_inout_if </item>
<item> sc_master </item>
<item> sc_inmaster </item>
<item> sc_outmaster </item>
<item> sc_inout_master </item>
<item> sc_indexed </item>
<item> sc_slave </item>
<item> sc_inslave </item>
<item> sc_outslave </item>
<item> sc_inoutslave </item>
<item> sc_in </item>
<item> sc_out </item>
<item> sc_inout </item>
<item> sc_noHandshake </item>
<item> sc_fullHandshake </item>
<item> sc_memfullHandshake </item>
<item> sc_enable_Handshake </item>
<item> sc_memenHandshake </item>
<item> sc_link_mp </item>
<item> sc_trace_file </item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> <!-- see below -->
<keyword attribute="Extensions-Keywords" context="#stay" String="systemc_keywords" />
<keyword attribute="Extensions-Functions" context="#stay" String="systemc_functions" />
<keyword attribute="Extensions-Macros" context="#stay" String="systemc_macros" />
<keyword attribute="Data Type" context="#stay" String="systemc_datatypes" />
<IncludeRules context="##C++" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Extensions-Macros" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" italic="0"/>
<itemData name="Extensions-Functions" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="1"/>
<itemData name="Extensions-Keywords" defStyleNum="dsKeyword" />
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<!-- <itemData name="Comment" defStyleNum="dsComment" /> -->
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//" />
<!-- implement support for something like this:<comment name="multiLine" start="/*" end="*/" region="Comment##C++"/>-->
<comment name="multiLine" start="/*" end="*/" region="Comment"/>
</comments>
<keywords casesensitive="1" />
</general>
</language>

@ -4,8 +4,29 @@
<!-- Authors: Alexander Dederer & JM. Philippe -->
<!-- Copyright: BSD copyright & Irsid - Arcelor Innovation R&D -->
<!-- Ported to Kate 2.0/ KWrite 4.0 by Joseph Wenninger (Updated by Simon Robins)-->
<!--
Updated by Pawel Salawa (boogie at scripts dot one dot pl)
<language name="Tcl/Tk" version="1.08" kateversion="2.4" section="Scripts" extensions="*.tcl;*.tk" mimetype="text/x-tcl">
Revision history:
1.10:
- Fixed problem with single ':' character after variable name (it's no longer variable,
because only double-colon is namespace delimiter and can be part of variable name).
- Fixed problem with matching quote character next to regular character, for example:
puts {"string"}
In that case left bracked was marked as string, but it's no longer like that.
- Fixed problem with variable names like: ${text\}test}
It whole is valid variable name, because of escape character.
- Fixed problem with marking ';' character as a comment when '#' character was after the ';'.
- Fixed problem with marking options. '-' character after word-delimiter character caused
marking that word-delimiter character as option too, even it wasn't white-space.
- Few other minor optimalizations.
1.09:
- Added fast comments support (Ctrl+d or whatever your shortcut is)
- Fixed single-character variables detection
- Fixed detection of varaibles with names containing serval namespace delimiters (::)
-->
<language name="Tcl/Tk" version="1.10" kateversion="2.4" section="Scripts" extensions="*.tcl;*.tk" mimetype="text/x-tcl">
<highlighting>
<list name="keywords">
<item> after </item>
@ -441,24 +462,39 @@
<contexts>
<context name = "Base" attribute = "Normal Text" lineEndContext="#stay">
<!-- Virtual blocks -->
<RegExpr attribute="Region Marker" context="#stay" String="#\s*BEGIN.*$" beginRegion="region" firstNonSpace="true"/>
<RegExpr attribute="Region Marker" context="#stay" String="#\s*END.*$" endRegion="region" firstNonSpace="true"/>
<!-- Standard -->
<keyword String = "keywords" attribute = "Keyword" context="#stay"/>
<keyword String = "keywords-opt" attribute = "Parameter" context="#stay"/>
<Float attribute = "Float" context="#stay"/>
<Int attribute ="Decimal" context="#stay"/>
<RegExpr String="\\." attribute = "Char" context = "#stay"/>
<RegExpr String = "\W-\w+" attribute = "Parameter" context="#stay"/>
<RegExpr String = "\$\{[^\}]+\}" attribute = "Variable" context="#stay"/>
<RegExpr String = "\$(::)?[\S\D]\w+" attribute = "Variable" context="#stay"/>
<RegExpr String = "[^\\]&quot;&quot;" attribute = "String" context="#stay"/>
<RegExpr String = "[^\\]&quot;" attribute = "String" context="String"/>
<RegExpr String= "#.*$" attribute = "Comment" context="#stay" firstNonSpace="true"/>
<RegExpr String= ";\s*#.*$" attribute = "Comment" context="#stay"/>
<!-- Options -->
<RegExpr String = "\s-\w+" attribute = "Parameter" context="#stay"/>
<!-- Variables -->
<RegExpr String = "\$\{([^\}]|\\\})+\}" attribute = "Variable" context="#stay"/>
<RegExpr String = "\$(::|\w)+" attribute = "Variable" context="#stay"/>
<!-- Strings -->
<RegExpr String = "&quot;{2}" attribute = "String" context="#stay"/>
<RegExpr String = "&quot;" attribute = "String" context="String"/>
<!-- Comments -->
<DetectChar char = ";" attribute = "Normal Text" context="New command line" />
<DetectChar char = "#" attribute = "Comment" context="Comment" firstNonSpace="true"/>
<!-- Braces, brackets, etc -->
<DetectChar char = "{" attribute = "Keyword" context="#stay" beginRegion="block"/>
<DetectChar char = "}" attribute = "Keyword" context="#stay" endRegion="block"/>
<DetectChar char = "[" attribute = "Keyword" context="#stay"/>
<DetectChar char = "]" attribute = "Keyword" context="#stay"/>
</context>
<context name = "String" attribute = "String" lineEndContext="#stay">
@ -466,6 +502,13 @@
<DetectChar char="&quot;" attribute = "String" context = "#pop"/>
<DetectChar char = "$" attribute = "Variable" context="#stay"/>
</context>
<context name = "Comment" attribute = "Comment" lineEndContext="#pop"/>
<context name = "New command line" attribute = "Normal Text" lineEndContext="#stay">
<RegExpr String = "\s*#" attribute="Comment" context="Comment" />
<RegExpr String = "." attribute="Normal Text" context="#pop" lookAhead="true" />
</context>
</contexts>
<itemDatas>
@ -484,6 +527,9 @@
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
</comments>
<keywords casesensitive="1"/>
</general>

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Texinfo" extensions="*.texi" section="Markup" mimetype="application/x-texinfo" author="Daniel Franke (franke.daniel@gmail.com)" license="LGPL" version="0.2" kateversion="2.3">
<highlighting>
<!--
In TEXINFO, commands start with "@" optionally followed by a
command argument embraced by "{}", as in "@item" or "@emph{foo bar}".
Some special commands embrace a region, e.g. "@menu" and "@end menu",
these regions may be fold (beginRegion="foldingRegion").
Nodes to NOT end with "@end node", but a "@node" ends at the beginning
of the next "@node".
-->
<contexts>
<context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Comment" context="singleLineComment" String="@c(omment)?\b" />
<RegExpr attribute="Comment" context="multiLineComment" String="@ignore\b" beginRegion="ignore" />
<RegExpr attribute="Command" context="nodeFolding" String="@node\b" beginRegion="node" />
<RegExpr attribute="Command" context="folding" beginRegion="foldingRegion"
String="@(menu|smallexample|table|multitable)\b"/>
<RegExpr attribute="Command" context="#stay" String="@[\w]+(\{([\w]+[\s]*)+\})?" />
</context>
<context name="singleLineComment" attribute="Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts" />
</context>
<context name="multiLineComment" attribute="Comment" lineEndContext="#stay">
<StringDetect attribute="Comment" context="#pop" String="@end ignore" endRegion="ignore" />
<IncludeRules context="##Alerts" />
</context>
<context name="nodeFolding" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Command" context="#pop" String="@node\b" endRegion="node" lookAhead="true" />
<IncludeRules context="Normal Text" />
</context>
<context name="folding" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Command" context="#pop" endRegion="foldingRegion"
String="@end (menu|smallexample|table|multitable)\b" />
<IncludeRules context="Normal Text" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Command" defStyleNum="dsFunction" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="@comment " />
<comment name="multiLine" start="@ignore" end="@end ignore" region="ignore" />
</comments>
</general>
</language>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="UnrealScript" version="0.91" kateversion="2.3" section="Scripts" extensions="*.uc" mimetype="text/x-uscript">
<language name="UnrealScript" version="0.92" kateversion="2.3" section="Scripts" extensions="*.uc" mimetype="text/x-uscript">
<highlighting>
<list name="keywords">
<item> break </item>
@ -141,7 +141,7 @@
<DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="Brace1"/>
<DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="Brace1"/>
<AnyChar attribute="Symbol" context="#stay" String="!%&amp;()+,-&lt;=&gt;?[]^{|}~"/>
<RegExpr attribute="Preprocessor" context="Preprocessor" insensitive="TRUE" String="#exec"/>
<StringDetect attribute="Preprocessor" context="Preprocessor" insensitive="TRUE" String="#exec"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="#stay"/>

@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Verilog" version="1.07" kateversion="2.4" section="Hardware" extensions="*.v;*.V;*.vl" mimetype="text/x-verilog-src" author="Yevgen Voronenko (ysv22@drexel.edu)" license="">
<language name="Verilog" version="1.08" kateversion="2.4" section="Hardware" extensions="*.v;*.V;*.vl" mimetype="text/x-verilog-src" author="Yevgen Voronenko (ysv22@drexel.edu)" license="">
<highlighting>
<list name="keywords">
<item> module </item>
<item> macromodule </item>
<item> endmodule </item>
<item> task </item>
<item> endtask </item>
<item> function </item>
@ -24,8 +22,6 @@
<item> defparam </item>
<item> default </item>
<item> begin </item>
<item> end </item>
<item> if </item>
<item> ifnone </item>
<item> else </item>
@ -124,9 +120,26 @@
<item> event </item>
</list>
<list name="begin">
<item>begin</item>
</list>
<list name="end">
<item>end</item>
</list>
<list name="module">
<item>module</item>
</list>
<list name="endmodule">
<item>endmodule</item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<RegExpr attribute="Keyword" context="Block name" String="begin\ *:"/>
<RegExpr attribute="Keyword" context="Block name" String="begin\ *:" beginRegion="beginend"/>
<keyword attribute="Keyword" context="#stay" String="begin" beginRegion="beginend"/>
<keyword attribute="Keyword" context="#stay" String="end" endRegion="beginend"/>
<keyword attribute="Keyword" context="#stay" String="module" beginRegion="moduleEndmodule"/>
<keyword attribute="Keyword" context="#stay" String="endmodule" endRegion="moduleEndmodule"/>
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Data Type" context="#stay" String="types" />
<keyword attribute="Drive/charge strength" context="#stay" String="strength" />
@ -146,7 +159,7 @@
<DetectChar attribute="String" context="String" char="&quot;"/>
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*"/>
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="comment"/>
<AnyChar attribute="Symbol" context="#stay" String="!%&amp;()+,-&lt;=+/:;&gt;?[]^{|}~@"/>
<StringDetect attribute="Comment" context="Some Context2" String="#if 0" insensitive="FALSE" firstNonSpace="true"/>
@ -166,7 +179,7 @@
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/"/>
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="comment"/>
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="Some Context"/>

@ -1,58 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="VHDL" version="1.04" kateversion="2.1" section="Hardware" extensions="*.vhdl;*.vhd" mimetype="text/x-vhdl">
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#&#37;@-]*">
<!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*">
<!ENTITY bos "(|[^&quot;-]*)\b"> <!-- bol or space following -->
<!-- <!ENTITY bos "^(|.*\s)">--> <!-- bol or space following -->
<!ENTITY eos "\b"> <!-- eol or space following -->
<!-- <!ENTITY eos "(?=($|\s))">--> <!-- eol or space following -->
<!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
<!ENTITY label "((&varname;)\s*:\s*)?">
]>
<language name="VHDL" version="1.08" kateversion="2.3" section="Hardware" extensions="*.vhdl;*.vhd" mimetype="text/x-vhdl" author="Rocky Scaletta (rocky@purdue.edu), Stefan Endrullis (stefan@endrullis.de), Jan Michel (jan@mueschelsoft.de)">
<highlighting>
<list name="keywordsToplevel">
<item> file </item>
<item> package </item>
<item> library </item>
<item> use </item>
<!--
<item> entity </item>
<item> architecture </item>
<item> of </item>
<item> configuration </item>
-->
</list>
<list name="keywords">
<item> access </item>
<item> after </item>
<item> alias </item>
<item> all </item>
<item> assert </item>
<item> architecture </item>
<item> begin </item>
<item> block </item>
<item> body </item>
<item> buffer </item>
<item> bus </item>
<item> case </item>
<item> component </item>
<item> configuration </item>
<item> constant </item>
<item> disconnect </item>
<item> downto </item>
<item> else </item>
<item> elsif </item>
<item> end </item>
<item> entity </item>
<item> exit </item>
<item> file </item>
<item> for </item>
<item> function </item>
<item> generate </item>
<item> generic </item>
<item> group </item>
<item> guarded </item>
<item> if </item>
<item> impure </item>
<item> in </item>
<item> inertial </item>
<item> inout </item>
<item> is </item>
<item> label </item>
<item> library </item>
<item> linkage </item>
<item> literal </item>
<item> loop </item>
<item> map </item>
<item> new </item>
<item> next </item>
<item> null </item>
<item> of </item>
<item> on </item>
<item> open </item>
<item> others </item>
<item> out </item>
<item> package </item>
<item> port </item>
<item> postponed </item>
<item> procedure </item>
@ -76,108 +82,58 @@
<item> unaffected </item>
<item> units </item>
<item> until </item>
<item> use </item>
<item> variable </item>
<item> wait </item>
<item> when </item>
<item> while </item>
<item> with </item>
<item> note </item>
<item> warning </item>
<item> error </item>
<item> failure </item>
<item> ACCESS </item>
<item> AFTER </item>
<item> ALIAS </item>
<item> ALL </item>
<item> ASSERT </item>
<item> ARCHITECTURE </item>
<item> BEGIN </item>
<item> BLOCK </item>
<item> BODY </item>
<item> BUFFER </item>
<item> BUS </item>
<item> CASE </item>
<item> COMPONENT </item>
<item> CONFIGURATION </item>
<item> CONSTANT </item>
<item> DISCONNECT </item>
<item> DOWNTO </item>
<item> ELSE </item>
<item> ELSIF </item>
<item> END </item>
<item> ENTITY </item>
<item> EXIT </item>
<item> FILE </item>
<item> FOR </item>
<item> FUNCTION </item>
<item> GENERATE </item>
<item> GENERIC </item>
<item> GROUP </item>
<item> GUARDED </item>
<item> IF </item>
<item> IMPURE </item>
<item> IN </item>
<item> INERTIAL </item>
<item> INOUT </item>
<item> IS </item>
<item> LABEL </item>
<item> LIBRARY </item>
<item> LINKAGE </item>
<item> LITERAL </item>
<item> LOOP </item>
<item> MAP </item>
<item> NEW </item>
<item> NEXT </item>
<item> NULL </item>
<item> OF </item>
<item> ON </item>
<item> OPEN </item>
<item> OTHERS </item>
<item> OUT </item>
<item> PACKAGE </item>
<item> PORT </item>
<item> POSTPONED </item>
<item> PROCEDURE </item>
<item> PROCESS </item>
<item> PURE </item>
<item> RANGE </item>
<item> RECORD </item>
<item> REGISTER </item>
<item> REJECT </item>
<item> REPORT </item>
<item> RETURN </item>
<item> SELECT </item>
<item> SEVERITY </item>
<item> SIGNAL </item>
<item> SHARED </item>
<item> SUBTYPE </item>
<item> THEN </item>
<item> TO </item>
<item> TRANSPORT </item>
<item> TYPE </item>
<item> UNAFFECTED </item>
<item> UNITS </item>
<item> UNTIL </item>
<item> USE </item>
<item> VARIABLE </item>
<item> WAIT </item>
<item> WHEN </item>
<item> WHILE </item>
<item> WITH </item>
<item> NOTE </item>
<item> WARNING </item>
<item> ERROR </item>
<item> FAILURE </item>
<item> in </item>
<item> inout </item>
<item> out </item>
<item> buffer </item>
<item> and </item>
<item> or </item>
<item> xor </item>
<item> not </item>
</list>
<list name="if">
<item> else </item>
<item> elsif </item>
</list>
<list name="forOrWhile">
<item> loop </item>
</list>
<list name="directions">
<item> in </item>
<item> inout </item>
<item> out </item>
<item> buffer </item>
</list>
<list name="signals">
<item> signal </item>
<item> variable </item>
<item> constant </item>
<item> type </item>
</list>
<!-- <list name="logics">
<item> and </item>
<item> or </item>
<item> xor </item>
<item> not </item>
<item> AND </item>
<item> OR </item>
<item> XOR </item>
<item> NOT </item>
</list>
<list name="rangeDirection">
<item> to </item>
<item> downto </item>
</list>-->
<list name="types">
<item> bit </item>
<item> bit_vector </item>
@ -209,48 +165,148 @@
<item> reg_vector </item>
<item> wor_bit </item>
<item> wor_vector </item>
<item> BIT </item>
<item> BIT_VECTOR </item>
<item> CHARACTER </item>
<item> BOOLEAN </item>
<item> INTEGER </item>
<item> REAL </item>
<item> TIME </item>
<item> STRING </item>
<item> SEVERITY_LEVEL </item>
<item> POSITIVE </item>
<item> NATURAL </item>
<item> SIGNED </item>
<item> UNSIGNED </item>
<item> LINE </item>
<item> TEXT </item>
<item> STD_LOGIC </item>
<item> STD_LOGIC_VECTOR </item>
<item> STD_ULOGIC </item>
<item> STD_ULOGIC_VECTOR </item>
<item> QSIM_STATE </item>
<item> QSIM_STATE_VECTOR </item>
<item> QSIM_12STATE </item>
<item> QSIM_12STATE_VECTOR </item>
<item> QSIM_STRENGTH </item>
<item> MUX_BIT </item>
<item> MUX_VECTOR </item>
<item> REG_BIT </item>
<item> REG_VECTOR </item>
<item> WOR_BIT </item>
<item> WOR_VECTOR </item>
</list>
<contexts>
<context name="normal" attribute="Normal Text" lineEndContext="#stay">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Data Type" context="#stay" String="types"/>
<!-- start / global environment -->
<context name="start" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Normal Text" context="entity" String="&bos;(entity\s*(&varname;)\s*is)&eos;" beginRegion="EntityRegion1" lookAhead="true" insensitive="true" />
<RegExpr attribute="Normal Text" context="architecture" String="&bos;(architecture\s*(&varname;)\s*of\s*&varname;\s*is)&eos;" beginRegion="ArchitectureRegion1" lookAhead="true" insensitive="true" />
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-" />
<keyword attribute="Keyword" context="#stay" String="keywordsToplevel"/>
</context>
<context name="preDetection" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-" />
<DetectChar attribute="Vector" context="string" char="&quot;" />
<AnyChar attribute="Operator" context="#stay" String="[&amp;&gt;&lt;=:+\-*\/|]().,;" />
<DetectChar attribute="Attribute" context="attribute" char="'" />
</context>
<!-- general keywords detection -->
<context name="generalDetection" attribute="Normal Text" lineEndContext="#stay">
<keyword attribute="Data Type" context="#stay" String="types"/>
<keyword attribute="Signal" context="#stay" String="signals"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<Int attribute="Integer" context="#stay" />
<HlCChar attribute="Bit" context="#stay" />
</context>
<!-- entity environment -->
<context name="entity" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="#stay" String="%2" dynamic="true" />
<IncludeRules context="preDetection" />
<RegExpr attribute="Redirection" context="#pop" String="^(|\s.*)end(\s*entity)?\s*(%3)?\s*;" dynamic="true" endRegion="EntityRegion1" insensitive="true" />
<!--<RegExpr attribute="Alert" context="generic" String="generic"/>-->
<IncludeRules context="generalDetection" />
</context>
<!-- <context name="generic" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Operator" context="range" char="("/>
<Detect2Chars attribute="Alert" context="#pop" char=")" char1=";"/>
</context>
<context name="range" attribute="Normal Text" lineEndContext="#stay">
<keyword attribute="Keyword" context="#stay" String="rangeDirection"/>
<Int attribute="Integer" context="#stay" />
<HlCChar attribute="Bit" context="#stay" />
<DetectChar attribute="Vector" context="string" char="&quot;" />
<DetectChar attribute="Operator" context="#pop" char=")"/>
</context>-->
<!-- architecture environment -->
<context name="architecture" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="#stay" String="%2" dynamic="true" />
<IncludeRules context="preDetection" />
<StringDetect attribute="Redirection" context="#stay" String="begin" insensitive="true" />
<RegExpr attribute="Redirection" context="#pop" String="&bos;end(\s+architecture)?(\s+%3)?\s*;" dynamic="true" endRegion="ArchitectureRegion1" insensitive="true" />
<RegExpr attribute="Normal Text" context="component" String="&bos;(component\s+(&varname;)(\s+is)?)&eos;" beginRegion="ComponentRegion1" lookAhead="true" insensitive="true" />
<RegExpr attribute="Normal Text" context="process1" String="^(|\s+)(&label;process)&eos;" beginRegion="ProcessRegion1" lookAhead="true" insensitive="true" />
<RegExpr attribute="Normal Text" context="generate1" String="^(|\s+)((&varname;)\s*:\s*((for\s+.+\s+in\s+.+)|(if\s+.+))\s+generate)&eos;" beginRegion="GenerateRegion1" lookAhead="true" insensitive="true" />
<RegExpr attribute="Normal Text" context="instance" String="^(|\s+)((&varname;)\s*:\s*(&varname;))&eos;" beginRegion="InstanceRegion1" lookAhead="true" insensitive="true" />
<IncludeRules context="generalDetection" />
</context>
<!-- <context name="architectureBeforeBegin" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="#stay" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop" String="end\s*%2\s*;" dynamic="true" endRegion="ArchitectureRegion1" />
<StringDetect attribute="Redirection" context="architectureAfterBegin" String="begin" />
<RegExpr attribute="Redirection" context="#pop#pop" String="end\s*%2\s*;" dynamic="true" endRegion="ArchitectureRegion1" />
<IncludeRules context="normal" />
</context>
<context name="architectureAfterBegin" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="#stay" String="%1" dynamic="true" />
<IncludeRules context="normal" />
</context>-->
<!-- component environment -->
<context name="component" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="" String="%2" dynamic="true" />
<IncludeRules context="preDetection" />
<RegExpr attribute="Redirection" context="#pop" String="&bos;end\s+component(\s+%3)?\s*;" dynamic="true" endRegion="ComponentRegion1" insensitive="true" />
<IncludeRules context="generalDetection" />
</context>
<!-- generate statement -->
<context name="generate1" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Process" context="generate2" String="%2" dynamic="true" />
</context>
<context name="generate2" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<IncludeRules context="architecture" />
<RegExpr attribute="Process" context="#pop#pop" String="^(|\s.*)end\s+generate(?:\s+%3)?\s*;" dynamic="true" endRegion="GenerateRegion1" insensitive="true" />
</context>
<context name="instance" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Redirection" context="#stay" String="%2" dynamic="true" />
<Detect2Chars attribute="Comment" context="comment" char="-" char1="-" />
<DetectChar attribute="Vector" context="string" char="&quot;" />
<Detect2Chars attribute="Normal Text" context="#pop" char=")" char1=";" endRegion="InstanceRegion1" />
<IncludeRules context="generalDetection" />
<AnyChar attribute="Operator" context="#stay" String="[&amp;&gt;&lt;=:+\-*\/|]().,;" />
<DetectChar attribute="Attribute" context="attribute" char="'" />
</context>
<!-- process environment -->
<context name="process1" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<StringDetect attribute="Process" context="process2" String="%2" dynamic="true" />
<RegExpr attribute="Process" context="#pop" String="^(|\s.*)end\s+process(\s+%4)?\s*;" endRegion="ProcessRegion1" insensitive="true" dynamic="true" />
</context>
<context name="process2" attribute="Normal Text" lineEndContext="#stay" dynamic="true">
<RegExpr attribute="Process" context="#pop" String="^(|\s.*)end\s+process" insensitive="true" lookAhead="true" />
<StringDetect attribute="Process" context="#stay" String="begin" insensitive="true" />
<IncludeRules context="processContext" />
</context>
<context name="processContext" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="preDetection" />
<RegExpr attribute="Control" context="case1" String="&bos;&label;(case)&eos;" beginRegion="CaseRegion1" insensitive="true" />
<RegExpr attribute="Control" context="if" String="&bos;&label;(if)&eos;" beginRegion="IfRegion1" insensitive="true" />
<RegExpr attribute="Control" context="forOrWhile" String="&bos;&label;((for|while)\s+.+\s+)?loop&eos;" beginRegion="ForOrWhileRegion1" insensitive="true" />
<IncludeRules context="generalDetection" />
</context>
<context name="case1" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="Keyword" context="case2" String="is" insensitive="true" />
</context>
<context name="case2" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Control" context="#pop#pop" String="&bos;end\s+case(\s+&varname;)?\s*;" endRegion="CaseRegion1" insensitive="true" />
<RegExpr attribute="Control" context="caseWhen" String="&bos;when&eos;" beginRegion="CaseWhenRegion1" insensitive="true" />
<IncludeRules context="processContext" />
</context>
<context name="caseWhen" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Control" context="#pop" String="&bos;when&eos;" endRegion="CaseWhenRegion1" lookAhead="true" insensitive="true" />
<RegExpr attribute="Control" context="#pop" String="&bos;end\s+case(\s+&varname;)?\s*;" endRegion="CaseWhenRegion1" lookAhead="true" insensitive="true" />
<IncludeRules context="process2" />
</context>
<context name="if" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Control" context="#pop" String="&bos;end\s+if(\s+&varname;)?\s*;" endRegion="IfRegion1" insensitive="true" />
<keyword attribute="Control" context="#stay" String="if"/>
<IncludeRules context="processContext" />
</context>
<context name="forOrWhile" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Control" context="#pop" String="&bos;end\s+loop(\s+&varname;)?\s*;" endRegion="ForOrWhileRegion1" insensitive="true" />
<keyword attribute="Control" context="#stay" String="forOrWhile"/>
<IncludeRules context="processContext" />
</context>
<!-- other environments -->
<context name="comment" attribute="Comment" lineEndContext="#pop" />
<context name="string" attribute="Vector" lineEndContext="#stay" >
<DetectChar attribute="Vector" context="#pop" char="&quot;" />
@ -274,13 +330,17 @@
<itemData name="Vector" defStyleNum="dsString" />
<itemData name="Operator" defStyleNum="dsOthers" />
<itemData name="Attribute" defStyleNum="dsBaseN" />
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
<itemData name="Signal" defStyleNum="dsOthers"/>
<itemData name="Redirection" defStyleNum="dsKeyword" color="#238" />
<itemData name="Process" defStyleNum="dsKeyword" color="#09A" />
<itemData name="Control" defStyleNum="dsKeyword" color="#008" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="--" />
</comments>
<keywords casesensitive="1" />
<keywords casesensitive="0" />
</general>
</language>

@ -4,7 +4,7 @@
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
<language name="XML" version="1.96" kateversion="2.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf" mimetype="text/xml;text/book;text/daml;text/rdf" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<language name="XML" version="1.97" kateversion="2.4" section="Markup" extensions="*.docbook;*.xml;*.rc;*.daml;*.rdf;*.rss;*.xspf" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<highlighting>
<contexts>

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="x.org Configuration" section="Configuration" extensions="xorg.conf" mimetype="" version="1.01" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
<highlighting>
<contexts>
<context name="xorg" attribute="Normal Text" lineEndContext="#stay">
<StringDetect String="Section" attribute="Section" context="Section" beginRegion="Section" insensitive="true" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Section" attribute="Normal Text" lineEndContext="#stay">
<RangeDetect char="&quot;" char1="&quot;" attribute="Section Name" context="Section Content" />
<RangeDetect char="'" char1="'" attribute="Section Name" context="Section Content" />
<DetectIdentifier attribute="Alert" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Section Content" attribute="Normal Text" lineEndContext="#stay">
<StringDetect String="EndSection" attribute="Section" context="#pop#pop" endRegion="Section" insensitive="true" />
<StringDetect String="EndSubSection" attribute="Section" context="#pop#pop" endRegion="SubSection" insensitive="true" />
<StringDetect String="SubSection" attribute="Section" context="Section" beginRegion="SubSection" insensitive="true" />
<RegExpr String="\b\w+\b" context="Keyword" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Keyword" attribute="Keyword" lineEndContext="#pop">
<RangeDetect attribute="Value" char="&quot;" char1="&quot;" />
<RangeDetect attribute="Value" char="'" char1="'" />
<Float attribute="Float" />
<Int attribute="Int" />
<RegExpr attribute="Value2" String="[\w\d]+" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Section" defStyleNum="dsFunction" />
<itemData name="Section Name" defStyleNum="dsString" />
<itemData name="Value" defStyleNum="dsDataType" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Alert" defStyleNum="dsError" />
<itemData name="Int" defStyleNum="dsDecVal" />
<itemData name="Value2" defStyleNum="dsOthers" />
<itemData name="Float" defStyleNum="dsFloat" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
</comments>
</general>
</language>

@ -0,0 +1,627 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
<!ENTITY entref "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
]>
<language name="XUL" version="0.11" kateversion="2.5" section="Markup" extensions="*.xul;*.xbl" mimetype="text/xul" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl), Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net), Marc Dassonneville (marc.dassonneville@gmail.com)" license="LGPL">
<highlighting>
<list name="keywords">
<item> if </item>
<item> else </item>
<item> for </item>
<item> in </item>
<item> while </item>
<item> do </item>
<item> continue </item>
<item> break </item>
<item> with </item>
<item> try </item>
<item> catch </item>
<item> finally </item>
<item> switch </item>
<item> case </item>
<item> new </item>
<item> var </item>
<item> function </item>
<item> return </item>
<item> delete </item>
<item> true </item>
<item> false </item>
<item> void </item>
<item> throw </item>
<item> typeof </item>
<item> const </item>
<item> default </item>
</list>
<list name="functions">
<item> escape </item>
<item> isFinite </item>
<item> isNaN </item>
<item> Number </item>
<item> parseFloat </item>
<item> parseInt </item>
<item> reload </item>
<item> taint </item>
<item> unescape </item>
<item> untaint </item>
<item> write </item>
</list>
<list name="objects">
<item>Anchor</item>
<item>Applet</item>
<item>Area</item>
<item>Array</item>
<item>Boolean</item>
<item>Button</item>
<item>Checkbox</item>
<item>Date</item>
<item>document</item>
<item>window</item>
<item>Image</item>
<item>FileUpload</item>
<item>Form</item>
<item>Frame</item>
<item>Function</item>
<item>Hidden</item>
<item>Link</item>
<item>MimeType</item>
<item>Math</item>
<item>Max</item>
<item>Min</item>
<item>Layer</item>
<item>navigator</item>
<item>Object</item>
<item>Password</item>
<item>Plugin</item>
<item>Radio</item>
<item>RegExp</item>
<item>Reset</item>
<item>Screen</item>
<item>Select</item>
<item>String</item>
<item>Text</item>
<item>Textarea</item>
<item>this</item>
<item>Window</item>
</list>
<list name="math">
<item> abs </item>
<item> acos </item>
<item> asin </item>
<item> atan </item>
<item> atan2 </item>
<item> ceil </item>
<item> cos </item>
<item> ctg </item>
<item> E </item>
<item> exp </item>
<item> floor </item>
<item> LN2 </item>
<item> LN10 </item>
<item> log </item>
<item> LOG2E </item>
<item> LOG10E </item>
<item> PI </item>
<item> pow </item>
<item> round </item>
<item> sin </item>
<item> sqrt </item>
<item> SQRT1_2 </item>
<item> SQRT2 </item>
<item> tan </item>
</list>
<list name="events">
<item>onAbort</item>
<item>onBlur</item>
<item>onChange</item>
<item>onClick</item>
<item>onError</item>
<item>onFocus</item>
<item>onLoad</item>
<item>onMouseOut</item>
<item>onMouseOver</item>
<item>onReset</item>
<item>onSelect</item>
<item>onSubmit</item>
<item>onUnload</item>
</list>
<list name="methods">
<item>above</item>
<item>action</item>
<item>alinkColor</item>
<item>alert</item>
<item>anchor</item>
<item>anchors</item>
<item>appCodeName</item>
<item>applets</item>
<item>apply</item>
<item>appName</item>
<item>appVersion</item>
<item>argument</item>
<item>arguments</item>
<item>arity</item>
<item>availHeight</item>
<item>availWidth</item>
<item>back</item>
<item>background</item>
<item>below</item>
<item>bgColor</item>
<item>border</item>
<item>big</item>
<item>blink</item>
<item>blur</item>
<item>bold</item>
<item>border</item>
<item>call</item>
<item>caller</item>
<item>charAt</item>
<item>charCodeAt</item>
<item>checked</item>
<item>clearInterval</item>
<item>clearTimeout</item>
<item>click</item>
<item>clip</item>
<item>close</item>
<item>closed</item>
<item>colorDepth</item>
<item>complete</item>
<item>compile</item>
<item>constructor</item>
<item>confirm</item>
<item>cookie</item>
<item>current</item>
<item>cursor</item>
<item>data</item>
<item>defaultChecked</item>
<item>defaultSelected</item>
<item>defaultStatus</item>
<item>defaultValue</item>
<item>description</item>
<item>disableExternalCapture</item>
<item>domain</item>
<item>elements</item>
<item>embeds</item>
<item>enabledPlugin</item>
<item>enableExternalCapture</item>
<item>encoding</item>
<item>eval</item>
<item>exec</item>
<item>fgColor</item>
<item>filename</item>
<item>find</item>
<item>fixed</item>
<item>focus</item>
<item>fontcolor</item>
<item>fontsize</item>
<item>form</item>
<item>forms</item>
<item>formName</item>
<item>forward</item>
<item>frames</item>
<item>fromCharCode</item>
<item>getDate</item>
<item>getDay</item>
<item>getHours</item>
<item>getMiliseconds</item>
<item>getMinutes</item>
<item>getMonth</item>
<item>getSeconds</item>
<item>getSelection</item>
<item>getTime</item>
<item>getTimezoneOffset</item>
<item>getUTCDate</item>
<item>getUTCDay</item>
<item>getUTCFullYear</item>
<item>getUTCHours</item>
<item>getUTCMilliseconds</item>
<item>getUTCMinutes</item>
<item>getUTCMonth</item>
<item>getUTCSeconds</item>
<item>getYear</item>
<item>global</item>
<item>go</item>
<item>hash</item>
<item>height</item>
<item>history</item>
<item>home</item>
<item>host</item>
<item>hostname</item>
<item>href</item>
<item>hspace</item>
<item>ignoreCase</item>
<item>images</item>
<item>index</item>
<item>indexOf</item>
<item>innerHeight</item>
<item>innerWidth</item>
<item>input</item>
<item>italics</item>
<item>javaEnabled</item>
<item>join</item>
<item>language</item>
<item>lastIndex</item>
<item>lastIndexOf</item>
<item>lastModified</item>
<item>lastParen</item>
<item>layers</item>
<item>layerX</item>
<item>layerY</item>
<item>left</item>
<item>leftContext</item>
<item>length</item>
<item>link</item>
<item>linkColor</item>
<item>links</item>
<item>location</item>
<item>locationbar</item>
<item>load</item>
<item>lowsrc</item>
<item>match</item>
<item>MAX_VALUE</item>
<item>menubar</item>
<item>method</item>
<item>mimeTypes</item>
<item>MIN_VALUE</item>
<item>modifiers</item>
<item>moveAbove</item>
<item>moveBelow</item>
<item>moveBy</item>
<item>moveTo</item>
<item>moveToAbsolute</item>
<item>multiline</item>
<item>name</item>
<item>NaN</item>
<item>NEGATIVE_INFINITY</item>
<item>negative_infinity</item>
<item>next</item>
<item>open</item>
<item>opener</item>
<item>options</item>
<item>outerHeight</item>
<item>outerWidth</item>
<item>pageX</item>
<item>pageY</item>
<item>pageXoffset</item>
<item>pageYoffset</item>
<item>parent</item>
<item>parse</item>
<item>pathname</item>
<item>personalbar</item>
<item>pixelDepth</item>
<item>platform</item>
<item>plugins</item>
<item>pop</item>
<item>port</item>
<item>POSITIVE_INFINITY</item>
<item>positive_infinity</item>
<item>preference</item>
<item>previous</item>
<item>print</item>
<item>prompt</item>
<item>protocol</item>
<item>prototype</item>
<item>push</item>
<item>referrer</item>
<item>refresh</item>
<item>releaseEvents</item>
<item>reload</item>
<item>replace</item>
<item>reset</item>
<item>resizeBy</item>
<item>resizeTo</item>
<item>reverse</item>
<item>rightContext</item>
<item>screenX</item>
<item>screenY</item>
<item>scroll</item>
<item>scrollbar</item>
<item>scrollBy</item>
<item>scrollTo</item>
<item>search</item>
<item>select</item>
<item>selected</item>
<item>selectedIndex</item>
<item>self</item>
<item>setDate</item>
<item>setHours</item>
<item>setMinutes</item>
<item>setMonth</item>
<item>setSeconds</item>
<item>setTime</item>
<item>setTimeout</item>
<item>setUTCDate</item>
<item>setUTCDay</item>
<item>setUTCFullYear</item>
<item>setUTCHours</item>
<item>setUTCMilliseconds</item>
<item>setUTCMinutes</item>
<item>setUTCMonth</item>
<item>setUTCSeconds</item>
<item>setYear</item>
<item>shift</item>
<item>siblingAbove</item>
<item>siblingBelow</item>
<item>small</item>
<item>sort</item>
<item>source</item>
<item>splice</item>
<item>split</item>
<item>src</item>
<item>status</item>
<item>statusbar</item>
<item>strike</item>
<item>sub</item>
<item>submit</item>
<item>substr</item>
<item>substring</item>
<item>suffixes</item>
<item>sup</item>
<item>taintEnabled</item>
<item>target</item>
<item>test</item>
<item>text</item>
<item>title</item>
<item>toGMTString</item>
<item>toLocaleString</item>
<item>toLowerCase</item>
<item>toolbar</item>
<item>toSource</item>
<item>toString</item>
<item>top</item>
<item>toUpperCase</item>
<item>toUTCString</item>
<item>type</item>
<item>URL</item>
<item>unshift</item>
<item>unwatch</item>
<item>userAgent</item>
<item>UTC</item>
<item>value</item>
<item>valueOf</item>
<item>visibility</item>
<item>vlinkColor</item>
<item>vspace</item>
<item>width</item>
<item>watch</item>
<item>which</item>
<item>width</item>
<item>write</item>
<item>writeln</item>
<item>x</item>
<item>y</item>
<item>zIndex</item>
</list>
<contexts>
<context name="Start" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="FindXML" />
</context>
<context name="FindXML" attribute="Normal Text" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<StringDetect attribute="CDATA" context="CDATA" String="&lt;![CDATA[" beginRegion="cdata" />
<RegExpr attribute="Doctype" context="Doctype" String="&lt;!DOCTYPE\s+" beginRegion="doctype" />
<RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />
<RegExpr attribute="Element" context="Element" String="&lt;&name;" beginRegion="element" />
<IncludeRules context="FindEntityRefs" />
<DetectIdentifier />
</context>
<context name="FindEntityRefs" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<AnyChar attribute="Error" context="#stay" String="&amp;&lt;" />
</context>
<context name="FindPEntityRefs" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
<RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
<AnyChar attribute="Error" context="#stay" String="&amp;%" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
<RegExpr attribute="Error" context="#stay" String="-(-(?!-&gt;))+" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context name="PI" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1="&gt;" endRegion="pi" />
</context>
<context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="&gt;" endRegion="doctype" />
<DetectChar attribute="Doctype" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
</context>
<context name="Doctype Internal Subset" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="]" endRegion="int_subset" />
<RegExpr attribute="Doctype" context="Doctype Markupdecl" String="&lt;!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
<StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
<RegExpr attribute="Processing Instruction" context="PI" String="&lt;\?[\w:_-]*" beginRegion="pi" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Doctype" context="#pop" char="&gt;" />
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char="&quot;" />
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="&apos;" />
</context>
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop" char="&quot;" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop" char="&apos;" />
<IncludeRules context="FindPEntityRefs" />
</context>
<context name="Element" attribute="Normal Text" lineEndContext="#stay">
<Detect2Chars attribute="Element" context="#pop" char="/" char1="&gt;" endRegion="element" />
<DetectChar attribute="Element" context="El Content" char="&gt;" />
<RegExpr attribute="Attribute" context="Attribute" String="^&name;" />
<RegExpr attribute="Attribute" context="Attribute" String="\s+&name;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="El Content" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Element" context="El End" String="&lt;/&name;" />
<IncludeRules context="FindXML" />
</context>
<context name="El End" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Element" context="#pop#pop#pop" char="&gt;" endRegion="element" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="Attribute" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Attribute" context="Value" char="=" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="Value" attribute="Normal Text" lineEndContext="#stay">
<DetectChar attribute="Value" context="Value DQ" char="&quot;" />
<DetectChar attribute="Value" context="Value SQ" char="&apos;" />
<RegExpr attribute="Error" context="#stay" String="\S" />
</context>
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop#pop#pop" char="&quot;" />
<IncludeRules context="FindEntityRefs" />
</context>
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
<DetectChar attribute="Value" context="#pop#pop#pop" char="&apos;" />
<IncludeRules context="FindEntityRefs" />
</context>
<context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="CDATA" context="#pop" String="]]&gt;" endRegion="cdata" />
<StringDetect attribute="EntityRef" context="#stay" String="]]&amp;gt;" />
<DetectSpaces/>
<StringDetect attribute="Region Marker" context="region_marker" String="//BEGIN" beginRegion="Region1"/>
<StringDetect attribute="Region Marker" context="region_marker" String="//END" endRegion="Region1"/>
<keyword attribute="Keyword" context="#stay" String="keywords" />
<keyword attribute="Function" context="#stay" String="functions" />
<keyword attribute="Objects" context="#stay" String="objects" />
<keyword attribute="Math" context="#stay" String="math" />
<keyword attribute="Events" context="#stay" String="events" />
<keyword attribute="Data Type" context="#stay" String="methods" />
<DetectIdentifier/>
<Float attribute="Float" context="#stay" />
<Int attribute="Decimal" context="#stay" />
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="String" context="String 1" char="'"/>
<Detect2Chars attribute="Comment" context="JSComment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="Multi/inline Comment" char="/" char1="*" beginRegion="Comment"/>
<RegExpr attribute="Normal Text" context="(Internal regex catch)" String="[=?:]" />
<RegExpr attribute="Normal Text" context="(Internal regex catch)" String="\(" />
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;+,-/.*&lt;=&gt;?[]|~^&#59;"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String">
<DetectIdentifier/>
<HlCStringChar attribute="String Char" context="#stay"/>
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="String Char" lineEndContext="#pop" name="String 1">
<DetectIdentifier/>
<DetectChar attribute="String" context="String" char="&quot;"/>
<DetectChar attribute="String Char" context="#pop" char="'"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="JSComment">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Multi/inline Comment">
<IncludeRules context="##Alerts" />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
</context>
<context attribute="Regular Expression" lineEndContext="#stay" name="Regular Expression">
<RegExpr attribute="Regular Expression" context="#pop#pop#pop" String="/[ig]{0,2}" />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\{[\d, ]+\}" />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\[bB]" />
<RegExpr attribute="Pattern Character Class" context="#stay" String="\\[nrtvfDdSsWw]" />
<DetectChar attribute="Pattern Character Class" context="(charclass caret first check)" char="[" />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\\." />
<RegExpr attribute="Pattern Internal Operator" context="#stay" String="\$(?=/)" />
<AnyChar attribute="Pattern Internal Operator" context="#stay" String="?+*()|" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="(Internal regex catch)" fallthrough="true" fallthroughContext="#pop">
<RegExpr attribute="Normal Text" context="#stay" String="\s*" />
<RegExpr attribute="Regular Expression" context="#pop" String="//(?=;)" />
<Detect2Chars attribute="Comment" context="JSComment" char="/" char1="/" />
<Detect2Chars attribute="Comment" context="Multi/inline Comment" char="/" char1="*" />
<DetectChar attribute="Regular Expression" context="(regex caret first check)" char="/" />
</context>
<context attribute="Pattern Character Class" lineEndContext="#stay" name="Regular Expression Character Class">
<RegExpr attribute="Pattern Character Class" context="#stay" String="\\[\[\]]" />
<DetectChar attribute="Pattern Character Class" context="#pop#pop" char="]" />
</context>
<context attribute="Pattern Internal Operator" lineEndContext="#pop" name="(regex caret first check)" fallthrough="true" fallthroughContext="Regular Expression">
<DetectChar attribute="Pattern Internal Operator" context="Regular Expression" char="^" />
</context>
<context attribute="Pattern Internal Operator" lineEndContext="#pop" name="(charclass caret first check)" fallthrough="true" fallthroughContext="Regular Expression Character Class">
<DetectChar attribute="Pattern Internal Operator" context="Regular Expression Character Class" char="^" />
</context>
<context name="region_marker" attribute="Region Marker" lineEndContext="#pop" >
<DetectIdentifier />
<DetectSpaces />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="CDATA" defStyleNum="dsBaseN" bold="1" />
<itemData name="Processing Instruction" defStyleNum="dsKeyword" />
<itemData name="Doctype" defStyleNum="dsDataType" bold="1" />
<itemData name="Element" defStyleNum="dsKeyword" />
<itemData name="Attribute" defStyleNum="dsOthers" />
<itemData name="Value" defStyleNum="dsString" color="#a00" />
<itemData name="EntityRef" defStyleNum="dsDecVal" />
<itemData name="PEntityRef" defStyleNum="dsDecVal" />
<itemData name="Error" defStyleNum="dsError" />
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Function" defStyleNum="dsFunction"/>
<itemData name="Objects" defStyleNum="dsKeyword" color="#008000" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Math" defStyleNum="dsKeyword" color="#DBA716" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Events" defStyleNum="dsKeyword" color="#F766D5" selColor="#00ffff" bold="0" italic="0"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Char" defStyleNum="dsChar"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Regular Expression" defStyleNum="dsOthers" />
<itemData name="Pattern Internal Operator" defStyleNum="dsFloat" />
<itemData name="Pattern Character Class" defStyleNum="dsBaseN" />
<itemData name="Region Marker" defStyleNum="dsRegionMarker" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="&lt;!--" end="--&gt;" />
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
</comments>
<indentation mode="xml" />
<keywords casesensitive="1" />
</general>
</language>

@ -0,0 +1,197 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Author: Dr Orlovsky MA <maxim@orlovsky.info> //-->
<language name="YAML" version="1.1" kateversion="2.3" section="Markup"
extensions="*.yaml;*.yml" mimetype="text/yaml"
author="Dr Orlovsky MA (dr.orlovsky@gmail.com)" license="LGPL">
<highlighting>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="normal" >
<RegExpr attribute="Document Header" context="header" String="^---"/>
<RegExpr attribute="End of Document" context="EOD" String="^\.\.\.$"/>
<RegExpr attribute="Directive" context="directive" String="^%"/>
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<DetectChar attribute="Operator" firstNonSpace="true" context="dash" char="-" />
<DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
<DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
<RegExpr attribute="Data Types" firstNonSpace="true" context="#stay" String="!!\S+" />
<RegExpr attribute="Alias" firstNonSpace="true" context="#stay" String="&amp;\S+" />
<RegExpr attribute="Reference" firstNonSpace="true" context="#stay" String="\*\S+" />
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*[^&quot;'#-][^:#]*:"/>
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*&quot;[^&quot;#]+&quot;\s*:"/>
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*'[^'#]+'\s*:"/>
<DetectChar attribute="String" context="string" char="'" beginRegion="String" />
<DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
</context>
<context attribute="List" lineEndContext="#pop" name="dash">
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<RegExpr attribute="Data Types" context="#stay" String="null$" />
<RegExpr attribute="Data Types" context="#stay" String="!!\S+" />
<RegExpr attribute="Alias" context="#stay" String="&amp;\S+" />
<RegExpr attribute="Reference" context="#stay" String="\*\S+" />
<RegExpr attribute="Normal Text" lookAhead="true" context="#pop" String="." />
</context>
<context attribute="Document Header" lineEndContext="#pop" name="header">
<DetectChar attribute="Comment" context="comment" char="#" />
</context>
<context attribute="End of Document" lineEndContext="#stay" name="EOD">
</context>
<context attribute="Directive" lineEndContext="#pop" name="directive">
</context>
<context attribute="Attribute" lineEndContext="#pop#pop" name="attribute">
<DetectChar attribute="Comment" context="comment" char="#" />
</context>
<context attribute="Attribute" lineEndContext="#stay" name="attribute-inline">
<DetectChar attribute="Operator" context="#pop#pop" char="," />
<DetectChar attribute="Operator" context="#pop#pop" lookAhead="true" char="}" />
<DetectChar attribute="Comment" context="comment" char="#" />
</context>
<context attribute="Attribute" lineEndContext="#pop" name="attribute-pre">
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<RegExpr attribute="Data Types" context="#stay" String="null$" />
<RegExpr attribute="Data Types" context="#stay" String="!!\S+" />
<DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
<DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
<DetectChar attribute="String" context="attribute-string" char="'" beginRegion="String" />
<DetectChar attribute="String" context="attribute-stringx" char="&quot;" beginRegion="String" />
<RegExpr attribute="Alias" context="attribute" String="&amp;\S+" />
<RegExpr attribute="Reference" context="attribute" String="\*\S+" />
<RegExpr attribute="Attribute" context="attribute" String="." />
</context>
<context attribute="Attribute" lineEndContext="#pop" name="attribute-pre-inline">
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<StringDetect attribute="Data Types" context="#stay" String="null" />
<RegExpr attribute="Data Types" context="#stay" String="!!\S+" />
<DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
<DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
<DetectChar attribute="String" context="attribute-string-inline" char="'" beginRegion="String" />
<DetectChar attribute="String" context="attribute-stringx-inline" char="&quot;" beginRegion="String" />
<RegExpr attribute="Alias" context="attribute-inline" String="&amp;\S+" />
<RegExpr attribute="Reference" context="attribute-inline" String="\*\S+" />
<DetectChar attribute="Operator" context="#pop" char="," />
<DetectChar attribute="Operator" context="#pop" lookAhead="true" char="}" />
<RegExpr attribute="Attribute" context="attribute-inline" String="." />
</context>
<context attribute="List" lineEndContext="#stay" name="list">
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<DetectChar attribute="Operator" context="#pop" char="]" endRegion="List" />
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*[^&quot;'#-][^:#]*:"/>
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*&quot;[^&quot;#]+&quot;\s*:"/>
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*'[^'#]+'\s*:"/>
<StringDetect attribute="Data Types" context="#stay" String="null" />
<RegExpr attribute="Data Types" context="#stay" String="!!\S+" />
<DetectChar attribute="Operator" context="list" char="[" beginRegion="List" />
<DetectChar attribute="Operator" context="hash" char="{" beginRegion="Hash" />
<RegExpr attribute="Alias" context="#stay" String="&amp;\S+" />
<RegExpr attribute="Reference" context="#stay" String="\*\S+" />
<DetectChar attribute="String" context="string" char="'" beginRegion="String" />
<DetectChar attribute="String" context="stringx" char="&quot;" beginRegion="String" />
<DetectChar attribute="Operator" context="#stay" char="," />
</context>
<context attribute="Hash" lineEndContext="#stay" name="hash">
<DetectSpaces/>
<DetectChar attribute="Comment" context="comment" char="#" />
<RegExpr attribute="Key" context="attribute-pre-inline" String="\??\s*[^&quot;'#-][^:#]*:"/>
<RegExpr attribute="Key" context="attribute-pre-inline" String="\??\s*&quot;[^&quot;#]+&quot;\s*:"/>
<RegExpr attribute="Key" context="attribute-pre-inline" String="\??\s*'[^'#]+'\s*:"/>
<DetectChar attribute="Operator" context="#pop" char="}" endRegion="Hash" />
</context>
<context attribute="String" lineEndContext="#stay" name="attribute-string">
<DetectIdentifier />
<DetectChar attribute="String" context="attribute-end" char="'" endRegion="String" />
</context>
<context attribute="String" lineEndContext="#stay" name="attribute-stringx">
<DetectIdentifier />
<DetectChar attribute="String" context="attribute-end" char="&quot;" endRegion="String" />
</context>
<context attribute="String" lineEndContext="#stay" name="attribute-string-inline">
<DetectIdentifier />
<DetectChar attribute="String" context="attribute-end-inline" char="'" endRegion="String" />
</context>
<context attribute="String" lineEndContext="#stay" name="attribute-stringx-inline">
<DetectIdentifier />
<DetectChar attribute="String" context="attribute-end-inline" char="&quot;" endRegion="String" />
</context>
<context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end">
</context>
<context attribute="Error" lineEndContext="#pop#pop#pop" name="attribute-end-inline">
<RegExpr attribute="Normal Text" context="#stay" String="\s*"/>
<DetectChar attribute="String" context="#pop#pop#pop" lookAhead="true" char="}"/>
<RegExpr attribute="Operator" context="#pop#pop#pop" String=",\s"/>
</context>
<context attribute="String" lineEndContext="#stay" name="string">
<DetectIdentifier />
<DetectChar attribute="String" context="#pop" char="'" endRegion="String" />
</context>
<context attribute="String" lineEndContext="#stay" name="stringx">
<DetectIdentifier />
<DetectChar attribute="String" context="#pop" char="&quot;" endRegion="String" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="comment">
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="List" defStyleNum="dsNormal" />
<itemData name="Hash" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="End of Document" defStyleNum="dsComment" />
<itemData name="Document Header" defStyleNum="dsOthers" />
<itemData name="Data Types" defStyleNum="dsDataType" />
<itemData name="Alias" defStyleNum="dsDataType" />
<itemData name="Reference" defStyleNum="dsDataType" />
<itemData name="Key" defStyleNum="dsFunction" />
<itemData name="Directive" defStyleNum="dsOthers" />
<itemData name="Operator" defStyleNum="dsKeyword" />
<itemData name="String" defStyleNum="dsNormal" />
<itemData name="Error" defStyleNum="dsError" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>

@ -0,0 +1,144 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Zonnon" version="1.0" kateversion="2.1" section="Sources" extensions="*.znn" mimetype="text/x-zonnon">
<highlighting>
<list name="keywords">
<item> accept </item>
<item> activity </item>
<item> array </item>
<item> as </item>
<item> await </item>
<item> begin </item>
<item> by </item>
<item> case </item>
<item> const </item>
<item> definition </item>
<item> div </item>
<item> do </item>
<item> else </item>
<item> elsif </item>
<item> end </item>
<item> exception </item>
<item> exit </item>
<item> for </item>
<item> if </item>
<item> implementation </item>
<item> implements </item>
<item> import </item>
<item> in </item>
<item> is </item>
<item> loop </item>
<item> mod </item>
<item> module </item>
<item> new </item>
<item> nil </item>
<item> object </item>
<item> of </item>
<item> on </item>
<item> operator </item>
<item> or </item>
<item> procedure </item>
<item> protocol </item>
<item> record </item>
<item> refines </item>
<item> repeat </item>
<item> return </item>
<item> self </item>
<item> termination </item>
<item> then </item>
<item> to </item>
<item> type </item>
<item> until </item>
<item> var </item>
<item> while </item>
</list>
<list name="modifiers">
<item> barrier </item>
<item> immutable </item>
<item> locked </item>
<item> private </item>
<item> protected </item>
<item> public </item>
<item> ref </item>
<item> sealed </item>
<item> shared </item>
<item> value </item>
</list>
<list name="predefines">
<item> abs </item>
<item> assert </item>
<item> cap </item>
<item> copy </item>
<item> copyvalue </item>
<item> dec </item>
<item> excl </item>
<item> false </item>
<item> halt </item>
<item> inc </item>
<item> len </item>
<item> low </item>
<item> max </item>
<item> min </item>
<item> odd </item>
<item> pred </item>
<item> read </item>
<item> readln </item>
<item> reason </item>
<item> size </item>
<item> succ </item>
<item> true </item>
<item> write </item>
<item> writeln </item>
</list>
<list name="types">
<item> boolean </item>
<item> cardinal </item>
<item> char </item>
<item> fixed </item>
<item> integer </item>
<item> real </item>
<item> set </item>
<item> string </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Type" context="#stay" String="types"/>
<keyword attribute="Modifier" context="#stay" String="modifiers"/>
<keyword attribute="Predefine" context="#stay" String="predefines"/>
<Float attribute="Number" context="#stay"/>
<Int attribute="Number" context="#stay"/>
<HlCHex attribute="Number" context="#stay"/>
<DetectChar attribute="String" context="String1" char="&quot;" />
<DetectChar attribute="String" context="String2" char="'" />
<Detect2Chars attribute="Comment" context="Comment1" char="(" char1="*"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String1">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="String" lineEndContext="#pop" name="String2">
<DetectChar attribute="String" context="#pop" char="'" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Comment1">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1=")"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Type" defStyleNum="dsDataType"/>
<itemData name="Number" defStyleNum="dsDecVal" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Modifier" defStyleNum="dsOthers" />
<itemData name="Predefine" defStyleNum="dsKeyword" italic="true" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="1" />
<comments>
<comment name="multiLine" start="(*" end="*)" />
</comments>
</general>
</language>

@ -15,7 +15,7 @@ kde_module_LTLIBRARIES = kio_http.la
kio_http_la_SOURCES = http.cc
kio_http_la_METASOURCES = AUTO
kio_http_la_LIBADD = $(LIB_KIO) $(top_builddir)/kio/httpfilter/libhttpfilter.la $(top_builddir)/kio/misc/kntlm/libkntlm.la $(LIB_QT) $(LIB_KDECORE) $(LIBZ) $(top_builddir)/dcop/libDCOP.la
kio_http_la_LIBADD = $(LIB_KIO) $(top_builddir)/kio/httpfilter/libhttpfilter.la $(LIB_QT) $(LIB_KDECORE) $(LIBZ) $(top_builddir)/dcop/libDCOP.la
kio_http_la_LDFLAGS = $(all_libraries) $(GSSAPI_RPATH) -module $(KDE_PLUGIN) -lgssapi_krb5
kio_http_cache_cleaner_la_SOURCES = http_cache_cleaner.cpp

Loading…
Cancel
Save