dockerfile.js 522 B

123456789101112131415161718192021
  1. module.exports = function(hljs) {
  2. return {
  3. aliases: ['docker'],
  4. case_insensitive: true,
  5. keywords: 'from maintainer expose env arg user onbuild stopsignal',
  6. contains: [
  7. hljs.HASH_COMMENT_MODE,
  8. hljs.APOS_STRING_MODE,
  9. hljs.QUOTE_STRING_MODE,
  10. hljs.NUMBER_MODE,
  11. {
  12. beginKeywords: 'run cmd entrypoint volume add copy workdir label healthcheck shell',
  13. starts: {
  14. end: /[^\\]$/,
  15. subLanguage: 'bash'
  16. }
  17. }
  18. ],
  19. illegal: '</'
  20. }
  21. };