atom/language-yaml — pull request #16 by tgwizard (2014-10-18 11:51:46+00:00)
Title: Handle unindented empty lines in text block

Handle text blocks properly. As can be seen here, the GitHub renderer correctly marks the `content: |` text block as a block:

```yaml
#cloud-config

coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
# WARNING: replace each time you 'vagrant destroy'
#discovery: https://discovery.etcd.io/
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
fleet:
public-ip: $public_ipv4
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: docker-tcp.socket
command: start
enable: true
content: |
[Unit]
Description=Docker Socket for the API

[Socket]
ListenStream=2375
Service=docker.service
BindIPv6Only=both

[Install]
WantedBy=sockets.target
hi:

```

language-yaml doesn't handle this properly:

This PR changes it to be correct:

The correct "AST" can be viewed here: http://yaml-online-parser.appspot.com/