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

vars notation #2042

Open
bo-ku-ra opened this issue Aug 3, 2024 · 1 comment
Open

vars notation #2042

bo-ku-ra opened this issue Aug 3, 2024 · 1 comment

Comments

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Aug 3, 2024

why is this not allowed?

no plobrem

vars: {
  d2-config: {
    layout-engine: elk
  }
}

a

error

"vars" must be the last part of the key

vars.d2-config.layout-engine: elk

a
@bo-ku-ra
Copy link
Contributor Author

bo-ku-ra commented Aug 4, 2024

"vars" must be the last part of the key

this message causes more confusion.

foo.vars: {
  bar
}

https://play.d2lang.com/?script=SsvP1ytLLCq2Uqjm5VJQSEos4uWq5eUCBAAA__8%3D&

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

No branches or pull requests

1 participant