aboutsummaryrefslogtreecommitdiff
path: root/grammars/html.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
commitb50ad0cad099c99d4e739fc465b69779f661b77d (patch)
treee050a7b9b5dfcae56540a19527e05e918edb93cb /grammars/html.bp
parentb4c8a33a0cbf4938b53458ded4d46efc6e8820ab (diff)
Fixed grammar syntax for `..%`
Diffstat (limited to 'grammars/html.bp')
-rw-r--r--grammars/html.bp10
1 files changed, 5 insertions, 5 deletions
diff --git a/grammars/html.bp b/grammars/html.bp
index ab82f6f..483db6a 100644
--- a/grammars/html.bp
+++ b/grammars/html.bp
@@ -6,19 +6,19 @@
# full parse tree, and having one makes the task considerably more complicated.
# See the accompanying README.md for more info.
-doctype: "<!DOCTYPE" ..`> %\n
+doctype: "<!DOCTYPE" ..%\n `>
html-element: void-element / raw-element / template-element / normal-element
void-element: `< ("area"/"base"/"br"/"col"/"embed"/"hr"/"img"/"input"/"link"/"meta"/"param"/"source"/"track"/"wbr") __attributes__ [`/] __ `>
-template-element: "<template>".."</template>" % (\n / comment / html-element)
+template-element: "<template>" ..%(\n / comment / html-element) "</template>"
-raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `>..("</"tag__`>)%\n
+raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `> ..%\n ("</"tag__`>)
-normal-element: `< @tag=id __attributes__ `>..("</"tag`>) % (\n / comment / html-element)
+normal-element: `< @tag=id __attributes__ `> ..%(\n / comment / html-element) ("</"tag`>)
-comment: "<!--" .."-->" % \n
+comment: "<!--" ..%\n "-->"
attributes: *attribute%__
attribute: (+id%`:)__`=__ (id / string)