| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language SYSTEM "language.dtd"> |
| 3 |
<language name="Cylc flow.cylc" section="Configuration" extensions="suite*.rc;*.cylc" mimetype="" version="1.0" kateversion="2.0" author="" license="GPL"> |
| 4 |
|
| 5 |
<!-- For use with Kate. To use it, place this file in ~/.kde/share/apps/katepart/syntax/, |
| 6 |
or if possible, /usr/share/kde4/apps/katepart/syntax/ --> |
| 7 |
|
| 8 |
<highlighting> |
| 9 |
|
| 10 |
<contexts> |
| 11 |
<context name="File" attribute="Normal Text" lineEndContext="#stay"> |
| 12 |
<!-- To regenerate this keyword list, create a minimal flow.cylc file and run something like: |
| 13 |
cylc config my-minimal-workflow | sed "/^[^=]*$/d; s/=.*//g; s/^ *//g; s/ *$//g" | sort -r | uniq | sed "s/\(.*\)/<RegExpr attribute='Keyword' String=' \1 '\/>/g" |
| 14 |
The sort is in reverse order to allow longer keywords to take precedence over sub-sets. --> |
| 15 |
<!--TAG_FOR_AUTO_UPDATE--> |
| 16 |
<RegExpr attribute='Keyword' String=' xtriggers '/> |
| 17 |
<RegExpr attribute='Keyword' String=' workflow timeout handlers '/> |
| 18 |
<RegExpr attribute='Keyword' String=' workflow timeout '/> |
| 19 |
<RegExpr attribute='Keyword' String=' workflow state polling '/> |
| 20 |
<RegExpr attribute='Keyword' String=' work sub-directory '/> |
| 21 |
<RegExpr attribute='Keyword' String=' warning handlers '/> |
| 22 |
<RegExpr attribute='Keyword' String=' verbose mode '/> |
| 23 |
<RegExpr attribute='Keyword' String=' to '/> |
| 24 |
<RegExpr attribute='Keyword' String=' title '/> |
| 25 |
<RegExpr attribute='Keyword' String=' time limit buffer '/> |
| 26 |
<RegExpr attribute='Keyword' String=' templates '/> |
| 27 |
<RegExpr attribute='Keyword' String=' task parameters '/> |
| 28 |
<RegExpr attribute='Keyword' String=' task event batch interval '/> |
| 29 |
<RegExpr attribute='Keyword' String=' succeeded handlers '/> |
| 30 |
<RegExpr attribute='Keyword' String=' submitted handlers '/> |
| 31 |
<RegExpr attribute='Keyword' String=' submission timeout handlers '/> |
| 32 |
<RegExpr attribute='Keyword' String=' submission timeout '/> |
| 33 |
<RegExpr attribute='Keyword' String=' submission retry handlers '/> |
| 34 |
<RegExpr attribute='Keyword' String=' submission retry delays '/> |
| 35 |
<RegExpr attribute='Keyword' String=' submission polling intervals '/> |
| 36 |
<RegExpr attribute='Keyword' String=' submission failed handlers '/> |
| 37 |
<RegExpr attribute='Keyword' String=' stop after cycle point '/> |
| 38 |
<RegExpr attribute='Keyword' String=' startup handlers '/> |
| 39 |
<RegExpr attribute='Keyword' String=' started handlers '/> |
| 40 |
<RegExpr attribute='Keyword' String=' stall timeout handlers '/> |
| 41 |
<RegExpr attribute='Keyword' String=' stall timeout '/> |
| 42 |
<RegExpr attribute='Keyword' String=' stall handlers '/> |
| 43 |
<RegExpr attribute='Keyword' String=' speedup factor '/> |
| 44 |
<RegExpr attribute='Keyword' String=' special tasks '/> |
| 45 |
<RegExpr attribute='Keyword' String=' skip '/> |
| 46 |
<RegExpr attribute='Keyword' String=' simulation '/> |
| 47 |
<RegExpr attribute='Keyword' String=' shutdown handlers '/> |
| 48 |
<RegExpr attribute='Keyword' String=' sequential xtriggers '/> |
| 49 |
<RegExpr attribute='Keyword' String=' sequential '/> |
| 50 |
<RegExpr attribute='Keyword' String=' script '/> |
| 51 |
<RegExpr attribute='Keyword' String=' scheduling '/> |
| 52 |
<RegExpr attribute='Keyword' String=' scheduler '/> |
| 53 |
<RegExpr attribute='Keyword' String=' runtime '/> |
| 54 |
<RegExpr attribute='Keyword' String=' runahead limit '/> |
| 55 |
<RegExpr attribute='Keyword' String=' run mode '/> |
| 56 |
<RegExpr attribute='Keyword' String=' retry handlers '/> |
| 57 |
<RegExpr attribute='Keyword' String=' retrieve job logs retry delays '/> |
| 58 |
<RegExpr attribute='Keyword' String=' retrieve job logs max size '/> |
| 59 |
<RegExpr attribute='Keyword' String=' retrieve job logs '/> |
| 60 |
<RegExpr attribute='Keyword' String=' restart timeout '/> |
| 61 |
<RegExpr attribute='Keyword' String=' remote '/> |
| 62 |
<RegExpr attribute='Keyword' String=' queues '/> |
| 63 |
<RegExpr attribute='Keyword' String=' pre-script '/> |
| 64 |
<RegExpr attribute='Keyword' String=' post-script '/> |
| 65 |
<RegExpr attribute='Keyword' String=' platform '/> |
| 66 |
<RegExpr attribute='Keyword' String=' parameter environment templates '/> |
| 67 |
<RegExpr attribute='Keyword' String=' owner '/> |
| 68 |
<RegExpr attribute='Keyword' String=' outputs '/> |
| 69 |
<RegExpr attribute='Keyword' String=' meta '/> |
| 70 |
<RegExpr attribute='Keyword' String=' message '/> |
| 71 |
<RegExpr attribute='Keyword' String=' members '/> |
| 72 |
<RegExpr attribute='Keyword' String=' max-polls '/> |
| 73 |
<RegExpr attribute='Keyword' String=' main loop '/> |
| 74 |
<RegExpr attribute='Keyword' String=' mail events '/> |
| 75 |
<RegExpr attribute='Keyword' String=' mail '/> |
| 76 |
<RegExpr attribute='Keyword' String=' limit '/> |
| 77 |
<RegExpr attribute='Keyword' String=' late offset '/> |
| 78 |
<RegExpr attribute='Keyword' String=' late handlers '/> |
| 79 |
<RegExpr attribute='Keyword' String=' job '/> |
| 80 |
<RegExpr attribute='Keyword' String=' interval '/> |
| 81 |
<RegExpr attribute='Keyword' String=' install '/> |
| 82 |
<RegExpr attribute='Keyword' String=' initial cycle point constraints '/> |
| 83 |
<RegExpr attribute='Keyword' String=' initial cycle point '/> |
| 84 |
<RegExpr attribute='Keyword' String=' init-script '/> |
| 85 |
<RegExpr attribute='Keyword' String=' inherit '/> |
| 86 |
<RegExpr attribute='Keyword' String=' include '/> |
| 87 |
<RegExpr attribute='Keyword' String=' inactivity timeout handlers '/> |
| 88 |
<RegExpr attribute='Keyword' String=' inactivity timeout '/> |
| 89 |
<RegExpr attribute='Keyword' String=' host '/> |
| 90 |
<RegExpr attribute='Keyword' String=' hold after cycle point '/> |
| 91 |
<RegExpr attribute='Keyword' String=' handlers '/> |
| 92 |
<RegExpr attribute='Keyword' String=' handler retry delays '/> |
| 93 |
<RegExpr attribute='Keyword' String=' handler events '/> |
| 94 |
<RegExpr attribute='Keyword' String=' graph '/> |
| 95 |
<RegExpr attribute='Keyword' String=' from '/> |
| 96 |
<RegExpr attribute='Keyword' String=' footer '/> |
| 97 |
<RegExpr attribute='Keyword' String=' flow.cylc '/> |
| 98 |
<RegExpr attribute='Keyword' String=' final cycle point constraints '/> |
| 99 |
<RegExpr attribute='Keyword' String=' final cycle point '/> |
| 100 |
<RegExpr attribute='Keyword' String=' failed handlers '/> |
| 101 |
<RegExpr attribute='Keyword' String=' fail try 1 only '/> |
| 102 |
<RegExpr attribute='Keyword' String=' fail cycle points '/> |
| 103 |
<RegExpr attribute='Keyword' String=' external-trigger '/> |
| 104 |
<RegExpr attribute='Keyword' String=' expired handlers '/> |
| 105 |
<RegExpr attribute='Keyword' String=' expected task failures '/> |
| 106 |
<RegExpr attribute='Keyword' String=' exit-script '/> |
| 107 |
<RegExpr attribute='Keyword' String=' execution timeout handlers '/> |
| 108 |
<RegExpr attribute='Keyword' String=' execution timeout '/> |
| 109 |
<RegExpr attribute='Keyword' String=' execution time limit '/> |
| 110 |
<RegExpr attribute='Keyword' String=' execution retry delays '/> |
| 111 |
<RegExpr attribute='Keyword' String=' execution polling intervals '/> |
| 112 |
<RegExpr attribute='Keyword' String=' exclude '/> |
| 113 |
<RegExpr attribute='Keyword' String=' events '/> |
| 114 |
<RegExpr attribute='Keyword' String=' err-script '/> |
| 115 |
<RegExpr attribute='Keyword' String=' environment filter '/> |
| 116 |
<RegExpr attribute='Keyword' String=' environment '/> |
| 117 |
<RegExpr attribute='Keyword' String=' env-script '/> |
| 118 |
<RegExpr attribute='Keyword' String=' disable task event handlers '/> |
| 119 |
<RegExpr attribute='Keyword' String=' directives '/> |
| 120 |
<RegExpr attribute='Keyword' String=' description '/> |
| 121 |
<RegExpr attribute='Keyword' String=' default run length '/> |
| 122 |
<RegExpr attribute='Keyword' String=' default '/> |
| 123 |
<RegExpr attribute='Keyword' String=' cycling mode '/> |
| 124 |
<RegExpr attribute='Keyword' String=' cycle point time zone '/> |
| 125 |
<RegExpr attribute='Keyword' String=' cycle point num expanded year digits '/> |
| 126 |
<RegExpr attribute='Keyword' String=' cycle point format '/> |
| 127 |
<RegExpr attribute='Keyword' String=' custom handlers '/> |
| 128 |
<RegExpr attribute='Keyword' String=' critical handlers '/> |
| 129 |
<RegExpr attribute='Keyword' String=' completion '/> |
| 130 |
<RegExpr attribute='Keyword' String=' clock-trigger '/> |
| 131 |
<RegExpr attribute='Keyword' String=' clock-expire '/> |
| 132 |
<RegExpr attribute='Keyword' String=' batch system '/> |
| 133 |
<RegExpr attribute='Keyword' String=' batch submit command template '/> |
| 134 |
<RegExpr attribute='Keyword' String=' alt-cylc-run-dir '/> |
| 135 |
<RegExpr attribute='Keyword' String=' allow implicit tasks '/> |
| 136 |
<RegExpr attribute='Keyword' String=' abort on workflow timeout '/> |
| 137 |
<RegExpr attribute='Keyword' String=' abort on stall timeout '/> |
| 138 |
<RegExpr attribute='Keyword' String=' abort on inactivity timeout '/> |
| 139 |
<RegExpr attribute='Keyword' String=' abort handlers '/> |
| 140 |
<RegExpr attribute='Keyword' String=' UTC mode '/> |
| 141 |
<RegExpr attribute='Keyword' String=' URL '/> |
| 142 |
<!--END_TAG_FOR_AUTO_UPDATE--> |
| 143 |
<!-- Non-keyword syntax --> |
| 144 |
<RegExpr attribute="Section" String="^ *\[.*\] *$" /> |
| 145 |
<RegExpr attribute='Assignment' String='=>'/> |
| 146 |
<RegExpr attribute='Assignment' String='|'/> |
| 147 |
<RegExpr attribute='Assignment' String='&'/> |
| 148 |
<DetectChar attribute="Assignment" char="=" /> |
| 149 |
<DetectChar attribute='String' char='"'/> |
| 150 |
<DetectChar attribute='String' char="'"/> |
| 151 |
<DetectChar attribute="Assignment" char="\" /> |
| 152 |
<RegExpr attribute='Jinja2' String="\{%.*%\}"/> |
| 153 |
<RegExpr attribute='Jinja2' String="\{\{.*\}\}"/> |
| 154 |
<RegExpr attribute="Comment" String="#.*$" /> |
| 155 |
<RegExpr attribute="Environment" String="\$\w+" /> |
| 156 |
<RegExpr attribute="Environment" String="\$\{\w+\}" /> |
| 157 |
<Detect2Chars attribute="Comment" context="MultiLineJinja2" |
| 158 |
char="{" char1="#" beginRegion="Comment2" /> |
| 159 |
</context> |
| 160 |
<context attribute="Comment" lineEndContext="#stay" name="MultiLineJinja2"> |
| 161 |
<Detect2Chars attribute="Comment" context="#pop" char="#" char1="}" |
| 162 |
endRegion="Comment2" /> |
| 163 |
</context> |
| 164 |
</contexts> |
| 165 |
|
| 166 |
<itemDatas> |
| 167 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 168 |
<itemData name="Keyword" defStyleNum="dsKeyword" /> |
| 169 |
<itemData name="Section" defStyleNum="dsFunction" /> |
| 170 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 171 |
<itemData name="Jinja2" defStyleNum="dsDataType" /> |
| 172 |
<itemData name="Environment" defStyleNum="dsFloat" /> |
| 173 |
<itemData name="Assignment" defStyleNum="dsOthers" /> |
| 174 |
<itemData name="String" defStyleNum="dsString" /> |
| 175 |
</itemDatas> |
| 176 |
</highlighting> |
| 177 |
|
| 178 |
<general> |
| 179 |
<comments> |
| 180 |
<comment name="multiLine" start="{#" end="#}"/> |
| 181 |
<comment name="singleLine" start="#"/> |
| 182 |
</comments> |
| 183 |
</general> |
| 184 |
|
| 185 |
</language> |