Files
storybook/tree-sitter-storybook/test/corpus/basic.txt

59 lines
892 B
Plaintext

==================
Simple character
==================
character Alice {
age: 7
}
---
(source_file
(declaration
(character
name: (identifier)
body: (block
(field
name: (dotted_path (identifier))
value: (value (integer)))))))
==================
Use declaration
==================
use schema::core::Item;
---
(source_file
(declaration
(use_declaration
(path_segments
(identifier)
(identifier)
(identifier)))))
==================
Prose block
==================
character Bob {
---backstory
This is Bob's story.
---
}
---
(source_file
(declaration
(character
name: (identifier)
body: (block
(field
(prose_block
marker: (prose_marker)
tag: (identifier)
content: (prose_content)
end: (prose_marker)))))))