From 8aa803aaa355234b8c302904348d18dceea6b86f Mon Sep 17 00:00:00 2001 From: Florian Bruder Date: Thu, 2 Feb 2023 13:09:27 +0100 Subject: [PATCH] Fix comments in *.pest files According to https://pest.rs/book/grammars/comments.html --- src/zones/preprocessor.pest | 7 +++---- src/zones/zones.pest | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/zones/preprocessor.pest b/src/zones/preprocessor.pest index be9a4e1..44056d4 100644 --- a/src/zones/preprocessor.pest +++ b/src/zones/preprocessor.pest @@ -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 = { "(" } diff --git a/src/zones/zones.pest b/src/zones/zones.pest index 0aa80af..c8bdf7a 100644 --- a/src/zones/zones.pest +++ b/src/zones/zones.pest @@ -1,16 +1,16 @@ -/// DNS Zone file parsing -/// -/// Format is defined in rfc1035 Section 5, extended rfc2308 Section 4. -/// -/// [] -/// [] -/// ``` -/// -/// contents take one of the following forms: -/// ```text -/// [] [] -/// [] [] -/// ``` +//! DNS Zone file parsing + +// Format is defined in rfc1035 Section 5, extended rfc2308 Section 4. +// +// [] +// [] +// ``` +// +// contents take one of the following forms: +// ```text +// [] [] +// [] [] +// ``` // We use explict WHITESPACE to ensure there is whitespace between matching tokens // as opposed to optional WHITESPACE.