mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Specify literal tokens
This commit is contained in:
parent
7980a7e19a
commit
8d28289d0f
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"
|
| "op"
|
||||||
| "index"
|
| "index"
|
||||||
| "base"
|
| "base"
|
||||||
|
| "value"
|
||||||
);
|
);
|
||||||
if manually_implemented {
|
if manually_implemented {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue