Skip to content
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

[RFC] Support embedded JSON and YAML string literals #52

Closed
wants to merge 1 commit into from

Conversation

tshort
Copy link
Contributor

@tshort tshort commented Nov 27, 2015

We already have support for cxx""" ... """. This adds support for similar embedded styling for JSON and YAML, ala:

a = yaml"""
one: 123
two:
  twoA: hello
  twoB: world
"""

If we add something similar to https://github.com/JuliaLang/Julia.tmbundle, we can cover Atom, TextMate, Sublime, and GitHub markup (so the block above will have enhanced highlighting).

Note, JSON and YAML string literals aren't in JSON.jl (JuliaIO/JSON.jl#113) and YAML.jl, yet. So, we should probably wait to get some consensus here.

This feature helps for including structured data in the same file as the Julia source code.

@sglyon
Copy link
Contributor

sglyon commented Dec 1, 2015

Thanks for adding this. Let's see what happens inside JSON.jl and YAML.jl

I think it'd be confusing to have highlighting for a feature that isn't supported by any packages.

@tshort tshort closed this Jun 7, 2019
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

Successfully merging this pull request may close these issues.

2 participants