tree-sitter-d2/test/highlight/shape.d2
2023-06-16 07:42:49 +03:00

50 lines
780 B
Text

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
}