| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- |
| 4 |
This file is part of KDE's kate project. |
| 5 |
|
| 6 |
SPDX-FileCopyrightText: James Turnbull <[email protected]> |
| 7 |
SPDX-FileCopyrightText: 2020-2021 Alex Turbov <[email protected]> |
| 8 |
|
| 9 |
SPDX-License-Identifier: MIT |
| 10 |
--> |
| 11 |
<language |
| 12 |
name="Dockerfile" |
| 13 |
section="Other" |
| 14 |
version="11" |
| 15 |
kateversion="5.79" |
| 16 |
extensions="Dockerfile;Containerfile" |
| 17 |
author="James Turnbull ([email protected])" |
| 18 |
license="MIT" |
| 19 |
> |
| 20 |
<highlighting> |
| 21 |
<list name="keywords-trivial"> |
| 22 |
<item>AS</item> |
| 23 |
<item>EXPOSE</item> |
| 24 |
<item>MAINTAINER</item> |
| 25 |
<item>ONBUILD</item> |
| 26 |
<item>STOPSIGNAL</item> |
| 27 |
<item>USER</item> |
| 28 |
<item>WORKDIR</item> |
| 29 |
<item>VOLUME</item> |
| 30 |
<item>SHELL</item> |
| 31 |
</list> |
| 32 |
<list name="keywords-options"> |
| 33 |
<item>ADD</item> |
| 34 |
<item>COPY</item> |
| 35 |
<item>FROM</item> |
| 36 |
<item>HEALTHCHECK</item> |
| 37 |
</list> |
| 38 |
<list name="keywords-key-value"> |
| 39 |
<item>ARG</item> |
| 40 |
<item>ENV</item> |
| 41 |
<item>LABEL</item> |
| 42 |
</list> |
| 43 |
<list name="keywords-shell-form"> |
| 44 |
<item>CMD</item> |
| 45 |
<item>ENTRYPOINT</item> |
| 46 |
</list> |
| 47 |
<list name="keywords-shell-form-with-options"> |
| 48 |
<item>RUN</item> |
| 49 |
</list> |
| 50 |
<contexts> |
| 51 |
<context name="normal" attribute="Normal Text" lineEndContext="#stay"> |
| 52 |
<DetectSpaces /> |
| 53 |
<DetectChar attribute="Comment" context="Comment" char="#" /> |
| 54 |
<keyword attribute="Keyword" context="#stay" String="keywords-trivial" /> |
| 55 |
<keyword attribute="Keyword" context="Maybe Option" String="keywords-options" /> |
| 56 |
<keyword attribute="Keyword" context="#stay" String="keywords-key-value" /> |
| 57 |
<keyword attribute="Keyword" context="Maybe Shell Form" String="keywords-shell-form" /> |
| 58 |
<keyword attribute="Keyword" context="Maybe Option for Shell Form" String="keywords-shell-form-with-options" /> |
| 59 |
<DetectIdentifier /> |
| 60 |
<DetectChar attribute="String" context="string"" char=""" /> |
| 61 |
<DetectChar attribute="String" context="string'" char="'" /> |
| 62 |
<LineContinue attribute="Operator" context="#stay" /> |
| 63 |
</context> |
| 64 |
|
| 65 |
<context name="Maybe Option" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> |
| 66 |
<DetectSpaces /> |
| 67 |
<Detect2Chars attribute="Option" context="KwOption" char="-" char1="-"/> |
| 68 |
<LineContinue attribute="Normal Text" context="#stay" /> |
| 69 |
</context> |
| 70 |
|
| 71 |
<context name="Maybe Shell Form" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="BashOneLine##Bash"> |
| 72 |
<DetectSpaces /> |
| 73 |
<DetectChar attribute="Normal Text" context="#pop" char="[" lookAhead="true" /> |
| 74 |
<LineContinue attribute="Operator" context="#stay" /> |
| 75 |
</context> |
| 76 |
|
| 77 |
<context name="Maybe Option for Shell Form" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="BashOneLine##Bash"> |
| 78 |
<DetectSpaces /> |
| 79 |
<DetectChar attribute="Normal Text" context="#pop" char="[" lookAhead="true" /> |
| 80 |
<Detect2Chars attribute="Option" context="KwOption" char="-" char1="-"/> |
| 81 |
<LineContinue attribute="Operator" context="#stay" /> |
| 82 |
</context> |
| 83 |
|
| 84 |
<context attribute="Option" lineEndContext="#pop#pop" name="KwOption" fallthroughContext="#pop"> |
| 85 |
<RegExpr attribute="Option" context="#pop" String="[a-z\-]+(=[^\s]+)?"/> |
| 86 |
</context> |
| 87 |
|
| 88 |
<context attribute="Comment" lineEndContext="#pop" name="Comment"> |
| 89 |
<RegExpr attribute="Directive" context="#stay" String="(syntax|escape)=[^\s]+"/> |
| 90 |
<LineContinue attribute="Comment" context="#stay" /> |
| 91 |
<IncludeRules context="##Comments" /> |
| 92 |
</context> |
| 93 |
|
| 94 |
<context name="string"" attribute="String" lineEndContext="#pop"> |
| 95 |
<LineContinue attribute="Operator" context="#stay" /> |
| 96 |
<DetectChar attribute="String" context="#pop" char=""" /> |
| 97 |
</context> |
| 98 |
|
| 99 |
<context name="string'" attribute="String" lineEndContext="#pop"> |
| 100 |
<LineContinue attribute="String" context="#stay" /> |
| 101 |
<DetectChar attribute="String" context="#pop" char="'" /> |
| 102 |
</context> |
| 103 |
|
| 104 |
</contexts> |
| 105 |
<itemDatas> |
| 106 |
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0" /> |
| 107 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 108 |
<itemData name="Directive" defStyleNum="dsCommentVar" /> |
| 109 |
<itemData name="Operator" defStyleNum="dsOperator" /> |
| 110 |
<itemData name="Option" defStyleNum="dsOperator" /> |
| 111 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0" /> |
| 112 |
<itemData name="String" defStyleNum="dsString" spellChecking="0" /> |
| 113 |
</itemDatas> |
| 114 |
</highlighting> |
| 115 |
<general> |
| 116 |
<comments> |
| 117 |
<comment name = "singleLine" start = "#" /> |
| 118 |
</comments> |
| 119 |
</general> |
| 120 |
</language> |
| 121 |
|
| 122 |
<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> |