Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: mojo/public/tools/bindings/pylib/mojom/parse/parser.py

Issue 474063002: Mojo: add support for {double,float}.{INFINITY,NEGATIVE_INFINITY,NAN} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/pylib/mojom/parse/parser.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/parser.py b/mojo/public/tools/bindings/pylib/mojom/parse/parser.py
index 35ac35901e7aa0dd07a0a578646f0f1c9673df52..118a5a4ebe2c372e052a60ed77fdc085f1d0d392 100644
--- a/mojo/public/tools/bindings/pylib/mojom/parse/parser.py
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/parser.py
@@ -356,7 +356,8 @@ class Parser(object):
def p_float(self, p):
"""float : FLOAT_CONST
| PLUS FLOAT_CONST
- | MINUS FLOAT_CONST"""
+ | MINUS FLOAT_CONST
+ | FLOAT_BUILTIN"""
p[0] = ''.join(p[1:])
def p_error(self, e):

Powered by Google App Engine
This is Rietveld 408576698