From 90b8db84a48ca9ea1311abd202a546a4f697f4e6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 28 Sep 2020 18:08:23 -0700 Subject: Moved */+ back to prefix, and dropped ? --- grammars/html.bpeg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'grammars/html.bpeg') diff --git a/grammars/html.bpeg b/grammars/html.bpeg index 5dd93cd..cea19c1 100644 --- a/grammars/html.bpeg +++ b/grammars/html.bpeg @@ -1,5 +1,5 @@ # HTML grammar -HTML: __ [doctype __] 0+html-element%__ __ +HTML: __ [doctype __] *html-element%__ __ doctype: " @@ -11,16 +11,16 @@ html-element: ( void-element: `< @tag=(id==match-tag) __attributes__ [`/] __ `> -template-element: `< @tag=(id==match-tag) __`> __ >match-body @body=0+(!`<$. / comment / html-element / !(")$.) (") +template-element: `< @tag=(id==match-tag) __`> __ >match-body @body=*(!`<$. / comment / html-element / !(")$.) (") raw-element: `< @tag=(id==match-tag) __attributes__ `> >match-body @body=.. (") -normal-element: `< @tag=(id==match-tag) __attributes__ `> >match-body @body=0+(!`<$. / comment / html-element / !(")$.) " +normal-element: `< @tag=(id==match-tag) __attributes__ `> >match-body @body=*(!`<$. / comment / html-element / !(")$.) " comment: "" -attributes: 0+attribute%__ -attribute: (1+id%`:)__`=__ (id / `" ..`" / `' ..`') -attribute: (1+id%`:)__`=__ (id / `" ..`" / `' ..`') +attributes: *attribute%__ +attribute: (+id%`:)__`=__ (id / `" ..`" / `' ..`') +attribute: (+id%`:)__`=__ (id / `" ..`" / `' ..`') match-tag: id match-body: '' -- cgit v1.2.3