78 lines
1.6 KiB
JavaScript
78 lines
1.6 KiB
JavaScript
/*!-----------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
|
* Released under the MIT license
|
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
*-----------------------------------------------------------------------------*/
|
|
|
|
// src/basic-languages/javascript/javascript.ts
|
|
import { conf as tsConf, language as tsLanguage } from "../typescript/typescript.js";
|
|
var conf = tsConf;
|
|
var language = {
|
|
defaultToken: "invalid",
|
|
tokenPostfix: ".js",
|
|
keywords: [
|
|
"break",
|
|
"case",
|
|
"catch",
|
|
"class",
|
|
"continue",
|
|
"const",
|
|
"constructor",
|
|
"debugger",
|
|
"default",
|
|
"delete",
|
|
"do",
|
|
"else",
|
|
"export",
|
|
"extends",
|
|
"false",
|
|
"finally",
|
|
"for",
|
|
"from",
|
|
"function",
|
|
"get",
|
|
"if",
|
|
"import",
|
|
"in",
|
|
"instanceof",
|
|
"let",
|
|
"new",
|
|
"null",
|
|
"return",
|
|
"set",
|
|
"super",
|
|
"switch",
|
|
"symbol",
|
|
"this",
|
|
"throw",
|
|
"true",
|
|
"try",
|
|
"typeof",
|
|
"undefined",
|
|
"var",
|
|
"void",
|
|
"while",
|
|
"with",
|
|
"yield",
|
|
"async",
|
|
"await",
|
|
"of"
|
|
],
|
|
typeKeywords: [],
|
|
operators: tsLanguage.operators,
|
|
symbols: tsLanguage.symbols,
|
|
escapes: tsLanguage.escapes,
|
|
digits: tsLanguage.digits,
|
|
octaldigits: tsLanguage.octaldigits,
|
|
binarydigits: tsLanguage.binarydigits,
|
|
hexdigits: tsLanguage.hexdigits,
|
|
regexpctl: tsLanguage.regexpctl,
|
|
regexpesc: tsLanguage.regexpesc,
|
|
tokenizer: tsLanguage.tokenizer
|
|
};
|
|
export {
|
|
conf,
|
|
language
|
|
};
|