Skip to content

YAML and tabbed tokens? #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NadavK opened this issue Aug 9, 2015 · 2 comments
Closed

YAML and tabbed tokens? #28

NadavK opened this issue Aug 9, 2015 · 2 comments

Comments

@NadavK
Copy link

NadavK commented Aug 9, 2015

I am running "resolve" on a YAML file with tabs instead of spaces, and receive the following error:

"stack": "while scanning for the next token\nfound character \t that cannot start any token\n  on line 3, column 1\n    at ScannerError.YAMLError
@whitlockjc
Copy link
Owner

Tabs seem to be forbidden in YAML (http://www.yaml.org/faq.html) and the YAML specification itself says that tab characters cannot be used for variable indentation (http://www.yaml.org/spec/1.2/spec.html#id2777534) If you use tabs elsewhere, like multi-line strings, it seems to be permitted to use tabs. js-yaml is in the process of fixing it's assumptions about tabs: nodeca/js-yaml#80

@NadavK
Copy link
Author

NadavK commented Aug 11, 2015

Thanks for taking the time to explain! (sorry for not checking myself)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants