summaryrefslogtreecommitdiffstats
path: root/kate/data/dockerfile.xml
blob: 61363ca7558e33787ef62ea69e5f8631a97dd719 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Dockerfile syntaxfile v1.0 by James Turnbull <[email protected]> -->
<language name="Dockerfile" section="Other" version="1.1" kateversion="2.4" extensions="Dockerfile" author="James Turnbull ([email protected])" license="LGPLv2+">
  <highlighting>
    <list name="keywords">
      <item> FROM </item>
      <item> MAINTAINER </item>
      <item> ENV </item>
      <item> RUN </item>
      <item> ONBUILD </item>
      <item> COPY </item>
      <item> ADD </item>
      <item> VOLUME </item>
      <item> EXPOSE </item>
      <item> ENTRYPOINT </item>
      <item> CMD </item>
      <item> WORKDIR </item>
      <item> USER </item>
    </list>

    <contexts>
      <context name="normal" attribute="Normal" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar attribute="Comment" context="Comment" char="#"/>
        <keyword attribute="Keyword"  context="#stay" String="keywords"/>
        <DetectIdentifier/>
        <DetectChar attribute="String" context="string&quot;" char="&quot;"/>
        <DetectChar attribute="String" context="string'" char="'"/>
      </context>

      <context attribute="Comment" lineEndContext="#pop" name="Comment">
        <LineContinue attribute="Comment" context="#stay" />
      </context>

      <context name="string&quot;" attribute="String" lineEndContext="#pop">
        <LineContinue attribute="Operator" context="#stay"/>
        <DetectChar attribute="String" context="#pop" char="&quot;"/>
      </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"    defStyleNum="dsNormal" spellChecking="0"/>
      <itemData name="Keyword"   defStyleNum="dsKeyword" spellChecking="0"/>
      <itemData name="Comment"   defStyleNum="dsComment"/>
      <itemData name="String"    defStyleNum="dsString" spellChecking="0"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name = "singleLine" start = "#"/>
    </comments>
  </general>
</language>