diff --git a/Cargo.lock b/Cargo.lock index 2395f7c..ebea052 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "mtsyntax-plus" -version = "0.2.1" +version = "0.2.2" dependencies = [ "peg", ] diff --git a/Cargo.toml b/Cargo.toml index 853c601..2093c0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mtsyntax-plus" -version = "0.2.1" +version = "0.2.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/parser.rs b/src/parser.rs index fe675a4..6d681e7 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -166,7 +166,7 @@ peg::parser!(grammar parser() for str { { Expr::Literal(format!("/){{,{b}}}/").into(), 0) } / "{" n:unum() "}" { Expr::Literal(format!("/){{{n}}}/").into(), 0) } - / { Expr::Literal("/)/".into(), 1) } + / { Expr::Literal("/)/".into(), 0) } ) { x } pub rule expr() -> Expr<'input>