Allow tildes in identifier names

This commit is contained in:
Simon Gellis 2024-11-25 12:01:13 -05:00 committed by Lucas
parent 9d59333757
commit 6f1477cef7
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ peg::parser! {
}
rule ident() -> String
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_' | '\'']+ {
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_' | '\'' | '~']+ {
String::from_iter(i)
}