File tree Expand file tree Collapse file tree
textmate/Docker.tmbundle/Syntaxes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 license =" GPL" >
1010 <highlighting >
1111 <list name =" keywords" >
12+ <item > ADD </item >
13+ <item > ARG </item >
14+ <item > CMD </item >
15+ <item > COPY </item >
16+ <item > ENTRYPOINT </item >
17+ <item > ENV </item >
18+ <item > EXPOSE </item >
1219 <item > FROM </item >
20+ <item > HEALTHCHECK </item >
21+ <item > LABEL </item >
1322 <item > MAINTAINER </item >
14- <item > ENV </item >
15- <item > RUN </item >
1623 <item > ONBUILD </item >
17- <item > COPY </item >
18- <item > ADD </item >
24+ <item > RUN </item >
25+ <item > SHELL </item >
26+ <item > STOPSIGNAL </item >
27+ <item > USER </item >
1928 <item > VOLUME </item >
20- <item > EXPOSE </item >
21- <item > ENTRYPOINT </item >
22- <item > CMD </item >
2329 <item > WORKDIR </item >
24- <item > USER </item >
25- <item > LABEL </item >
26- <item > STOPSIGNAL </item >
2730 </list >
28-
2931 <contexts >
3032 <context name =" normal" attribute =" Normal" lineEndContext =" #stay" >
3133 <DetectSpaces />
3537 <DetectChar attribute =" String" context =" string" " char =" " " />
3638 <DetectChar attribute =" String" context =" string'" char =" '" />
3739 </context >
38-
3940 <context attribute =" Comment" lineEndContext =" #pop" name =" Comment" >
4041 <LineContinue attribute =" Comment" context =" #stay" />
4142 </context >
42-
4343 <context name =" string" " attribute =" String" lineEndContext =" #pop" >
4444 <LineContinue attribute =" Operator" context =" #stay" />
4545 <DetectChar attribute =" String" context =" #pop" char =" " " />
4646 <DetectChar attribute =" Operator" context =" dollar" char =" $" />
4747 </context >
48-
4948 <context name =" string'" attribute =" String" lineEndContext =" #pop" >
5049 <LineContinue attribute =" String" context =" #stay" />
5150 <DetectChar attribute =" String" context =" #pop" char =" '" />
5251 <DetectChar attribute =" Operator" context =" dollar" char =" $" />
5352 </context >
54-
5553 </contexts >
5654 <itemDatas >
5755 <itemData name =" Normal" defStyleNum =" dsNormal" spellChecking =" 0" />
6765 </general >
6866</language >
6967<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
70-
Original file line number Diff line number Diff line change 22syntax "Dockerfile" " Dockerfile[^ / ]* $ "
33
44# # Keywords
5- icolor red " ^ (FROM | MAINTAINER | RUN | CMD| LABEL | EXPOSE | ENV| ADD | COPY | ENTRYPOINT | VOLUME | USER| WORKDIR | ONBUILD )[[:space :] ]"
5+ icolor red " ^ (ONBUILD \s + ) ? (ADD | ARG | CMD| COPY | ENTRYPOINT | ENV| EXPOSE | FROM | HEALTHCHECK | LABEL | MAINTAINER | RUN | SHELL | STOPSIGNAL | USER| VOLUME | WORKDIR )[[:space :] ]"
66
77# # Brackets & parenthesis
88color brightgreen " (\( | \) | \[ | \] )"
Original file line number Diff line number Diff line change 2525 </dict >
2626 </dict >
2727 <key >match </key >
28- <string >^\s*(?:(ONBUILD)\s+)?(FROM|MAINTAINER|RUN|EXPOSE| ENV|ADD|VOLUME|USER|WORKDIR|COPY|LABEL| STOPSIGNAL|ARG )\s </string >
28+ <string >^\s*(?:(ONBUILD)\s+)?(ADD|ARG|CMD|COPY|ENTRYPOINT| ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL| STOPSIGNAL|USER|VOLUME|WORKDIR )\s </string >
2929 </dict >
3030 <dict >
3131 <key >captures </key >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let b:current_syntax = "dockerfile"
1111
1212syntax case ignore
1313
14- syntax match dockerfileKeyword / \v ^\s *(ONBUILD\s +)?(ADD|CMD|ENTRYPOINT|ENV|EXPOSE|FROM|MAINTAINER|RUN|USER|LABEL| VOLUME|WORKDIR|COPY|STOPSIGNAL|ARG )\s /
14+ syntax match dockerfileKeyword / \v ^\s *(ONBUILD\s +)?(ADD|ARG| CMD|COPY| ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL| MAINTAINER|RUN|SHELL|STOPSIGNAL|USER| VOLUME|WORKDIR)\s /
1515highlight link dockerfileKeyword Keyword
1616
1717syntax region dockerfileString start =/ \v "/ skip =/ \v\\ ./ end =/ \v "/
You can’t perform that action at this time.
0 commit comments