hcl_primitives::ident

Function is_id_continue

Source
pub fn is_id_continue(ch: char) -> bool
Expand description

Determines if ch is a valid HCL identifier continue character.

ยงExample

assert!(is_id_continue('-'));
assert!(is_id_continue('_'));
assert!(is_id_continue('a'));
assert!(is_id_continue('1'));
assert!(!is_id_continue(' '));