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

45 lines
651 B
Plaintext

foo.'baz'.biz
# <- constant
# ^ 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 {
# <- constant
# ^ text.title
# ^ punctuation.bracket
bar.baz
# <- constant
# ^ variable
}
# <- punctuation.bracket
foo: Foo\#Ba\@r {
# ^ text.title
# ^ string.escape
# ^ text.title
# ^ string.escape
}