This commit is contained in:
TcMits
2025-09-02 18:43:12 +07:00
parent 06e14c8ace
commit bc8b848aba

View File

@@ -440,6 +440,15 @@ pub fn derive_vfs_module(input: TokenStream) -> TokenStream {
ext::derive_vfs_module(input)
}
/// match_ignore_ascii_case will generate trie-like tree matching from normal match expression.
/// example:
/// ```ignore
/// match_ignore_ascii_case!(match input {
/// b"AB" => TokenType::TK_ABORT,
/// b"AC" => TokenType::TK_ACTION,
/// _ => TokenType::TK_ID,
/// })
/// ```
#[proc_macro]
pub fn match_ignore_ascii_case(input: TokenStream) -> TokenStream {
ext::match_ignore_ascci_case(input)