use std::{collections::HashSet, sync::LazyLock};
static RESERVED_WORDS: LazyLock<HashSet<&'static str>> = LazyLock::new(|| {
let mut words = Vec::new();
words.extend(["int128", "nat128"]);
words.extend([
"as", "break", "const", "continue", "crate", "else", "enum", "extern", "false", "fn",
"for", "gen", "if", "impl", "in", "let", "loop", "match", "mod", "move", "mut", "pub",
"ref", "return", "self", "Self", "static", "struct", "super", "trait", "true", "type",
"unsafe", "use", "where", "while", "async", "await", "dyn", "abstract", "become", "box",
"do", "final", "macro", "override", "priv", "typeof", "unsized", "virtual", "yield", "try",
]);
words.into_iter().collect()
});
pub(crate) fn is_reserved_word(word: &str) -> bool {
RESERVED_WORDS.contains(word)
}
#[cfg(test)]
mod tests;