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