atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

Leading tabs are illegal in YAML, maybe identify them visually? #23

Closed BruceFletcher closed 8 years ago

BruceFletcher commented 9 years ago

According to the YAML spec, tabs are not valid indentation characters, only spaces:

http://www.yaml.org/spec/1.2/spec.html#id2777534

"To maintain portability, tab characters must not be used in indentation, since different systems treat tabs differently."

This is tricky, because I don't think language-yaml can enforce the use of soft tabs in yaml files, but at the very least it would be helpful if it could, for instance, colour indenting hard tabs to make them obvious.

winstliu commented 9 years ago

I don't think language-yaml can enforce the use of soft tabs in yaml files

Yes it can! :) Creating a PR for it now that will also tokenize tabs as invalid.