Chromium Code Reviews| 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' |
| } |