mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-20 05:50:20 +09:00
13 lines
659 B
YAML
13 lines
659 B
YAML
filetype: dockerfile
|
|
|
|
detect:
|
|
filename: "Dockerfile[^/]*$|\\.dockerfile$"
|
|
|
|
rules:
|
|
- statement: "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|ARG|HEALTHCHECK|STOPSIGNAL|SHELL)[[:space:]]"
|
|
- symbol.brackets: "(\\(|\\)|\\[|\\])"
|
|
- special: "&&"
|
|
- comment: "^[[:space:]]*#.*$"
|
|
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!"
|
|
- constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\[[^]]*\\]|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!"
|