From 234a47f69f0957bf3e3d268749b01e112d53bb6c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 Nov 2023 10:03:19 +0100 Subject: Move /srp to /blog --- src/blog/gsp/grammar.js.gsp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/blog/gsp/grammar.js.gsp (limited to 'src/blog/gsp/grammar.js.gsp') diff --git a/src/blog/gsp/grammar.js.gsp b/src/blog/gsp/grammar.js.gsp new file mode 100644 index 0000000..7a06e7f --- /dev/null +++ b/src/blog/gsp/grammar.js.gsp @@ -0,0 +1,12 @@ +{ + @span .var {-node}: @span .var {-$} => @span .fn {-seq}( + @span .fn {-optional}('>'), + @span .var {-$.node_name}, + @span .fn {-optional}(@span .var {-$.attribute_list}), + @span .str {-'{'}, + @span .fn {-optional}(@span .var {-$.node_body}), + @span .str {-'\}'}, + ), + + @span .var {-node_name}: @span .var {-$} => @span .str {-/[a-zA-Z:_][a-zA-Z0-9:_\\-​.]*​/}, +\} -- cgit v1.2.3