git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1068844 283d02a7-25f6-0310-bc7c-ecb5cbfe19dav3.5.13-sru
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="""/>
|
||||||
|
<DetectChar attribute="Comment" context="Comment" char="*"/>
|
||||||
|
<AnyChar attribute="Symbol" context="#stay" String="!%&()+,-<:=>[]^~"/>
|
||||||
|
</context>
|
||||||
|
<context attribute="Comment" lineEndContext="#pop" name="Comment">
|
||||||
|
<DetectChar attribute="Comment" context="#pop" char="""/>
|
||||||
|
<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=""" />
|
||||||
|
<comment name="singleLine" start="*" />
|
||||||
|
<comment name="multiLine" start="*" />
|
||||||
|
</comments>
|
||||||
|
<keywords casesensitive="0" />
|
||||||
|
</general>
|
||||||
|
|
||||||
|
</language>
|
File diff suppressed because it is too large
Load Diff
@ -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=""" />
|
||||||
|
<DetectChar attribute="Comment" context="Commentar 2" char=";" />
|
||||||
|
<AnyChar attribute="Symbol" context="#stay" String="!#%&*()+,-<=>?/:[]^{|}~" />
|
||||||
|
</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=""" />
|
||||||
|
</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>
|
@ -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>
|
File diff suppressed because it is too large
Load Diff
@ -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>
|
@ -0,0 +1,328 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE language SYSTEM "language.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY name "[A-Za-z_:][\w.:_-]*">
|
||||||
|
<!ENTITY entref "&(#[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=""" 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=""" 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=""" context="#pop"/>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<context name="FindHTML" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectSpaces/>
|
||||||
|
<DetectIdentifier/>
|
||||||
|
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||||
|
<StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" />
|
||||||
|
<RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" beginRegion="doctype" />
|
||||||
|
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||||
|
<RegExpr attribute="Element" context="CSS" String="<style\b" insensitive="TRUE" beginRegion="style" />
|
||||||
|
<RegExpr attribute="Element" context="JS" String="<script\b" insensitive="TRUE" beginRegion="script" />
|
||||||
|
<RegExpr attribute="Element" context="El Open" String="<pre\b" insensitive="TRUE" beginRegion="pre" />
|
||||||
|
<RegExpr attribute="Element" context="El Open" String="<div\b" insensitive="TRUE" beginRegion="div" />
|
||||||
|
<RegExpr attribute="Element" context="El Open" String="<table\b" insensitive="TRUE" beginRegion="table" />
|
||||||
|
<RegExpr attribute="Element" context="El Open" String="<&name;" />
|
||||||
|
<RegExpr attribute="Element" context="El Close" String="</pre\b" insensitive="TRUE" endRegion="pre" />
|
||||||
|
<RegExpr attribute="Element" context="El Close" String="</div\b" insensitive="TRUE" endRegion="div" />
|
||||||
|
<RegExpr attribute="Element" context="El Close" String="</table\b" insensitive="TRUE" endRegion="table" />
|
||||||
|
<RegExpr attribute="Element" context="El Close" String="</&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="&<" />
|
||||||
|
</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="&%" />
|
||||||
|
</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="<!(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="-->" endRegion="comment" />
|
||||||
|
<RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectSpaces/>
|
||||||
|
<DetectIdentifier/>
|
||||||
|
<StringDetect attribute="CDATA" context="#pop" String="]]>" endRegion="cdata" />
|
||||||
|
<StringDetect attribute="EntityRef" context="#stay" String="]]&gt;" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="PI" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Doctype" context="#pop" char=">" 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="<!--" beginRegion="comment" />
|
||||||
|
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:-]*" beginRegion="pi" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Doctype" context="#pop" char=">" />
|
||||||
|
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char=""" />
|
||||||
|
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="'" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop" char=""" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop" char="'" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="El Open" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" />
|
||||||
|
<DetectChar attribute="Element" context="#pop" char=">" />
|
||||||
|
<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=">" />
|
||||||
|
<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=">" />
|
||||||
|
<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=">" />
|
||||||
|
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="CSS" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="style" />
|
||||||
|
<DetectChar attribute="Element" context="CSS content" char=">" />
|
||||||
|
<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="</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=">" endRegion="script" />
|
||||||
|
<DetectChar attribute="Element" context="JS content" char=">" />
|
||||||
|
<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="</script\b" insensitive="TRUE" endRegion="script" />
|
||||||
|
<RegExpr attribute="Comment" context="JS comment close" String="//(?=.*</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="</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=""" />
|
||||||
|
<DetectChar attribute="Value" context="Value SQ" char="'" />
|
||||||
|
<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="/(?!>)" />
|
||||||
|
<RegExpr attribute="Value" context="#stay" String="[^/><"'\s]" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop#pop" char=""" />
|
||||||
|
<IncludeRules context="FindTemplate" />
|
||||||
|
<IncludeRules context="FindEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop#pop" char="'" />
|
||||||
|
<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>
|
@ -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="<!--" />
|
||||||
|
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||||
|
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\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="\\(<|>)" />
|
||||||
|
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||||
|
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
|
||||||
|
<StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" />
|
||||||
|
</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="<!--" />
|
||||||
|
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||||
|
<RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\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=">" />
|
||||||
|
<DetectChar attribute="HTML Tag" context="#pop" char=">"/>
|
||||||
|
<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="-->" />
|
||||||
|
</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=""" />
|
||||||
|
</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=""" />
|
||||||
|
</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="<!--" />
|
||||||
|
<Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" />
|
||||||
|
<RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\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=">" />
|
||||||
|
<DetectChar attribute="HTML Tag" context="#pop" char=">"/>
|
||||||
|
<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="-->" />
|
||||||
|
</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=""" />
|
||||||
|
</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=""" />
|
||||||
|
</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="<!--" beginRegion="comment" />
|
||||||
|
<StringDetect attribute="Processing Instruction" context="PI" String="<?xml" beginRegion="pi" />
|
||||||
|
<StringDetect attribute="Declaration" context="Declaration" String="<!ELEMENT" beginRegion="declaration" />
|
||||||
|
<StringDetect attribute="Declaration" context="Declaration" String="<!ATTLIST" beginRegion="declaration" />
|
||||||
|
<StringDetect attribute="Declaration" context="Declaration" String="<!NOTATION" beginRegion="declaration" />
|
||||||
|
<StringDetect attribute="Declaration" context="Declaration" String="<!ENTITY" beginRegion="declaration" />
|
||||||
|
<DetectIdentifier />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Comment" attribute="Comment" lineEndContext="#stay">
|
||||||
|
<DetectSpaces />
|
||||||
|
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
|
||||||
|
<IncludeRules context="##Alerts" />
|
||||||
|
<DetectIdentifier />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="PI" attribute="Normal" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Declaration" attribute="Normal" lineEndContext="#stay">
|
||||||
|
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||||
|
<Detect2Chars attribute="Comment" context="InlineComment" char="-" char1="-" />
|
||||||
|
<DetectChar attribute="Declaration" context="#pop" char=">" endRegion="declaration" />
|
||||||
|
<DetectChar attribute="String" context="String" char=""" />
|
||||||
|
<RegExpr attribute="Declaration" context="#stay" String="(-|O)\s(-|O)" />
|
||||||
|
<AnyChar attribute="Delimiter" context="#stay" String="(|)," />
|
||||||
|
<RegExpr attribute="Entity" context="#stay" String="(%|&)&entref;" />
|
||||||
|
<AnyChar attribute="Symbol" context="#stay" String="?*+-&" />
|
||||||
|
<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=""" />
|
||||||
|
<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="<!--" end="-->" />
|
||||||
|
</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 "(?:\(|\)|\{|\}|\[|\]|\.|\:|\||\|\||;|\,|\?|->|\#)" >
|
||||||
|
<!-- and operators - although words are dealt with separately -->
|
||||||
|
<!ENTITY opsymbols
|
||||||
|
"(?:\+|-|\*|\/|==|\/=|=:=|=\/=|<|=<|>|>=|\+\+|--|=|!|<-)" >
|
||||||
|
]
|
||||||
|
>
|
||||||
|
<!--
|
||||||
|
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=""" />
|
||||||
|
|
||||||
|
<!-- 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="(?:(?:\\")?[^"]*)*"" />
|
||||||
|
</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=""" />
|
||||||
|
<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="""/>
|
||||||
|
</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
@ -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=""" 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=""" context="#pop" attribute="Style_String_Key" />
|
||||||
|
<RegExpr String="\\(?:["\\/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=""" 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=""" context="#pop" attribute="Style_String_Value" />
|
||||||
|
<RegExpr String="\\(?:["\\/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=""" 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;
|
||||||
|
-->
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -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="<" />
|
||||||
|
<DetectChar attribute="Brackets" context="SectionIdentifier" char="{" beginRegion="SecID" />
|
||||||
|
<DetectChar attribute="Tag Character" context="TagType" char="<" />
|
||||||
|
</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=">" />
|
||||||
|
|
||||||
|
<DetectChar attribute="Char" context="CharLiteral" char="'"/>
|
||||||
|
<DetectChar attribute="String" context="String" char="""/>
|
||||||
|
<!-- 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="<" />
|
||||||
|
<DetectChar attribute="Error" context="#stay" char="|" />
|
||||||
|
<DetectChar attribute="Error" context="#stay" char="=" />
|
||||||
|
<DetectChar attribute="Error" context="#stay" char=">" />
|
||||||
|
</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=">" />
|
||||||
|
<DetectChar attribute="Comment" context="CommentChar" char="'"/>
|
||||||
|
<DetectChar attribute="Comment" context="CommentString" char="""/>
|
||||||
|
<IncludeRules context="TagErrors" />
|
||||||
|
</context>
|
||||||
|
<context name="CommentString" attribute="Comment" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Comment" context="#pop" char=""" />
|
||||||
|
<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="""/>
|
||||||
|
</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="""/>
|
||||||
|
<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="""/>
|
||||||
|
</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="""/>
|
||||||
|
<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="""/>
|
||||||
|
</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=""" />
|
||||||
|
<Detect2Chars attribute="String" context="StringInterpolation" char="$" char1=""" />
|
||||||
|
|
||||||
|
<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="<" char1="[" beginRegion="Region3" />
|
||||||
|
<Detect2Chars attribute="CompilationUnit" context="#stay" char="]" char1=">" 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=""" context="#pop" />
|
||||||
|
<RegExpr attribute="EscapeSequence" context="#stay" String="\{[0-9]+\}" />
|
||||||
|
|
||||||
|
<Detect2Chars attribute="EscapeSequence" context="#stay" char="\" char1=""" />
|
||||||
|
<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=""" 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=""" />
|
||||||
|
<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="^<<.*>>=$" 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="^<<.*>>=$" context="RawDocumentation" lookAhead="true" endRegion="CodeSection" />
|
||||||
|
<IncludeRules context="SectionNames" />
|
||||||
|
<IncludeRules context="##C++" includeAttrib="true" />
|
||||||
|
</context>
|
||||||
|
<context name="SectionNames" attribute="Prose" lineEndContext="#stay">
|
||||||
|
<RegExpr String="@<<" context="#stay" />
|
||||||
|
<RegExpr String="<<.*[^@]>>(?!=)" 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="""/>
|
||||||
|
<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=""" />
|
||||||
|
|
||||||
|
<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=":!%&()+,-/.*<=>?[]{|}~^;"/>
|
||||||
|
</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="""/>
|
||||||
|
</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=""" char1="""/>
|
||||||
|
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
||||||
|
<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=""" char1="""/>
|
||||||
|
<RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/>
|
||||||
|
<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="""/>
|
||||||
|
<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="""/>
|
||||||
|
<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>
|
@ -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="""/>
|
||||||
|
<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="""/>
|
||||||
|
<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="""/>
|
||||||
|
<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="""/>
|
||||||
|
</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>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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="""/>
|
||||||
|
<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="""/>
|
||||||
|
</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>
|
@ -1,80 +1,134 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE language SYSTEM "language.dtd">
|
<!DOCTYPE language SYSTEM "language.dtd" [
|
||||||
<language name="RPM Spec" version="1.1" kateversion="2.4" section="Other" extensions="*.spec" mimetype="">
|
<!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>
|
<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">
|
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
|
||||||
<keyword attribute="Keyword" context="#stay" String="keywords"/>
|
<!-- Handle tags: -->
|
||||||
<keyword attribute="Data" context="#stay" String="types"/>
|
<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" />
|
||||||
<RegExpr attribute="Red" context="#stay" String="%\w*" />
|
<!-- Handle % -->
|
||||||
<DetectChar attribute="Comment" context="Comment" char="#" />
|
<AnyChar context="handle_percent" String="%$" lookAhead="true" />
|
||||||
<RegExpr attribute="Keyword" context="Some Context" String="\{\w*" />
|
<!-- Handle comments. "# norootforbuild" is displayed like a tag. -->
|
||||||
<RegExpr attribute="Blue" context="Some Context2" String="<\s*[\w@\.]*" />
|
<DetectChar context="Comment" char="#" column="0" lookAhead="true" />
|
||||||
<RegExpr attribute="Data" context="#stay" String="\$\w*" />
|
</context>
|
||||||
<RegExpr attribute="Keyword" context="#stay" String="(Source|Patch)\d*" />
|
|
||||||
<RegExpr attribute="Keyword" context="#stay" String="\*.*" firstNonSpace="true"/> <!-- ChangeLog -->
|
<context attribute="Normal Text" lineEndContext="#stay" name="command section">
|
||||||
<Int attribute="Blue" context="#stay" />
|
<!-- 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>
|
||||||
|
|
||||||
<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">
|
<!-- Expects a string starting with % or $ (otherwise, this context will fail!). -->
|
||||||
<DetectChar attribute="Keyword" char="}" context="#pop"/>
|
<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>
|
||||||
|
|
||||||
<context attribute="Blue" lineEndContext="#pop" name="Some Context2">
|
<context attribute="Macro call" lineEndContext="#pop#pop" name="macro content in parenthesis">
|
||||||
<DetectChar attribute="Blue" char=">" context="#pop"/>
|
<!-- 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>
|
</context>
|
||||||
|
|
||||||
</contexts>
|
</contexts>
|
||||||
|
|
||||||
<itemDatas>
|
<itemDatas>
|
||||||
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
<itemData name="Normal Text" defStyleNum="dsNormal"/>
|
||||||
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
<itemData name="Keyword" defStyleNum="dsKeyword"/>
|
||||||
<itemData name="Red" defStyleNum="dsString"/>
|
|
||||||
<itemData name="Comment" defStyleNum="dsComment"/>
|
<itemData name="Comment" defStyleNum="dsComment"/>
|
||||||
<itemData name="Blue" defStyleNum="dsDecVal"/>
|
<itemData name="Tag" defStyleNum="dsDataType"/>
|
||||||
<itemData name="Data" 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>
|
</itemDatas>
|
||||||
|
|
||||||
</highlighting>
|
</highlighting>
|
||||||
<general>
|
|
||||||
|
<general>
|
||||||
<keywords casesensitive="1" />
|
<keywords casesensitive="1" />
|
||||||
</general>
|
</general>
|
||||||
|
|
||||||
</language>
|
</language>
|
||||||
|
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=""" />
|
||||||
|
<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="<br>" 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=""" />
|
||||||
|
</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>
|
@ -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>
|
@ -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>
|
@ -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=""" char1=""" 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=""" char1=""" />
|
||||||
|
<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 "&(#[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="<!--" beginRegion="comment" />
|
||||||
|
<StringDetect attribute="CDATA" context="CDATA" String="<![CDATA[" beginRegion="cdata" />
|
||||||
|
<RegExpr attribute="Doctype" context="Doctype" String="<!DOCTYPE\s+" beginRegion="doctype" />
|
||||||
|
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:_-]*" beginRegion="pi" />
|
||||||
|
<RegExpr attribute="Element" context="Element" String="<&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="&<" />
|
||||||
|
</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="&%" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
|
||||||
|
<context name="Comment" attribute="Comment" lineEndContext="#stay">
|
||||||
|
<DetectSpaces />
|
||||||
|
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
|
||||||
|
<RegExpr attribute="Error" context="#stay" String="-(-(?!->))+" />
|
||||||
|
<IncludeRules context="##Alerts" />
|
||||||
|
<DetectIdentifier />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="PI" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Doctype" context="#pop" char=">" 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="<!(ELEMENT|ENTITY|ATTLIST|NOTATION)\b" />
|
||||||
|
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
|
||||||
|
<RegExpr attribute="Processing Instruction" context="PI" String="<\?[\w:_-]*" beginRegion="pi" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Doctype" context="#pop" char=">" />
|
||||||
|
<DetectChar attribute="Value" context="Doctype Markupdecl DQ" char=""" />
|
||||||
|
<DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="'" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop" char=""" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop" char="'" />
|
||||||
|
<IncludeRules context="FindPEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Element" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<Detect2Chars attribute="Element" context="#pop" char="/" char1=">" endRegion="element" />
|
||||||
|
<DetectChar attribute="Element" context="El Content" char=">" />
|
||||||
|
<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="</&name;" />
|
||||||
|
<IncludeRules context="FindXML" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="El End" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Element" context="#pop#pop#pop" char=">" 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=""" />
|
||||||
|
<DetectChar attribute="Value" context="Value SQ" char="'" />
|
||||||
|
<RegExpr attribute="Error" context="#stay" String="\S" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Value DQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop#pop#pop" char=""" />
|
||||||
|
<IncludeRules context="FindEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="Value SQ" attribute="Value" lineEndContext="#stay">
|
||||||
|
<DetectChar attribute="Value" context="#pop#pop#pop" char="'" />
|
||||||
|
<IncludeRules context="FindEntityRefs" />
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context name="CDATA" attribute="Normal Text" lineEndContext="#stay">
|
||||||
|
<StringDetect attribute="CDATA" context="#pop" String="]]>" endRegion="cdata" />
|
||||||
|
<StringDetect attribute="EntityRef" context="#stay" String="]]&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="""/>
|
||||||
|
<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=":!%&+,-/.*<=>?[]|~^;"/>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context attribute="String" lineEndContext="#pop" name="String">
|
||||||
|
<DetectIdentifier/>
|
||||||
|
<HlCStringChar attribute="String Char" context="#stay"/>
|
||||||
|
<DetectChar attribute="String" context="#pop" char="""/>
|
||||||
|
</context>
|
||||||
|
<context attribute="String Char" lineEndContext="#pop" name="String 1">
|
||||||
|
<DetectIdentifier/>
|
||||||
|
<DetectChar attribute="String" context="String" char="""/>
|
||||||
|
<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="<!--" end="-->" />
|
||||||
|
<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="&\S+" />
|
||||||
|
<RegExpr attribute="Reference" firstNonSpace="true" context="#stay" String="\*\S+" />
|
||||||
|
|
||||||
|
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*[^"'#-][^:#]*:"/>
|
||||||
|
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*"[^"#]+"\s*:"/>
|
||||||
|
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*'[^'#]+'\s*:"/>
|
||||||
|
|
||||||
|
<DetectChar attribute="String" context="string" char="'" beginRegion="String" />
|
||||||
|
<DetectChar attribute="String" context="stringx" char=""" 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="&\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=""" beginRegion="String" />
|
||||||
|
<RegExpr attribute="Alias" context="attribute" String="&\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=""" beginRegion="String" />
|
||||||
|
<RegExpr attribute="Alias" context="attribute-inline" String="&\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*[^"'#-][^:#]*:"/>
|
||||||
|
<RegExpr attribute="Key" context="attribute-pre" String="\??\s*"[^"#]+"\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="&\S+" />
|
||||||
|
<RegExpr attribute="Reference" context="#stay" String="\*\S+" />
|
||||||
|
<DetectChar attribute="String" context="string" char="'" beginRegion="String" />
|
||||||
|
<DetectChar attribute="String" context="stringx" char=""" 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*[^"'#-][^:#]*:"/>
|
||||||
|
<RegExpr attribute="Key" context="attribute-pre-inline" String="\??\s*"[^"#]+"\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=""" 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=""" 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=""" 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=""" />
|
||||||
|
<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="""/>
|
||||||
|
</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>
|
Loading…
Reference in new issue