From 9cc366311dbdeaf0d5e22648352c9ceed7e315e4 Mon Sep 17 00:00:00 2001
From: Patrick Reisert <kpreisert@gmail.com>
Date: Mon, 29 Sep 2014 12:52:35 +0200
Subject: [PATCH] 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
---
 src/grammar/RustLexer.g4 | 3 +--
 1 file changed, 1 insertion(+), 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