javascript.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*!-----------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
  4. * Released under the MIT license
  5. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  6. *-----------------------------------------------------------------------------*/
  7. // src/basic-languages/javascript/javascript.ts
  8. import { conf as tsConf, language as tsLanguage } from "../typescript/typescript.js";
  9. var conf = tsConf;
  10. var language = {
  11. defaultToken: "invalid",
  12. tokenPostfix: ".js",
  13. keywords: [
  14. "break",
  15. "case",
  16. "catch",
  17. "class",
  18. "continue",
  19. "const",
  20. "constructor",
  21. "debugger",
  22. "default",
  23. "delete",
  24. "do",
  25. "else",
  26. "export",
  27. "extends",
  28. "false",
  29. "finally",
  30. "for",
  31. "from",
  32. "function",
  33. "get",
  34. "if",
  35. "import",
  36. "in",
  37. "instanceof",
  38. "let",
  39. "new",
  40. "null",
  41. "return",
  42. "set",
  43. "super",
  44. "switch",
  45. "symbol",
  46. "this",
  47. "throw",
  48. "true",
  49. "try",
  50. "typeof",
  51. "undefined",
  52. "var",
  53. "void",
  54. "while",
  55. "with",
  56. "yield",
  57. "async",
  58. "await",
  59. "of"
  60. ],
  61. typeKeywords: [],
  62. operators: tsLanguage.operators,
  63. symbols: tsLanguage.symbols,
  64. escapes: tsLanguage.escapes,
  65. digits: tsLanguage.digits,
  66. octaldigits: tsLanguage.octaldigits,
  67. binarydigits: tsLanguage.binarydigits,
  68. hexdigits: tsLanguage.hexdigits,
  69. regexpctl: tsLanguage.regexpctl,
  70. regexpesc: tsLanguage.regexpesc,
  71. tokenizer: tsLanguage.tokenizer
  72. };
  73. export {
  74. conf,
  75. language
  76. };