diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2022-04-30 14:19:08 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2022-04-30 14:19:08 -0400 |
| commit | 24ed834317f3fda8f0f55489f54a2df1aca5de17 (patch) | |
| tree | 823b9f7c7c1c28e1d0b42535955d211b1073bec2 /grammars/html.bp | |
| parent | e5c0d09893401b82855872d4f150a0acf56d76d4 (diff) | |
Simplified things by passing a def argument to next_match instead of
chaining defs together. Also simplified `..` by just using a lookahead
instead of retconning it. Immutability invariants are now enforced
better.
Diffstat (limited to 'grammars/html.bp')
| -rw-r--r-- | grammars/html.bp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/html.bp b/grammars/html.bp index 29e4566..1ed83df 100644 --- a/grammars/html.bp +++ b/grammars/html.bp @@ -14,9 +14,9 @@ void-element: `< ("area"/"base"/"br"/"col"/"embed"/"hr"/"img"/"input"/"link"/"me template-element: "<template>" ..%(\n / comment / element) "</template>" -raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `> ..%\n "</"tag__`> +raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `> ..%\n ("</"tag__`>) -normal-element: `< @tag=id __attributes__ `> ..%(\n / comment / element) "</"tag__`> +normal-element: `< @tag=id __attributes__ `> ..%(\n / comment / element) ("</"tag__`>) comment: "<!--" ..%\n "-->" |
