| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- Adapted from the VIM highlighter, by Markus Mottl ([email protected]) --> |
| 4 |
<language name="dot" version="5" kateversion="5.0" section="Scientific" extensions="*.dot" mimetype="text/x-dot" author="Postula Loïs ([email protected])" priority="0"> |
| 5 |
|
| 6 |
<highlighting> |
| 7 |
|
| 8 |
<list name="keywords"> |
| 9 |
<item>digraph</item> |
| 10 |
<item>node</item> |
| 11 |
<item>edge</item> |
| 12 |
<item>subgraph</item> |
| 13 |
</list> |
| 14 |
|
| 15 |
<list name="attributes"> |
| 16 |
<!-- Graph attributes --> |
| 17 |
<item>center</item> |
| 18 |
<item>layers</item> |
| 19 |
<item>margin</item> |
| 20 |
<item>mclimit</item> |
| 21 |
<item>name</item> |
| 22 |
<item>nodesep</item> |
| 23 |
<item>nslimit</item> |
| 24 |
<item>ordering</item> |
| 25 |
<item>page</item> |
| 26 |
<item>pagedir</item> |
| 27 |
<item>rank</item> |
| 28 |
<item>rankdir</item> |
| 29 |
<item>ranksep</item> |
| 30 |
<item>ratio</item> |
| 31 |
<item>rotate</item> |
| 32 |
<item>size</item> |
| 33 |
<!-- Node attributes --> |
| 34 |
<item>distortion</item> |
| 35 |
<item>fillcolor</item> |
| 36 |
<item>fontcolor</item> |
| 37 |
<item>fontname</item> |
| 38 |
<item>fontsize</item> |
| 39 |
<item>height</item> |
| 40 |
<item>layer</item> |
| 41 |
<item>orientation</item> |
| 42 |
<item>peripheries</item> |
| 43 |
<item>regular</item> |
| 44 |
<item>shape</item> |
| 45 |
<item>shapefile</item> |
| 46 |
<item>sides</item> |
| 47 |
<item>skew</item> |
| 48 |
<item>width</item> |
| 49 |
<!-- Edge attributes --> |
| 50 |
<item>arrowhead</item> |
| 51 |
<item>arrowsize</item> |
| 52 |
<item>arrowtail</item> |
| 53 |
<item>constraint</item> |
| 54 |
<item>decorateP</item> |
| 55 |
<item>dir</item> |
| 56 |
<item>headclip</item> |
| 57 |
<item>headlabel</item> |
| 58 |
<item>labelangle</item> |
| 59 |
<item>labeldistance</item> |
| 60 |
<item>labelfontcolor</item> |
| 61 |
<item>labelfontname</item> |
| 62 |
<item>labelfontsize</item> |
| 63 |
<item>minlen</item> |
| 64 |
<item>port_label_distance</item> |
| 65 |
<item>samehead</item> |
| 66 |
<item>sametail</item> |
| 67 |
<item>tailclip</item> |
| 68 |
<item>taillabel</item> |
| 69 |
<item>weight</item> |
| 70 |
<!-- Shared attributes (graphs, nodes, edges) --> |
| 71 |
<item>color</item> |
| 72 |
<!-- Shared attributes (graphs and edges) --> |
| 73 |
<item>bgcolor</item> |
| 74 |
<item>label</item> |
| 75 |
<item>URL</item> |
| 76 |
<!-- Shared attributes (nodes and edges) --> |
| 77 |
<item>fontcolor</item> |
| 78 |
<item>fontname</item> |
| 79 |
<item>fontsize</item> |
| 80 |
<item>layer</item> |
| 81 |
<item>style</item> |
| 82 |
</list> |
| 83 |
|
| 84 |
<contexts> |
| 85 |
|
| 86 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 87 |
<IncludeRules context="DetectAll"/> |
| 88 |
</context> |
| 89 |
|
| 90 |
<!-- detector contexts --> |
| 91 |
<context attribute="Normal Text" lineEndContext="#stay" name="DetectAll"> |
| 92 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 93 |
<keyword attribute="Attribute" context="#stay" String="attributes"/> |
| 94 |
<DetectChar attribute="String" context="String" char="""/> |
| 95 |
<AnyChar attribute="Symbol" context="#stay" String=";="/> |
| 96 |
<Detect2Chars attribute="Symbol" context="#stay" char="-" char1=">"/> |
| 97 |
<Float attribute="Number" context="#stay"/> |
| 98 |
<Int attribute="Number" context="#stay"/> |
| 99 |
<RegExpr attribute="Identifier" context="#stay" String="\b\w+\b"/> |
| 100 |
<IncludeRules context="DetectComments"/> |
| 101 |
<DetectChar attribute="Symbol" context="RegionCurly" char="{" beginRegion="curly"/> |
| 102 |
<DetectChar attribute="Symbol" context="RegionSquare" char="[" beginRegion="square"/> |
| 103 |
<DetectChar attribute="Symbol" context="RegionParen" char="(" beginRegion="paren"/> |
| 104 |
<AnyChar attribute="Error" context="#stay" String=")]}"/> |
| 105 |
</context> |
| 106 |
|
| 107 |
<context attribute="Normal Text" lineEndContext="#stay" name="DetectComments"> |
| 108 |
<Detect2Chars attribute="Comment" context="CommentSL" char="/" char1="/"/> |
| 109 |
<Detect2Chars attribute="Comment" context="CommentML" char="/" char1="*" beginRegion="Comment"/> |
| 110 |
</context> |
| 111 |
|
| 112 |
<!-- region contexts --> |
| 113 |
<context attribute="Comment" lineEndContext="#stay" name="RegionCurly"> |
| 114 |
<DetectChar attribute="Symbol" context="#pop" char="}" endRegion="curly"/> |
| 115 |
<IncludeRules context="DetectAll"/> |
| 116 |
</context> |
| 117 |
|
| 118 |
<context attribute="Comment" lineEndContext="#stay" name="RegionSquare"> |
| 119 |
<DetectChar attribute="Symbol" context="#pop" char="]" endRegion="square"/> |
| 120 |
<IncludeRules context="DetectAll"/> |
| 121 |
</context> |
| 122 |
|
| 123 |
<context attribute="Comment" lineEndContext="#stay" name="RegionParen"> |
| 124 |
<DetectChar attribute="Symbol" context="#pop" char=")" endRegion="paren"/> |
| 125 |
<IncludeRules context="DetectAll"/> |
| 126 |
</context> |
| 127 |
|
| 128 |
<!-- other contexts --> |
| 129 |
<context attribute="String" lineEndContext="#pop" name="String"> |
| 130 |
<Detect2Chars attribute="String Char" context="#stay" char="\" char1="\"/> |
| 131 |
<Detect2Chars attribute="String Char" context="#stay" char="\" char1="""/> |
| 132 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 133 |
</context> |
| 134 |
|
| 135 |
<context attribute="Comment" lineEndContext="#pop" name="CommentSL"> |
| 136 |
<DetectSpaces /> |
| 137 |
<IncludeRules context="##Comments"/> |
| 138 |
</context> |
| 139 |
|
| 140 |
<context attribute="Comment" lineEndContext="#stay" name="CommentML"> |
| 141 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> |
| 142 |
<DetectSpaces /> |
| 143 |
<IncludeRules context="##Comments"/> |
| 144 |
</context> |
| 145 |
|
| 146 |
</contexts> |
| 147 |
|
| 148 |
<itemDatas> |
| 149 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 150 |
<itemData name="Keyword" defStyleNum="dsKeyword"/> |
| 151 |
<itemData name="Attribute" defStyleNum="dsAttribute"/> |
| 152 |
<itemData name="Symbol" defStyleNum="dsOthers"/> |
| 153 |
<itemData name="Number" defStyleNum="dsDecVal"/> |
| 154 |
<itemData name="Identifier" defStyleNum="dsVariable"/> |
| 155 |
<itemData name="String" defStyleNum="dsString"/> |
| 156 |
<itemData name="String Char" defStyleNum="dsSpecialChar"/> |
| 157 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 158 |
<itemData name="Error" defStyleNum="dsError"/> |
| 159 |
</itemDatas> |
| 160 |
|
| 161 |
</highlighting> |
| 162 |
|
| 163 |
<general> |
| 164 |
|
| 165 |
<comments> |
| 166 |
<comment name="singleLine" start="//"/> |
| 167 |
<comment name="multiLine" start="/*" end="*/" region="Comment"/> |
| 168 |
</comments> |
| 169 |
|
| 170 |
<keywords casesensitive="1"/> |
| 171 |
|
| 172 |
</general> |
| 173 |
|
| 174 |
</language> |
| 175 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |