12 lines
398 B
Java
12 lines
398 B
Java
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;
|