aboutsummaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-07 10:06:51 +0100
committertslil <tslil@posteo.de>2026-05-07 11:18:31 +0100
commitd14c744a1cff323f8a837ef620a93ee518c392a2 (patch)
tree2222c29a4ca32e8bf592455d987fb0979c5e593e /src/parser.rs
parentfb5ba7fb62f4ce75f307233d5ffb438243f353b6 (diff)
finish the implementation, we don't have motives so this is how it will have to stay
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs4
1 files changed, 2 insertions, 2 deletions
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()