mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Merge #5627
5627: Specify literal tokens r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
0392a894b7
2 changed files with 8 additions and 1 deletions
|
@ -590,6 +590,7 @@ fn lower_rule(acc: &mut Vec<Field>, grammar: &Grammar, label: Option<&String>, r
|
|||
| "op"
|
||||
| "index"
|
||||
| "base"
|
||||
| "value"
|
||||
);
|
||||
if manually_implemented {
|
||||
return;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue