| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name = "kdesrc-buildrc" |
| 4 |
version = "3" |
| 5 |
kateversion = "5.0" |
| 6 |
section = "Configuration" |
| 7 |
extensions = ".kdesrc-buildrc;kdesrc-buildrc" |
| 8 |
author = "Michael Pyne <[email protected]>" |
| 9 |
license = "LGPLv3"> |
| 10 |
|
| 11 |
<highlighting> |
| 12 |
<list name="bools"> |
| 13 |
<item>true</item> |
| 14 |
<item>false</item> |
| 15 |
<item>TRUE</item> |
| 16 |
<item>FALSE</item> |
| 17 |
<item>0</item> |
| 18 |
<item>1</item> |
| 19 |
</list> |
| 20 |
|
| 21 |
<list name="setEnvOptions"> |
| 22 |
<item>set-env</item> <!-- Handled separately for special syntax highlighting. --> |
| 23 |
</list> |
| 24 |
|
| 25 |
<!-- List of options that can be present in a module-set --> |
| 26 |
<list name="moduleSetOptions"> |
| 27 |
<item>use-modules</item> |
| 28 |
<item>ignore-modules</item> |
| 29 |
</list> |
| 30 |
|
| 31 |
<!-- These options should only have a boolean value passed to them. --> |
| 32 |
<list name="globalBoolOptions"> |
| 33 |
<item>async</item> |
| 34 |
<item>colorful-output</item> |
| 35 |
<item>disable-agent-check</item> |
| 36 |
<item>disable-snapshot</item> |
| 37 |
<item>pretend</item> |
| 38 |
<item>purge-old-logs</item> |
| 39 |
<item>stop-on-failure</item> |
| 40 |
<item>use-idle-io-priority</item> |
| 41 |
</list> |
| 42 |
|
| 43 |
<list name="boolOptions"> |
| 44 |
<item>build-system-only</item> |
| 45 |
<item>build-when-unchanged</item> |
| 46 |
<item>ignore-kde-structure</item> |
| 47 |
<item>install-after-build</item> |
| 48 |
<item>install-session-driver</item> |
| 49 |
<item>manual-build</item> |
| 50 |
<item>manual-update</item> |
| 51 |
<item>no-src</item> |
| 52 |
<item>reconfigure</item> |
| 53 |
<item>recreate-configure</item> |
| 54 |
<item>refresh-build</item> |
| 55 |
<item>run-tests</item> |
| 56 |
<item>use-clean-install</item> |
| 57 |
</list> |
| 58 |
|
| 59 |
<list name="globalOptions"> |
| 60 |
<item>branch-group</item> |
| 61 |
<item>git-desired-protocol</item> |
| 62 |
<item>git-repository-base</item> |
| 63 |
<item>http-proxy</item> |
| 64 |
<item>kde-languages</item> |
| 65 |
<item>niceness</item> |
| 66 |
<item>debug-level</item> |
| 67 |
<item>persistent-data-file</item> |
| 68 |
</list> |
| 69 |
|
| 70 |
<list name="options"> |
| 71 |
<item>binpath</item> |
| 72 |
<item>branch</item> |
| 73 |
<item>build-dir</item> |
| 74 |
<item>checkout-only</item> |
| 75 |
<item>cmake-options</item> |
| 76 |
<item>configure-flags</item> |
| 77 |
<item>custom-build-command</item> |
| 78 |
<item>cxxflags</item> |
| 79 |
<item>dest-dir</item> |
| 80 |
<item>do-not-compile</item> |
| 81 |
<item>git-user</item> |
| 82 |
<item>kdedir</item> |
| 83 |
<item>libpath</item> |
| 84 |
<item>log-dir</item> |
| 85 |
<item>make-install-prefix</item> |
| 86 |
<item>make-options</item> |
| 87 |
<item>module-base-path</item> |
| 88 |
<item>override-build-system</item> |
| 89 |
<item>override-url</item> |
| 90 |
<item>prefix</item> |
| 91 |
<item>qmake-options</item> |
| 92 |
<item>qtdir</item> |
| 93 |
<item>remove-after-install</item> |
| 94 |
<item>repository</item> |
| 95 |
<item>revision</item> |
| 96 |
<item>source-dir</item> |
| 97 |
<item>svn-server</item> |
| 98 |
<item>tag</item> |
| 99 |
</list> |
| 100 |
|
| 101 |
<list name="includeKeyword"> |
| 102 |
<item>include</item> |
| 103 |
</list> |
| 104 |
<list name="openModule"> |
| 105 |
<item>module</item> |
| 106 |
<item>options</item> |
| 107 |
</list> |
| 108 |
<list name="openModuleSet"> |
| 109 |
<item>module-set</item> |
| 110 |
</list> |
| 111 |
<list name="openGlobal"> |
| 112 |
<item>global</item> |
| 113 |
</list> |
| 114 |
|
| 115 |
|
| 116 |
<contexts> |
| 117 |
<context name="Root Level" attribute="Normal Text" lineEndContext="#stay"> |
| 118 |
<DetectSpaces/> |
| 119 |
<keyword String="openGlobal" attribute="Global Declaration" context="Global Options" beginRegion="Global Options" firstNonSpace="true" /> |
| 120 |
<keyword String="openModuleSet" attribute="Module Declaration" context="ModuleSet Options" beginRegion="ModuleSet Options" firstNonSpace="true" /> |
| 121 |
|
| 122 |
<!-- Only match if a module name is given --> |
| 123 |
<keyword String="openModule" attribute="Module Declaration" context="Module Decl" firstNonSpace="true" beginRegion="Module Options"/> |
| 124 |
|
| 125 |
<keyword String="includeKeyword" attribute="Option Name" context="Include Decl" firstNonSpace="true"/> |
| 126 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 127 |
</context> |
| 128 |
|
| 129 |
<context name="Comment" attribute="Comment" lineEndContext="#pop"> |
| 130 |
<DetectSpaces /> |
| 131 |
<IncludeRules context="##Comments"/> |
| 132 |
</context> |
| 133 |
|
| 134 |
<context name="Include Decl" attribute="Option Value" lineEndContext="#pop"> |
| 135 |
</context> |
| 136 |
|
| 137 |
<context name="Module Decl" attribute="Module Name" lineEndContext="Module Options"> |
| 138 |
<DetectSpaces/> |
| 139 |
<RegExpr attribute="Module Name" String="[a-zA-Z0-9/-]+"/> |
| 140 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 141 |
</context> |
| 142 |
|
| 143 |
<context name="Common Module Options" attribute="Normal Text" lineEndContext="#stay"> |
| 144 |
<DetectSpaces/> |
| 145 |
<StringDetect String="cmake-options" context="CMake Option" attribute="Option Name" /> |
| 146 |
<keyword attribute="Option Name" context="Environment Name" String="setEnvOptions" /> |
| 147 |
<keyword attribute="Option Name" context="Option Value" String="options"/> |
| 148 |
<keyword attribute="Option Name" context="Bool Option Value" String="boolOptions"/> |
| 149 |
|
| 150 |
<!-- No kdesrc-build options start with digits or a dash. --> |
| 151 |
<RegExpr attribute="Possible Error" context="Option Value" String="[0-9-][a-zA-Z0-9_-]+" /> |
| 152 |
<RegExpr attribute="Unknown Option Name" context="Option Value" String="[a-zA-Z0-9_-]+" /> |
| 153 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 154 |
</context> |
| 155 |
|
| 156 |
<context attribute="Normal Text" name="CMake Option" lineEndContext="#pop"> |
| 157 |
<DetectSpaces/> |
| 158 |
<RegExpr attribute="Option Name" String="-D[A-Za-z0-9_]+"/> |
| 159 |
<DetectChar char="="/> |
| 160 |
<RegExpr attribute="Option Value" String="[^\s]+"/> |
| 161 |
</context> |
| 162 |
|
| 163 |
<context name="Global Options" attribute="Normal Text" lineEndContext="#stay"> |
| 164 |
<StringDetect attribute="Module Declaration" context="Root Level" endRegion="Global Options" String="end global" firstNonSpace="true"/> |
| 165 |
<keyword attribute="Possible Error" String="moduleSetOptions"/> |
| 166 |
|
| 167 |
<!-- Specific to global section --> |
| 168 |
<keyword attribute="Option Name" context="Option Value" String="globalOptions"/> |
| 169 |
<keyword attribute="Option Name" context="Bool Option Value" String="globalBoolOptions"/> |
| 170 |
|
| 171 |
<IncludeRules context="Common Module Options"/> |
| 172 |
</context> |
| 173 |
|
| 174 |
<context name="Module Options" attribute="Normal Text" lineEndContext="#stay"> |
| 175 |
<DetectSpaces/> |
| 176 |
<StringDetect attribute="Module Declaration" context="Root Level" endRegion="Module Options" String="end module" firstNonSpace="true"/> |
| 177 |
<StringDetect attribute="Module Declaration" context="Root Level" endRegion="Module Options" String="end options" firstNonSpace="true"/> |
| 178 |
<keyword attribute="Possible Error" String="moduleSetOptions"/> |
| 179 |
|
| 180 |
<!-- Specific to global section --> |
| 181 |
<keyword attribute="Possible Error" context="Option Value" String="globalOptions"/> |
| 182 |
<keyword attribute="Possible Error" context="Bool Option Value" String="globalBoolOptions"/> |
| 183 |
|
| 184 |
<IncludeRules context="Common Module Options"/> |
| 185 |
</context> |
| 186 |
|
| 187 |
<context name="ModuleSet Options" attribute="Normal Text" lineEndContext="#stay"> |
| 188 |
<DetectSpaces/> |
| 189 |
<RegExpr attribute="Module Declaration" context="Root Level" endRegion="ModuleSet Options" String="end module(-?set)?$" firstNonSpace="true"/> |
| 190 |
<StringDetect String="use-modules" context="ModuleSet use-module" attribute="Option Name"/> |
| 191 |
<keyword attribute="Option Name" context="Option Value" String="moduleSetOptions"/> |
| 192 |
|
| 193 |
<!-- Specific to global section --> |
| 194 |
<keyword attribute="Possible Error" context="Option Value" String="globalOptions"/> |
| 195 |
<keyword attribute="Possible Error" context="Bool Option Value" String="globalBoolOptions"/> |
| 196 |
|
| 197 |
<IncludeRules context="Common Module Options"/> |
| 198 |
</context> |
| 199 |
|
| 200 |
<context name="ModuleSet use-module" attribute="Module Name" lineEndContext="#pop"> |
| 201 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 202 |
<LineContinue attribute="Possible Error" context="#stay"/> |
| 203 |
</context> |
| 204 |
|
| 205 |
<context name="Option Value" attribute="Normal Text" lineEndContext="#pop"> |
| 206 |
<DetectSpaces/> |
| 207 |
<RegExpr attribute="Variable" String="\$\{[a-zA-Z0-9_-]+\}"/> |
| 208 |
<RegExpr attribute="Option Value" String="[a-zA-Z:0-9,./+!=@_-]*" context="#stay" /> |
| 209 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 210 |
<LineContinue attribute="Option Value" context="#stay"/> |
| 211 |
</context> |
| 212 |
|
| 213 |
<context name="Bool Option Value" attribute="Possible Error" lineEndContext="#pop"> |
| 214 |
<DetectSpaces attribute="Normal Text"/> |
| 215 |
<keyword attribute="Option Value" context="#stay" String="bools"/> |
| 216 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 217 |
<LineContinue attribute="Possible Error" context="#stay"/> |
| 218 |
</context> |
| 219 |
|
| 220 |
<context name="Environment Name" attribute="Environment Variable Name" lineEndContext="#pop"> |
| 221 |
<DetectSpaces/> |
| 222 |
<RegExpr attribute="Environment Variable Name" context="Option Value" String="[a-zA-Z0-9_-]+" /> |
| 223 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 224 |
</context> |
| 225 |
</contexts> |
| 226 |
|
| 227 |
<itemDatas> |
| 228 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 229 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 230 |
<itemData name="Option Name" defStyleNum="dsKeyword" bold="false" /> |
| 231 |
<itemData name="Unknown Option Name" defStyleNum="dsKeyword" bold="false" color="#7D4C0B" /> |
| 232 |
<itemData name="Environment Variable Name" defStyleNum="dsString" color="#EE6A50" /> |
| 233 |
<itemData name="Option Value" defStyleNum="dsDecVal" /> |
| 234 |
<itemData name="Variable" defStyleNum="dsOthers" /> |
| 235 |
<itemData name="Module Declaration" defStyleNum="dsKeyword" bold="false"/> |
| 236 |
<itemData name="Module Name" defStyleNum="dsOthers" bold="true" /> |
| 237 |
<itemData name="Global Declaration" defStyleNum="dsKeyword" bold="true" /> |
| 238 |
<itemData name="Possible Error" defStyleNum="dsError" /> |
| 239 |
</itemDatas> |
| 240 |
</highlighting> |
| 241 |
|
| 242 |
<general> |
| 243 |
<comments> |
| 244 |
<comment name="singleLine" start="#"/> |
| 245 |
</comments> |
| 246 |
<keywords weakDeliminator="-"/> |
| 247 |
</general> |
| 248 |
|
| 249 |
</language> |
| 250 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |