5627: Specify literal tokens r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-31 16:34:18 +00:00 committed by GitHub
commit 0392a894b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -590,6 +590,7 @@ fn lower_rule(acc: &mut Vec<Field>, grammar: &Grammar, label: Option<&String>, r
| "op" | "op"
| "index" | "index"
| "base" | "base"
| "value"
); );
if manually_implemented { if manually_implemented {
return; return;

View file

@ -239,7 +239,13 @@ Expr =
| WhileExpr | WhileExpr
Literal = Literal =
Attr* 'int_number' Attr* value:(
'int_number' | 'float_number'
| 'string' | 'raw_string'
| 'byte_string' | 'raw_byte_string'
| 'true' | 'false'
| 'char' | 'byte'
)
PathExpr = PathExpr =
Attr* Path Attr* Path