summaryrefslogtreecommitdiffstats
path: root/crates/rebel-parse/src/grammar/tokenize.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rebel-parse/src/grammar/tokenize.rs')
-rw-r--r--crates/rebel-parse/src/grammar/tokenize.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rebel-parse/src/grammar/tokenize.rs b/crates/rebel-parse/src/grammar/tokenize.rs
index a30e299..b497e23 100644
--- a/crates/rebel-parse/src/grammar/tokenize.rs
+++ b/crates/rebel-parse/src/grammar/tokenize.rs
@@ -12,11 +12,11 @@ peg::parser! {
/ ident:ident() { Token::Ident(ident) }
/ punct:punct() { Token::Punct(punct) }
- rule ident() -> Ident<'input>
- = name:$(
+ rule ident() -> &'input str
+ = $(
['a'..='z' | 'A' ..='Z' | '_' ]
['a'..='z' | 'A' ..='Z' | '_' | '0'..='9']*
- ) { Ident(name) }
+ )
rule punct() -> Punct
= ch:punct_char() spacing:spacing() { Punct(ch, spacing) }