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

51 lines
780 B
Plaintext
Raw Normal View History

2022-12-07 23:22:40 +03:00
foo.'baz'.biz
2023-06-16 00:55:59 +03:00
# <- string.special
2022-12-08 01:15:09 +03:00
# ^ punctuation.delimiter
2022-12-09 19:05:04 +03:00
# ^ string
# ^ string
2022-12-08 01:15:09 +03:00
# ^ punctuation.delimiter
2022-12-07 23:22:40 +03:00
# ^ variable
2022-12-11 14:20:31 +03:00
"b\nz"
# ^ string.escape
# ^ string.escape
2022-12-11 14:20:31 +03:00
'b\nz'
# ^ string
# ^ string
'biz': "Baz\nBiz"
2022-12-07 23:22:40 +03:00
# <- string
# ^ string
# ^ string
# ^ string.escape
2022-12-07 11:58:45 +03:00
foo: Foo Bar
# <- variable
2022-12-07 13:39:16 +03:00
# ^ punctuation.delimiter
# ^ text.title
2022-12-07 11:58:45 +03:00
foo: Foo Bar {
2023-06-16 00:55:59 +03:00
# <- string.special
# ^ text.title
2022-12-07 13:39:16 +03:00
# ^ punctuation.bracket
2022-12-07 11:58:45 +03:00
bar.baz
2023-06-16 00:55:59 +03:00
# <- string.special
2022-12-07 11:58:45 +03:00
# ^ variable
_.foo.style.fill: "#8800aa"
# <- keyword.return
# ^ variable
# ^ keyword
# ^ property
2022-12-07 11:58:45 +03:00
}
2022-12-07 13:39:16 +03:00
# <- punctuation.bracket
foo: Foo\#Ba\@r {
# ^ text.title
# ^ string.escape
# ^ text.title
# ^ string.escape
}