title: Custom syntax highlighting for certain YAML fields with VSCode
body: <p>Our infrastructure uses YML files to configure various processes. For instance, a (very simplified) configuration block might look like the following:</p>
  
  <pre><code>process:
     my-process:
        requires: "@other-process::parameter"
        dockerfile: |
           FROM alpine
           RUN apk add git
        script: |
          #!/bin/bash
          if [ ! -f $file ]; then echo header &gt; $file; fi
  </code></pre>
  
  <p>We use visual studio code to create/edit these file, and would really like to have <strong>custom syntax highlighting</strong> to help read them. For instance, in the above example, it would be great if VSCode would automatically:</p>
  
  <ul>
  <li>highlight the string "<code>@other-process</code>" in the <code>requires</code> field</li>
  <li>apply bash-script syntax highlighting to the <code>script</code> field</li>
  <li>apply Dockerfile highlighting to the <code>dockerfile</code> field</li>
  </ul>
  
  <p>I know that VSCode uses TextMate grammar definitions for syntax highlighting, but writing one myself is well beyond my level of expertise. Is there an easier way to inject custom syntax highlighting for specific fields?</p>
  
  <p>While VSCode is our default editor, a solution involving a different text editor would be fine.</p>