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

51 lines
780 B
Plaintext

foo.'baz'.biz
# <- string.special
# ^ punctuation.delimiter
# ^ string
# ^ string
# ^ punctuation.delimiter
# ^ variable
"b\nz"
# ^ string.escape
# ^ string.escape
'b\nz'
# ^ string
# ^ string
'biz': "Baz\nBiz"
# <- string
# ^ string
# ^ string
# ^ string.escape
foo: Foo Bar
# <- variable
# ^ punctuation.delimiter
# ^ text.title
foo: Foo Bar {
# <- string.special
# ^ text.title
# ^ punctuation.bracket
bar.baz
# <- string.special
# ^ variable
_.foo.style.fill: "#8800aa"
# <- keyword.return
# ^ variable
# ^ keyword
# ^ property
}
# <- punctuation.bracket
foo: Foo\#Ba\@r {
# ^ text.title
# ^ string.escape
# ^ text.title
# ^ string.escape
}