1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
const JAVASCRIPT_KEYWORDS: [&str; 11] = [ "let", "var", "const", "class", "function", "volatile", "boolean", "package", "byte", "arguments", "abstract", ]; pub fn is_javascript_keyword(word: &str) -> bool { JAVASCRIPT_KEYWORDS.contains(&word) }