Add combinator Plus

This commit is contained in:
2025-05-11 01:04:39 -07:00
parent dec8213638
commit b685e4e657
2 changed files with 31 additions and 7 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
use crate::{
preprocess::peg::{Alt, And, Dot, EOF, Not, Opt, Parser, Rule, Star, Tag},
plus,
preprocess::peg::{Alt, And, Dot, EOF, Not, Opt, Parser, Rule, Tag},
star,
world::Stat,
};
@@ -32,7 +33,7 @@ fn parse_any_line() -> impl Rule {
fn parse_label_line() -> impl Rule {
let allowed = Alt(('A'..='Z', 'a'..='z', '0'..='9', "_", "@", "~"));
(":", Tag("label", star!(allowed)), eol)
(":", Tag("label", plus!(allowed)), eol)
}
fn eol() -> impl Rule {