haad / vs-language-ansible

Ansible syntax highlighting extension for VScode editor
MIT License
14 stars 6 forks source link

Syntax rules for Ansible yaml files detection #6

Closed therealmarv closed 7 years ago

therealmarv commented 7 years ago

I've adopted the syntax rules from this sublime packages to my VSCode personal settings. Maybe it's possible to include that in your plugin or at least mention it in the README ?

That way my ansible specific files got always opened with your language and my yaml files always as yaml.

I hope this is useful for somebody else:

    "files.associations": {
        "**/tasks/**/*.yml" : "ansible",
        "**/handler/*.yml" : "ansible",
        "**/*_vars/**/*.yml" : "ansible",
        "**/roles/**/*.yml" : "ansible",
        "**/playbooks/**/*.yml" : "ansible",
        "**/*ansible*/**/*.yml" : "ansible"
    }
haad commented 7 years ago

Yeah I have something similar in my settings I will add it to ansible README.

haad commented 7 years ago

I have update README.md will do new release later when I have more changes to push