summaryrefslogtreecommitdiffhomepage
path: root/src/blog/gsp/grammar.js
blob: 13393a1ac59775dfaeeced9f6eac90ff00845c64 (plain) (blame)
1
2
3
4
5
6
7
8
9
{
	node: $ => seq(
		$.node_name,
		optional($.attribute_list),
		'{', optional($.node_body), '}',
	),

	node_name: $ => /[a-zA-Z:_][a-zA-Z0-9:_\-.]*/,
}