| 1745 | } |
| 1746 | }, |
| 1747 | word = function beautify_script_level_word():void { |
| 1748 | if ((ltoke === ")" || ltoke === "x)") && data.stack[a] === "class" && (data.token[data.begin[a - 1] - 1] === "static" || data.token[data.begin[a - 1] - 1] === "final" || data.token[data.begin[a - 1] - 1] === "void")) { |
| 1749 | level[a - 1] = -10; |
| 1750 | level[data.begin[a - 1] - 1] = -10; |
| 1751 | } |
| 1752 | if (ltoke === "]") { |
| 1753 | level[a - 1] = -10; |
| 1754 | } |
| 1755 | if (ltoke === "}" || ltoke === "x}") { |
| 1756 | level[a - 1] = indent; |
| 1757 | } |
| 1758 | if (ctoke === "else" && ltoke === "}" && data.token[a - 2] === "x}") { |
| 1759 | level[a - 3] = level[a - 3] - 1; |
| 1760 | } |
| 1761 | if (ctoke === "new") { |
| 1762 | let apiword:string[] = [ |
| 1763 | "ActiveXObject", |
| 1764 | "ArrayBuffer", |
| 1765 | "AudioContext", |
| 1766 | "Canvas", |
| 1767 | "CustomAnimation", |
| 1768 | "DOMParser", |
| 1769 | "DataView", |
| 1770 | "Date", |
| 1771 | "Error", |
| 1772 | "EvalError", |
| 1773 | "FadeAnimation", |
| 1774 | "FileReader", |
| 1775 | "Flash", |
| 1776 | "Float32Array", |
| 1777 | "Float64Array", |
| 1778 | "FormField", |
| 1779 | "Frame", |
| 1780 | "Generator", |
| 1781 | "HotKey", |
| 1782 | "Image", |
| 1783 | "Iterator", |
| 1784 | "Intl", |
| 1785 | "Int16Array", |
| 1786 | "Int32Array", |
| 1787 | "Int8Array", |
| 1788 | "InternalError", |
| 1789 | "Loader", |
| 1790 | "Map", |
| 1791 | "MenuItem", |
| 1792 | "MoveAnimation", |
| 1793 | "Notification", |
| 1794 | "ParallelArray", |
| 1795 | "Point", |
| 1796 | "Promise", |
| 1797 | "Proxy", |
| 1798 | "RangeError", |
| 1799 | "Rectangle", |
| 1800 | "ReferenceError", |
| 1801 | "Reflect", |
| 1802 | "RegExp", |
| 1803 | "ResizeAnimation", |
| 1804 | "RotateAnimation", |