From 6f1477cef7882fd4b089db159777956d5e72064f Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Mon, 25 Nov 2024 12:01:13 -0500 Subject: [PATCH] Allow tildes in identifier names --- crates/uplc/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uplc/src/parser.rs b/crates/uplc/src/parser.rs index 0fe887d9..9628f7b7 100644 --- a/crates/uplc/src/parser.rs +++ b/crates/uplc/src/parser.rs @@ -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) }