terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
18.12k stars 444 forks source link

reserved keywords behave differently #2187

Open bo-ku-ra opened 3 weeks ago

bo-ku-ra commented 3 weeks ago

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

alixander commented 2 weeks ago

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

Once that issue's closed, this will be too

bo-ku-ra commented 2 weeks ago

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
alixander commented 2 weeks ago

Ah you're right. Thank you