javascript.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. import { conf as tsConf, language as tsLanguage } from '../typescript/typescript.js';
  6. export var conf = tsConf;
  7. export var language = {
  8. // Set defaultToken to invalid to see what you do not tokenize yet
  9. defaultToken: 'invalid',
  10. tokenPostfix: '.js',
  11. keywords: [
  12. 'break',
  13. 'case',
  14. 'catch',
  15. 'class',
  16. 'continue',
  17. 'const',
  18. 'constructor',
  19. 'debugger',
  20. 'default',
  21. 'delete',
  22. 'do',
  23. 'else',
  24. 'export',
  25. 'extends',
  26. 'false',
  27. 'finally',
  28. 'for',
  29. 'from',
  30. 'function',
  31. 'get',
  32. 'if',
  33. 'import',
  34. 'in',
  35. 'instanceof',
  36. 'let',
  37. 'new',
  38. 'null',
  39. 'return',
  40. 'set',
  41. 'super',
  42. 'switch',
  43. 'symbol',
  44. 'this',
  45. 'throw',
  46. 'true',
  47. 'try',
  48. 'typeof',
  49. 'undefined',
  50. 'var',
  51. 'void',
  52. 'while',
  53. 'with',
  54. 'yield',
  55. 'async',
  56. 'await',
  57. 'of'
  58. ],
  59. typeKeywords: [],
  60. operators: tsLanguage.operators,
  61. symbols: tsLanguage.symbols,
  62. escapes: tsLanguage.escapes,
  63. digits: tsLanguage.digits,
  64. octaldigits: tsLanguage.octaldigits,
  65. binarydigits: tsLanguage.binarydigits,
  66. hexdigits: tsLanguage.hexdigits,
  67. regexpctl: tsLanguage.regexpctl,
  68. regexpesc: tsLanguage.regexpesc,
  69. tokenizer: tsLanguage.tokenizer
  70. };