diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-16 13:04:38 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-16 13:04:38 +0200 |
commit | 93d0b7c6465f4ffe220b3ddada729746b11eb6ce (patch) | |
tree | e7907fb89a6660c5546d2ca128b2d48ec87539ae /src/construct/partial_bom.rs | |
parent | 2379c2749916483be68dbf816a4c56cd59ced958 (diff) | |
download | markdown-rs-93d0b7c6465f4ffe220b3ddada729746b11eb6ce.tar.gz markdown-rs-93d0b7c6465f4ffe220b3ddada729746b11eb6ce.tar.bz2 markdown-rs-93d0b7c6465f4ffe220b3ddada729746b11eb6ce.zip |
Update some last docs, bnf grammars
Diffstat (limited to 'src/construct/partial_bom.rs')
-rw-r--r-- | src/construct/partial_bom.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/construct/partial_bom.rs b/src/construct/partial_bom.rs index 1818ef4..3f772e9 100644 --- a/src/construct/partial_bom.rs +++ b/src/construct/partial_bom.rs @@ -1,6 +1,17 @@ //! Byte order mark occurs at the start of the document. //! -//! It’s the three bytes 0xEF, 0xBB, and 0xBF. +//! ## Grammar +//! +//! Byte order mark forms with the following BNF +//! (<small>see [construct][crate::construct] for character groups</small>): +//! +//! ```bnf +//! byte_order_mark ::= 0xEF 0xBB 0xBF +//! ``` +//! +//! ## Recommendation +//! +//! Don’t use BOMs. //! //! ## Tokens //! |