From d14c744a1cff323f8a837ef620a93ee518c392a2 Mon Sep 17 00:00:00 2001 From: tslil Date: Thu, 7 May 2026 10:06:51 +0100 Subject: finish the implementation, we don't have motives so this is how it will have to stay --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 73e8dd3..8dbc31e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -57,13 +57,13 @@ parser! { // ==================================================================== rule lower_ident() -> String - = !keyword() s:$(['a'..='z'] ident_tail()*) { s.to_string() } + = !keyword() s:$(['_' | 'a'..='z'] ident_tail()*) { s.to_string() } rule upper_ident() -> String = !keyword() s:$(['A'..='Z'] ident_tail()*) { s.to_string() } rule any_ident() -> String - = !keyword() s:$(['a'..='z' | 'A'..='Z'] ident_tail()*) { s.to_string() } + = !keyword() s:$(['_' | 'a'..='z' | 'A'..='Z'] ident_tail()*) { s.to_string() } rule elem_var() -> String = lower_ident() rule inst_var() -> String = lower_ident() -- cgit v1.3.1