mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 21:37:39 +00:00
Wrap float literals in their own node
This commit is contained in:
parent
2d5d16f18c
commit
502c519e7d
13 changed files with 113 additions and 49 deletions
|
|
@ -365,13 +365,16 @@ MacroExpr =
|
|||
|
||||
Literal =
|
||||
Attr* value:(
|
||||
'int_number' | 'float_number'
|
||||
'int_number' | FloatLiteral
|
||||
| 'string' | 'raw_string'
|
||||
| 'byte_string' | 'raw_byte_string'
|
||||
| 'true' | 'false'
|
||||
| 'char' | 'byte'
|
||||
)
|
||||
|
||||
FloatLiteral =
|
||||
'float_number'
|
||||
|
||||
PathExpr =
|
||||
Attr* Path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue