diff options
Diffstat (limited to 'code/grammar/markdown.pest')
-rw-r--r-- | code/grammar/markdown.pest | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/code/grammar/markdown.pest b/code/grammar/markdown.pest new file mode 100644 index 0000000..43c6e7a --- /dev/null +++ b/code/grammar/markdown.pest @@ -0,0 +1,9 @@ + +file = _{SOI ~ block* ~ EOI} +block = { (header | list | span | "") ~ NEWLINE } +header = {"#"+ ~ span} +list = { list_item+ } +list_item = { "-" ~ span } +span = { (!NEWLINE ~ ANY)+ } + + |