aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-31 17:34:18 +0100
committerGitHub <[email protected]>2020-07-31 17:34:18 +0100
commit0392a894b7284b13a88a13171e6b8b29764921be (patch)
treee0f799de029415f478ce5365861ad9f1403de49b /xtask
parent98975a772a85fa37efabb8d940bc07d4030ba49d (diff)
parent8d28289d0f83225672fc42abcf684364582e73c5 (diff)
Merge #5627
5627: Specify literal tokens r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/gen_syntax.rs1
-rw-r--r--xtask/src/codegen/rust.ungram8
2 files changed, 8 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs
index 059538696..e6231ece2 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<Field>, grammar: &Grammar, label: Option<&String>, r
590 | "op" 590 | "op"
591 | "index" 591 | "index"
592 | "base" 592 | "base"
593 | "value"
593 ); 594 );
594 if manually_implemented { 595 if manually_implemented {
595 return; 596 return;
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 8edabc3b9..bc1dd6761 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -239,7 +239,13 @@ Expr =
239| WhileExpr 239| WhileExpr
240 240
241Literal = 241Literal =
242 Attr* 'int_number' 242 Attr* value:(
243 'int_number' | 'float_number'
244 | 'string' | 'raw_string'
245 | 'byte_string' | 'raw_byte_string'
246 | 'true' | 'false'
247 | 'char' | 'byte'
248 )
243 249
244PathExpr = 250PathExpr =
245 Attr* Path 251 Attr* Path