macro_rules! custom_delim {
($(#[$meta:meta])* $ident:ident, $ch:literal) => { ... };
}
Expand description
A macro for defining a struct which captures a Kind::Delim with a specific character.
§Example
use css_parse::*;
use bumpalo::Bump;
custom_delim!{
/// A £ character.
PoundSterling, '£'
}
assert_parse!(PoundSterling, "£");