diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-16 21:47:48 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-16 21:47:48 -0700 |
| commit | 9ee7102f51c60469659de752f119b1ecbd3c0ba7 (patch) | |
| tree | 23cb1f8b50eb9009c94e0eda1950f03bca028acb /grammars/html.bpeg | |
| parent | d536f6a2ca46d4deed84eba38abdbbfc28207400 (diff) | |
Removed (/) (which is just a clunky way to do "")
Diffstat (limited to 'grammars/html.bpeg')
| -rw-r--r-- | grammars/html.bpeg | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/grammars/html.bpeg b/grammars/html.bpeg index 451e61c..3a2d9f2 100644 --- a/grammars/html.bpeg +++ b/grammars/html.bpeg @@ -19,9 +19,8 @@ normal-element = `< @[tag](id==match-tag) __attributes__ `> >match-body @[body]0 comment = "<!--" ..."-->"; -attributes = 0+(!(attribute==match-attribute))%__ __(attribute==match-attribute)__ 0+attribute%__; +attributes = 0+attribute%__; attribute = (1+id%`:)__`=__ (id / `" ..`" / `' ..`'); attribute = (1+id%`:)__`=__ (id / `" ..`" / `' ..`'); -match-attribute = attribute; match-tag = id; -match-body = (/); +match-body = ''; |
