tree-sitter-d2/test/corpus/attributes.txt

39 lines
562 B
Plaintext

==================
Root attribute
==================
direction: value
---
(source_file
(attr_key) (attr_value)
)
==================
Inline shape attribute
==================
foo.shape: oval
foo.bar.baz.shape: oval
---
(source_file
(shape (identifier) (dot) (attr_key) (attr_value))
(shape (identifier) (dot) (identifier) (dot) (identifier) (dot) (attr_key) (attr_value))
)
==================
Inline style attribute
==================
foo.style.opacity: 5
---
(source_file
(shape (identifier) (dot) (attr_key) (dot) (attr_key) (attr_value))
)