diff --git a/autotests/folding/highlight.js.fold b/autotests/folding/highlight.js.fold index 122c0ac..5bc815a 100644 --- a/autotests/folding/highlight.js.fold +++ b/autotests/folding/highlight.js.fold @@ -1,139 +1,139 @@ -/* 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!"); re=/foo/ig; // hehe somestring.search( /^foo\w+\s\d{0,15}$/ ); re = /dooh/; // This is supposedly legal: re = somebool ? /foo/ : /bar/; // NOTE - Special case: an empty regex, not a comment. // The rule uses a positive lookahead assertion to catch it: "//(?=;)". 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/; re = /(\d{0,4})\D/; re = /[a-zA-Z_]+/; re = /[^\d^]+/; re = /\s+?\w+\.$/; re = /\/\//; re = /a|b/; // the following are not regexps in E4X (=xml embedded into JavaScript) var p =

Hello World

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! somestring.replace( new RegExp("\\b\\w+\\b"), "word: $1"); // ^ fallthrough expected. ("new" whould be bold) 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); // ^ fallthrough ? (if keyword is correctly rendered) var b = a ? 1 : 0; // ^ ^ fallthroughs. numbers must be rendered correctly. var c = d ? true : false; var conditinalstring = b ? "something" : "something else"; // 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 index 90eecbf..c381c44 100644 --- a/autotests/folding/test.js.fold +++ b/autotests/folding/test.js.fold @@ -1,23 +1,23 @@ #! 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 // Member objects: text after "." object.property instanceof Number; iden1.iden2 . iden3.class class; var escapes = "aa\b\n\0a\"a\x12a\32a\u{123}a\$\%\ \#\y\aaa\ aaa"; var octal = 0o124; var bin = 0b1010; ლಠ益ಠლ.ñá = 42; δ /No-RegExp/ diff --git a/autotests/folding/test.jsx.fold b/autotests/folding/test.jsx.fold index bb0ffe8..bf6f3ba 100644 --- 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 index 316ff65..ad2f9f3 100644 --- a/autotests/folding/test.qml.fold +++ b/autotests/folding/test.qml.fold @@ -1,23 +1,23 @@ -/* +/* * multi line comment - */ + */ // single line comment import QtQuick 2.0 Rectangle { property real myNumProp: 0.1e12; property alias sub.color; signal mySignal(int arg1, string arg2) color: "lightsteelblue" width: 320 height: width/2 Rectangle { id: sub width: 0x10 height: 007 objectName: 'single quote' } } diff --git a/autotests/folding/test.ts.fold b/autotests/folding/test.ts.fold new file mode 100644 index 0000000..62fb383 --- /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 index 0000000..88cbb22 --- /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 index 9c0f8d3..4b41bc7 100644 --- a/autotests/html/highlight.js.html +++ b/autotests/html/highlight.js.html @@ -1,146 +1,146 @@ highlight.js
 /* 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 */
    String = /\b(?:fixme|todo|note)\b/
    /* 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!");
 re=/foo/ig; // hehe
 
 somestring.search(
        /^foo\w+\s\d{0,15}$/
                   );
 
         re =
         /dooh/;
 
 // This is supposedly legal:
 re = somebool ? /foo/ : /bar/;
 
 // NOTE - Special case: an empty regex, not a comment.
 // The rule uses a positive lookahead assertion to catch it: "//(?=;)".
 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/;
 re = /(\d{0,4})\D/;
 re = /[a-zA-Z_]+/;
 re = /[^\d^]+/;
 re = /\s+?\w+\.$/;
 re = /\/\//;
 re = /a|b/;
 
 // the following are not regexps in E4X (=xml embedded into JavaScript)
 var p = <p>Hello World</p>
 var p = /</
 var p = />/
 
 // a test if #pop back from a comment will work
 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!
 
 
 somestring.replace( new RegExp("\\b\\w+\\b"), "word: $1");
 //                  ^ fallthrough expected. ("new" whould be bold)
 
 
 something.method =
     function ( a, b, c ) { /* ... */ }
 //  ^ fallthrough ?!
 
 something.other =
 function ( d, e, f ) { /* ... */ }
 // fallthrough expected at col 0 ("function" should be bold)
 
 var ary = new Array(5);
 //        ^ fallthrough ? (if keyword is correctly rendered)
 
 var b = a ? 1 : 0;
 //          ^   ^ fallthroughs. numbers must be rendered correctly.
 
 var c = d ? true : false;
 
 var conditinalstring = b ?
   "something" :
   "something else";
 // guess...
 
 
 /*
    Normal program flow...
 */
 
 if (something)
   dostuff();
 else
   dont();
 
   return;
 
 try { bla() } catch (e) { alert("ERROR! : " + e) }
 
 for (int i=0; i < j; i++)
   document.write("i is" + i + "<br>");
 
 while (something)
 {
   block();
   picky:
     if (!1)
       break;
     else
       continue;
 }
 
 with (a) {
   do {
     stuff( b ); // a.b if it exists
   } while (itmakessense);
 }
 
 switch (i) {
   case 0:
   f();
   break;
-  default:
+  default:
   break;
 }
 
diff --git a/autotests/html/test.jsx.html b/autotests/html/test.jsx.html index 4af3ffa..b19eabe 100644 --- a/autotests/html/test.jsx.html +++ b/autotests/html/test.jsx.html @@ -1,57 +1,59 @@ 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';
 
 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;">
 	/* no comment*/ function <tag/> return class var 0x123 &ref; hello() React.Component()
 	.<tag/> anyWord <tag/>
 	{ function <tag> return class var 0x123 hello() React.Component() } 
 </Tag>
 
 <tag1> </tag1>
 <tag1> </Tag$>
 <Tag$> </tag>
 
 <tag/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 />
 
 // Detect Valid tags
 
 /* comment */ <tag></tag>
 { /* comment 
 	*/ <Tag /> 
 	word <noTag/> . <noTag/> } <noTag/>
 return /* comment
 	multiline */ <tag/> /* comment */ <Tag/>
 && /*comment*/ <Tag/>
 & /*comment*/ <noTag/>
 
   <tag/>
 { <hello>Hello</hello> }
 ?<Tag />;
 [ <tag />  ( <tag />
 ,<Tag/>    =<Tag/>
 &&<tag/>   ||<tag/>
 return <tag/> ;
 default<tag/> ;
 <Tag> <tag> <tag$/> </tag> return </Tag>
 
 anyWord<noTag>
 anyWord/*comment*/ <noTag/>
 .<noTag>
 &<notag> | <noTag/>
 % /* comment*/ <noTag/>
 
diff --git a/autotests/html/test.ts.html b/autotests/html/test.ts.html new file mode 100644 index 0000000..fb89fe3 --- /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 similarity index 84% copy from autotests/html/test.jsx.html copy to autotests/html/test.tsx.html index 4af3ffa..847b6d0 100644 --- a/autotests/html/test.jsx.html +++ b/autotests/html/test.tsx.html @@ -1,57 +1,63 @@ -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>
 <tag1> </Tag$>
 <Tag$> </tag>
 
 <tag/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 />
 
 // Detect Valid tags
 
 /* comment */ <tag></tag>
 { /* comment 
 	*/ <Tag /> 
 	word <noTag/> . <noTag/> } <noTag/>
 return /* comment
 	multiline */ <tag/> /* comment */ <Tag/>
 && /*comment*/ <Tag/>
 & /*comment*/ <noTag/>
 
   <tag/>
 { <hello>Hello</hello> }
 ?<Tag />;
 [ <tag />  ( <tag />
 ,<Tag/>    =<Tag/>
 &&<tag/>   ||<tag/>
 return <tag/> ;
 default<tag/> ;
 <Tag> <tag> <tag$/> </tag> return </Tag>
 
 anyWord<noTag>
 anyWord/*comment*/ <noTag/>
 .<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 index 52b35c5..483e116 100644 --- a/autotests/input/test.jsx +++ b/autotests/input/test.jsx @@ -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 ; } function 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() } // Detect Valid tags /* comment */ { /* comment */ word . } return /* comment multiline */ /* comment */ && /*comment*/ & /*comment*/ { Hello } ?; [ ( , = && || return ; default ; return anyWord anyWord/*comment*/ . & | % /* comment*/ diff --git a/autotests/input/test.ts b/autotests/input/test.ts new file mode 100644 index 0000000..8789591 --- /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 similarity index 88% copy from autotests/input/test.jsx copy to autotests/input/test.tsx index 52b35c5..ff8cfc5 100644 --- a/autotests/input/test.jsx +++ b/autotests/input/test.tsx @@ -1,50 +1,56 @@ -/* email: - * 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 ; } function 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() } // 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/reference/highlight.js.ref b/autotests/reference/highlight.js.ref index 7ddd8c9..356acfc 100644 --- a/autotests/reference/highlight.js.ref +++ b/autotests/reference/highlight.js.ref @@ -1,139 +1,139 @@ /* 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 */
String = /\b(?:fixme|todo|note)\b/
/* 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!");
re=/foo/ig; // hehe

somestring.search(
/^foo\w+\s\d{0,15}$/
);

re =
/dooh/;

// This is supposedly legal:
re = somebool ? /foo/ : /bar/;

// NOTE - Special case: an empty regex, not a comment.
// The rule uses a positive lookahead assertion to catch it: "//(?=;)".
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/;
re = /(\d{0,4})\D/;
re = /[a-zA-Z_]+/;
re = /[^\d^]+/;
re = /\s+?\w+\.$/;
re = /\/\//;
re = /a|b/;

// the following are not regexps in E4X (=xml embedded into JavaScript)
var p = <p>Hello World>
var p = /
var p = />/

// a test if #pop back from a comment will work
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!


somestring.replace( new RegExp("\\b\\w+\\b"), "word: $1");
// ^ fallthrough expected. ("new" whould be bold)


something.method =
function ( a, b, c ) { /* ... */ }
// ^ fallthrough ?!

something.other =
function ( d, e, f ) { /* ... */ }
// fallthrough expected at col 0 ("function" should be bold)

var ary = new Array(5);
// ^ fallthrough ? (if keyword is correctly rendered)

var b = a ? 1 : 0;
// ^ ^ fallthroughs. numbers must be rendered correctly.

var c = d ? true : false;

var conditinalstring = b ?
"something" :
"something else";
// guess...


/*
Normal program flow...
*/

if (something)
dostuff();
else
dont();

return;

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 {
stuff( b ); // a.b if it exists
} while (itmakessense);
}

switch (i) {
case 0:
f();
break;
- default:
+ default:
break;
}
diff --git a/autotests/reference/test.jsx.ref b/autotests/reference/test.jsx.ref index e9eda2f..bacd92f 100644 --- a/autotests/reference/test.jsx.ref +++ b/autotests/reference/test.jsx.ref @@ -1,50 +1,52 @@ -/* 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';

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;">
/* no comment*/ function return class var 0x123 &ref; hello() React.Component()
. anyWord
{ function <tag> return class var 0x123 hello() React.Component() }



Tag$>


/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 />

// Detect Valid tags

/* comment */
{ /* comment
*/ />
word <noTag/> . <noTag/> } <noTag/>
return /* comment
multiline */ /* comment */
&& /*comment*/
& /*comment*/ <noTag/>


{ Hello }
? />;
[ /> ( />
, =
&& ||
return ;
default ;
return


anyWord<noTag>
anyWord/*comment*/ <noTag/>
.<noTag>
&<notag> | <noTag/>
% /* comment*/ <noTag/>
diff --git a/autotests/reference/test.ts.ref b/autotests/reference/test.ts.ref new file mode 100644 index 0000000..da0e7aa --- /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 similarity index 71% copy from autotests/reference/test.jsx.ref copy to autotests/reference/test.tsx.ref index e9eda2f..7b8ec89 100644 --- a/autotests/reference/test.jsx.ref +++ b/autotests/reference/test.tsx.ref @@ -1,50 +1,56 @@ -/* 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() }



Tag$>


/*comment*/attr1/*comment*/= /*comment*/"value"/*comment*/attr2 /*comment*/attr3='a' key/*comment*/key2 />

// Detect Valid tags

/* comment */
{ /* comment
*/ />
word <noTag/> . <noTag/> } <noTag/>
return /* comment
multiline */ /* comment */
&& /*comment*/
& /*comment*/ <noTag/>


{ Hello }
? />;
-[ /> ( />
+[ /> ( />
, =
&& ||
return ;
default ;
return


anyWord<noTag>
anyWord/*comment*/ <noTag/>
.<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 index 98d0612..613ed6b 100644 --- a/data/syntax/javascript-react.xml +++ b/data/syntax/javascript-react.xml @@ -1,259 +1,241 @@ ]> - - - + - - - + - + - + + - + + + + - + + - - + + - + - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - diff --git a/data/syntax/javascript.xml b/data/syntax/javascript.xml index a76e9cc..2739658 100644 --- a/data/syntax/javascript.xml +++ b/data/syntax/javascript.xml @@ -1,283 +1,293 @@ ]> - - + await break case catch continue debugger do else finally for if return switch throw try while with const delete function in instanceof new + of this typeof var void + async class enum extends super + arguments implements interface let private protected public static yield import from as default export package Infinity NaN false null true undefined - - + - - + - - - - - - + + + + + + + + + + + - + + + + + + + diff --git a/data/syntax/javascript-react.xml b/data/syntax/typescript-react.xml similarity index 71% copy from data/syntax/javascript-react.xml copy to data/syntax/typescript-react.xml index 98d0612..d3e963e 100644 --- a/data/syntax/javascript-react.xml +++ b/data/syntax/typescript-react.xml @@ -1,259 +1,281 @@ ]> - - - + - + - - - - + + + + - + + + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - - + + + + + + - - + + - + - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + diff --git a/data/syntax/typescript.xml b/data/syntax/typescript.xml new file mode 100644 index 0000000..b7c2f57 --- /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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +