diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 74e3d84f..f60d5d94 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -43,6 +43,10 @@ //! struct MyParser; //! ``` //! +//! ## Inline grammars +//! +//! Grammars can also be inlined by using the `#[grammar_inline = "..."]` attribute. +//! //! ## Grammar //! //! A grammar is a series of rules separated by whitespace, possibly containing comments. diff --git a/pest/src/lib.rs b/pest/src/lib.rs index a0ff75d7..8f2de1b5 100644 --- a/pest/src/lib.rs +++ b/pest/src/lib.rs @@ -54,6 +54,10 @@ //! //! The syntax of `.pest` files is documented in the [`pest_derive` crate]. //! +//! ## Inline grammars +//! +//! Grammars can also be inlined by using the `#[grammar_inline = "..."]` attribute. +//! //! [`Parser`]: trait.Parser.html //! [`pest_derive` crate]: https://docs.rs/pest_derive/