broaden the definition of alpha_char! (#1749, #1515, #1591)

This commit is contained in:
Mark Thom
2023-03-25 17:22:16 -06:00
parent d85fc7c9f8
commit adc77985d7

View File

@@ -7,7 +7,13 @@ macro_rules! char_class {
#[macro_export]
macro_rules! alpha_char {
($c: expr) => {
$c.is_alphabetic() || $c == '_'
(!$c.is_numeric() &&
!$c.is_whitespace() &&
!$c.is_control() &&
!$crate::graphic_token_char!($c) &&
!$crate::layout_char!($c) &&
!$crate::meta_char!($c) &&
!$crate::solo_char!($c)) || $c == '_'
};
}