1 2 3 4 5 6 7 8 9 10 11 12
use crate::Token; use super::SingleTokenPattern; /// Matches any single token. pub struct AnyPattern; impl SingleTokenPattern for AnyPattern { fn matches_token(&self, _token: &Token, _source: &[char]) -> bool { true } }