~sirn/poly-yaml-mode

Experimental YAML polymode
Detect head character instead of tail character for tail matching

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~sirn/poly-yaml-mode
read/write
git@git.sr.ht:~sirn/poly-yaml-mode

You can also use your local clone with git send-email.

#poly-yaml-mode

YAML multiple major modes for polymode

#Caveats

  • Pretty much WIP, here be dragons
  • Only works with YAML quoted string or literal YAML block

#Polymodes

#poly-yaml+sh-mode

Polymode for shell script within YAML string, e.g.

foo:
  baz: 'echo "Hello, world!"'
  bar: |
    #!/bin/sh
    echo "Hello, world!"

#poly-yaml+jinja2-mode

Polymode for Jinja2 within YAML string, e.g.

foo:
  baz: "Hello, {{name}}"
  bar: |
    Hello, {{name}}

#poly-yaml+ansible-mode

Special mode that activates ansible minor mode alongside poly-yaml+jinja2-mode.