tree-sitter-d2/test/highlight/attribute.d2

60 lines
990 B
Text
Raw Normal View History

2022-12-07 13:34:42 +03:00
direction: right;
2022-12-08 01:15:09 +03:00
# <- property
2022-12-07 13:34:42 +03:00
# ^ punctuation.delimiter
# ^ string
# ^ punctuation.delimiter
2022-12-07 23:14:25 +03:00
shape: oval
2022-12-07 18:52:19 +03:00
# <- error
# ^ string
2022-12-07 18:52:19 +03:00
2022-12-07 13:34:42 +03:00
baaaz.style: {
# <- variable
2022-12-08 01:15:09 +03:00
# ^ property
2022-12-07 13:34:42 +03:00
fill: red
2022-12-08 01:15:09 +03:00
# <- property
2022-12-07 13:34:42 +03:00
# ^ string
}
foo: Label {
shape: oval
2022-12-08 01:15:09 +03:00
# <- property
2022-12-07 13:34:42 +03:00
# ^ string
style.fill: red;
2022-12-08 01:15:09 +03:00
# <- property
# ^ property
2022-12-07 13:34:42 +03:00
}
2022-12-09 19:05:04 +03:00
foo: {
style: {
opacity: 0.5
# ^ float
fill: red
# ^ string
stroke: 'red'
# ^ string
stroke-width: 5
# ^ number
shadow: true
# ^ boolean
animated: false
# ^ boolean
}
}
foo: Label {
tooltip: Gee, I feel kind of LIGHT in the head now,\nknowing I can't make my satellite dish PAYMENTS!
# <- property
# ^ string
# ^ string.escape
link: https://microsoft.com
# <- property
# ^ string
style.fill: red
# <- property
# ^ property
}