about summary refs log tree commit diff
path: root/src/grammar/RustLexer.g4
diff options
context:
space:
mode:
authorPatrick Reisert <kpreisert@gmail.com>2014-09-29 12:52:35 +0200
committerPatrick Reisert <kpreisert@gmail.com>2014-09-29 12:52:35 +0200
commit9cc366311dbdeaf0d5e22648352c9ceed7e315e4 (patch)
treeea2f9c237dbba0557b89822aa422f837de15050c /src/grammar/RustLexer.g4
parenteb816eee0f1803f03fbf046a26a1920659c14d82 (diff)
downloadrust-9cc366311dbdeaf0d5e22648352c9ceed7e315e4.tar.gz
rust-9cc366311dbdeaf0d5e22648352c9ceed7e315e4.zip
Update ANTLR float suffix grammar
- Removes f128 from the grammar, which is no longer support in rustc
- The fragment modifier is added so it won't parse float suffix as a separate token
Diffstat (limited to 'src/grammar/RustLexer.g4')
-rw-r--r--src/grammar/RustLexer.g43
1 files changed, 1 insertions, 2 deletions
diff --git a/src/grammar/RustLexer.g4 b/src/grammar/RustLexer.g4
index f2705e5421b..e8165dabce5 100644
--- a/src/grammar/RustLexer.g4
+++ b/src/grammar/RustLexer.g4
@@ -120,10 +120,9 @@ LIT_INTEGER
   | '0x' [0-9a-fA-F][0-9a-fA-F_]* INT_SUFFIX?
   ;
 
-FLOAT_SUFFIX
+fragment FLOAT_SUFFIX
   : 'f32'
   | 'f64'
-  | 'f128'
   ;
 
 LIT_FLOAT