l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

dockerfile.js (789B)


      1 /*
      2 Language: Dockerfile
      3 Requires: bash.js
      4 Author: Alexis Hénaut <alexis@henaut.net>
      5 Description: language definition for Dockerfile files
      6 Website: https://docs.docker.com/engine/reference/builder/
      7 Category: config
      8 */
      9 
     10 function dockerfile(hljs) {
     11   return {
     12     name: 'Dockerfile',
     13     aliases: ['docker'],
     14     case_insensitive: true,
     15     keywords: 'from maintainer expose env arg user onbuild stopsignal',
     16     contains: [
     17       hljs.HASH_COMMENT_MODE,
     18       hljs.APOS_STRING_MODE,
     19       hljs.QUOTE_STRING_MODE,
     20       hljs.NUMBER_MODE,
     21       {
     22         beginKeywords: 'run cmd entrypoint volume add copy workdir label healthcheck shell',
     23         starts: {
     24           end: /[^\\]$/,
     25           subLanguage: 'bash'
     26         }
     27       }
     28     ],
     29     illegal: '</'
     30   }
     31 }
     32 
     33 module.exports = dockerfile;