| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- Author: Werner Braun <[email protected]> --> |
| 4 |
<!-- 29.05.2003 wb mailed to the kate-team (cullmann) --> |
| 5 |
<!-- 23.05.2003 wb added *.bro File-Type for GPCP Browser output--> |
| 6 |
<!-- 09.05.2003 wb nested comments allowed (maximum two level nesting) --> |
| 7 |
<!-- 07.04.2003 wb IN Problem solved --> |
| 8 |
<!-- 06.05.2003 wb NEW without ( --> |
| 9 |
<!-- 22.04.2003 wb Minor bugfixes --> |
| 10 |
<!-- 19.04.2003 wb Some more Enhancements --> |
| 11 |
<!-- 18.04.2003 wb Enhancenment for Maior / Minor Comments and Full / ReadOnly Exports, Folds for Procedures, Records, Comments --> |
| 12 |
<!-- 17.04.2003 wb Enhancements for Relation and Operators --> |
| 13 |
<language name="Component-Pascal" version="5" kateversion="5.0" section="Sources" extensions="*.cp;*.bro" mimetype="text/x-component-pascal" author="Werner Braun ([email protected])" license=""> |
| 14 |
<highlighting> |
| 15 |
<list name="keywords"> |
| 16 |
<item>BEGIN</item> |
| 17 |
<item>BY</item> |
| 18 |
<item>CASE</item> |
| 19 |
<item>CLOSE</item> |
| 20 |
<item>CONST</item> |
| 21 |
<item>DO</item> |
| 22 |
<item>ELSE</item> |
| 23 |
<item>ELSIF</item> |
| 24 |
<item>END</item> |
| 25 |
<item>FOR</item> |
| 26 |
<item>IF</item> |
| 27 |
<item>IMPORT</item> |
| 28 |
<item>LOOP</item> |
| 29 |
<item>MODULE</item> |
| 30 |
<item>NEW</item> |
| 31 |
<item>OF</item> |
| 32 |
<item>OUT</item> |
| 33 |
<item>PROCEDURE</item> |
| 34 |
<item>REPEAT</item> |
| 35 |
<item>THEN</item> |
| 36 |
<item>TO</item> |
| 37 |
<item>TYPE</item> |
| 38 |
<item>UNTIL</item> |
| 39 |
<item>VAR</item> |
| 40 |
<item>WHILE</item> |
| 41 |
<item>WITH</item> |
| 42 |
</list> |
| 43 |
<list name="exits"> |
| 44 |
<item>ASSERT</item> |
| 45 |
<item>EXIT</item> |
| 46 |
<item>HALT</item> |
| 47 |
<item>RETURN</item> |
| 48 |
</list> |
| 49 |
<list name="types"> |
| 50 |
<item>ANYPTR</item> |
| 51 |
<item>ANYREC</item> |
| 52 |
<item>ARRAY</item> |
| 53 |
<item>BOOLEAN</item> |
| 54 |
<item>SHORTCHAR</item> |
| 55 |
<item>CHAR</item> |
| 56 |
<item>BYTE</item> |
| 57 |
<item>SHORTINT</item> |
| 58 |
<item>INTEGER</item> |
| 59 |
<item>LONGINT</item> |
| 60 |
<item>POINTER</item> |
| 61 |
<item>RECORD</item> |
| 62 |
<item>SHORTREAL</item> |
| 63 |
<item>REAL</item> |
| 64 |
<item>SET</item> |
| 65 |
</list> |
| 66 |
<list name="attributes"> |
| 67 |
<item>ABSTRACT</item> |
| 68 |
<item>EMPTY</item> |
| 69 |
<item>EXTENSIBLE</item> |
| 70 |
<item>LIMITED</item> |
| 71 |
</list> |
| 72 |
<list name="builtins"> |
| 73 |
<item>ABS</item> |
| 74 |
<item>ASH</item> |
| 75 |
<item>BITS</item> |
| 76 |
<item>CAP</item> |
| 77 |
<item>CHR</item> |
| 78 |
<item>DEC</item> |
| 79 |
<item>ENTIER</item> |
| 80 |
<item>EXCL</item> |
| 81 |
<item>INC</item> |
| 82 |
<item>INCL</item> |
| 83 |
<item>LEN</item> |
| 84 |
<item>LONG</item> |
| 85 |
<item>MAX</item> |
| 86 |
<item>MIN</item> |
| 87 |
<item>ODD</item> |
| 88 |
<item>ORD</item> |
| 89 |
<item>SHORT</item> |
| 90 |
<item>SIZE</item> |
| 91 |
</list> |
| 92 |
<list name="specials"> |
| 93 |
<item>FALSE</item> |
| 94 |
<item>INF</item> |
| 95 |
<item>NIL</item> |
| 96 |
<item>TRUE</item> |
| 97 |
</list> |
| 98 |
<contexts> |
| 99 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 100 |
<StringDetect attribute="CommentMaior" context="Comment1" String="(**" beginRegion="Comment"/> |
| 101 |
<Detect2Chars attribute="CommentMinor" context="Comment2" char="(" char1="*" beginRegion="Comment"/> |
| 102 |
<DetectChar attribute="String" context="String1" char=""" /> |
| 103 |
<DetectChar attribute="String" context="String2" char="'" /> |
| 104 |
<RegExpr attribute="Keyword" context="#stay" String="PROCEDURE\s" beginRegion="Proc"/> |
| 105 |
<RegExpr attribute="Normal Text" context="#stay" String="ABSTRACT;|EMPTY;|END\s*[A-Za-z][A-Za-z0-9_]*\;" endRegion="Proc"/> |
| 106 |
<StringDetect attribute="Type" context="#stay" String="RECORD" beginRegion="Rec"/> |
| 107 |
<StringDetect attribute="Keyword" context="#stay" String="END" endRegion="Rec"/> |
| 108 |
<StringDetect attribute="MemAlloc" context="#stay" String="NEW"/> |
| 109 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 110 |
<keyword attribute="Exit" context="#stay" String="exits"/> |
| 111 |
<keyword attribute="Type" context="#stay" String="types"/> |
| 112 |
<keyword attribute="Attribute" context="#stay" String="attributes"/> |
| 113 |
<keyword attribute="Builtin" context="#stay" String="builtins"/> |
| 114 |
<keyword attribute="SpecialValues" context="#stay" String="specials"/> |
| 115 |
<RegExpr attribute="Integer" context="#stay" String="\s[\+|\-]{0,1}[0-9]([0-9]*|[0-9A-F]*(H|L))"/> |
| 116 |
<Float attribute="Float" context="#stay"/> |
| 117 |
<RegExpr attribute="Char" context="#stay" String="\s[0-9][0-9A-F]*X"/> |
| 118 |
<RegExpr attribute="ExportFull" context="#stay" String="[A-Za-z][A-Za-z0-9_]*\*"/> |
| 119 |
<RegExpr attribute="ExportReadOnly" context="#stay" String="[A-Za-z][A-Za-z0-9_]*\-"/> |
| 120 |
<RegExpr attribute="Relation" context="#stay" String="\s(=|#|<|<=|>|>=|IN\s|IS)"/> |
| 121 |
<RegExpr attribute="Operator" context="#stay" String="\s(\+|\-|OR|\*|/|DIV|MOD|\&)"/> |
| 122 |
</context> |
| 123 |
<context attribute="CommentMaior" lineEndContext="#stay" name="Comment1"> |
| 124 |
<Detect2Chars attribute="CommentMaior" context="#pop" char="*" char1=")" endRegion="Comment"/> |
| 125 |
<Detect2Chars attribute="CommentMinor" context="CommentN" char="(" char1="*"/> |
| 126 |
<IncludeRules context="##Comments"/> |
| 127 |
</context> |
| 128 |
<context attribute="CommentMinor" lineEndContext="#stay" name="Comment2"> |
| 129 |
<Detect2Chars attribute="CommentMinor" context="#pop" char="*" char1=")" endRegion="Comment"/> |
| 130 |
<Detect2Chars attribute="CommentMinor" context="CommentN" char="(" char1="*"/> |
| 131 |
<IncludeRules context="##Comments"/> |
| 132 |
</context> |
| 133 |
<context attribute="CommentMinor" lineEndContext="#stay" name="CommentN"> |
| 134 |
<Detect2Chars attribute="CommentMinor" context="#pop" char="*" char1=")"/> |
| 135 |
<Detect2Chars attribute="CommentMinor" context="CommentN2" char="(" char1="*"/> |
| 136 |
<IncludeRules context="##Comments"/> |
| 137 |
</context> |
| 138 |
<context attribute="CommentMinor" lineEndContext="#stay" name="CommentN2"> |
| 139 |
<Detect2Chars attribute="CommentMinor" context="#pop" char="*" char1=")"/> |
| 140 |
<IncludeRules context="##Comments"/> |
| 141 |
</context> |
| 142 |
<context attribute="String" lineEndContext="#stay" name="String1"> |
| 143 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 144 |
</context> |
| 145 |
<context attribute="String" lineEndContext="#stay" name="String2"> |
| 146 |
<DetectChar attribute="String" context="#pop" char="'"/> |
| 147 |
</context> |
| 148 |
</contexts> |
| 149 |
<itemDatas> |
| 150 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 151 |
<itemData name="CommentMaior" defStyleNum="dsComment" /> |
| 152 |
<itemData name="CommentMinor" defStyleNum="dsComment" /> |
| 153 |
<itemData name="String" defStyleNum="dsString" /> |
| 154 |
<itemData name="Keyword" defStyleNum="dsKeyword" /> |
| 155 |
<itemData name="MemAlloc" defStyleNum="dsKeyword" /> |
| 156 |
<itemData name="Exit" defStyleNum="dsKeyword"/> |
| 157 |
<itemData name="Type" defStyleNum="dsDataType"/> |
| 158 |
<itemData name="Attribute" defStyleNum="dsOthers"/> |
| 159 |
<itemData name="Builtin" defStyleNum="dsNormal"/> |
| 160 |
<itemData name="Integer" defStyleNum="dsBaseN"/> |
| 161 |
<itemData name="Float" defStyleNum="dsFloat" /> |
| 162 |
<itemData name="Char" defStyleNum="dsChar" /> |
| 163 |
<itemData name="SpecialValues" defStyleNum="dsDecVal"/> |
| 164 |
<itemData name="ExportFull" defStyleNum="dsOthers"/> |
| 165 |
<itemData name="ExportReadOnly" defStyleNum="dsOthers"/> |
| 166 |
<itemData name="Relation" defStyleNum="dsNormal"/> |
| 167 |
<itemData name="Operator" defStyleNum="dsNormal"/> |
| 168 |
</itemDatas> |
| 169 |
</highlighting> |
| 170 |
<general> |
| 171 |
<keywords casesensitive="1" /> |
| 172 |
<comments> |
| 173 |
<comment name="multiLine" start="(*" end="*)" region="Comment" /> |
| 174 |
</comments> |
| 175 |
</general> |
| 176 |
</language> |
| 177 |
<!-- kate: replace-tabs off; --> |