d2 icon indicating copy to clipboard operation
d2 copied to clipboard

reserved keywords behave differently

Open bo-ku-ra opened this issue 1 year ago • 3 comments

ex. https://play.d2lang.com/?script=UiouqcxJVeLlAgQAAP__&

"style"

err: "style" expected to be set to a map of key-values, or contain an additional keyword like "style.opacity: 0.4"

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

"layers"
"scenarios"
"steps"

no error messages

bo-ku-ra avatar Oct 31 '24 23:10 bo-ku-ra

this is mostly related to https://github.com/terrastruct/d2/issues/477

Once that issue's closed, this will be too

alixander avatar Nov 06 '24 22:11 alixander

really the same? what is below?

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

style

https://play.d2lang.com/?script=ykmsTC0q5uUqTk7NSyzKzAcxS1ILinm5AAEAAP__&

layers
scenarios
steps

bo-ku-ra avatar Nov 07 '24 09:11 bo-ku-ra

Ah you're right. Thank you

alixander avatar Nov 07 '24 19:11 alixander