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

Unified Diff: tools/idl_parser/idl_lexer.py

Issue 2708173002: idl_parser: Add support for the record<K, V> WebIDL type. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/idl_definitions.py ('k') | tools/idl_parser/idl_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/idl_parser/idl_lexer.py
diff --git a/tools/idl_parser/idl_lexer.py b/tools/idl_parser/idl_lexer.py
index a5fc49c3e251aa91de2678721342168e95f5235b..a86fe59e4c0abc403262c9ec0a0c29ab65ccbb28 100755
--- a/tools/idl_parser/idl_lexer.py
+++ b/tools/idl_parser/idl_lexer.py
@@ -9,7 +9,7 @@ The lexer uses the PLY library to build a tokenizer which understands both
WebIDL and Pepper tokens.
WebIDL, and WebIDL regular expressions can be found at:
- http://www.w3.org/TR/2012/CR-WebIDL-20120419/
+ http://heycam.github.io/webidl/
PLY can be found at:
http://www.dabeaz.com/ply/
"""
@@ -91,6 +91,7 @@ class IDLLexer(object):
'Promise' : 'PROMISE',
'readonly' : 'READONLY',
'RegExp' : 'REGEXP',
+ 'record' : 'RECORD',
'required' : 'REQUIRED',
'sequence' : 'SEQUENCE',
'serializer' : 'SERIALIZER',
@@ -103,6 +104,7 @@ class IDLLexer(object):
'true' : 'TRUE',
'unsigned' : 'UNSIGNED',
'unrestricted' : 'UNRESTRICTED',
+ 'USVString' : 'USVSTRING',
haraken 2017/02/21 23:36:09 alphabetical order?
Yuki 2017/02/22 07:44:57 It's already case-insensitive alphabetical order,
'void' : 'VOID'
}
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/idl_definitions.py ('k') | tools/idl_parser/idl_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698