12 lines
398 B
JavaScript
12 lines
398 B
JavaScript
Prism.languages.docker = {
|
|
'keyword': {
|
|
pattern: /(^\s*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)/mi,
|
|
lookbehind: true
|
|
},
|
|
'string': /("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,
|
|
'comment': /#.*/,
|
|
'punctuation': /---|\.\.\.|[:[\]{}\-,|>?]/
|
|
};
|
|
|
|
Prism.languages.dockerfile = Prism.languages.docker;
|