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

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

Issue 437643002: Support nullable types in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/lexer.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py b/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py
index f2bc1413f4eb4f031733e752f4f4fadd0a92d850..ad20252da28e7fb5145338a072a90a2e3c071f6b 100644
--- a/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py
@@ -92,6 +92,7 @@ class Lexer(object):
'MINUS',
'PLUS',
'AMP',
+ 'QSTN',
# Assignment
'EQUALS',
@@ -172,6 +173,7 @@ class Lexer(object):
t_MINUS = r'-'
t_PLUS = r'\+'
t_AMP = r'&'
+ t_QSTN = r'\?'
# =
t_EQUALS = r'='
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py ('k') | mojo/public/tools/bindings/pylib/mojom/parse/parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698