Skip to content

Magic Characters #143

Answered by zkat
swift2plunder asked this question in Q&A
Sep 12, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I mean... your examples don't even work for the languages specified?

  • { could be Dhall (comments) or JSON5, among others, for example.
  • YAML doesn't need to start with %.
  • JSON doesn't need to start with {. There's no requirement that the toplevel be an object. It could be an array! Or any other type.
  • < could be html5

As such, I'm not sure there's much we can do here on the KDL side to facilitate this use case. Perhaps the approach needs to be addressed instead?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@larsgw
Comment options

Answer selected by zkat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #140 on September 12, 2021 18:11.