Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/rust.ungram')
-rw-r--r--crates/syntax/rust.ungram9
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 62aa478399..85270dee62 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -365,13 +365,20 @@ 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_start_0'?
+ 'float_number_start_1'?
+ 'float_number_start_2'?
+ '.'?
+ 'float_number_part'?
+
PathExpr =
Attr* Path