From ef9ee326260a902f600a2a83fbb785ee935ac904 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 25 Apr 2016 23:55:17 -0400 Subject: rust: allow extra/weird characters in identifiers --- rust/spectrum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 85d18b6..be41ca8 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -67,7 +67,7 @@ fn is_valid_identifier(s: &str) -> bool { return false; } for (i, c) in s.chars().enumerate() { - if !(c.is_alphabetic() || c == '-' || (c.is_numeric() && i > 0)) { + if !(c.is_alphabetic() || c == '*' || c == '?' || c == '!' || c == '-' || (c.is_numeric() && i > 0)) { return false; } } -- cgit v1.2.3