clifford-github / sublime-ansible

Syntax highlighting for Ansible
MIT License
135 stars 11 forks source link

Highlight structured map (:) style playbooks. #15

Closed mxxcon closed 1 year ago

mxxcon commented 9 years ago

sublime-ansible does not seem to recognize structured list/map style playbooks as discussed in this article https://servercheck.in/blog/yaml-best-practices-ansible-playbooks-tasks

- name: Copy Phergie shell script into place.
  template:
    src: "templates/phergie.sh.j2"
    dest: "/home/{{ phergie_user }}/phergie.sh"
    owner: "{{ phergie_user }}"
    group: "{{ phergie_user }}"
    mode: 0755
clsa1 commented 9 years ago

looks fine to me:

sublime-ansible

mxxcon commented 9 years ago

@clsa1 but compare it to screenshot on the main page of this repo. Or just convert it into parameter=value format. Value of each parameter is highlighted in different color.

clsa1 commented 9 years ago

I know what you mean. But I think it will be much to complicated to distinguish between structured maps in playbooks and in var files.

mxxcon commented 9 years ago

@clsa1 I'll even accept 2 separate language definitions with manual switch to select between 'regular' and structured map formats.

sanderboom commented 9 years ago

I agree that it would be a nice addition to highlight structured maps differently.

killua99 commented 1 year ago

I'm closing this issue since the package as been rewritten from scratch. Feel free open a new issue when the new package hit mainstream