diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-06 18:10:17 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-06 18:10:17 +0000 |
commit | 0d5be44b6e0ccd3e806697dcfc2337a2c0ed5914 (patch) | |
tree | 1f048935ea6b51cc1e5f01d0613552264b31f02d /xtask | |
parent | 2c408c68a4a27e9a85ce85ec1342e3af58c1571f (diff) | |
parent | eb460333907a44c37bf7287b31c653877c3358c2 (diff) |
Merge #6482
6482: More orthogonal API 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.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 02f4095ce..87c934e66 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -504,7 +504,11 @@ impl Field { | |||
504 | 504 | ||
505 | fn lower(grammar: &Grammar) -> AstSrc { | 505 | fn lower(grammar: &Grammar) -> AstSrc { |
506 | let mut res = AstSrc::default(); | 506 | let mut res = AstSrc::default(); |
507 | res.tokens = vec!["Whitespace".into(), "Comment".into(), "String".into(), "RawString".into()]; | 507 | |
508 | res.tokens = "Whitespace Comment String RawString IntNumber FloatNumber" | ||
509 | .split_ascii_whitespace() | ||
510 | .map(|it| it.to_string()) | ||
511 | .collect::<Vec<_>>(); | ||
508 | 512 | ||
509 | let nodes = grammar.iter().collect::<Vec<_>>(); | 513 | let nodes = grammar.iter().collect::<Vec<_>>(); |
510 | 514 | ||