Skip to content

Commit 24d78c3

Browse files
committed
Fix internal docs on grammar of html (flow)
1 parent a52467a commit 24d78c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/construct/html_flow.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
//!
2020
//! raw_tag_name ::= 'pre' | 'script' | 'style' | 'textarea' ; Note: case-insensitive.
2121
//! basic_tag_name ::= 'address' | 'article' | 'aside' | ... ; See `constants.rs`, and note: case-insensitive.
22-
//! opening_tag ::= '<' tag_name *(space_or_tab_eol attribute) [[space_or_tab_eol] '/'] [space_or_tab_eol] '>'
23-
//! closing_tag ::= '</' tag_name [space_or_tab_eol] '>'
22+
//! opening_tag ::= '<' tag_name *(1*space_or_tab attribute) [*space_or_tab '/'] *space_or_tab '>'
23+
//! closing_tag ::= '</' tag_name *space_or_tab '>'
2424
//! tag_name ::= ascii_alphabetic *('-' | ascii_alphanumeric)
25-
//! attribute ::= attribute_name [[space_or_tab_eol] '=' [space_or_tab_eol] attribute_value]
25+
//! attribute ::= attribute_name [*space_or_tab '=' *space_or_tab attribute_value]
2626
//! attribute_name ::= (':' | '_' | ascii_alphabetic) *('-' | '.' | ':' | '_' | ascii_alphanumeric)
2727
//! attribute_value ::= '"' *(line - '"') '"' | "'" *(line - "'") "'" | 1*(text - '"' - "'" - '/' - '<' - '=' - '>' - '`')
2828
//! ```

0 commit comments

Comments
 (0)