Macro custom_double_delim

Source
macro_rules! custom_double_delim {
    ($(#[$meta:meta])*$ident: ident, $first: literal, $second: literal) => { ... };
}
Expand description

A macro for defining a struct which captures two adjacent Kind::Delim tokens, each with a specific character.

ยงExample

use css_parse::*;
use bumpalo::Bump;
custom_double_delim!{
  /// Two % adjacent symbols
  DoublePercent, '%', '%'
}

assert_parse!(DoublePercent, "%%");