This extension add 2 grammars to enable syntax highlighting for Ansible in the Atom Editor.
Ansible
: It's based on the original Ansible Sublime-text package with my own fixes.Ansible (advanced)
: It's based on YAML language of 2015 FichteFoll fichtefoll2@googlemail.com with modifications to support :
when
, changed_when
, failed_when
, check_mode
)For now both methods doesn't support syntax highlighting based on path see (host_vars/group_vars) below.
After installing file-types package user can define custom syntax associations for proper matching.
"*":"file-types":".*.yml$": "source.ansible"".*/group_vars/.*": "source.ansible"".*/host_vars/.*": "source.ansible"
Manually defining custom file types.
"*":core:customFileTypes:"source.ansible": ["yml"]
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.