summaryrefslogtreecommitdiff
path: root/support/pkgcheck/src/generate.pest.md
diff options
context:
space:
mode:
Diffstat (limited to 'support/pkgcheck/src/generate.pest.md')
-rw-r--r--support/pkgcheck/src/generate.pest.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/support/pkgcheck/src/generate.pest.md b/support/pkgcheck/src/generate.pest.md
new file mode 100644
index 0000000000..643fe57750
--- /dev/null
+++ b/support/pkgcheck/src/generate.pest.md
@@ -0,0 +1,15 @@
+# Some notes about gparser.pest
+
+## COMMENT and WHITESPACE
+
+The Pest book at https://pest.rs/book/grammars/syntax.html says:
+
+> Many languages and text formats allow arbitrary whitespace and comments between logical tokens.
+> For instance, Rust considers 4+5 equivalent to 4 + 5 and 4 /* comment */ + 5.
+
+> The optional rules WHITESPACE and COMMENT implement this behaviour. If either (or both) are defined,
+> they will be implicitly inserted at every sequence and between every repetition (except in atomic rules).
+
+
+Therefore COMMENT and WHITESPACE are defined in `gparser.pest`.
+