diff options
author | pommicket <pommicket@gmail.com> | 2023-07-06 18:00:14 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-06 18:00:14 -0400 |
commit | b39e98f7e8a340bb5777029b05fc84b2b5ba6c08 (patch) | |
tree | 7cd0c3c7a99575aa047e678969e78e860fb7b195 /keywords.py | |
parent | e29c73c1f75b61d0adff5982e36db7b442604bfc (diff) |
TODO highlighting in single-line comments, more js keywords
Diffstat (limited to 'keywords.py')
-rwxr-xr-x | keywords.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/keywords.py b/keywords.py index 75d02dc..54eaf9a 100755 --- a/keywords.py +++ b/keywords.py @@ -343,14 +343,14 @@ for attr in attributes_html: keywords_javascript = [ - 'break', 'case', 'catch', 'class', 'const', + 'async', 'await', 'break', 'case', 'catch', 'class', 'const', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'export', 'extends', 'finally', 'for', 'function', 'if', 'import', 'in', - 'instanceof', 'new', 'return', 'super', + 'instanceof', 'new', 'of', 'return', 'super', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'yield', - 'let', 'await' + 'let', ] constants_json = [ @@ -359,7 +359,7 @@ constants_json = [ constants_javascript = constants_json + ['undefined'] builtins_javascript = [ - 'AggregateError','Array','ArrayBuffer','AsyncFunction','AsyncGenerator','AsyncGeneratorFunction', + 'AggregateError','arguments','Array','ArrayBuffer','AsyncFunction','AsyncGenerator','AsyncGeneratorFunction', 'Atomics','BigInt','BigInt64Array','BigUint64Array','Boolean','DataView','Date','decodeURI', 'decodeURIComponent','encodeURI','encodeURIComponent','Error','eval','EvalError','FinalizationRegistry', 'Float32Array','Float64Array','Function','Generator','GeneratorFunction','globalThis','Infinity', @@ -367,7 +367,15 @@ builtins_javascript = [ 'NaN','Number','Object','parseFloat','parseInt','Promise','Proxy','RangeError','ReferenceError', 'Reflect','RegExp','Set','SharedArrayBuffer','String','Symbol','SyntaxError','TypedArray', 'TypeError','Uint16Array','Uint32Array','Uint8Array','Uint8ClampedArray', - 'URIError','WeakMap','WeakRef','WeakSet','WebAssembly' + 'URIError','WeakMap','WeakRef','WeakSet','WebAssembly', + # window properties + 'console', 'customElements', 'devicePixelRatio', 'document', 'frameElement', + 'frames', 'history', 'innerHeight', 'innerWidth', 'length', 'localStorage', + 'location', 'locationbar', 'menubar', 'name', 'navigator', 'opener', + 'outerHeight', 'outerWidth', 'pageXOffset', 'pageYOffset', 'parent', + 'personalbar', 'scheduler', 'screen', 'screenLeft', 'screenTop', 'screenX', + 'screenY', 'scrollbars', 'scrollX', 'scrollY', 'self', 'sessionStorage', + 'speechSynthesis', 'statusbar', 'toolbar', 'top', 'visualViewport', 'window' ] keywords_java = [ |