php_parser_rs/lexer/
macros.rs

1// Reusable pattern for the first byte of an identifier.
2#[macro_export]
3macro_rules! ident_start {
4    () => {
5        b'a'..=b'z' | b'A'..=b'Z' | b'_' | b'\x80'..=b'\xff'
6    };
7}
8
9// Reusable pattern for identifier after the first byte.
10#[macro_export]
11macro_rules! ident {
12    () => {
13        b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z' | b'_' | b'\x80'..=b'\xff'
14    };
15}