diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-14 10:03:19 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-14 10:08:19 +0100 |
commit | 234a47f69f0957bf3e3d268749b01e112d53bb6c (patch) | |
tree | b6da59bc4d1bc9e93c0b0631042949bfd7ac02bc /src/blog/gsp/grammar.js.gsp | |
parent | 09e860d5a1e30901327aadb6bdfa0ee6afb00277 (diff) |
Move /srp to /blog
Diffstat (limited to 'src/blog/gsp/grammar.js.gsp')
-rw-r--r-- | src/blog/gsp/grammar.js.gsp | 12 |
1 files changed, 12 insertions, 0 deletions
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:_\\-.]*/}, +\} |