summaryrefslogtreecommitdiffhomepage
path: root/src/srp/gsp/grammar.js.gsp
blob: 7a06e7f474f901ac50e7e7902d74a5eaed75c4c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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:_\\-​.]*​/},
\}