Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/zones/preprocessor.pest
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/// DNS Zone file parsing (pre-processor)
///
/// Due to the rules around braces we preprocess the file,
/// and write out something easier to parse.
//! DNS Zone file parsing (pre-processor)

// Due to the rules around braces we preprocess the file,
// and write out something easier to parse.

comment = { ";" ~ (!NEWLINE ~ ANY)* }
open = { "(" }
Expand Down
26 changes: 13 additions & 13 deletions src/zones/zones.pest
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/// DNS Zone file parsing
///
/// Format is defined in rfc1035 Section 5, extended rfc2308 Section 4.
///
/// <domain-name><rr> [<comment>]
/// <blank><rr> [<comment>]
/// ```
///
/// <rr> contents take one of the following forms:
/// ```text
/// [<TTL>] [<class>] <type> <RDATA>
/// [<class>] [<TTL>] <type> <RDATA>
/// ```
//! DNS Zone file parsing

// Format is defined in rfc1035 Section 5, extended rfc2308 Section 4.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a //! Comment as well? I feel this top block is all meant to be a module comment

//
// <domain-name><rr> [<comment>]
// <blank><rr> [<comment>]
// ```
//
// <rr> contents take one of the following forms:
// ```text
// [<TTL>] [<class>] <type> <RDATA>
// [<class>] [<TTL>] <type> <RDATA>
// ```

// We use explict WHITESPACE to ensure there is whitespace between matching tokens
// as opposed to optional WHITESPACE.
Expand Down