| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- |
| 4 |
This file is part of KDE's kate project. |
| 5 |
|
| 6 |
copyright : (C) 2014 by Martin Sandsmark |
| 7 |
email : [email protected] |
| 8 |
|
| 9 |
This file is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation; either version 2 of the License, or |
| 12 |
(at your option) any later version. |
| 13 |
--> |
| 14 |
<language version="6" kateversion="5.0" name="Replicode" section="Scientific" extensions="*.replicode" author="Martin Sandsmark" license="GPLv2+"> |
| 15 |
<highlighting> |
| 16 |
<list name="operators"> |
| 17 |
<item>_now</item> |
| 18 |
<item>equ</item> |
| 19 |
<item>neq</item> |
| 20 |
<item>gtr</item> |
| 21 |
<item>lsr</item> |
| 22 |
<item>gte</item> |
| 23 |
<item>lse</item> |
| 24 |
<item>add</item> |
| 25 |
<item>sub</item> |
| 26 |
<item>mul</item> |
| 27 |
<item>div</item> |
| 28 |
<item>dis</item> |
| 29 |
<item>ln</item> |
| 30 |
<item>exp</item> |
| 31 |
<item>log</item> |
| 32 |
<item>e10</item> |
| 33 |
<item>syn</item> |
| 34 |
<item>red</item> |
| 35 |
<item>rnd</item> |
| 36 |
<item>fvw</item> |
| 37 |
</list> |
| 38 |
<list name="builtin_classes"> |
| 39 |
<item>view</item> |
| 40 |
<item>grp_view</item> |
| 41 |
<item>pgm_view</item> |
| 42 |
<item>_obj</item> |
| 43 |
<item>ptn</item> |
| 44 |
<item>|ptn</item> |
| 45 |
<item>pgm</item> |
| 46 |
<item>|pgm</item> |
| 47 |
<item>_grp</item> |
| 48 |
<item>grp</item> |
| 49 |
<item>_fact</item> |
| 50 |
<item>fact</item> |
| 51 |
<item>|fact</item> |
| 52 |
<item>pred</item> |
| 53 |
<item>goal</item> |
| 54 |
<item>cst</item> |
| 55 |
<item>mdl</item> |
| 56 |
<item>icst</item> |
| 57 |
<item>icmd</item> |
| 58 |
<item>cmd</item> |
| 59 |
<item>ent</item> |
| 60 |
<item>ont</item> |
| 61 |
<item>dev</item> |
| 62 |
<item>nod</item> |
| 63 |
<item>ipgm</item> |
| 64 |
<item>icpp_pgm</item> |
| 65 |
<item>perf</item> |
| 66 |
</list> |
| 67 |
<list name="marker_classes"> |
| 68 |
<item>mk.rdx</item> |
| 69 |
<item>mk.grp_pair</item> |
| 70 |
<item>mk.low_sln</item> |
| 71 |
<item>mk.high_sln</item> |
| 72 |
<item>mk.low_act</item> |
| 73 |
<item>mk.high_act</item> |
| 74 |
<item>mk.low_res</item> |
| 75 |
<item>mk.sln_chg</item> |
| 76 |
<item>mk.act_chg</item> |
| 77 |
<item>mk.new</item> |
| 78 |
</list> |
| 79 |
<list name="entities"> |
| 80 |
<item>self</item> |
| 81 |
</list> |
| 82 |
<list name="groups"> |
| 83 |
<item>stdin</item> |
| 84 |
<item>stdout</item> |
| 85 |
</list> |
| 86 |
<list name="functions"> |
| 87 |
<item>_inj</item> |
| 88 |
<item>_eje</item> |
| 89 |
<item>_mod</item> |
| 90 |
<item>_set</item> |
| 91 |
<item>_new_class</item> |
| 92 |
<item>_del_class</item> |
| 93 |
<item>_ldc</item> |
| 94 |
<item>_swp</item> |
| 95 |
<item>_stop</item> |
| 96 |
</list> |
| 97 |
<list name="constants"> |
| 98 |
<item>|nb</item> |
| 99 |
<item>|bl</item> |
| 100 |
<item>true</item> |
| 101 |
<item>false</item> |
| 102 |
<item>|[]</item> |
| 103 |
<item>|nid</item> |
| 104 |
<item>|did</item> |
| 105 |
<item>|fid</item> |
| 106 |
<item>|st</item> |
| 107 |
<item>|us</item> |
| 108 |
<item>forever</item> |
| 109 |
</list> |
| 110 |
<contexts> |
| 111 |
<context attribute="Normal Text" lineEndContext="#pop" name="Normal Text" > |
| 112 |
<RegExpr String="[a-zA-Z0-9_\.]+:\(" attribute="Class Definition" context="open_parens" beginRegion="true" /> |
| 113 |
<StringDetect attribute="Preprocessor" context="preprocessor_load" String="!load " /> |
| 114 |
<RegExpr String="\![a-zA-Z0-9_\.]+" attribute="Preprocessor" context="preprocessor" /> |
| 115 |
<RegExpr attribute="ListBracket" context="list" String="[^\|]\[" /> |
| 116 |
<IncludeRules context="global_data_type" /> |
| 117 |
</context> |
| 118 |
<context attribute="Identifier" lineEndContext="error" name="open_parens"> |
| 119 |
<keyword attribute="Function" String="functions" context="class_definition"/> |
| 120 |
<keyword attribute="Operator" String="operators" context="class_definition"/> |
| 121 |
<keyword attribute="Builtin Class" String="builtin_classes" context="class_definition"/> |
| 122 |
<keyword attribute="Builtin Class" String="marker_classes" context="class_definition"/> |
| 123 |
<RegExpr String="[a-zA-Z0-9_\.><]+" attribute="Class Name" context="class_definition" /> |
| 124 |
</context> |
| 125 |
<context attribute="Class Definition" lineEndContext="#stay" name="global_data_type"> |
| 126 |
<DetectChar attribute="Comment" context="comment" char=";" /> |
| 127 |
<StringDetect attribute="EmptyList" context="#stay" String="|[]" /> |
| 128 |
<DetectChar attribute="ListBracket" context="list" char="[" /> |
| 129 |
</context> |
| 130 |
<context attribute="Class Definition" lineEndContext="#stay" name="data_type"> |
| 131 |
<keyword attribute="Operator" String="operators" context="#stay" /> |
| 132 |
<keyword attribute="Constant" String="constants" context="#stay"/> |
| 133 |
<keyword attribute="Group" String="groups" context="#stay"/> |
| 134 |
<keyword attribute="Entity" String="entities" context="#stay"/> |
| 135 |
<IncludeRules context="global_data_type" /> |
| 136 |
<HlCHex attribute="Hex" context="#stay" /> |
| 137 |
<RegExpr attribute="Number" context="#stay" String="[0-9]+us"/> |
| 138 |
<Int attribute="Number" context="#stay" /> |
| 139 |
<DetectChar attribute="String" context="string" char=""" /> |
| 140 |
<RegExpr String="[A-Z_]+" attribute="Constant" context="#stay" /> |
| 141 |
<RegExpr String="[a-z0-9_\.<>\.=+\-*\\/]+" attribute="Member" context="#stay" /> |
| 142 |
<DetectChar attribute="Class Definition" context="open_parens" char="(" beginRegion="true" /> |
| 143 |
</context> |
| 144 |
<context attribute="Comment" lineEndContext="#pop" name="comment"> |
| 145 |
<DetectSpaces /> |
| 146 |
<IncludeRules context="##Comments" /> |
| 147 |
</context> |
| 148 |
<context attribute="Class Definition" lineEndContext="#stay" name="class_definition"> |
| 149 |
<DetectChar attribute="Class Definition" context="#pop#pop" char=")" endRegion="true" /> |
| 150 |
<IncludeRules context="data_type" /> |
| 151 |
</context> |
| 152 |
<context attribute="Member" lineEndContext="error" name="list"> |
| 153 |
<DetectChar attribute="ListBracket" context="#pop" char="]" /> |
| 154 |
<IncludeRules context="data_type" /> |
| 155 |
</context> |
| 156 |
<context attribute="String" lineEndContext="error" name="string"> |
| 157 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 158 |
</context> |
| 159 |
<context attribute="Error" lineEndContext="#stay" name="error" /> |
| 160 |
<context attribute="Preprocessor" lineEndContext="#pop" name="preprocessor"> |
| 161 |
<IncludeRules context="data_type" /> |
| 162 |
</context> |
| 163 |
<context attribute="Path" lineEndContext="#pop" name="preprocessor_load" /> |
| 164 |
</contexts> |
| 165 |
<itemDatas> |
| 166 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 167 |
<itemData name="String" defStyleNum="dsString"/> |
| 168 |
<itemData name="Path" defStyleNum="dsString" bold="1" /> |
| 169 |
<itemData name="Class Definition" defStyleNum="dsOthers" /> |
| 170 |
<itemData name="Preprocessor" defStyleNum="dsNormal" bold="1" /> |
| 171 |
<itemData name="Class Name" defStyleNum="dsFunction" /> |
| 172 |
<itemData name="Builtin Class" defStyleNum="dsFunction" bold="1" /> |
| 173 |
<itemData name="Member" defStyleNum="dsKeyword" bold="0" /> |
| 174 |
<itemData name="Constant" defStyleNum="dsKeyword" bold="1" /> |
| 175 |
<itemData name="Group" defStyleNum="dsKeyword" italic="1" bold="0" /> |
| 176 |
<itemData name="Entity" defStyleNum="dsKeyword" italic="1" bold="1" /> |
| 177 |
<itemData name="Operator" defStyleNum="dsFunction" italic="1" bold="0" /> |
| 178 |
<itemData name="Function" defStyleNum="dsFunction" italic="0" bold="1" /> |
| 179 |
<itemData name="ListBracket" defStyleNum="dsOthers" color="#0095ff" selColor="#0095ff" bold="0" italic="0" /> |
| 180 |
<itemData name="EmptyList" defStyleNum="dsOthers" color="#0095ff" selColor="#0095ff" bold="1" italic="0" /> |
| 181 |
<itemData name="Identifier" defStyleNum="dsFunction" /> |
| 182 |
<itemData name="Number" defStyleNum="dsDecVal" /> |
| 183 |
<itemData name="Error" defStyleNum="dsError" /> |
| 184 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 185 |
<itemData name="Hex" defStyleNum="dsBaseN" /> |
| 186 |
</itemDatas> |
| 187 |
</highlighting> |
| 188 |
<general> |
| 189 |
<comments> |
| 190 |
<comment name="singleLine" start=";" position="afterwhitespace" /> |
| 191 |
</comments> |
| 192 |
<folding indentationsensitive="1" /> |
| 193 |
<keywords casesensitive="1" weakDeliminator="|." /> |
| 194 |
</general> |
| 195 |
</language> |
| 196 |
<!-- kate: space-indent on; indent-width 4; replace-tabs on; indent-mode xml; --> |