diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 0595386969..e6231ece22 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs @@ -590,6 +590,7 @@ fn lower_rule(acc: &mut Vec, grammar: &Grammar, label: Option<&String>, r | "op" | "index" | "base" + | "value" ); if manually_implemented { return; diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 8edabc3b90..bc1dd67611 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -239,7 +239,13 @@ Expr = | WhileExpr Literal = - Attr* 'int_number' + Attr* value:( + 'int_number' | 'float_number' + | 'string' | 'raw_string' + | 'byte_string' | 'raw_byte_string' + | 'true' | 'false' + | 'char' | 'byte' + ) PathExpr = Attr* Path