From 24d78c3420980f3e56fc420f8efc7e601b144ee7 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 23 Jun 2023 21:43:35 +0200 Subject: Fix internal docs on grammar of html (flow) --- src/construct/html_flow.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/construct/html_flow.rs b/src/construct/html_flow.rs index c994ec7..fe68550 100644 --- a/src/construct/html_flow.rs +++ b/src/construct/html_flow.rs @@ -19,10 +19,10 @@ //! //! raw_tag_name ::= 'pre' | 'script' | 'style' | 'textarea' ; Note: case-insensitive. //! basic_tag_name ::= 'address' | 'article' | 'aside' | ... ; See `constants.rs`, and note: case-insensitive. -//! opening_tag ::= '<' tag_name *(space_or_tab_eol attribute) [[space_or_tab_eol] '/'] [space_or_tab_eol] '>' -//! closing_tag ::= '' +//! opening_tag ::= '<' tag_name *(1*space_or_tab attribute) [*space_or_tab '/'] *space_or_tab '>' +//! closing_tag ::= '' //! tag_name ::= ascii_alphabetic *('-' | ascii_alphanumeric) -//! attribute ::= attribute_name [[space_or_tab_eol] '=' [space_or_tab_eol] attribute_value] +//! attribute ::= attribute_name [*space_or_tab '=' *space_or_tab attribute_value] //! attribute_name ::= (':' | '_' | ascii_alphabetic) *('-' | '.' | ':' | '_' | ascii_alphanumeric) //! attribute_value ::= '"' *(line - '"') '"' | "'" *(line - "'") "'" | 1*(text - '"' - "'" - '/' - '<' - '=' - '>' - '`') //! ``` -- cgit