1.max.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. ((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this)["webpackJsonp"] = (typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this)["webpackJsonp"] || []).push([[1],{
  2. /***/ "../../node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js":
  3. /*!******************************************************************************************************!*\
  4. !*** D:/Repos/Babylon.js/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js ***!
  5. \******************************************************************************************************/
  6. /*! exports provided: conf, language */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conf", function() { return conf; });
  11. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "language", function() { return language; });
  12. /* harmony import */ var _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../typescript/typescript.js */ "../../node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js");
  13. /*---------------------------------------------------------------------------------------------
  14. * Copyright (c) Microsoft Corporation. All rights reserved.
  15. * Licensed under the MIT License. See License.txt in the project root for license information.
  16. *--------------------------------------------------------------------------------------------*/
  17. // Allow for running under nodejs/requirejs in tests
  18. var _monaco = (typeof monaco === 'undefined' ? self.monaco : monaco);
  19. var conf = _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["conf"];
  20. var language = {
  21. // Set defaultToken to invalid to see what you do not tokenize yet
  22. defaultToken: 'invalid',
  23. tokenPostfix: '.js',
  24. keywords: [
  25. 'break', 'case', 'catch', 'class', 'continue', 'const',
  26. 'constructor', 'debugger', 'default', 'delete', 'do', 'else',
  27. 'export', 'extends', 'false', 'finally', 'for', 'from', 'function',
  28. 'get', 'if', 'import', 'in', 'instanceof', 'let', 'new', 'null',
  29. 'return', 'set', 'super', 'switch', 'symbol', 'this', 'throw', 'true',
  30. 'try', 'typeof', 'undefined', 'var', 'void', 'while', 'with', 'yield',
  31. 'async', 'await', 'of'
  32. ],
  33. typeKeywords: [],
  34. operators: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].operators,
  35. symbols: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].symbols,
  36. escapes: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].escapes,
  37. digits: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].digits,
  38. octaldigits: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].octaldigits,
  39. binarydigits: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].binarydigits,
  40. hexdigits: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].hexdigits,
  41. regexpctl: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].regexpctl,
  42. regexpesc: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].regexpesc,
  43. tokenizer: _typescript_typescript_js__WEBPACK_IMPORTED_MODULE_0__["language"].tokenizer,
  44. };
  45. /***/ }),
  46. /***/ "../../node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js":
  47. /*!******************************************************************************************************!*\
  48. !*** D:/Repos/Babylon.js/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js ***!
  49. \******************************************************************************************************/
  50. /*! exports provided: conf, language */
  51. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52. "use strict";
  53. __webpack_require__.r(__webpack_exports__);
  54. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conf", function() { return conf; });
  55. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "language", function() { return language; });
  56. /*---------------------------------------------------------------------------------------------
  57. * Copyright (c) Microsoft Corporation. All rights reserved.
  58. * Licensed under the MIT License. See License.txt in the project root for license information.
  59. *--------------------------------------------------------------------------------------------*/
  60. // Allow for running under nodejs/requirejs in tests
  61. var _monaco = (typeof monaco === 'undefined' ? self.monaco : monaco);
  62. var conf = {
  63. wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
  64. comments: {
  65. lineComment: '//',
  66. blockComment: ['/*', '*/']
  67. },
  68. brackets: [
  69. ['{', '}'],
  70. ['[', ']'],
  71. ['(', ')']
  72. ],
  73. onEnterRules: [
  74. {
  75. // e.g. /** | */
  76. beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
  77. afterText: /^\s*\*\/$/,
  78. action: { indentAction: _monaco.languages.IndentAction.IndentOutdent, appendText: ' * ' }
  79. },
  80. {
  81. // e.g. /** ...|
  82. beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
  83. action: { indentAction: _monaco.languages.IndentAction.None, appendText: ' * ' }
  84. },
  85. {
  86. // e.g. * ...|
  87. beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
  88. action: { indentAction: _monaco.languages.IndentAction.None, appendText: '* ' }
  89. },
  90. {
  91. // e.g. */|
  92. beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
  93. action: { indentAction: _monaco.languages.IndentAction.None, removeText: 1 }
  94. }
  95. ],
  96. autoClosingPairs: [
  97. { open: '{', close: '}' },
  98. { open: '[', close: ']' },
  99. { open: '(', close: ')' },
  100. { open: '"', close: '"', notIn: ['string'] },
  101. { open: '\'', close: '\'', notIn: ['string', 'comment'] },
  102. { open: '`', close: '`', notIn: ['string', 'comment'] },
  103. { open: "/**", close: " */", notIn: ["string"] }
  104. ],
  105. folding: {
  106. markers: {
  107. start: new RegExp("^\\s*//\\s*#?region\\b"),
  108. end: new RegExp("^\\s*//\\s*#?endregion\\b")
  109. }
  110. }
  111. };
  112. var language = {
  113. // Set defaultToken to invalid to see what you do not tokenize yet
  114. defaultToken: 'invalid',
  115. tokenPostfix: '.ts',
  116. keywords: [
  117. 'abstract', 'as', 'break', 'case', 'catch', 'class', 'continue', 'const',
  118. 'constructor', 'debugger', 'declare', 'default', 'delete', 'do', 'else',
  119. 'enum', 'export', 'extends', 'false', 'finally', 'for', 'from', 'function',
  120. 'get', 'if', 'implements', 'import', 'in', 'infer', 'instanceof', 'interface',
  121. 'is', 'keyof', 'let', 'module', 'namespace', 'never', 'new', 'null', 'package',
  122. 'private', 'protected', 'public', 'readonly', 'require', 'global', 'return',
  123. 'set', 'static', 'super', 'switch', 'symbol', 'this', 'throw', 'true', 'try',
  124. 'type', 'typeof', 'unique', 'var', 'void', 'while', 'with', 'yield', 'async',
  125. 'await', 'of'
  126. ],
  127. typeKeywords: [
  128. 'any', 'boolean', 'number', 'object', 'string', 'undefined'
  129. ],
  130. operators: [
  131. '<=', '>=', '==', '!=', '===', '!==', '=>', '+', '-', '**',
  132. '*', '/', '%', '++', '--', '<<', '</', '>>', '>>>', '&',
  133. '|', '^', '!', '~', '&&', '||', '??', '?', ':', '=', '+=', '-=',
  134. '*=', '**=', '/=', '%=', '<<=', '>>=', '>>>=', '&=', '|=',
  135. '^=', '@',
  136. ],
  137. // we include these common regular expressions
  138. symbols: /[=><!~?:&|+\-*\/\^%]+/,
  139. escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  140. digits: /\d+(_+\d+)*/,
  141. octaldigits: /[0-7]+(_+[0-7]+)*/,
  142. binarydigits: /[0-1]+(_+[0-1]+)*/,
  143. hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
  144. regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
  145. regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
  146. // The main tokenizer for our languages
  147. tokenizer: {
  148. root: [
  149. [/[{}]/, 'delimiter.bracket'],
  150. { include: 'common' }
  151. ],
  152. common: [
  153. // identifiers and keywords
  154. [/[a-z_$][\w$]*/, {
  155. cases: {
  156. '@typeKeywords': 'keyword',
  157. '@keywords': 'keyword',
  158. '@default': 'identifier'
  159. }
  160. }],
  161. [/[A-Z][\w\$]*/, 'type.identifier'],
  162. // [/[A-Z][\w\$]*/, 'identifier'],
  163. // whitespace
  164. { include: '@whitespace' },
  165. // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
  166. [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, { token: 'regexp', bracket: '@open', next: '@regexp' }],
  167. // delimiters and operators
  168. [/[()\[\]]/, '@brackets'],
  169. [/[<>](?!@symbols)/, '@brackets'],
  170. [/!(?=([^=]|$))/, 'delimiter'],
  171. [/@symbols/, {
  172. cases: {
  173. '@operators': 'delimiter',
  174. '@default': ''
  175. }
  176. }],
  177. // numbers
  178. [/(@digits)[eE]([\-+]?(@digits))?/, 'number.float'],
  179. [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, 'number.float'],
  180. [/0[xX](@hexdigits)n?/, 'number.hex'],
  181. [/0[oO]?(@octaldigits)n?/, 'number.octal'],
  182. [/0[bB](@binarydigits)n?/, 'number.binary'],
  183. [/(@digits)n?/, 'number'],
  184. // delimiter: after number because of .\d floats
  185. [/[;,.]/, 'delimiter'],
  186. // strings
  187. [/"([^"\\]|\\.)*$/, 'string.invalid'],
  188. [/'([^'\\]|\\.)*$/, 'string.invalid'],
  189. [/"/, 'string', '@string_double'],
  190. [/'/, 'string', '@string_single'],
  191. [/`/, 'string', '@string_backtick'],
  192. ],
  193. whitespace: [
  194. [/[ \t\r\n]+/, ''],
  195. [/\/\*\*(?!\/)/, 'comment.doc', '@jsdoc'],
  196. [/\/\*/, 'comment', '@comment'],
  197. [/\/\/.*$/, 'comment'],
  198. ],
  199. comment: [
  200. [/[^\/*]+/, 'comment'],
  201. [/\*\//, 'comment', '@pop'],
  202. [/[\/*]/, 'comment']
  203. ],
  204. jsdoc: [
  205. [/[^\/*]+/, 'comment.doc'],
  206. [/\*\//, 'comment.doc', '@pop'],
  207. [/[\/*]/, 'comment.doc']
  208. ],
  209. // We match regular expression quite precisely
  210. regexp: [
  211. [/(\{)(\d+(?:,\d*)?)(\})/, ['regexp.escape.control', 'regexp.escape.control', 'regexp.escape.control']],
  212. [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ['regexp.escape.control', { token: 'regexp.escape.control', next: '@regexrange' }]],
  213. [/(\()(\?:|\?=|\?!)/, ['regexp.escape.control', 'regexp.escape.control']],
  214. [/[()]/, 'regexp.escape.control'],
  215. [/@regexpctl/, 'regexp.escape.control'],
  216. [/[^\\\/]/, 'regexp'],
  217. [/@regexpesc/, 'regexp.escape'],
  218. [/\\\./, 'regexp.invalid'],
  219. [/(\/)([gimsuy]*)/, [{ token: 'regexp', bracket: '@close', next: '@pop' }, 'keyword.other']],
  220. ],
  221. regexrange: [
  222. [/-/, 'regexp.escape.control'],
  223. [/\^/, 'regexp.invalid'],
  224. [/@regexpesc/, 'regexp.escape'],
  225. [/[^\]]/, 'regexp'],
  226. [/\]/, { token: 'regexp.escape.control', next: '@pop', bracket: '@close' }]
  227. ],
  228. string_double: [
  229. [/[^\\"]+/, 'string'],
  230. [/@escapes/, 'string.escape'],
  231. [/\\./, 'string.escape.invalid'],
  232. [/"/, 'string', '@pop']
  233. ],
  234. string_single: [
  235. [/[^\\']+/, 'string'],
  236. [/@escapes/, 'string.escape'],
  237. [/\\./, 'string.escape.invalid'],
  238. [/'/, 'string', '@pop']
  239. ],
  240. string_backtick: [
  241. [/\$\{/, { token: 'delimiter.bracket', next: '@bracketCounting' }],
  242. [/[^\\`$]+/, 'string'],
  243. [/@escapes/, 'string.escape'],
  244. [/\\./, 'string.escape.invalid'],
  245. [/`/, 'string', '@pop']
  246. ],
  247. bracketCounting: [
  248. [/\{/, 'delimiter.bracket', '@bracketCounting'],
  249. [/\}/, 'delimiter.bracket', '@pop'],
  250. { include: 'common' }
  251. ],
  252. },
  253. };
  254. /***/ })
  255. }]);
  256. //# sourceMappingURL=1.max.js.map