From 15d78464ba9a717a71e1dc47a4101c8b13ec6581 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 26 Sep 2022 14:14:58 +0200 Subject: syntax highlighting with syntect --- code/grammar/markdown.pest | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 code/grammar/markdown.pest (limited to 'code/grammar') 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)+ } + + -- cgit v1.2.3-70-g09d2