{ "name": "JavaScript", "scopeName": "source.js", "patterns": [ { "name": "meta.import.js", "begin": "(?\u003c!\\.)\\b(import)(?!\\s*[:(])\\b", "end": "(?=;|$)", "patterns": [ { "begin": "{", "end": "}", "patterns": [ { "match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)", "captures": { "1": { "name": "variable.language.default.js" }, "2": { "name": "variable.other.module.js" }, "3": { "name": "keyword.control.js" }, "4": { "name": "invalid.illegal.js" }, "5": { "name": "variable.other.module-alias.js" } } }, { "name": "meta.delimiter.object.comma.js", "match": "," }, { "include": "#comments" }, { "name": "variable.other.module.js", "match": "\\b([a-zA-Z_$][\\w$]*)\\b" } ], "beginCaptures": { "0": { "name": "punctuation.definition.modules.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.modules.end.js" } } }, { "match": "(?x)\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: (\\b default \\b | \\*) | \\b([a-zA-Z_$][\\w$]*)\\b)", "captures": { "1": { "name": "variable.language.default.js" }, "2": { "name": "variable.language.import-all.js" }, "3": { "name": "variable.other.module.js" }, "4": { "name": "keyword.control.js" }, "5": { "name": "invalid.illegal.js" }, "6": { "name": "variable.other.module-alias.js" } } }, { "name": "variable.language.import-all.js", "match": "\\*" }, { "name": "variable.language.default.js", "match": "\\b(default)\\b" }, { "include": "#strings" }, { "include": "#comments" }, { "name": "keyword.control.js", "match": "\\b(from)\\b" }, { "name": "variable.other.module.js", "match": "\\b([a-zA-Z_$][\\w$]*)\\b(?=.*\\bfrom\\b)" }, { "name": "meta.delimiter.object.comma.js", "match": "," } ], "beginCaptures": { "1": { "name": "keyword.control.js" } } }, { "match": "(?x)\n\\b(export)\\b\\s*\n\\b(default)\\b\\s*\n\\b((?!\\b(?:function|class|let|var|const)\\b)[a-zA-Z_$][\\w$]*)?\\b", "captures": { "0": { "name": "meta.export.js" }, "1": { "name": "keyword.control.js" }, "2": { "name": "variable.language.default.js" }, "3": { "name": "variable.other.module.js" } } }, { "name": "meta.export.js", "begin": "(?\u003c!\\.)\\b(export)(?!\\s*[:(])\\b", "end": "(?=;|\\bfunction\\b|\\bclass\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|$)", "patterns": [ { "include": "#numbers" }, { "begin": "(?![a-zA-Z_$0-9]){", "end": "}", "patterns": [ { "match": "(?x)\n(?: \\b(default)\\b | \\b([a-zA-Z_$][\\w$]*)\\b)\n\\s*\n(\\b as \\b)\n\\s*\n(?: \\b(default)\\b | (\\*) | \\b([a-zA-Z_$][\\w$]*)\\b)", "captures": { "1": { "name": "variable.language.default.js" }, "2": { "name": "variable.other.module.js" }, "3": { "name": "keyword.control.js" }, "4": { "name": "variable.language.default.js" }, "5": { "name": "invalid.illegal.js" }, "6": { "name": "variable.other.module-alias.js" } } }, { "include": "#comments" }, { "name": "meta.delimiter.object.comma.js", "match": "," }, { "name": "variable.other.module.js", "match": "\\b([a-zA-Z_$][\\w$]*)\\b" } ], "beginCaptures": { "0": { "name": "punctuation.definition.modules.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.modules.end.js" } } }, { "name": "variable.language.import-all.js", "match": "\\*(?=.*\\bfrom\\b)" }, { "name": "variable.language.default.js", "match": "\\b(default)\\b" }, { "include": "#strings" }, { "include": "#comments" }, { "name": "keyword.control.js", "match": "\\b(from)\\b" }, { "name": "variable.other.module.js", "match": "\\b([a-zA-Z_$][\\w$]*)\\b" }, { "name": "meta.delimiter.object.comma.js", "match": "," }, { "include": "#operators" } ], "beginCaptures": { "1": { "name": "keyword.control.js" } } }, { "name": "variable.language.js", "match": "(?:(?\u003c=\\.{3})|(?\u003c!\\.)\\b)(?\u003c!\\$)(super|this|arguments)(?!\\s*:|\\$)\\b" }, { "begin": "(?=(\\basync\\b\\s*)?\\bfunction\\b(?!\\s*:))", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.js", "begin": "\\G", "end": "(?\u003c=\\))", "patterns": [ { "include": "#function_innards" } ] } ] }, { "begin": "(?=(\\.)?[a-zA-Z_$][\\w$]*\\s*=\\s*(\\basync\\b\\s*)?\\bfunction\\b)", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.js", "begin": "\\G", "end": "(?!\\G)(?\u003c=\\))", "patterns": [ { "match": "(\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)\\s*", "captures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "name": "entity.name.function.js" }, "3": { "name": "keyword.operator.assignment.js" } } }, { "include": "#function_innards" } ] } ] }, { "begin": "(?=\\b[a-zA-Z_$][\\w$]*\\s*:\\s*(\\basync\\b\\s*)?\\bfunction\\b)", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.json.js", "begin": "\\G", "end": "(?\u003c=\\))", "patterns": [ { "match": "\\b([a-zA-Z_$][\\w$]*)\\s*(:)\\s*", "captures": { "1": { "name": "entity.name.function.js" }, "2": { "name": "keyword.operator.assignment.js" } } }, { "include": "#function_innards" } ] } ] }, { "begin": "(?=(('[^']*?')|(\"[^\"]*?\"))\\s*:\\s*(\\basync\\b\\s*)?\\bfunction\\b)", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.json.js", "begin": "\\G", "end": "(?\u003c=\\))", "patterns": [ { "match": "(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*(:)", "captures": { "1": { "name": "string.quoted.single.js" }, "2": { "name": "punctuation.definition.string.begin.js" }, "3": { "name": "entity.name.function.js" }, "4": { "name": "punctuation.definition.string.end.js" }, "5": { "name": "string.quoted.double.js" }, "6": { "name": "punctuation.definition.string.begin.js" }, "7": { "name": "entity.name.function.js" }, "8": { "name": "punctuation.definition.string.end.js" }, "9": { "name": "keyword.operator.assignment.js" } } }, { "include": "#function_innards" } ] } ] }, { "begin": "(?=\\bconstructor\\b\\s*)", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.js", "begin": "\\G", "end": "(?\u003c=\\))", "patterns": [ { "name": "entity.name.function.constructor.js", "match": "\\b(constructor)\\s*" }, { "include": "#function_innards" } ] } ] }, { "begin": "(?x)\n(?=\n (?!\n (break|case|catch|continue|do|else|finally|for|function|if|\n return|switch|throw|try|while|with)\n [\\s\\(]\n )\n (\n \\b(get|set) # Property getter/setter: get foo(){}\n (?:\\s+|(?=\\[)) # Followed by whitespace or square bracket\n )?+\n ( # Method name\n \\b[a-zA-Z_$][\\w$]* # Fixed name\n |\n \\[ # Computed property key\n [^\\[\\]]++ # Contains at least one non-brace character\n \\]\n )\n \\s*\\(\\s* # Start of arguments list\n (\n \"[^\"]*\" | # Double-quoted string\n '[^']*' | # Single-quoted string\n [^\"()'] # Any non-bracket or non-quote\n )*\n \\)\\s* # End of arguments\n { # Beginning of body\n)", "end": "(?\u003c=})", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.method.definition.js", "begin": "\\G", "end": "(?\u003c=\\))", "patterns": [ { "name": "meta.computed-key.js", "match": "(\\[)(.+)(\\])(?=\\s*\\()", "captures": { "1": { "name": "punctuation.definition.computed-key.begin.bracket.square.js" }, "2": { "patterns": [ { "include": "$self" }, { "name": "variable.parameter.property.js", "match": "[a-zA-Z_$][\\w$]*" } ] }, "3": { "name": "punctuation.definition.computed-key.end.bracket.square.js" } } }, { "name": "keyword.operator.$1ter.js", "match": "\\b(get|set)(?=\\s*\\[.+\\]\\s*\\(|\\s+[^\\s\\[(]+\\s*\\()" }, { "name": "entity.name.function.js", "match": "\\b([a-zA-Z_$][\\w$]*)" }, { "include": "#function_params" } ] } ] }, { "begin": "(?x)\n(?=\n (?\u003c![A-Za-z0-9])\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)", "end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G\\(|\n \\G[\\w$]+|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.arrow.js", "begin": "\\G", "end": "(?\u003c=(=\u003e))", "patterns": [ { "include": "#arrow_function_innards" } ] } ] }, { "begin": "(?x)\n(?=\n (\\.)?[a-zA-Z_$][\\w$]*\n \\s*(=)\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)", "end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G(\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*\\(|\n \\G(\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*[\\w$]+|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.arrow.js", "begin": "\\G", "end": "(?\u003c=(=\u003e))", "patterns": [ { "match": "\\G(\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)", "captures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "name": "entity.name.function.js" }, "3": { "name": "keyword.operator.assignment.js" } } }, { "include": "#arrow_function_innards" } ] } ] }, { "begin": "(?x)\n(?=\n \\b[a-zA-Z_$][\\w$]*\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)", "end": "(?x)\n(?\u003c=})|\n((?!\n \\s*{|\n \\G[\\w$]+\\s*:|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.arrow.json.js", "begin": "\\G", "end": "(?\u003c=(=\u003e))", "patterns": [ { "match": "\\b([a-zA-Z_$][\\w$]*)\\s*(:)\\s*", "captures": { "1": { "name": "entity.name.function.js" }, "2": { "name": "keyword.operator.assignment.js" } } }, { "include": "#arrow_function_innards" } ] } ] }, { "begin": "(?x)\n(?=\n (('[^']*?')|(\"[^\"]*?\"))\n \\s*:\\s*\n ((\\(([^\\(\\)]*)?\\))|[\\w$]+)\n \\s*=\u003e\n)", "end": "(?x)\n(?\u003c=})|\n((?!\n \\G(('[^']*?')|(\"[^\"]*?\"))|\n \\s*{|\n \\s*/\\*|\\s*//\n)(?=\\s*\\S))", "patterns": [ { "include": "#comments" }, { "include": "#function_body" }, { "name": "meta.function.arrow.json.js", "begin": "\\G", "end": "(?\u003c=(=\u003e))", "patterns": [ { "match": "(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*(:)", "captures": { "1": { "name": "string.quoted.single.js" }, "2": { "name": "punctuation.definition.string.begin.js" }, "3": { "name": "entity.name.function.js" }, "4": { "name": "punctuation.definition.string.end.js" }, "5": { "name": "string.quoted.double.js" }, "6": { "name": "punctuation.definition.string.begin.js" }, "7": { "name": "entity.name.function.js" }, "8": { "name": "punctuation.definition.string.end.js" }, "9": { "name": "keyword.operator.assignment.js" } } }, { "include": "#arrow_function_innards" } ] } ] }, { "match": "(=\u003e)", "captures": { "0": { "name": "meta.function.arrow.js" }, "1": { "name": "storage.type.function.arrow.js" } } }, { "name": "meta.class.js", "match": "(?x)\n\\b(class)\n(?:\n (?:\\s+(extends)\\s+([a-zA-Z_$][\\w$]*))\n |\n (?:\n (?:\\s+([a-zA-Z_$][\\w$]*))\n (?:\\s+(extends)\\s+([a-zA-Z_$][\\w$]*))?\n )\n)", "captures": { "1": { "name": "storage.type.class.js" }, "2": { "name": "storage.modifier.js" }, "3": { "name": "entity.other.inherited-class.js" }, "4": { "name": "entity.name.type.class.js" }, "5": { "name": "storage.modifier.js" }, "6": { "name": "entity.other.inherited-class.js" } } }, { "name": "meta.class.instance.constructor.js", "match": "(new)\\s+([\\w$]+[\\w.$]*)", "captures": { "1": { "name": "keyword.operator.new.js" }, "2": { "name": "entity.name.type.instance.js", "patterns": [ { "name": "meta.delimiter.property.period.js", "match": "\\." } ] } } }, { "begin": "(?\u003c![\\w$])console(?![\\w$]|\\s*:)", "end": "(?x)\n(?\u003c=\\)) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.)\\s*\n (assert|clear|debug|error|info|log|profile|profileEnd|time|timeEnd|warn)\n \\s*\\(\n )) \\s*\\S\n)", "patterns": [ { "include": "#comments" }, { "name": "meta.method-call.js", "begin": "\\s*(\\.)\\s*(\\w+)\\s*(?=\\()", "end": "(?\u003c=\\))", "patterns": [ { "include": "#arguments" } ], "beginCaptures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "name": "support.function.console.js" } } } ], "beginCaptures": { "0": { "name": "entity.name.type.object.console.js" } } }, { "begin": "(?\u003c![\\w$])Math(?![\\w$]|\\s*:)", "end": "(?x)\n(?\u003c=E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2|\\)\n) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*\\.\\s* (\n ((abs|acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|clz32|cos|cosh|exp|\n expm1|floor|fround|hypot|imul|log|log10|log1p|log2|max|min|pow|random|\n round|sign|sin|sinh|sqrt|tan|tanh|trunc)\\s*\\(\n ) | (E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2)(?!\\s*[\\w$(]))\n )) \\s*\\S\n)", "patterns": [ { "include": "#comments" }, { "name": "meta.method-call.js", "begin": "\\s*(\\.)\\s*(\\w+)\\s*(?=\\()", "end": "(?\u003c=\\))", "patterns": [ { "include": "#arguments" } ], "beginCaptures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "name": "support.function.math.js" } } }, { "match": "\\s*(\\.)\\s*(\\w+)\\b", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "support.constant.property.math.js" } } } ], "beginCaptures": { "0": { "name": "support.class.math.js" } } }, { "begin": "(?\u003c![\\w$])Promise(?![\\w$]|\\s*:)", "end": "(?x)\n(?\u003c=\\)) | (?=\n (?! (\\s*//)|(\\s*/\\*)|(\\s*\\.\\s*(all|race|reject|resolve)\\s*\\() )\\s*\\S\n)", "patterns": [ { "include": "#comments" }, { "name": "meta.method-call.js", "begin": "\\s*(\\.)\\s*(\\w+)\\s*(?=\\()", "end": "(?\u003c=\\))", "patterns": [ { "include": "#arguments" } ], "beginCaptures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "name": "support.function.promise.js" } } } ], "beginCaptures": { "0": { "name": "support.class.promise.js" } } }, { "include": "#strings" }, { "include": "#comments" }, { "name": "comment.block.html.js", "match": "(\u003c!--|--\u003e)", "captures": { "0": { "name": "punctuation.definition.comment.html.js" }, "2": { "name": "punctuation.definition.comment.html.js" } } }, { "name": "storage.type.js", "match": "(?\u003c!\\.)\\b(class|enum|function|interface)(?!\\s*:)\\b" }, { "name": "storage.modifier.js", "match": "(?\u003c!\\.)\\b(async|export|extends|implements|private|protected|public|static)(?!\\s*:)\\b" }, { "name": "storage.type.var.js", "match": "(?\u003c!\\.)\\b(let|var)(?!\\s*:)\\b" }, { "begin": "(?\u003c!\\.)\\b(const)(?!\\s*:)\\b", "end": "(\\bof\\b|\\bin\\b)|(;)|(=)|(?\u003c![,{])\\n", "patterns": [ { "match": "([$_a-zA-Z][$_a-zA-Z0-9]*)\\s*(:)\\s*([$_a-zA-Z][$_a-zA-Z0-9]*)?", "captures": { "2": { "name": "keyword.operator.assignment.js" }, "3": { "name": "constant.other.js" } } }, { "match": "([$_a-zA-Z][$_a-zA-Z0-9]*)", "captures": { "1": { "name": "constant.other.js" } } }, { "name": "keyword.operator.spread.js", "match": "\\.\\.\\." }, { "name": "meta.delimiter.object.comma.js", "match": "," }, { "name": "meta.brace.round.js", "match": "\\(|\\)" }, { "name": "meta.brace.curly.js", "match": "{|}" }, { "name": "meta.brace.square.js", "match": "\\[|\\]" }, { "include": "#comments" } ], "beginCaptures": { "1": { "name": "storage.type.const.js" } }, "endCaptures": { "1": { "name": "keyword.operator.$1.js" }, "2": { "name": "punctuation.terminator.statement.js" }, "3": { "name": "keyword.operator.assignment.js" } } }, { "name": "meta.control.yield.js", "match": "(?\u003c!\\.)\\b(yield)(?!\\s*:)\\b(?:\\s*(\\*))?", "captures": { "1": { "name": "keyword.control.js" }, "2": { "name": "storage.modifier.js" } } }, { "name": "keyword.control.js", "match": "(?:(?\u003c=\\.{3})|(?\u003c!\\.))\\b(await)(?!\\s*:)\\b" }, { "name": "keyword.control.js", "match": "(?\u003c!\\.)\\b(break|catch|continue|do|else|finally|for|if|import|package|return|throw|try|while|with)(?!\\s*:)\\b" }, { "include": "#switch_statement" }, { "name": "keyword.operator.$1.js", "match": "(?\u003c!\\.)\\b(delete|in|of|instanceof|new|typeof|void)(?!\\s*:)\\b" }, { "name": "keyword.operator.spread.js", "match": "\\.\\.\\." }, { "name": "constant.language.boolean.$1.js", "match": "(?\u003c!\\.)\\b(true|false)(?!\\s*:)\\b" }, { "name": "constant.language.null.js", "match": "(?\u003c!\\.)\\b(null)(?!\\s*:)\\b" }, { "name": "keyword.other.debugger.js", "match": "(?\u003c!\\.)\\b(debugger)(?!\\s*:)\\b" }, { "name": "support.class.js", "match": "(?x) (?\u003c!\\$) \\b\n(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Error|EvalError|Float32Array|Float64Array|Function|Generator\n|GeneratorFunction|Int16Array|Int32Array|Int8Array|InternalError|Intl|JSON|Map|Number|Object|Proxy\n|RangeError|ReferenceError|Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|SyntaxError|TypeError\n|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|URIError|WeakMap|WeakSet)\n\\b" }, { "match": "(?x) (\\.) \\s* (?:\n (constructor|length|prototype) |\n (EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\n)\\b", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "support.variable.property.js" }, "3": { "name": "support.constant.js" } } }, { "match": "(?x) (?\u003c!\\$) \\b (?:\n (document|event|navigator|performance|screen|window)\n |\n (AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener\n |AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule\n |CSSCounterStyleRule|CSSGroupingRule|CSSMatrix|CSSMediaRule|CSSPageRule|CSSPrimitiveValue|CSSRule|CSSRuleList|CSSStyleDeclaration\n |CSSStyleRule|CSSStyleSheet|CSSSupportsRule|CSSValue|CSSValueList|CanvasGradient|CanvasImageSource|CanvasPattern\n |CanvasRenderingContext2D|ChannelMergerNode|ChannelSplitterNode|CharacterData|ChromeWorker|CloseEvent|Comment|CompositionEvent\n |Console|ConvolverNode|Coordinates|Credential|CredentialsContainer|Crypto|CryptoKey|CustomEvent|DOMError|DOMException\n |DOMHighResTimeStamp|DOMImplementation|DOMString|DOMStringList|DOMStringMap|DOMTimeStamp|DOMTokenList|DataTransfer\n |DataTransferItem|DataTransferItemList|DedicatedWorkerGlobalScope|DelayNode|DeviceProximityEvent|DirectoryEntry\n |DirectoryEntrySync|DirectoryReader|DirectoryReaderSync|Document|DocumentFragment|DocumentTouch|DocumentType|DragEvent\n |DynamicsCompressorNode|Element|Entry|EntrySync|ErrorEvent|Event|EventListener|EventSource|EventTarget|FederatedCredential\n |FetchEvent|File|FileEntry|FileEntrySync|FileException|FileList|FileReader|FileReaderSync|FileSystem|FileSystemSync\n |FontFace|FormData|GainNode|Gamepad|GamepadButton|GamepadEvent|Geolocation|GlobalEventHandlers|HTMLAnchorElement\n |HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement\n |HTMLCollection|HTMLContentElement|HTMLDListElement|HTMLDataElement|HTMLDataListElement|HTMLDialogElement|HTMLDivElement\n |HTMLDocument|HTMLElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormControlsCollection|HTMLFormElement\n |HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLInputElement\n |HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMediaElement\n |HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement\n |HTMLOptionsCollection|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement\n |HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement\n |HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement\n |HTMLTableRowElement|HTMLTableSectionElement|HTMLTextAreaElement|HTMLTimeElement|HTMLTitleElement|HTMLTrackElement\n |HTMLUListElement|HTMLUnknownElement|HTMLVideoElement|HashChangeEvent|History|IDBCursor|IDBCursorWithValue|IDBDatabase\n |IDBEnvironment|IDBFactory|IDBIndex|IDBKeyRange|IDBMutableFile|IDBObjectStore|IDBOpenDBRequest|IDBRequest|IDBTransaction\n |IDBVersionChangeEvent|IIRFilterNode|IdentityManager|ImageBitmap|ImageBitmapFactories|ImageData|Index|InputDeviceCapabilities\n |InputEvent|InstallEvent|InstallTrigger|KeyboardEvent|LinkStyle|LocalFileSystem|LocalFileSystemSync|Location|MIDIAccess\n |MIDIConnectionEvent|MIDIInput|MIDIInputMap|MIDIOutputMap|MediaElementAudioSourceNode|MediaError|MediaKeyMessageEvent\n |MediaKeySession|MediaKeyStatusMap|MediaKeySystemAccess|MediaKeySystemConfiguration|MediaKeys|MediaRecorder|MediaStream\n |MediaStreamAudioDestinationNode|MediaStreamAudioSourceNode|MessageChannel|MessageEvent|MessagePort|MouseEvent\n |MutationObserver|MutationRecord|NamedNodeMap|Navigator|NavigatorConcurrentHardware|NavigatorGeolocation|NavigatorID\n |NavigatorLanguage|NavigatorOnLine|Node|NodeFilter|NodeIterator|NodeList|NonDocumentTypeChildNode|Notification\n |OfflineAudioCompletionEvent|OfflineAudioContext|OscillatorNode|PageTransitionEvent|PannerNode|ParentNode|PasswordCredential\n |Path2D|PaymentAddress|PaymentRequest|PaymentResponse|Performance|PerformanceEntry|PerformanceFrameTiming|PerformanceMark\n |PerformanceMeasure|PerformanceNavigation|PerformanceNavigationTiming|PerformanceObserver|PerformanceObserverEntryList\n |PerformanceResourceTiming|PerformanceTiming|PeriodicSyncEvent|PeriodicWave|Plugin|Point|PointerEvent|PopStateEvent\n |PortCollection|Position|PositionError|PositionOptions|PresentationConnectionClosedEvent|PresentationConnectionList\n |PresentationReceiver|ProcessingInstruction|ProgressEvent|PromiseRejectionEvent|PushEvent|PushRegistrationManager\n |RTCCertificate|RTCConfiguration|RTCPeerConnection|RTCSessionDescriptionCallback|RTCStatsReport|RadioNodeList|RandomSource\n |Range|ReadableByteStream|RenderingContext|SVGAElement|SVGAngle|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement\n |SVGAnimateTransformElement|SVGAnimatedAngle|SVGAnimatedBoolean|SVGAnimatedEnumeration|SVGAnimatedInteger|SVGAnimatedLength\n |SVGAnimatedLengthList|SVGAnimatedNumber|SVGAnimatedNumberList|SVGAnimatedPoints|SVGAnimatedPreserveAspectRatio\n |SVGAnimatedRect|SVGAnimatedString|SVGAnimatedTransformList|SVGAnimationElement|SVGCircleElement|SVGClipPathElement\n |SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGEvent|SVGFilterElement|SVGFontElement\n |SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement\n |SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGradientElement|SVGHKernElement|SVGImageElement|SVGLength\n |SVGLengthList|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMaskElement|SVGMatrix|SVGMissingGlyphElement\n |SVGNumber|SVGNumberList|SVGPathElement|SVGPatternElement|SVGPoint|SVGPolygonElement|SVGPolylineElement|SVGPreserveAspectRatio\n |SVGRadialGradientElement|SVGRect|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStringList\n |SVGStylable|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTests|SVGTextElement\n |SVGTextPositioningElement|SVGTitleElement|SVGTransform|SVGTransformList|SVGTransformable|SVGUseElement|SVGVKernElement\n |SVGViewElement|ServiceWorker|ServiceWorkerContainer|ServiceWorkerGlobalScope|ServiceWorkerRegistration|ServiceWorkerState\n |ShadowRoot|SharedWorker|SharedWorkerGlobalScope|SourceBufferList|StereoPannerNode|Storage|StorageEvent|StyleSheet\n |StyleSheetList|SubtleCrypto|SyncEvent|Text|TextMetrics|TimeEvent|TimeRanges|Touch|TouchEvent|TouchList|Transferable\n |TreeWalker|UIEvent|USVString|VRDisplayCapabilities|ValidityState|WaveShaperNode|WebGL|WebGLActiveInfo|WebGLBuffer\n |WebGLContextEvent|WebGLFramebuffer|WebGLProgram|WebGLRenderbuffer|WebGLRenderingContext|WebGLShader|WebGLShaderPrecisionFormat\n |WebGLTexture|WebGLTimerQueryEXT|WebGLTransformFeedback|WebGLUniformLocation|WebGLVertexArrayObject|WebGLVertexArrayObjectOES\n |WebSocket|WebSockets|WebVTT|WheelEvent|Window|WindowBase64|WindowEventHandlers|WindowTimers|Worker|WorkerGlobalScope\n |WorkerLocation|WorkerNavigator|XMLHttpRequest|XMLHttpRequestEventTarget|XMLSerializer|XPathExpression|XPathResult\n |XSLTProcessor)\n)\\b", "captures": { "1": { "name": "support.variable.dom.js" }, "2": { "name": "support.class.dom.js" } } }, { "match": "(?x) (\\.) \\s*\n(?:\n (ATTRIBUTE_NODE|CDATA_SECTION_NODE|COMMENT_NODE|DOCUMENT_FRAGMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE\n |DOMSTRING_SIZE_ERR|ELEMENT_NODE|ENTITY_NODE|ENTITY_REFERENCE_NODE|HIERARCHY_REQUEST_ERR|INDEX_SIZE_ERR\n |INUSE_ATTRIBUTE_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR\n |NOT_SUPPORTED_ERR|NOTATION_NODE|PROCESSING_INSTRUCTION_NODE|TEXT_NODE|WRONG_DOCUMENT_ERR)\n |\n (_content|[xyz]|abbr|above|accept|acceptCharset|accessKey|action|align|[av]Link(?:color)?|all|alt|anchors|appCodeName\n |appCore|applets|appMinorVersion|appName|appVersion|archive|areas|arguments|attributes|availHeight|availLeft|availTop\n |availWidth|axis|background|backgroundColor|backgroundImage|below|bgColor|body|border|borderBottomWidth|borderColor\n |borderLeftWidth|borderRightWidth|borderStyle|borderTopWidth|borderWidth|bottom|bufferDepth|callee|caller|caption\n |cellPadding|cells|cellSpacing|ch|characterSet|charset|checked|childNodes|chOff|cite|classes|className|clear\n |clientInformation|clip|clipBoardData|closed|code|codeBase|codeType|color|colorDepth|cols|colSpan|compact|complete\n |components|content|controllers|cookie|cookieEnabled|cords|cpuClass|crypto|current|data|dateTime|declare|defaultCharset\n |defaultChecked|defaultSelected|defaultStatus|defaultValue|defaultView|defer|description|dialogArguments|dialogHeight\n |dialogLeft|dialogTop|dialogWidth|dir|directories|disabled|display|docmain|doctype|documentElement|elements|embeds\n |enabledPlugin|encoding|enctype|entities|event|expando|external|face|fgColor|filename|firstChild|fontFamily|fontSize\n |fontWeight|form|formName|forms|frame|frameBorder|frameElement|frames|hasFocus|hash|headers|height|history|host\n |hostname|href|hreflang|hspace|htmlFor|httpEquiv|id|ids|ignoreCase|images|implementation|index|innerHeight|innerWidth\n |input|isMap|label|lang|language|lastChild|lastIndex|lastMatch|lastModified|lastParen|layer[sXY]|left|leftContext\n |lineHeight|link|linkColor|links|listStyleType|localName|location|locationbar|longDesc|lowsrc|lowSrc|marginBottom\n |marginHeight|marginLeft|marginRight|marginTop|marginWidth|maxLength|media|menubar|method|mimeTypes|multiline|multiple\n |name|nameProp|namespaces|namespaceURI|next|nextSibling|nodeName|nodeType|nodeValue|noHref|noResize|noShade|notationName\n |notations|noWrap|object|offscreenBuffering|onLine|onreadystatechange|opener|opsProfile|options|oscpu|outerHeight\n |outerWidth|ownerDocument|paddingBottom|paddingLeft|paddingRight|paddingTop|page[XY]|page[XY]Offset|parent|parentLayer\n |parentNode|parentWindow|pathname|personalbar|pixelDepth|pkcs11|platform|plugins|port|prefix|previous|previousDibling\n |product|productSub|profile|profileend|prompt|prompter|protocol|publicId|readOnly|readyState|referrer|rel|responseText\n |responseXML|rev|right|rightContext|rowIndex|rows|rowSpan|rules|scheme|scope|screen[XY]|screenLeft|screenTop|scripts\n |scrollbars|scrolling|sectionRowIndex|security|securityPolicy|selected|selectedIndex|selection|self|shape|siblingAbove\n |siblingBelow|size|source|specified|standby|start|status|statusbar|statusText|style|styleSheets|suffixes|summary\n |systemId|systemLanguage|tagName|tags|target|tBodies|text|textAlign|textDecoration|textIndent|textTransform|tFoot|tHead\n |title|toolbar|top|type|undefined|uniqueID|updateInterval|URL|URLUnencoded|useMap|userAgent|userLanguage|userProfile\n |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex)\n)\n\\b", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "support.constant.dom.js" }, "3": { "name": "support.variable.property.dom.js" } } }, { "name": "support.variable.js", "match": "(?\u003c!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b" }, { "name": "constant.language.js", "match": "\\b(Infinity|NaN|undefined)\\b" }, { "name": "string.regexp.js", "begin": "(?\u003c=[\\[{=(?:+*,!~-]|^|return|=\u003e|\u0026\u0026|\\|\\|)\\s*(/)(?![/*+?])(?=.*/)", "end": "(/)([gimsuy]*)", "patterns": [ { "include": "source.js.regexp" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.js" }, "2": { "name": "meta.flag.regexp" } } }, { "begin": "\\?", "end": ":", "patterns": [ { "include": "#prevent_object_keys_matching" }, { "include": "$self" } ], "beginCaptures": { "0": { "name": "keyword.operator.ternary.js" } }, "endCaptures": { "0": { "name": "keyword.operator.ternary.js" } } }, { "include": "#operators" }, { "include": "#method_calls" }, { "include": "#function_calls" }, { "include": "#numbers" }, { "include": "#objects" }, { "include": "#properties" }, { "name": "constant.other.js", "match": "((?\u003c!\\.|[\\w$])(?![_\\$]+[^A-Z0-9_$])\\$*\\b(?:[A-Z_$][A-Z0-9_$]*)\\b\\$*)" }, { "name": "invalid.illegal.identifier.js", "match": "(?\u003c!\\$)\\b[0-9]+[\\w$]*" }, { "name": "punctuation.terminator.statement.js", "match": "\\;" }, { "name": "meta.delimiter.object.comma.js", "match": "," }, { "name": "meta.delimiter.method.period.js", "match": "\\." }, { "match": "({)(})", "captures": { "1": { "name": "punctuation.section.scope.begin.js" }, "2": { "name": "punctuation.section.scope.end.js" } } }, { "begin": "{", "end": "}", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "meta.brace.curly.js" } }, "endCaptures": { "0": { "name": "meta.brace.curly.js" } } }, { "begin": "\\(", "end": "\\)", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "meta.brace.round.js" } }, "endCaptures": { "0": { "name": "meta.brace.round.js" } } }, { "name": "meta.brace.square.js", "match": "\\[|\\]" }, { "name": "comment.line.shebang.js", "match": "\\A#!.*$" } ], "repository": { "arguments": { "patterns": [ { "name": "meta.arguments.js", "begin": "\\(", "end": "\\)", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "punctuation.definition.arguments.begin.bracket.round.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.arguments.end.bracket.round.js" } } } ] }, "arrow_function_innards": { "patterns": [ { "name": "storage.type.function.arrow.js", "match": "=\u003e" }, { "include": "#function_params" }, { "match": "([a-zA-Z_$][\\w$]*)(?=\\s*=\u003e)", "captures": { "0": { "name": "meta.parameters.js" }, "1": { "name": "variable.parameter.function.js" } } }, { "match": "(\\d[\\w$]*)", "captures": { "0": { "name": "meta.parameters.js" }, "1": { "name": "invalid.illegal.identifier.js" } } } ] }, "comments": { "patterns": [ { "name": "comment.block.empty.js", "match": "(/\\*)(\\*/)", "captures": { "1": { "name": "punctuation.definition.comment.begin.js" }, "2": { "name": "punctuation.definition.comment.end.js" } } }, { "name": "comment.block.documentation.js", "begin": "/\\*\\*", "end": "\\*/", "patterns": [ { "include": "source.jsdoc" } ], "beginCaptures": { "0": { "name": "punctuation.definition.comment.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.comment.end.js" } } }, { "name": "comment.block.js", "begin": "/\\*", "end": "\\*/", "beginCaptures": { "0": { "name": "punctuation.definition.comment.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.comment.end.js" } } }, { "name": "comment.line.double-slash.js", "begin": "//", "end": "$", "beginCaptures": { "0": { "name": "punctuation.definition.comment.js" } } } ] }, "function_body": { "patterns": [ { "begin": "{", "end": "}", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "punctuation.definition.function.body.begin.bracket.curly.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.function.body.end.bracket.curly.js" } } } ] }, "function_calls": { "patterns": [ { "name": "meta.function-call.js", "begin": "([\\w$]+)\\s*(?=\\()", "end": "(?\u003c=\\))", "patterns": [ { "include": "#arguments" } ], "beginCaptures": { "1": { "patterns": [ { "name": "support.function.js", "match": "(?x)\n\\b(isNaN|isFinite|eval|uneval|parseInt|parseFloat|decodeURI|\ndecodeURIComponent|encodeURI|encodeURIComponent|escape|unescape|\nrequire|set(Interval|Timeout)|clear(Interval|Timeout))\\b" }, { "name": "entity.name.function.js", "match": "[a-zA-Z_$][\\w$]*" }, { "name": "invalid.illegal.identifier.js", "match": "\\d[\\w$]*" } ] } } } ] }, "function_innards": { "patterns": [ { "match": "(?:\\b(async)\\b\\s*)?\\b(function)\\b(?:\\s*(\\*))?", "captures": { "1": { "name": "storage.modifier.async.js" }, "2": { "name": "storage.type.function.js" }, "3": { "name": "storage.modifier.generator.js" } } }, { "name": "entity.name.function.js", "match": "[a-zA-Z_$][\\w$]*(?=\\s*\\()" }, { "include": "#function_params" }, { "include": "#comments" } ] }, "function_params": { "patterns": [ { "name": "meta.parameters.js", "begin": "\\(", "end": "\\)", "patterns": [ { "match": "(\\.\\.\\.)([a-zA-Z_$][\\w$]*)", "captures": { "1": { "name": "keyword.operator.spread.js" }, "2": { "name": "variable.parameter.rest.function.js" } } }, { "include": "$self" }, { "name": "variable.parameter.function.js", "match": "[a-zA-Z_$][\\w$]*" } ], "beginCaptures": { "0": { "name": "punctuation.definition.parameters.begin.bracket.round.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.parameters.end.bracket.round.js" } } } ] }, "interpolated_js": { "patterns": [ { "name": "source.js.embedded.source", "begin": "\\${", "end": "}", "patterns": [ { "begin": "{", "end": "}", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "meta.brace.curly.js" } }, "endCaptures": { "0": { "name": "meta.brace.curly.js" } } }, { "include": "$self" } ], "captures": { "0": { "name": "punctuation.section.embedded.js" } } } ] }, "method_calls": { "patterns": [ { "name": "meta.method-call.js", "begin": "(\\.)\\s*([\\w$]+)\\s*(?=\\()", "end": "(?\u003c=\\))", "patterns": [ { "include": "#arguments" } ], "beginCaptures": { "1": { "name": "meta.delimiter.method.period.js" }, "2": { "patterns": [ { "name": "support.function.event-handler.js", "match": "(?x)\n\\bon(Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|\nReadystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|\nBefore(cut|deactivate|unload|update|paste|print|editfocus|activate)|\nBlur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|\nChange|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|\nDatasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|\nDragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|\nErrorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)\\b" }, { "name": "support.function.js", "match": "(?x)\n\\b(catch|finally|then|shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|\nscrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|\nsup|sub|substr|substring|splice|split|send|set(Milliseconds|Seconds|Minutes|Hours|\nMonth|Year|FullYear|Date|UTC(Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|\nTime|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|\nsavePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|\ncontextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|\ncreateEventObject|to(GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|\ntest|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|\nuntaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|stringify|\nprint|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|\nfileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|\nforward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|\nabort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|\nreleaseCapture|releaseEvents|go|get(Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|\nTime|Date|TimezoneOffset|UTC(Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|\nAttention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|\nmoveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back)\\b" }, { "name": "support.function.dom.js", "match": "(?x)\n\\b(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|\nappendChild|appendData|before|blur|canPlayType|captureStream|\ncaretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|\ncloneContents|cloneNode|cloneRange|close|closest|collapse|\ncompareBoundaryPoints|compareDocumentPosition|comparePoint|contains|\nconvertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|\ncreateAttributeNS|createCaption|createCDATASection|createComment|\ncreateContextualFragment|createDocument|createDocumentFragment|\ncreateDocumentType|createElement|createElementNS|createEntityReference|\ncreateEvent|createExpression|createHTMLDocument|createNodeIterator|\ncreateNSResolver|createProcessingInstruction|createRange|createShadowRoot|\ncreateTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|\ndeleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|\ndeleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|\nenableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|\nexitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|\ngetAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|\ngetAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|\ngetClientRects|getContext|getDestinationInsertionPoints|getElementById|\ngetElementsByClassName|getElementsByName|getElementsByTagName|\ngetElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|\ngetVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|\nhasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|\ninsertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|\ninsertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|\nisPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|\nlookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|\nmoveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|\nparentNode|pause|play|postMessage|prepend|preventDefault|previousNode|\npreviousSibling|probablySupportsContext|queryCommandEnabled|\nqueryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|\nquerySelector|querySelectorAll|registerContentHandler|registerElement|\nregisterProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|\nremoveAttributeNode|removeAttributeNS|removeChild|removeEventListener|\nremoveItem|replace|replaceChild|replaceData|replaceWith|reportValidity|\nrequestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|\nscrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|\nsetAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|\nsetCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|\nsetRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|\nslice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|\nsubmit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|\ntoDataURL|toggle|toString|values|write|writeln)\\b" }, { "name": "entity.name.function.js", "match": "[a-zA-Z_$][\\w$]*" }, { "name": "invalid.illegal.identifier.js", "match": "\\d[\\w$]*" } ] } } } ] }, "numbers": { "patterns": [ { "name": "constant.numeric.hex.js", "match": "\\b(?\u003c!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)" }, { "name": "constant.numeric.binary.js", "match": "\\b(?\u003c!\\$)0(b|B)[01]+\\b(?!\\$)" }, { "name": "constant.numeric.octal.js", "match": "\\b(?\u003c!\\$)0(o|O)?[0-7]+\\b(?!\\$)" }, { "match": "(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)", "captures": { "0": { "name": "constant.numeric.decimal.js" }, "1": { "name": "meta.delimiter.decimal.period.js" }, "2": { "name": "meta.delimiter.decimal.period.js" }, "3": { "name": "meta.delimiter.decimal.period.js" }, "4": { "name": "meta.delimiter.decimal.period.js" }, "5": { "name": "meta.delimiter.decimal.period.js" }, "6": { "name": "meta.delimiter.decimal.period.js" } } } ] }, "objects": { "patterns": [ { "name": "constant.other.object.js", "match": "[A-Z][A-Z0-9_$]*(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)" }, { "name": "variable.other.object.js", "match": "[a-zA-Z_$][\\w$]*(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)" } ] }, "operators": { "patterns": [ { "name": "keyword.operator.assignment.compound.js", "match": "%=|\\+=|-=|\\*=|(?\u003c!\\()/=" }, { "name": "keyword.operator.assignment.compound.bitwise.js", "match": "\u0026=|\\^=|\u003c\u003c=|\u003e\u003e=|\u003e\u003e\u003e=|\\|=" }, { "name": "keyword.operator.bitwise.shift.js", "match": "\u003c\u003c|\u003e\u003e\u003e|\u003e\u003e" }, { "name": "keyword.operator.comparison.js", "match": "!==|!=|\u003c=|\u003e=|===|==|\u003c|\u003e" }, { "name": "keyword.operator.logical.js", "match": "\u0026\u0026|!!|!|\\|\\|" }, { "name": "keyword.operator.bitwise.js", "match": "\u0026|\\||\\^|~" }, { "name": "keyword.operator.assignment.js", "match": "=|:" }, { "name": "keyword.operator.decrement.js", "match": "--" }, { "name": "keyword.operator.increment.js", "match": "\\+\\+" }, { "name": "keyword.operator.js", "match": "%|\\*|/|-|\\+" } ] }, "prevent_object_keys_matching": { "patterns": [ { "match": "(\\w+)(?=\\s*:)", "captures": { "1": { "patterns": [ { "include": "$self" } ] } } } ] }, "properties": { "patterns": [ { "match": "(\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "constant.other.object.property.js" } } }, { "match": "(\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)(?=\\s*\\.\\s*[a-zA-Z_$]\\w*)", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "variable.other.object.property.js" } } }, { "match": "(\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "constant.other.property.js" } } }, { "match": "(\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "variable.other.property.js" } } }, { "match": "(\\.)\\s*([0-9][\\w$]*)", "captures": { "1": { "name": "meta.delimiter.property.period.js" }, "2": { "name": "invalid.illegal.identifier.js" } } } ] }, "string_escapes": { "patterns": [ { "name": "invalid.illegal.unicode-escape.js", "match": "\\\\u(?![A-Fa-f0-9]{4}|{[A-Fa-f0-9]+})[^'\"]*" }, { "name": "constant.character.escape.js", "match": "\\\\u(?:[A-Fa-f0-9]{4}|({)([A-Fa-f0-9]+)(}))", "captures": { "1": { "name": "punctuation.definition.unicode-escape.begin.bracket.curly.js" }, "2": { "patterns": [ { "name": "invalid.illegal.unicode-escape.js", "match": "[A-Fa-f\\d]{7,}|(?!10)[A-Fa-f\\d]{6}" } ] }, "3": { "name": "punctuation.definition.unicode-escape.end.bracket.curly.js" } } }, { "name": "constant.character.escape.js", "match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)" } ] }, "strings": { "patterns": [ { "name": "string.quoted.single.js", "begin": "'", "end": "'", "patterns": [ { "include": "#string_escapes" } ], "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "name": "string.quoted.double.js", "begin": "\"", "end": "\"", "patterns": [ { "include": "#string_escapes" } ], "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "name": "string.quoted.template.html.js", "begin": "((\\w+)?(html|HTML|Html))\\s*(`)", "end": "`", "patterns": [ { "include": "#string_escapes" }, { "include": "#interpolated_js" }, { "include": "text.html.basic" } ], "beginCaptures": { "1": { "name": "entity.name.function.js" }, "4": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "contentName": "string.quoted.template.html.js", "begin": "(?\u003c=innerHTML)\\s*(\\+?=)\\s*(?=`)", "end": "(?\u003c=`)", "patterns": [ { "begin": "`", "end": "`", "patterns": [ { "include": "#string_escapes" }, { "include": "#interpolated_js" }, { "include": "text.html.basic" } ], "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } } ], "beginCaptures": { "1": { "name": "keyword.operator.assignment.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "name": "string.quoted.template.graphql.js", "begin": "(Relay\\.QL|gql)\\s*(`)", "end": "`", "patterns": [ { "include": "#string_escapes" }, { "include": "#interpolated_js" }, { "include": "source.graphql" } ], "beginCaptures": { "1": { "name": "entity.name.function.js" }, "2": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "name": "string.quoted.template.sql.js", "begin": "(sql|SQL|Sql)\\s*(`)", "end": "`", "patterns": [ { "include": "#string_escapes" }, { "include": "#interpolated_js" }, { "include": "source.sql" } ], "beginCaptures": { "1": { "name": "entity.name.function.js" }, "2": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } }, { "name": "string.quoted.template.js", "begin": "`", "end": "`", "patterns": [ { "include": "#string_escapes" }, { "include": "#interpolated_js" } ], "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.js" } } } ] }, "switch_statement": { "patterns": [ { "name": "meta.switch-statement.js", "begin": "\\bswitch\\b", "end": "}", "patterns": [ { "begin": "\\(", "end": "\\)", "patterns": [ { "include": "$self" } ], "beginCaptures": { "0": { "name": "punctuation.definition.switch-expression.begin.bracket.round.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.switch-expression.end.bracket.round.js" } } }, { "begin": "{", "end": "(?=})", "patterns": [ { "begin": "\\bcase\\b", "end": ":", "patterns": [ { "include": "#prevent_object_keys_matching" }, { "include": "$self" } ], "beginCaptures": { "0": { "name": "keyword.control.case.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.section.case-statement.js" } } }, { "match": "(?:^\\s*)?\\b(default)\\b\\s*(:)", "captures": { "1": { "name": "keyword.control.default.js" }, "2": { "name": "punctuation.definition.section.case-statement.js" } } }, { "include": "$self" } ], "beginCaptures": { "0": { "name": "punctuation.definition.section.switch-block.begin.bracket.curly.js" } } } ], "beginCaptures": { "0": { "name": "keyword.control.switch.js" } }, "endCaptures": { "0": { "name": "punctuation.definition.section.switch-block.end.bracket.curly.js" } } } ] } } }