biofriction-wp-theme/node_modules/highlight.js/lib/languages/dockerfile.js

34 lines
945 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
module.exports = function(hljs) {
return {
aliases: ['docker'],
case_insensitive: true,
keywords: {
built_ins: 'from maintainer cmd expose add copy entrypoint volume user workdir onbuild run env label'
},
contains: [
hljs.HASH_COMMENT_MODE,
{
keywords : {
built_in: 'run cmd entrypoint volume add copy workdir onbuild label'
},
begin: /^ *(onbuild +)?(run|cmd|entrypoint|volume|add|copy|workdir|label) +/,
starts: {
end: /[^\\]\n/,
subLanguage: 'bash'
}
},
{
keywords: {
built_in: 'from maintainer expose env user onbuild'
},
begin: /^ *(onbuild +)?(from|maintainer|expose|env|user|onbuild) +/, end: /[^\\]\n/,
contains: [
hljs.APOS_STRING_MODE,
hljs.QUOTE_STRING_MODE,
hljs.NUMBER_MODE,
hljs.HASH_COMMENT_MODE
]
}
]
}
};