Browse Source

Add underscores to allowed ident chars

main
raffitz 4 years ago
parent
commit
e8c65faa58
Signed by: raffitz
GPG Key ID: BB3596BD0A31252D
  1. 2
      src/main.rs

2
src/main.rs

@ -83,7 +83,7 @@ pomelo! { @@ -83,7 +83,7 @@ pomelo! {
%type #[regex("s|x|y|z|r|ρ|θ|φ", read_var)] Var char;
%type #[regex(r"@[\p{Letter}\p{Number}\p{Greek}]+", |lex| String::from(lex.slice()))] Ident String;
%type #[regex(r"@[\p{Letter}\p{Number}\p{Greek}_]+", |lex| String::from(lex.slice()))] Ident String;
%type #[token("set")]
#[token("define")]

Loading…
Cancel
Save