diff --git a/autotests/folding/highlight.js.fold b/autotests/folding/highlight.js.fold --- a/autotests/folding/highlight.js.fold +++ b/autotests/folding/highlight.js.fold @@ -1,18 +1,18 @@ -/* test.js - test for javascript.xml syntax file */ +/* test.js - test for javascript.xml syntax file */ // Note: this script will not, and is not supposed to, compile in any js engine. -/* +/* NOTE: The words "todo", "fixme" and "note" should be rendered in a different style within comments, match should be caseless (to test for regexp insensitive attribute). - The regex used for this rule is */ + The regex used for this rule is */ String = /\b(?:fixme|todo|note)\b/ - /* Thus, for example "Notebook" is not caught by + /* Thus, for example "Notebook" is not caught by this rule. (the "?:" in the subpattern is there to avoid the regex engine wasting time saving a backref, which is not used for anything. I do not know if the overhead of parsing that is greater than the time saved by not capturing the text...) The rule for catching these words is placed in a context "Comment common", which is used by both comment contexts (single line, multiline) using the new "IncludeRules" item. -*/ +*/ // test if regex support works - nice with new fallthrough prop in context:) somestring.replace( /dooh/ , "bah!"); @@ -33,15 +33,15 @@ re = //; re = /a|b/; -/* +/* Tests for the regex parser. It will parse classes, quanitfiers, special characters and regex operaters, as specified in the netscape documentation for javascript. Regexps are only parsed in their clean form, as the RegExp(string) constructor is using a quoted string. TODO: Find out if more regex feats should be supported. Consider using more itemDatas - assertion, quantifier are options. -*/ +*/ re = /^text\s+\d+\s*$/; re = /a pattern with caret \(^\) in it/; @@ -58,15 +58,15 @@ var p = />/ // a test if #pop back from a comment will work -re = /*/foo/*/ /bar/; +re = /*/foo/*/ /bar/; // ^ POP // ^ we got back after pop in comment, if there is regexp attribs here :-) -/* +/* Some tests if the fallthrough works. The fallthrough happens if a regexp is not found in a possible (!) position, which is after "search(" or "replace(" or "=" or "?" or ":" in version 0.1 of the xml file -*/ +*/ var foo = 'bar'; // ^ fallthrough! @@ -77,11 +77,11 @@ something.method = - function ( a, b, c ) { /* ... */ } + function ( a, b, c ) { /* ... */ } // ^ fallthrough ?! something.other = -function ( d, e, f ) { /* ... */ } +function ( d, e, f ) { /* ... */ } // fallthrough expected at col 0 ("function" should be bold) var ary = new Array(5); @@ -98,42 +98,42 @@ // guess... -/* +/* Normal program flow... -*/ +*/ if (something) dostuff(); else dont(); return; -try { bla() } catch (e) { alert("ERROR! : " + e) } +try { bla() } catch (e) { alert("ERROR! : " + e) } for (int i=0; i < j; i++) document.write("i is" + i + "
"); while (something) -{ +{ block(); picky: if (!1) break; else continue; -} +} -with (a) { - do { +with (a) { + do { stuff( b ); // a.b if it exists - } while (itmakessense); -} + } while (itmakessense); +} -switch (i) { +switch (i) { case 0: f(); break; default: break; -} +} diff --git a/autotests/folding/test.js.fold b/autotests/folding/test.js.fold --- a/autotests/folding/test.js.fold +++ b/autotests/folding/test.js.fold @@ -1,12 +1,12 @@ #! shebang #! no-shebang -/* comment */ +/* comment */ function fun() -{ - var boo = { 'key': [ 1, 2.0, 3.0e1, 004, 0x5 ] }; -} +{ + var boo = { 'key': [ 1, 2.0, 3.0e1, 004, 0x5 ] }; +} class MyClass; // reserved keywords diff --git a/autotests/folding/test.jsx.fold b/autotests/folding/test.jsx.fold --- a/autotests/folding/test.jsx.fold +++ b/autotests/folding/test.jsx.fold @@ -1,50 +1,52 @@ -/* email: - * URL: https://reactjs.org/*/ +// JavaScript React + +/** @author Willy + * @url https://reactjs.org/ **/ import React from 'react'; import { PhotoStory, VideoStory } from './stories'; function Story(props) { const SpecificStory = components[props.storyType]; - return story={ props.story } attr2="&ref;" attr3="Hello\n" />; + return story={ props.story } attr2="&ref;" attr3="Hello\n" />; } function - attr1={ /> function return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;"> - /* no comment*/ function /> return class var 0x123 &ref; hello() React.Component() - ./> anyWord /> - { function return class var 0x123 hello() React.Component() } -> + attr1={ /> function return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;"> + /* no comment*/ function /> return class var 0x123 &ref; hello() React.Component() + ./> anyWord /> + { function return class var 0x123 hello() React.Component() } +> -> > -> > -> > +> > +> > +> > -/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 /> +/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 /> // Detect Valid tags -/* comment */ >> -{ /* comment - */ /> +/* comment */ >> +{ /* comment + */ /> word . } -return /* comment - multiline */ /> /* comment */ /> -&& /*comment*/ /> -& /*comment*/ - - /> -{ >Hello> } -? />; -[ /> ( /> -,/> =/> -&&/> ||/> -return /> ; -default/> ; -> > /> > return > +return /* comment + multiline */ /> /* comment */ /> +&& /*comment*/ /> +& /*comment*/ + + /> +{ >Hello> } +? />; +[ /> ( /> +,/> =/> +&&/> ||/> +return /> ; +default/> ; +> > /> > return > anyWord -anyWord/*comment*/ +anyWord/*comment*/ . & | -% /* comment*/ +% /* comment*/ diff --git a/autotests/folding/test.qml.fold b/autotests/folding/test.qml.fold --- a/autotests/folding/test.qml.fold +++ b/autotests/folding/test.qml.fold @@ -1,6 +1,6 @@ -/* +/* * multi line comment - */ + */ // single line comment diff --git a/autotests/folding/test.ts.fold b/autotests/folding/test.ts.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/test.ts.fold @@ -0,0 +1,50 @@ +/// + +// TypeScript Test + +class Student { + fullName: string; + constructor(public firstName: string, public middleInitial: string, public lastName: string) { + this.fullName = firstName + " " + middleInitial + " " + lastName; + } +} + +interface Person { + firstName: string; + lastName: string; +} + +function greeter(person : Person) { + return "Hello, " + person.firstName + " " + person.lastName; +} + +let user = new Student("Jane", "M.", "User"); + +document.body.innerHTML = greeter(user); +JSON.stringify() +console.log("Hello world"); + +import http = require("http"); +import path = require("path"); +import URL = url.URL; +import { Readable, Writable } from "stream"; +import { isBuffer, isString, isObject } from "util"; + +const port = 8__88___8; +const baseUrl = new URL(`http://localhost:${port}/`); +const rootDir = path.dirname(__dirname); + +const defaultBrowser = os.platform() === "win32" ? "edge" : "chrome"; +let browser: "edge" | "chrome" | "none" = defaultBrowser; +let grep: string | undefined; + +interface FileBasedTestConfiguration { + [setting: string]: string; +} + +function swapCase(s: string): string { + return s.replace(/\w/g, (ch) => { + const up = ch.toUpperCase(); + return ch === up ? ch.toLowerCase() : up; + }); +} diff --git a/autotests/folding/test.tsx.fold b/autotests/folding/test.tsx.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/test.tsx.fold @@ -0,0 +1,56 @@ +// TypeScript React + +/** @author Willy + * @url https://reactjs.org/ **/ + +import React from 'react'; +import { PhotoStory, VideoStory } from './stories'; + +function Story(props) { + const SpecificStory = components[props.storyType]; + return story={ props.story } attr2="&ref;" attr3="Hello\n" />; +} + +function + attr1={ /> function return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;"> + /* no comment*/ function /> return class var 0x123 &ref; hello() React.Component() + ./> anyWord /> + { function return class var 0x123 hello() React.Component() } +> + +> > +> > +> > + +/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 /> + +// Detect Valid tags + +/* comment */ >> +{ /* comment + */ /> + word . } +return /* comment + multiline */ /> /* comment */ /> +&& /*comment*/ /> +& /*comment*/ + + /> +{ >Hello> } +? />; +[ /> ( /> +,/> =/> +&&/> ||/> +return /> ; +default/> ; +> > /> > return > + +anyWord +anyWord/*comment*/ +. +& | +% /* comment*/ + +annotation: /> +annotation: text [ /> ] +console.log("hello") diff --git a/autotests/html/highlight.js.html b/autotests/html/highlight.js.html --- a/autotests/html/highlight.js.html +++ b/autotests/html/highlight.js.html @@ -140,7 +140,7 @@ case 0: f(); break; - default: + default: break; } diff --git a/autotests/html/test.jsx.html b/autotests/html/test.jsx.html --- a/autotests/html/test.jsx.html +++ b/autotests/html/test.jsx.html @@ -4,8 +4,10 @@ test.jsx
-/* email: <willy@wmail.com>
- * URL: https://reactjs.org/*/
+// JavaScript React
+
+/** @author Willy <willy@wmail.com>
+  * @url https://reactjs.org/ **/
 
 import React from 'react';
 import { PhotoStory, VideoStory } from './stories';
diff --git a/autotests/html/test.ts.html b/autotests/html/test.ts.html
new file mode 100644
--- /dev/null
+++ b/autotests/html/test.ts.html
@@ -0,0 +1,57 @@
+
+
+
+test.ts
+
+
+/// <reference types="node" />
+
+// TypeScript Test
+
+class Student {
+    fullName: string;
+    constructor(public firstName: string, public middleInitial: string, public lastName: string) {
+        this.fullName = firstName + " " + middleInitial + " " + lastName;
+    }
+}
+
+interface Person {
+    firstName: string;
+    lastName: string;
+}
+
+function greeter(person : Person) {
+    return "Hello, " + person.firstName + " " + person.lastName;
+}
+
+let user = new Student("Jane", "M.", "User");
+
+document.body.innerHTML = greeter(user);
+JSON.stringify()
+console.log("Hello world");
+
+import http = require("http");
+import path = require("path");
+import URL = url.URL;
+import { Readable, Writable } from "stream";
+import { isBuffer, isString, isObject } from "util";
+
+const port = 8__88___8;
+const baseUrl = new URL(`http://localhost:${port}/`);
+const rootDir = path.dirname(__dirname);
+
+const defaultBrowser = os.platform() === "win32" ? "edge" : "chrome";
+let browser: "edge" | "chrome" | "none" = defaultBrowser;
+let grep: string | undefined;
+
+interface FileBasedTestConfiguration {
+    [setting: string]: string;
+}
+
+function swapCase(s: string): string {
+    return s.replace(/\w/g, (ch) => {
+        const up = ch.toUpperCase();
+        return ch === up ? ch.toLowerCase() : up;
+    });
+}
+
diff --git a/autotests/html/test.jsx.html b/autotests/html/test.tsx.html copy from autotests/html/test.jsx.html copy to autotests/html/test.tsx.html --- a/autotests/html/test.jsx.html +++ b/autotests/html/test.tsx.html @@ -1,25 +1,27 @@ -test.jsx - +test.tsx +
-/* email: <willy@wmail.com>
- * URL: https://reactjs.org/*/
+// TypeScript React
+
+/** @author Willy <willy@wmail.com>
+  * @url https://reactjs.org/ **/
 
 import React from 'react';
 import { PhotoStory, VideoStory } from './stories';
 
-function Story(props) {
+function Story(props) {
   const SpecificStory = components[props.storyType];
   return <SpecificStory story={ props.story } attr2="&ref;" attr3="Hello\n" />;
 } 
 
 function 
-<Tag attr1={ <tag/> function <noTag/> return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;">
+<Tag attr1={ <tag/> function <noTag/> return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;">
 	/* no comment*/ function <tag/> return class var 0x123 &ref; hello() React.Component()
 	.<tag/> anyWord <tag/>
-	{ function <tag> return class var 0x123 hello() React.Component() } 
+	{ function <tag> return class var 0x123 hello() React.Component() } 
 </Tag>
 
 <tag1> </tag1>
@@ -54,4 +56,8 @@
 .<noTag>
 &<notag> | <noTag/>
 % /* comment*/ <noTag/>
+
+annotation: <tag/>
+annotation: text [ <tag/> ]
+console.log("hello")
 
diff --git a/autotests/input/test.jsx b/autotests/input/test.jsx --- a/autotests/input/test.jsx +++ b/autotests/input/test.jsx @@ -1,5 +1,7 @@ -/* email: - * URL: https://reactjs.org/*/ +// JavaScript React + +/** @author Willy + * @url https://reactjs.org/ **/ import React from 'react'; import { PhotoStory, VideoStory } from './stories'; diff --git a/autotests/input/test.ts b/autotests/input/test.ts new file mode 100644 --- /dev/null +++ b/autotests/input/test.ts @@ -0,0 +1,50 @@ +/// + +// TypeScript Test + +class Student { + fullName: string; + constructor(public firstName: string, public middleInitial: string, public lastName: string) { + this.fullName = firstName + " " + middleInitial + " " + lastName; + } +} + +interface Person { + firstName: string; + lastName: string; +} + +function greeter(person : Person) { + return "Hello, " + person.firstName + " " + person.lastName; +} + +let user = new Student("Jane", "M.", "User"); + +document.body.innerHTML = greeter(user); +JSON.stringify() +console.log("Hello world"); + +import http = require("http"); +import path = require("path"); +import URL = url.URL; +import { Readable, Writable } from "stream"; +import { isBuffer, isString, isObject } from "util"; + +const port = 8__88___8; +const baseUrl = new URL(`http://localhost:${port}/`); +const rootDir = path.dirname(__dirname); + +const defaultBrowser = os.platform() === "win32" ? "edge" : "chrome"; +let browser: "edge" | "chrome" | "none" = defaultBrowser; +let grep: string | undefined; + +interface FileBasedTestConfiguration { + [setting: string]: string; +} + +function swapCase(s: string): string { + return s.replace(/\w/g, (ch) => { + const up = ch.toUpperCase(); + return ch === up ? ch.toLowerCase() : up; + }); +} diff --git a/autotests/input/test.jsx b/autotests/input/test.tsx copy from autotests/input/test.jsx copy to autotests/input/test.tsx --- a/autotests/input/test.jsx +++ b/autotests/input/test.tsx @@ -1,5 +1,7 @@ -/* email: - * URL: https://reactjs.org/*/ +// TypeScript React + +/** @author Willy + * @url https://reactjs.org/ **/ import React from 'react'; import { PhotoStory, VideoStory } from './stories'; @@ -48,3 +50,7 @@ . & | % /* comment*/ + +annotation: +annotation: text [ ] +console.log("hello") diff --git a/autotests/reference/highlight.js.ref b/autotests/reference/highlight.js.ref --- a/autotests/reference/highlight.js.ref +++ b/autotests/reference/highlight.js.ref @@ -134,6 +134,6 @@ case 0:
f();
break;
- default:
+ default:
break;
}
diff --git a/autotests/reference/test.jsx.ref b/autotests/reference/test.jsx.ref --- a/autotests/reference/test.jsx.ref +++ b/autotests/reference/test.jsx.ref @@ -1,5 +1,7 @@ -/* email: <willy@wmail.com>
- * URL: https://reactjs.org/*/
+// JavaScript React
+
+/** @author Willy
+ * @url https://reactjs.org/ **/

import React from 'react';
import { PhotoStory, VideoStory } from './stories';
diff --git a/autotests/reference/test.ts.ref b/autotests/reference/test.ts.ref new file mode 100644 --- /dev/null +++ b/autotests/reference/test.ts.ref @@ -0,0 +1,50 @@ +/// types="node" />
+
+// TypeScript Test
+
+class Student {
+ fullName: string;
+ constructor(public firstName: string, public middleInitial: string, public lastName: string) {
+ this.fullName = firstName + " " + middleInitial + " " + lastName;
+ }
+}
+
+interface Person {
+ firstName: string;
+ lastName: string;
+}
+
+function greeter(person : Person) {
+ return "Hello, " + person.firstName + " " + person.lastName;
+}
+
+let user = new Student("Jane", "M.", "User");
+
+document.body.innerHTML = greeter(user);
+JSON.stringify()
+console.log("Hello world");
+
+import http = require("http");
+import path = require("path");
+import URL = url.URL;
+import { Readable, Writable } from "stream";
+import { isBuffer, isString, isObject } from "util";
+
+const port = 8__88___8;
+const baseUrl = new URL(${port});
+const rootDir = path.dirname(__dirname);
+
+const defaultBrowser = os.platform() === "win32" ? "edge" : "chrome";
+let browser: "edge" | "chrome" | "none" = defaultBrowser;
+let grep: string | undefined;
+
+interface FileBasedTestConfiguration {
+ [setting: string]: string;
+}
+
+function swapCase(s: string): string {
+ return s.replace(/\w/g, (ch) => {
+ const up = ch.toUpperCase();
+ return ch === up ? ch.toLowerCase() : up;
+ });
+}
diff --git a/autotests/reference/test.jsx.ref b/autotests/reference/test.tsx.ref copy from autotests/reference/test.jsx.ref copy to autotests/reference/test.tsx.ref --- a/autotests/reference/test.jsx.ref +++ b/autotests/reference/test.tsx.ref @@ -1,19 +1,21 @@ -/* email: <willy@wmail.com>
- * URL: https://reactjs.org/*/
+// TypeScript React
+
+/** @author Willy
+ * @url https://reactjs.org/ **/

import React from 'react';
import { PhotoStory, VideoStory } from './stories';

-function Story(props) {
- const SpecificStory = components[props.storyType];
- return story={ props.story } attr2="&ref;" attr3="Hello\n" />;
+function Story(props) {
+ const SpecificStory = components[props.storyType];
+ return story={ props.story } attr2="&ref;" attr3="Hello\n" />;
}

function
- attr1={ function <noTag/> return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;">
+ attr1={ function <noTag/> return class var 0x123 { } &noRef; hello() React.Component() } attr2="&ref;">
/* no comment*/ function return class var 0x123 &ref; hello() React.Component()
. anyWord
- { function <tag> return class var 0x123 hello() React.Component() }
+ { function <tag> return class var 0x123 hello() React.Component() }



@@ -36,7 +38,7 @@
{ Hello }
? />;
-[ /> ( />
+[ /> ( />
, =
&& ||
return ;
@@ -48,3 +50,7 @@ .<noTag>
&<notag> | <noTag/>
% /* comment*/ <noTag/>
+
+annotation:
+annotation: text [ ]
+console.log("hello")
diff --git a/data/syntax/javascript-react.xml b/data/syntax/javascript-react.xml --- a/data/syntax/javascript-react.xml +++ b/data/syntax/javascript-react.xml @@ -12,36 +12,38 @@ ==================================================================== This file is part of the KDE's KSyntaxHighlighting framework. - + Copyright 2018 Nibaldo González S. (nibgonz@gmail.com) - - This Source Code Form is subject to the terms of the MIT License. - If a copy of the license was not distributed with this file, + + This Source Code Form is subject to the terms of the MIT License. + If a copy of the license was not distributed with this file, You can obtain one at: https://opensource.org/licenses/MIT - + ==================================================================== - This file is an extension of the JavaScript highlighter - (javascript.xml). - Based on the XML syntax highlighting (v7), by Wilbert Berendsen - (wilbert@kde.nl), and the TypeScript React grammar files, + This file is an extension of the JavaScript highlighter + (javascript.xml). + IMPORTANT: Keep sync with "typescript-react.xml". + + Based on the XML syntax highlighting (v7), by Wilbert Berendsen + (wilbert@kde.nl), and the TypeScript React grammar files, available at: https://github.com/Microsoft/TypeScript-TmLanguage Change log: + * v3 [2018-11-18]: Fix Doxygen comments & shebang. Remove TS extension. * v2 [2018-08-18]: Remove "Conditional Expression" context. * v1 [2018-06-20]: Initial version --> - - - + @@ -52,62 +54,70 @@ - - - + - + - + + - + + + + - + + - - + + - + - + + + + @@ -191,34 +201,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -235,7 +218,6 @@ - diff --git a/data/syntax/javascript.xml b/data/syntax/javascript.xml --- a/data/syntax/javascript.xml +++ b/data/syntax/javascript.xml @@ -6,13 +6,12 @@ - - + await break case catch @@ -37,18 +36,21 @@ in instanceof new + of this typeof var void + async class enum extends super + arguments implements interface let @@ -77,12 +79,10 @@ - - + @@ -108,8 +108,7 @@ - - + @@ -121,12 +120,7 @@ - - - - - - + @@ -136,6 +130,7 @@ + @@ -163,21 +158,30 @@ + + + + + + + + + - + @@ -204,6 +208,11 @@ + + + + + @@ -249,6 +258,7 @@ + diff --git a/data/syntax/javascript-react.xml b/data/syntax/typescript-react.xml copy from data/syntax/javascript-react.xml copy to data/syntax/typescript-react.xml --- a/data/syntax/javascript-react.xml +++ b/data/syntax/typescript-react.xml @@ -12,102 +12,150 @@ ==================================================================== This file is part of the KDE's KSyntaxHighlighting framework. - + Copyright 2018 Nibaldo González S. (nibgonz@gmail.com) - - This Source Code Form is subject to the terms of the MIT License. - If a copy of the license was not distributed with this file, + + This Source Code Form is subject to the terms of the MIT License. + If a copy of the license was not distributed with this file, You can obtain one at: https://opensource.org/licenses/MIT - + ==================================================================== - This file is an extension of the JavaScript highlighter - (javascript.xml). - Based on the XML syntax highlighting (v7), by Wilbert Berendsen - (wilbert@kde.nl), and the TypeScript React grammar files, + This file is an extension of the TypeScript highlighter + (typescript.xml). + IMPORTANT: Keep sync with "javascript-react.xml". + + Based on the XML syntax highlighting (v7), by Wilbert Berendsen + (wilbert@kde.nl), and the TypeScript React grammar files, available at: https://github.com/Microsoft/TypeScript-TmLanguage Change log: - * v2 [2018-08-18]: Remove "Conditional Expression" context. - * v1 [2018-06-20]: Initial version + * v1 [2018-11-18]: Initial version --> - - - + - + - - - - + + + + - + + + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - - + + + + + + - - + + - + - + + + + + + + + + + + + + + @@ -191,34 +239,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -235,11 +257,11 @@ - - + + diff --git a/data/syntax/typescript.xml b/data/syntax/typescript.xml new file mode 100644 --- /dev/null +++ b/data/syntax/typescript.xml @@ -0,0 +1,1953 @@ + + +]> + + + + + + + + + + controlflow##JavaScript + goto + + + keywords##JavaScript + declare + + + reserved##JavaScript + type + arguments + + + readonly + abstract + constructor + get + set + + + + module##JavaScript + + + primitives##JavaScript + + + object + + + + + + namespace + module + + + keyof + infer + + + string + number + boolean + symbol + any + void + never + unknown + + + + + + Array + ArrayBuffer + Atomics + Boolean + DataView + Date + Float32Array + Float64Array + Function + Generator + GeneratorFunction + Int8Array + Int16Array + Int32Array + Intl + Map + Number + Object + Proxy + Reflect + RegExp + Set + SharedArrayBuffer + SIMD + String + Symbol + TypedArray + Uint8Array + Uint16Array + Uint32Array + Uint8ClampedArray + WeakMap + WeakSet + + Error + EvalError + InternalError + RangeError + ReferenceError + SyntaxError + TypeError + URIError + + Math + + Promise + + JSON + console + process + + + + AnalyserNode + ArrayBufferView + Attr + AudioBuffer + AudioBufferSourceNode + AudioContext + AudioDestinationNode + AudioListener + AudioNode + AudioParam + BatteryManager + BeforeUnloadEvent + BiquadFilterNode + Blob + BufferSource + ByteString + CSS + CSSConditionRule + CSSCounterStyleRule + CSSGroupingRule + CSSMatrix + CSSMediaRule + CSSPageRule + CSSPrimitiveValue + CSSRule + CSSRuleList + CSSStyleDeclaration + CSSStyleRule + CSSStyleSheet + CSSSupportsRule + CSSValue + CSSValueList + CanvasGradient + CanvasImageSource + CanvasPattern + CanvasRenderingContext2D + ChannelMergerNode + ChannelSplitterNode + CharacterData + ChromeWorker + CloseEvent + Comment + CompositionEvent + Console + ConvolverNode + Coordinates + Credential + CredentialsContainer + Crypto + CryptoKey + CustomEvent + DOMError + DOMException + DOMHighResTimeStamp + DOMImplementation + DOMString + DOMStringList + DOMStringMap + DOMTimeStamp + DOMTokenList + DataTransfer + DataTransferItem + DataTransferItemList + DedicatedWorkerGlobalScope + DelayNode + DeviceProximityEvent + DirectoryEntry + DirectoryEntrySync + DirectoryReader + DirectoryReaderSync + Document + DocumentFragment + DocumentTouch + DocumentType + DragEvent + DynamicsCompressorNode + Element + Entry + EntrySync + ErrorEvent + Event + EventListener + EventSource + EventTarget + FederatedCredential + FetchEvent + File + FileEntry + FileEntrySync + FileException + FileList + FileReader + FileReaderSync + FileSystem + FileSystemSync + FontFace + FormData + GainNode + Gamepad + GamepadButton + GamepadEvent + Geolocation + GlobalEventHandlers + HTMLAnchorElement + HTMLAreaElement + HTMLAudioElement + HTMLBRElement + HTMLBaseElement + HTMLBodyElement + HTMLButtonElement + HTMLCanvasElement + HTMLCollection + HTMLContentElement + HTMLDListElement + HTMLDataElement + HTMLDataListElement + HTMLDialogElement + HTMLDivElement + HTMLDocument + HTMLElement + HTMLEmbedElement + HTMLFieldSetElement + HTMLFontElement + HTMLFormControlsCollection + HTMLFormElement + HTMLHRElement + HTMLHeadElement + HTMLHeadingElement + HTMLHtmlElement + HTMLIFrameElement + HTMLImageElement + HTMLInputElement + HTMLKeygenElement + HTMLLIElement + HTMLLabelElement + HTMLLegendElement + HTMLLinkElement + HTMLMapElement + HTMLMediaElement + HTMLMetaElement + HTMLMeterElement + HTMLModElement + HTMLOListElement + HTMLObjectElement + HTMLOptGroupElement + HTMLOptionElement + HTMLOptionsCollection + HTMLOutputElement + HTMLParagraphElement + HTMLParamElement + HTMLPreElement + HTMLProgressElement + HTMLQuoteElement + HTMLScriptElement + HTMLSelectElement + HTMLShadowElement + HTMLSourceElement + HTMLSpanElement + HTMLStyleElement + HTMLTableCaptionElement + HTMLTableCellElement + HTMLTableColElement + HTMLTableDataCellElement + HTMLTableElement + HTMLTableHeaderCellElement + HTMLTableRowElement + HTMLTableSectionElement + HTMLTextAreaElement + HTMLTimeElement + HTMLTitleElement + HTMLTrackElement + HTMLUListElement + HTMLUnknownElement + HTMLVideoElement + HashChangeEvent + History + IDBCursor + IDBCursorWithValue + IDBDatabase + IDBEnvironment + IDBFactory + IDBIndex + IDBKeyRange + IDBMutableFile + IDBObjectStore + IDBOpenDBRequest + IDBRequest + IDBTransaction + IDBVersionChangeEvent + IIRFilterNode + IdentityManager + ImageBitmap + ImageBitmapFactories + ImageData + Index + InputDeviceCapabilities + InputEvent + InstallEvent + InstallTrigger + KeyboardEvent + LinkStyle + LocalFileSystem + LocalFileSystemSync + Location + MIDIAccess + MIDIConnectionEvent + MIDIInput + MIDIInputMap + MIDIOutputMap + MediaElementAudioSourceNode + MediaError + MediaKeyMessageEvent + MediaKeySession + MediaKeyStatusMap + MediaKeySystemAccess + MediaKeySystemConfiguration + MediaKeys + MediaRecorder + MediaStream + MediaStreamAudioDestinationNode + MediaStreamAudioSourceNode + MessageChannel + MessageEvent + MessagePort + MouseEvent + MutationObserver + MutationRecord + NamedNodeMap + Navigator + NavigatorConcurrentHardware + NavigatorGeolocation + NavigatorID + NavigatorLanguage + NavigatorOnLine + Node + NodeFilter + NodeIterator + NodeList + NonDocumentTypeChildNode + Notification + OfflineAudioCompletionEvent + OfflineAudioContext + OscillatorNode + PageTransitionEvent + PannerNode + ParentNode + PasswordCredential + Path2D + PaymentAddress + PaymentRequest + PaymentResponse + Performance + PerformanceEntry + PerformanceFrameTiming + PerformanceMark + PerformanceMeasure + PerformanceNavigation + PerformanceNavigationTiming + PerformanceObserver + PerformanceObserverEntryList + PerformanceResourceTiming + PerformanceTiming + PeriodicSyncEvent + PeriodicWave + Plugin + Point + PointerEvent + PopStateEvent + PortCollection + Position + PositionError + PositionOptions + PresentationConnectionClosedEvent + PresentationConnectionList + PresentationReceiver + ProcessingInstruction + ProgressEvent + PromiseRejectionEvent + PushEvent + PushRegistrationManager + RTCCertificate + RTCConfiguration + RTCPeerConnection + RTCSessionDescriptionCallback + RTCStatsReport + RadioNodeList + RandomSource + Range + ReadableByteStream + RenderingContext + SVGAElement + SVGAngle + SVGAnimateColorElement + SVGAnimateElement + SVGAnimateMotionElement + SVGAnimateTransformElement + SVGAnimatedAngle + SVGAnimatedBoolean + SVGAnimatedEnumeration + SVGAnimatedInteger + SVGAnimatedLength + SVGAnimatedLengthList + SVGAnimatedNumber + SVGAnimatedNumberList + SVGAnimatedPoints + SVGAnimatedPreserveAspectRatio + SVGAnimatedRect + SVGAnimatedString + SVGAnimatedTransformList + SVGAnimationElement + SVGCircleElement + SVGClipPathElement + SVGCursorElement + SVGDefsElement + SVGDescElement + SVGElement + SVGEllipseElement + SVGEvent + SVGFilterElement + SVGFontElement + SVGFontFaceElement + SVGFontFaceFormatElement + SVGFontFaceNameElement + SVGFontFaceSrcElement + SVGFontFaceUriElement + SVGForeignObjectElement + SVGGElement + SVGGlyphElement + SVGGradientElement + SVGHKernElement + SVGImageElement + SVGLength + SVGLengthList + SVGLineElement + SVGLinearGradientElement + SVGMPathElement + SVGMaskElement + SVGMatrix + SVGMissingGlyphElement + SVGNumber + SVGNumberList + SVGPathElement + SVGPatternElement + SVGPoint + SVGPolygonElement + SVGPolylineElement + SVGPreserveAspectRatio + SVGRadialGradientElement + SVGRect + SVGRectElement + SVGSVGElement + SVGScriptElement + SVGSetElement + SVGStopElement + SVGStringList + SVGStylable + SVGStyleElement + SVGSwitchElement + SVGSymbolElement + SVGTRefElement + SVGTSpanElement + SVGTests + SVGTextElement + SVGTextPositioningElement + SVGTitleElement + SVGTransform + SVGTransformList + SVGTransformable + SVGUseElement + SVGVKernElement + SVGViewElement + ServiceWorker + ServiceWorkerContainer + ServiceWorkerGlobalScope + ServiceWorkerRegistration + ServiceWorkerState + ShadowRoot + SharedWorker + SharedWorkerGlobalScope + SourceBufferList + StereoPannerNode + Storage + StorageEvent + StyleSheet + StyleSheetList + SubtleCrypto + SyncEvent + Text + TextMetrics + TimeEvent + TimeRanges + Touch + TouchEvent + TouchList + Transferable + TreeWalker + UIEvent + USVString + VRDisplayCapabilities + ValidityState + WaveShaperNode + WebGL + WebGLActiveInfo + WebGLBuffer + WebGLContextEvent + WebGLFramebuffer + WebGLProgram + WebGLRenderbuffer + WebGLRenderingContext + WebGLShader + WebGLShaderPrecisionFormat + WebGLTexture + WebGLTimerQueryEXT + WebGLTransformFeedback + WebGLUniformLocation + WebGLVertexArrayObject + WebGLVertexArrayObjectOES + WebSocket + WebSockets + WebVTT + WheelEvent + Window + WindowBase64 + WindowEventHandlers + WindowTimers + Worker + WorkerGlobalScope + WorkerLocation + WorkerNavigator + XMLHttpRequest + XMLHttpRequestEventTarget + XMLSerializer + XPathExpression + XPathResult + XSLTProcessor + + + + Buffer + EventEmitter + Server + Pipe + Socket + REPLServer + ReadStream + WriteStream + Stream + Inflate + Deflate + InflateRaw + DeflateRaw + GZip + GUnzip + Unzip + Zip + + + + constructor + length + prototype + __proto__ + EPSILON + MAX_SAFE_INTEGER + MAX_VALUE + MIN_SAFE_INTEGER + MIN_VALUE + NEGATIVE_INFINITY + POSITIVE_INFINITY + + + + clearInterval + clearTimeout + decodeURI + decodeURIComponent + encodeURI + encodeURIComponent + escape + eval + isFinite + isNaN + parseFloat + parseInt + require + setTimeout + setInterval + super + unescape + uneval + + + + abs + acos + acosh + asin + asinh + atan + atan2 + atanh + cbrt + ceil + clz32 + cos + cosh + exp + expm1 + floor + fround + hypot + imul + log + log10 + log1p + log2 + max + min + pow + random + round + sign + sin + sinh + sqrt + tan + tanh + trunc + + + + E + LN10 + LN2 + LOG10E + LOG2E + PI + SQRT1_2 + SQRT2 + + + + assert + clear + count + debug + dir + error + group + groupCollapsed + groupEnd + info + log + profile + profileEnd + table + time + timeEnd + timeStamp + trace + warn + + + + parse + stringify + + + + global + GLOBAL + root + __dirname + __filename + + + + arch + argv + config + connected + env + execArgv + execPath + exitCode + mainModule + pid + platform + release + stderr + stdin + stdout + title + version + versions + + + + abort + chdir + cwd + disconnect + exit + setegid + seteuid + getegid + geteuid + setgid + setuid + getgid + getuid + send + setgroups + getgroups + initgroups + kill + memoryUsage + nextTick + umask + uptime + hrtime + + + + all + catch + finally + race + reject + resolve + then + + + + document + event + navigator + performance + screen + window + + + + ATTRIBUTE_NODE + CDATA_SECTION_NODE + COMMENT_NODE + DOCUMENT_FRAGMENT_NODE + DOCUMENT_NODE + DOCUMENT_TYPE_NODE + DOMSTRING_SIZE_ERR + ELEMENT_NODE + ENTITY_NODE + ENTITY_REFERENCE_NODE + HIERARCHY_REQUEST_ERR + INDEX_SIZE_ERR + INUSE_ATTRIBUTE_ERR + INVALID_CHARACTER_ERR + NO_DATA_ALLOWED_ERR + NO_MODIFICATION_ALLOWED_ERR + NOT_FOUND_ERR + NOT_SUPPORTED_ERR + NOTATION_NODE + PROCESSING_INSTRUCTION_NODE + TEXT_NODE + WRONG_DOCUMENT_ERR + + + + _content + x + y + z + abbr + above + accept + acceptCharset + accessKey + action + align + aLink + vLink + aLinkcolor + vLinkcolor + all + alt + anchors + appCodeName + appCore + applets + appMinorVersion + appName + appVersion + archive + areas + arguments + attributes + availHeight + availLeft + availTop + availWidth + axis + background + backgroundColor + backgroundImage + below + bgColor + body + border + borderBottomWidth + borderColor + borderLeftWidth + borderRightWidth + borderStyle + borderTopWidth + borderWidth + bottom + bufferDepth + callee + caller + caption + cellPadding + cells + cellSpacing + ch + characterSet + charset + checked + childNodes + chOff + cite + classes + className + clear + clientInformation + clip + clipBoardData + closed + code + codeBase + codeType + color + colorDepth + cols + colSpan + compact + complete + components + content + controllers + cookie + cookieEnabled + cords + cpuClass + crypto + current + data + dateTime + declare + defaultCharset + defaultChecked + defaultSelected + defaultStatus + defaultValue + defaultView + defer + description + dialogArguments + dialogHeight + dialogLeft + dialogTop + dialogWidth + dir + directories + disabled + display + docmain + doctype + documentElement + elements + embeds + enabledPlugin + encoding + enctype + entities + event + expando + external + face + fgColor + filename + firstChild + fontFamily + fontSize + fontWeight + form + formName + forms + frame + frameBorder + frameElement + frames + hasFocus + hash + headers + height + history + host + hostname + href + hreflang + hspace + htmlFor + httpEquiv + id + ids + ignoreCase + images + implementation + index + innerHeight + innerWidth + input + isMap + label + lang + language + lastChild + lastIndex + lastMatch + lastModified + lastParen + layers + layerX + layerY + left + leftContext + lineHeight + link + linkColor + links + listStyleType + localName + location + locationbar + longDesc + lowsrc + lowSrc + marginBottom + marginHeight + marginLeft + marginRight + marginTop + marginWidth + maxLength + media + menubar + method + mimeTypes + multiline + multiple + name + nameProp + namespaces + namespaceURI + next + nextSibling + nodeName + nodeType + nodeValue + noHref + noResize + noShade + notationName + notations + noWrap + object + offscreenBuffering + onLine + onreadystatechange + opener + opsProfile + options + oscpu + outerHeight + outerWidth + ownerDocument + paddingBottom + paddingLeft + paddingRight + paddingTop + pageX + pageY + pageXOffset + pageYOffset + parent + parentLayer + parentNode + parentWindow + pathname + personalbar + pixelDepth + pkcs11 + platform + plugins + port + prefix + previous + previousDibling + product + productSub + profile + profileend + prompt + prompter + protocol + publicId + readOnly + readyState + referrer + rel + responseText + responseXML + rev + right + rightContext + rowIndex + rows + rowSpan + rules + scheme + scope + screenX + screenY + screenLeft + screenTop + scripts + scrollbars + scrolling + sectionRowIndex + security + securityPolicy + selected + selectedIndex + selection + self + shape + siblingAbove + siblingBelow + size + source + specified + standby + start + status + statusbar + statusText + style + styleSheets + suffixes + summary + systemId + systemLanguage + tagName + tags + target + tBodies + text + textAlign + textDecoration + textIndent + textTransform + tFoot + tHead + title + toolbar + top + type + undefined + uniqueID + updateInterval + URL + URLUnencoded + useMap + userAgent + userLanguage + userProfile + vAlign + value + valueType + vendor + vendorSub + version + visibility + vspace + whiteSpace + width + XMLDocument + XSLDocument + zIndex + + + + acceptNode + add + addEventListener + addTextTrack + adoptNode + after + animate + append + appendChild + appendData + before + blur + canPlayType + captureStream + caretPositionFromPoint + caretRangeFromPoint + checkValidity + clear + click + cloneContents + cloneNode + cloneRange + close + closest + collapse + compareBoundaryPoints + compareDocumentPosition + comparePoint + contains + convertPointFromNode + convertQuadFromNode + convertRectFromNode + createAttribute + createAttributeNS + createCaption + createCDATASection + createComment + createContextualFragment + createDocument + createDocumentFragment + createDocumentType + createElement + createElementNS + createEntityReference + createEvent + createExpression + createHTMLDocument + createNodeIterator + createNSResolver + createProcessingInstruction + createRange + createShadowRoot + createTBody + createTextNode + createTFoot + createTHead + createTreeWalker + delete + deleteCaption + deleteCell + deleteContents + deleteData + deleteRow + deleteTFoot + deleteTHead + detach + disconnect + dispatchEvent + elementFromPoint + elementsFromPoint + enableStyleSheetsForSet + entries + evaluate + execCommand + exitFullscreen + exitPointerLock + expand + extractContents + fastSeek + firstChild + focus + forEach + get + getAll + getAnimations + getAttribute + getAttributeNames + getAttributeNode + getAttributeNodeNS + getAttributeNS + getBoundingClientRect + getBoxQuads + getClientRects + getContext + getDestinationInsertionPoints + getElementById + getElementsByClassName + getElementsByName + getElementsByTagName + getElementsByTagNameNS + getItem + getNamedItem + getSelection + getStartDate + getVideoPlaybackQuality + has + hasAttribute + hasAttributeNS + hasAttributes + hasChildNodes + hasFeature + hasFocus + importNode + initEvent + insertAdjacentElement + insertAdjacentHTML + insertAdjacentText + insertBefore + insertCell + insertData + insertNode + insertRow + intersectsNode + isDefaultNamespace + isEqualNode + isPointInRange + isSameNode + item + key + keys + lastChild + load + lookupNamespaceURI + lookupPrefix + matches + move + moveAttribute + moveAttributeNode + moveChild + moveNamedItem + namedItem + nextNode + nextSibling + normalize + observe + open + parentNode + pause + play + postMessage + prepend + preventDefault + previousNode + previousSibling + probablySupportsContext + queryCommandEnabled + queryCommandIndeterm + queryCommandState + queryCommandSupported + queryCommandValue + querySelector + querySelectorAll + registerContentHandler + registerElement + registerProtocolHandler + releaseCapture + releaseEvents + remove + removeAttribute + removeAttributeNode + removeAttributeNS + removeChild + removeEventListener + removeItem + replace + replaceChild + replaceData + replaceWith + reportValidity + requestFullscreen + requestPointerLock + reset + scroll + scrollBy + scrollIntoView + scrollTo + seekToNextFrame + select + selectNode + selectNodeContents + set + setAttribute + setAttributeNode + setAttributeNodeNS + setAttributeNS + setCapture + setCustomValidity + setEnd + setEndAfter + setEndBefore + setItem + setNamedItem + setRangeText + setSelectionRange + setSinkId + setStart + setStartAfter + setStartBefore + slice + splitText + stepDown + stepUp + stopImmediatePropagation + stopPropagation + submit + substringData + supports + surroundContents + takeRecords + terminate + toBlob + toDataURL + toggle + toString + values + write + writeln + + + + + onRowsinserted + onRowsdelete + onRowenter + onRowexit + onResize + onResizestart + onResizeend + onReset + onReadystatechange + onMouseout + onMouseover + onMousedown + onMouseup + onMousemove + onBeforecut + onBeforedeactivate + onBeforeunload + onBeforeupdate + onBeforepaste + onBeforeprint + onBeforeeditfocus + onBeforeactivate + onBlur + onScrolltop + onSubmit + onSelect + onSelectstart + onSelectionchange + onHover + onHelp + onChange + onContextmenu + onControlselect + onCut + onCellchange + onClock + onClose + onDeactivate + onDatasetchanged + onDatasetcomplete + onDataavailable + onDrop + onDrag + onDragstart + onDragover + onDragdrop + onDragenter + onDragend + onDragleave + onDblclick + onUnload + onPaste + onPropertychange + onError + onErrorupdate + onKeydown + onKeyup + onKeypress + onFocus + onLoad + onActivate + onAfterupdate + onAfterprint + onAbort + + + + shift + showModelessDialog + showModalDialog + showHelp + scroll + scrollX + scrollByPages + scrollByLines + scrollY + scrollTo + stop + strike + sizeToContent + sidebar + signText + sort + sup + sub + substr + substring + splice + split + send + setMilliseconds + setSeconds + setMinutes + setHours + setMonth + setYear + setFullYear + setDate + setUTCMilliseconds + setUTCSeconds + setUTCMinutes + setUTCHours + setUTCMonth + setUTCFullYear + setUTCDate + setTime + setHotkeys + setCursor + setZOptions + setActive + setResizable + setRequestHeader + search + slice + savePreferences + small + home + handleEvent + navigate + char + charCodeAt + charAt + concat + contextual + confirm + compile + clear + captureEvents + call + createStyleSheet + createPopup + createEventObject + toGMTString + toUTCString + toString + toSource + toUpperCase + toLowerCase + toLocaleString + test + taint + taintEnabled + indexOf + italics + disableExternalCapture + dump + detachEvent + unshift + untaint + unwatch + updateCommands + join + javaEnabled + pop + push + plugins.refresh + paddings + parse + print + prompt + preference + enableExternalCapture + exec + execScript + valueOf + UTC + find + file + fileModifiedDate + fileSize + fileCreatedDate + fileUpdatedDate + fixed + fontsize + fontcolor + forward + fromCharCode + watch + link + load + lastIndexOf + anchor + attachEvent + atob + apply + alert + abort + routeEvents + resize + resizeBy + resizeTo + recalc + returnValue + replace + reverse + reload + releaseCapture + releaseEvents + go + getMilliseconds + getSeconds + getMinutes + getHours + getMonth + getDay + getYear + getFullYear + getTime + getDate + getTimezoneOffset + getUTCMilliseconds + getUTCSeconds + getUTCMinutes + getUTCHours + getUTCDay + getUTCMonth + getUTCFullYear + getUTCDate + getAttention + getSelection + getResponseHeader + getAllResponseHeaders + moveBy + moveBelow + moveTo + moveToAbsolute + moveAbove + mergeAttributes + match + margins + btoa + big + bold + borderWidths + blink + back + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +