atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

Support JSON within YAML #63

Closed winstliu closed 7 years ago

winstliu commented 7 years ago

Requirements

Description of the Change

JSON is YAML, so support it.

Alternate Designs

None.

Benefits

JSON syntax will be tokenized correctly.

Possible Drawbacks

Should be none.

Applicable Issues

Fixes #5

/cc @envygeeks, @szhu please test this PR out. I need to know if I need to include JSON support in other places. For example, should the inside be tokenized as JSON here, or as a YAML unquoted string?

a key:
 - { "some_json": "whoa" }
winstliu commented 7 years ago

This is incorrect; will revisit.