kevinmehall / rust-peg

Parsing Expression Grammar (PEG) parser generator for Rust
https://crates.io/crates/peg
MIT License
1.46k stars 106 forks source link

Raw identify resolv failed #378

Closed A4-Tacks closed 3 months ago

A4-Tacks commented 4 months ago
peg::parser!(grammar parser() for str {
    pub rule r#break() =
});
error: proc macro panicked
 --> src/parser.rs:1:1
  |
1 | / peg::parser!(grammar parser() for str {
2 | |     pub rule r#break() =
3 | | });
  | |__^
  |
  = help: message: `"__parse_r#break"` is not a valid identifier