Skip to content

Commit

Permalink
allow numbers in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
umran committed Jul 13, 2024
1 parent 1223760 commit a22ca46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/src/filter/grammar.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{FieldType, FieldValue, FieldDefinition};

grammar(field_defs: &HashMap<String, FieldDefinition>);

Var: String = <s:r"[a-z]+(_[a-z]+)*(\.[a-z]+(_[a-z]+)*)*"> => s.into();
Var: String = <s:r"[a-zA-Z0-9]+(_[a-zA-Z0-9]+)*(\.[a-zA-Z0-9]+(_[a-zA-Z0-9]+)*)*"> => s.into();

Val: Option<String> = {
<s:r#""(\\\\|\\"|[^"\\])*""#> => apply_string_escapes(&s[1..s.len()-1]).into(),
Expand Down

0 comments on commit a22ca46

Please sign in to comment.