summaryrefslogtreecommitdiffstats
path: root/src/poem/read
diff options
context:
space:
mode:
Diffstat (limited to 'src/poem/read')
-rw-r--r--src/poem/read/parse.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/poem/read/parse.rs b/src/poem/read/parse.rs
index c4d59e6..c1dec44 100644
--- a/src/poem/read/parse.rs
+++ b/src/poem/read/parse.rs
@@ -41,6 +41,21 @@ macro_rules! string {
};
}
+/// Same as [string!] macro, but look for newline or EOF
+#[macro_export]
+macro_rules! remark {
+ ($chars:expr) => {
+ loop {
+ match $chars.next() {
+ None => break,
+ Some(c) if c == '\n' => break,
+ Some(_) => {}
+ }
+ }
+ continue;
+ };
+}
+
/// Same as the [string!] macro, but don't `continue`
#[macro_export]
macro_rules! poem {