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

38 lines
535 B
Text
Raw Normal View History

2022-12-07 23:22:40 +03:00
foo.'baz'.biz
2022-12-08 01:15:09 +03:00
# <- constant
# ^ 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 {
# <- constant
# ^ text.title
2022-12-07 13:39:16 +03:00
# ^ punctuation.bracket
2022-12-07 11:58:45 +03:00
bar.baz
2022-12-08 01:15:09 +03:00
# <- constant
2022-12-07 11:58:45 +03:00
# ^ variable
}
2022-12-07 13:39:16 +03:00
# <- punctuation.bracket