Commit 3bffb129 authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

bindings: Fix lexer keyword typo: s/Nan/NaN/

Change-Id: Iffccaa069401f150ed6772a94eec0a52693db416
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032761Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737695}
parent d3f5dd8c
...@@ -53,56 +53,56 @@ class IDLLexer(object): ...@@ -53,56 +53,56 @@ class IDLLexer(object):
# KEYWORD_OR_SYMBOL are matched against keywords dictionary, to determine # KEYWORD_OR_SYMBOL are matched against keywords dictionary, to determine
# if the token is actually a keyword. # if the token is actually a keyword.
keywords = { keywords = {
'any' : 'ANY', 'any': 'ANY',
'async' : 'ASYNC', 'async': 'ASYNC',
'attribute' : 'ATTRIBUTE', 'attribute': 'ATTRIBUTE',
'boolean' : 'BOOLEAN', 'boolean': 'BOOLEAN',
'byte' : 'BYTE', 'byte': 'BYTE',
'ByteString' : 'BYTESTRING', 'ByteString': 'BYTESTRING',
'callback' : 'CALLBACK', 'callback': 'CALLBACK',
'const' : 'CONST', 'const': 'CONST',
'constructor' : 'CONSTRUCTOR', 'constructor': 'CONSTRUCTOR',
'deleter' : 'DELETER', 'deleter': 'DELETER',
'dictionary' : 'DICTIONARY', 'dictionary': 'DICTIONARY',
'DOMString' : 'DOMSTRING', 'DOMString': 'DOMSTRING',
'double' : 'DOUBLE', 'double': 'DOUBLE',
'enum' : 'ENUM', 'enum': 'ENUM',
'false' : 'FALSE', 'false': 'FALSE',
'float' : 'FLOAT', 'float': 'FLOAT',
'FrozenArray' : 'FROZENARRAY', 'FrozenArray': 'FROZENARRAY',
'getter': 'GETTER', 'getter': 'GETTER',
'includes' : 'INCLUDES', 'includes': 'INCLUDES',
'Infinity' : 'INFINITY', 'Infinity': 'INFINITY',
'inherit' : 'INHERIT', 'inherit': 'INHERIT',
'interface' : 'INTERFACE', 'interface': 'INTERFACE',
'iterable': 'ITERABLE', 'iterable': 'ITERABLE',
'long' : 'LONG', 'long': 'LONG',
'maplike': 'MAPLIKE', 'maplike': 'MAPLIKE',
'mixin': 'MIXIN', 'mixin': 'MIXIN',
'namespace' : 'NAMESPACE', 'namespace': 'NAMESPACE',
'Nan' : 'NAN', 'NaN': 'NAN',
'null' : 'NULL', 'null': 'NULL',
'object' : 'OBJECT', 'object': 'OBJECT',
'octet' : 'OCTET', 'octet': 'OCTET',
'optional' : 'OPTIONAL', 'optional': 'OPTIONAL',
'or' : 'OR', 'or': 'OR',
'partial' : 'PARTIAL', 'partial': 'PARTIAL',
'Promise' : 'PROMISE', 'Promise': 'PROMISE',
'readonly' : 'READONLY', 'readonly': 'READONLY',
'record' : 'RECORD', 'record': 'RECORD',
'required' : 'REQUIRED', 'required': 'REQUIRED',
'sequence' : 'SEQUENCE', 'sequence': 'SEQUENCE',
'setlike' : 'SETLIKE', 'setlike': 'SETLIKE',
'setter': 'SETTER', 'setter': 'SETTER',
'short' : 'SHORT', 'short': 'SHORT',
'static' : 'STATIC', 'static': 'STATIC',
'stringifier' : 'STRINGIFIER', 'stringifier': 'STRINGIFIER',
'typedef' : 'TYPEDEF', 'true': 'TRUE',
'true' : 'TRUE', 'typedef': 'TYPEDEF',
'unsigned' : 'UNSIGNED', 'unrestricted': 'UNRESTRICTED',
'unrestricted' : 'UNRESTRICTED', 'unsigned': 'UNSIGNED',
'USVString' : 'USVSTRING', 'USVString': 'USVSTRING',
'void' : 'VOID' 'void': 'VOID'
} }
# Token definitions # Token definitions
......
...@@ -21,7 +21,7 @@ ITERABLE iterable ...@@ -21,7 +21,7 @@ ITERABLE iterable
LONG long LONG long
MAPLIKE maplike MAPLIKE maplike
MIXIN mixin MIXIN mixin
NAN Nan NAN NaN
NULL null NULL null
OBJECT object OBJECT object
OCTET octet OCTET octet
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment