()
| 329 | } |
| 330 | |
| 331 | fn keywords() -> &'static HashSet<&'static str> { |
| 332 | static KEYWORDS: OnceLock<HashSet<&'static str>> = OnceLock::new(); |
| 333 | KEYWORDS.get_or_init(|| { |
| 334 | HashSet::from_iter([ |
| 335 | "let", "into", "case", "prql", "type", "module", "internal", "func", |
| 336 | ]) |
| 337 | }) |
| 338 | } |
| 339 | |
| 340 | fn valid_prql_ident() -> &'static Regex { |
| 341 | static VALID_PRQL_IDENT: OnceLock<Regex> = OnceLock::new(); |