@openui5/sap.ui.codeeditor 1.120.6 → 1.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (457) hide show
  1. package/.reuse/dep5 +23 -21
  2. package/THIRDPARTY.txt +6 -43
  3. package/package.json +2 -2
  4. package/src/sap/ui/codeeditor/.library +2 -2
  5. package/src/sap/ui/codeeditor/CodeEditor.js +41 -27
  6. package/src/sap/ui/codeeditor/js/ace/ace.js +16262 -16597
  7. package/src/sap/ui/codeeditor/js/ace/css/ace.css +358 -86
  8. package/src/sap/ui/codeeditor/js/ace/css/ambiance-3.png +0 -0
  9. package/src/sap/ui/codeeditor/js/ace/css/chrome-2.png +0 -0
  10. package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-1.png +0 -0
  11. package/src/sap/ui/codeeditor/js/ace/css/cloud9_day-2.png +0 -0
  12. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-1.png +0 -0
  13. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night-2.png +0 -0
  14. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-1.png +0 -0
  15. package/src/sap/ui/codeeditor/js/ace/css/cloud9_night_low_color-2.png +0 -0
  16. package/src/sap/ui/codeeditor/js/ace/css/clouds-2.png +0 -0
  17. package/src/sap/ui/codeeditor/js/ace/css/clouds_midnight-2.png +0 -0
  18. package/src/sap/ui/codeeditor/js/ace/css/cobalt-2.png +0 -0
  19. package/src/sap/ui/codeeditor/js/ace/css/crimson_editor-2.png +0 -0
  20. package/src/sap/ui/codeeditor/js/ace/css/dawn-2.png +0 -0
  21. package/src/sap/ui/codeeditor/js/ace/css/dracula-2.png +0 -0
  22. package/src/sap/ui/codeeditor/js/ace/css/dreamweaver-2.png +0 -0
  23. package/src/sap/ui/codeeditor/js/ace/css/eclipse-2.png +0 -0
  24. package/src/sap/ui/codeeditor/js/ace/css/github-2.png +0 -0
  25. package/src/sap/ui/codeeditor/js/ace/css/github_dark-1.png +0 -0
  26. package/src/sap/ui/codeeditor/js/ace/css/github_dark-2.png +0 -0
  27. package/src/sap/ui/codeeditor/js/ace/css/gob-2.png +0 -0
  28. package/src/sap/ui/codeeditor/js/ace/css/gruvbox-2.png +0 -0
  29. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_dark_hard-1.png +0 -0
  30. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-1.png +0 -0
  31. package/src/sap/ui/codeeditor/js/ace/css/gruvbox_light_hard-2.png +0 -0
  32. package/src/sap/ui/codeeditor/js/ace/css/idle_fingers-2.png +0 -0
  33. package/src/sap/ui/codeeditor/js/ace/css/iplastic-3.png +0 -0
  34. package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-1.png +0 -0
  35. package/src/sap/ui/codeeditor/js/ace/css/katzenmilch-2.png +0 -0
  36. package/src/sap/ui/codeeditor/js/ace/css/kr_theme-2.png +0 -0
  37. package/src/sap/ui/codeeditor/js/ace/css/kuroir-1.png +0 -0
  38. package/src/sap/ui/codeeditor/js/ace/css/kuroir-2.png +0 -0
  39. package/src/sap/ui/codeeditor/js/ace/css/main-10.png +0 -0
  40. package/src/sap/ui/codeeditor/js/ace/css/main-11.png +0 -0
  41. package/src/sap/ui/codeeditor/js/ace/css/main-12.png +0 -0
  42. package/src/sap/ui/codeeditor/js/ace/css/main-13.png +0 -0
  43. package/src/sap/ui/codeeditor/js/ace/css/main-14.png +0 -0
  44. package/src/sap/ui/codeeditor/js/ace/css/main-15.png +0 -0
  45. package/src/sap/ui/codeeditor/js/ace/css/main-16.png +0 -0
  46. package/src/sap/ui/codeeditor/js/ace/css/main-17.png +0 -0
  47. package/src/sap/ui/codeeditor/js/ace/css/main-18.png +0 -0
  48. package/src/sap/ui/codeeditor/js/ace/css/main-19.png +0 -0
  49. package/src/sap/ui/codeeditor/js/ace/css/main-20.png +0 -0
  50. package/src/sap/ui/codeeditor/js/ace/css/main-21.png +0 -0
  51. package/src/sap/ui/codeeditor/js/ace/css/main-22.png +0 -0
  52. package/src/sap/ui/codeeditor/js/ace/css/main-22.svg +1 -0
  53. package/src/sap/ui/codeeditor/js/ace/css/main-23.png +0 -0
  54. package/src/sap/ui/codeeditor/js/ace/css/main-5.svg +7 -0
  55. package/src/sap/ui/codeeditor/js/ace/css/main-6.svg +7 -0
  56. package/src/sap/ui/codeeditor/js/ace/css/main-7.svg +9 -0
  57. package/src/sap/ui/codeeditor/js/ace/css/main-8.png +0 -0
  58. package/src/sap/ui/codeeditor/js/ace/css/main-8.svg +4 -0
  59. package/src/sap/ui/codeeditor/js/ace/css/main-9.png +0 -0
  60. package/src/sap/ui/codeeditor/js/ace/css/main-9.svg +4 -0
  61. package/src/sap/ui/codeeditor/js/ace/css/merbivore-2.png +0 -0
  62. package/src/sap/ui/codeeditor/js/ace/css/merbivore_soft-2.png +0 -0
  63. package/src/sap/ui/codeeditor/js/ace/css/mono_industrial-2.png +0 -0
  64. package/src/sap/ui/codeeditor/js/ace/css/monokai-2.png +0 -0
  65. package/src/sap/ui/codeeditor/js/ace/css/one_dark-2.png +0 -0
  66. package/src/sap/ui/codeeditor/js/ace/css/pastel_on_dark-2.png +0 -0
  67. package/src/sap/ui/codeeditor/js/ace/css/solarized_dark-2.png +0 -0
  68. package/src/sap/ui/codeeditor/js/ace/css/solarized_light-2.png +0 -0
  69. package/src/sap/ui/codeeditor/js/ace/css/sqlserver-2.png +0 -0
  70. package/src/sap/ui/codeeditor/js/ace/css/terminal-2.png +0 -0
  71. package/src/sap/ui/codeeditor/js/ace/css/textmate-2.png +0 -0
  72. package/src/sap/ui/codeeditor/js/ace/css/theme/ambiance.css +120 -68
  73. package/src/sap/ui/codeeditor/js/ace/css/theme/chaos.css +79 -66
  74. package/src/sap/ui/codeeditor/js/ace/css/theme/chrome.css +82 -43
  75. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_day.css +160 -0
  76. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night.css +146 -0
  77. package/src/sap/ui/codeeditor/js/ace/css/theme/cloud9_night_low_color.css +134 -0
  78. package/src/sap/ui/codeeditor/js/ace/css/theme/clouds.css +59 -31
  79. package/src/sap/ui/codeeditor/js/ace/css/theme/clouds_midnight.css +60 -32
  80. package/src/sap/ui/codeeditor/js/ace/css/theme/cobalt.css +71 -38
  81. package/src/sap/ui/codeeditor/js/ace/css/theme/crimson_editor.css +79 -42
  82. package/src/sap/ui/codeeditor/js/ace/css/theme/dawn.css +70 -40
  83. package/src/sap/ui/codeeditor/js/ace/css/theme/dracula.css +95 -49
  84. package/src/sap/ui/codeeditor/js/ace/css/theme/dreamweaver.css +95 -49
  85. package/src/sap/ui/codeeditor/js/ace/css/theme/eclipse.css +62 -33
  86. package/src/sap/ui/codeeditor/js/ace/css/theme/github.css +71 -38
  87. package/src/sap/ui/codeeditor/js/ace/css/theme/github_dark.css +134 -0
  88. package/src/sap/ui/codeeditor/js/ace/css/theme/gob.css +68 -38
  89. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox.css +54 -28
  90. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_dark_hard.css +163 -0
  91. package/src/sap/ui/codeeditor/js/ace/css/theme/gruvbox_light_hard.css +167 -0
  92. package/src/sap/ui/codeeditor/js/ace/css/theme/idle_fingers.css +62 -34
  93. package/src/sap/ui/codeeditor/js/ace/css/theme/iplastic.css +76 -45
  94. package/src/sap/ui/codeeditor/js/ace/css/theme/katzenmilch.css +91 -53
  95. package/src/sap/ui/codeeditor/js/ace/css/theme/kr_theme.css +67 -36
  96. package/src/sap/ui/codeeditor/js/ace/css/theme/kuroir.css +43 -17
  97. package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore.css +57 -31
  98. package/src/sap/ui/codeeditor/js/ace/css/theme/merbivore_soft.css +57 -31
  99. package/src/sap/ui/codeeditor/js/ace/css/theme/mono_industrial.css +66 -36
  100. package/src/sap/ui/codeeditor/js/ace/css/theme/monokai.css +63 -35
  101. package/src/sap/ui/codeeditor/js/ace/css/theme/nord_dark.css +55 -29
  102. package/src/sap/ui/codeeditor/js/ace/css/theme/one_dark.css +88 -47
  103. package/src/sap/ui/codeeditor/js/ace/css/theme/pastel_on_dark.css +70 -38
  104. package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_dark.css +52 -28
  105. package/src/sap/ui/codeeditor/js/ace/css/theme/solarized_light.css +55 -29
  106. package/src/sap/ui/codeeditor/js/ace/css/theme/sqlserver.css +90 -48
  107. package/src/sap/ui/codeeditor/js/ace/css/theme/terminal.css +64 -34
  108. package/src/sap/ui/codeeditor/js/ace/css/theme/textmate.css +82 -43
  109. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow.css +61 -33
  110. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night.css +61 -33
  111. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_blue.css +59 -32
  112. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_bright.css +71 -40
  113. package/src/sap/ui/codeeditor/js/ace/css/theme/tomorrow_night_eighties.css +61 -33
  114. package/src/sap/ui/codeeditor/js/ace/css/theme/twilight.css +66 -36
  115. package/src/sap/ui/codeeditor/js/ace/css/theme/vibrant_ink.css +59 -32
  116. package/src/sap/ui/codeeditor/js/ace/css/theme/xcode.css +54 -28
  117. package/src/sap/ui/codeeditor/js/ace/css/tomorrow-2.png +0 -0
  118. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night-2.png +0 -0
  119. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_blue-2.png +0 -0
  120. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_bright-2.png +0 -0
  121. package/src/sap/ui/codeeditor/js/ace/css/tomorrow_night_eighties-2.png +0 -0
  122. package/src/sap/ui/codeeditor/js/ace/css/twilight-2.png +0 -0
  123. package/src/sap/ui/codeeditor/js/ace/css/vibrant_ink-2.png +0 -0
  124. package/src/sap/ui/codeeditor/js/ace/css/xcode-2.png +0 -0
  125. package/src/sap/ui/codeeditor/js/ace/ext-beautify.js +90 -91
  126. package/src/sap/ui/codeeditor/js/ace/ext-code_lens.js +39 -75
  127. package/src/sap/ui/codeeditor/js/ace/ext-command_bar.js +457 -0
  128. package/src/sap/ui/codeeditor/js/ace/ext-elastic_tabstops_lite.js +47 -97
  129. package/src/sap/ui/codeeditor/js/ace/ext-emmet.js +496 -552
  130. package/src/sap/ui/codeeditor/js/ace/ext-hardwrap.js +47 -16
  131. package/src/sap/ui/codeeditor/js/ace/ext-inline_autocomplete.js +3269 -0
  132. package/src/sap/ui/codeeditor/js/ace/ext-keybinding_menu.js +45 -105
  133. package/src/sap/ui/codeeditor/js/ace/ext-language_tools.js +1438 -1128
  134. package/src/sap/ui/codeeditor/js/ace/ext-linking.js +8 -16
  135. package/src/sap/ui/codeeditor/js/ace/ext-modelist.js +198 -185
  136. package/src/sap/ui/codeeditor/js/ace/ext-options.js +405 -443
  137. package/src/sap/ui/codeeditor/js/ace/ext-prompt.js +1682 -1508
  138. package/src/sap/ui/codeeditor/js/ace/ext-rtl.js +26 -28
  139. package/src/sap/ui/codeeditor/js/ace/ext-searchbox.js +160 -332
  140. package/src/sap/ui/codeeditor/js/ace/ext-settings_menu.js +409 -446
  141. package/src/sap/ui/codeeditor/js/ace/ext-simple_tokenizer.js +45 -0
  142. package/src/sap/ui/codeeditor/js/ace/ext-spellcheck.js +4 -10
  143. package/src/sap/ui/codeeditor/js/ace/ext-split.js +41 -63
  144. package/src/sap/ui/codeeditor/js/ace/ext-statusbar.js +19 -27
  145. package/src/sap/ui/codeeditor/js/ace/ext-themelist.js +45 -41
  146. package/src/sap/ui/codeeditor/js/ace/ext-whitespace.js +62 -83
  147. package/src/sap/ui/codeeditor/js/ace/keybinding-emacs.js +442 -551
  148. package/src/sap/ui/codeeditor/js/ace/keybinding-sublime.js +338 -351
  149. package/src/sap/ui/codeeditor/js/ace/keybinding-vim.js +5242 -4758
  150. package/src/sap/ui/codeeditor/js/ace/keybinding-vscode.js +228 -235
  151. package/src/sap/ui/codeeditor/js/ace/mode-abap.js +72 -93
  152. package/src/sap/ui/codeeditor/js/ace/mode-abc.js +136 -164
  153. package/src/sap/ui/codeeditor/js/ace/mode-actionscript.js +109 -150
  154. package/src/sap/ui/codeeditor/js/ace/mode-ada.js +45 -74
  155. package/src/sap/ui/codeeditor/js/ace/mode-alda.js +77 -109
  156. package/src/sap/ui/codeeditor/js/ace/mode-apache_conf.js +196 -241
  157. package/src/sap/ui/codeeditor/js/ace/mode-apex.js +192 -247
  158. package/src/sap/ui/codeeditor/js/ace/mode-applescript.js +56 -102
  159. package/src/sap/ui/codeeditor/js/ace/mode-aql.js +85 -95
  160. package/src/sap/ui/codeeditor/js/ace/mode-asciidoc.js +120 -158
  161. package/src/sap/ui/codeeditor/js/ace/mode-asl.js +233 -298
  162. package/src/sap/ui/codeeditor/js/ace/mode-assembly_x86.js +78 -101
  163. package/src/sap/ui/codeeditor/js/ace/mode-astro.js +2414 -0
  164. package/src/sap/ui/codeeditor/js/ace/mode-autohotkey.js +80 -116
  165. package/src/sap/ui/codeeditor/js/ace/mode-batchfile.js +74 -105
  166. package/src/sap/ui/codeeditor/js/ace/mode-bibtex.js +318 -0
  167. package/src/sap/ui/codeeditor/js/ace/mode-c9search.js +72 -115
  168. package/src/sap/ui/codeeditor/js/ace/mode-c_cpp.js +171 -257
  169. package/src/sap/ui/codeeditor/js/ace/mode-cirru.js +97 -115
  170. package/src/sap/ui/codeeditor/js/ace/mode-clojure.js +126 -119
  171. package/src/sap/ui/codeeditor/js/ace/mode-cobol.js +48 -67
  172. package/src/sap/ui/codeeditor/js/ace/mode-coffee.js +203 -268
  173. package/src/sap/ui/codeeditor/js/ace/mode-coldfusion.js +1029 -1276
  174. package/src/sap/ui/codeeditor/js/ace/mode-crystal.js +337 -393
  175. package/src/sap/ui/codeeditor/js/ace/mode-csharp.js +127 -216
  176. package/src/sap/ui/codeeditor/js/ace/mode-csound_document.js +1539 -1569
  177. package/src/sap/ui/codeeditor/js/ace/mode-csound_orchestra.js +786 -898
  178. package/src/sap/ui/codeeditor/js/ace/mode-csound_score.js +184 -237
  179. package/src/sap/ui/codeeditor/js/ace/mode-csp.js +37 -37
  180. package/src/sap/ui/codeeditor/js/ace/mode-css.js +293 -384
  181. package/src/sap/ui/codeeditor/js/ace/mode-curly.js +1019 -1262
  182. package/src/sap/ui/codeeditor/js/ace/mode-cuttlefish.js +56 -0
  183. package/src/sap/ui/codeeditor/js/ace/mode-d.js +163 -233
  184. package/src/sap/ui/codeeditor/js/ace/mode-dart.js +330 -427
  185. package/src/sap/ui/codeeditor/js/ace/mode-diff.js +20 -38
  186. package/src/sap/ui/codeeditor/js/ace/mode-django.js +1032 -1271
  187. package/src/sap/ui/codeeditor/js/ace/mode-dockerfile.js +211 -284
  188. package/src/sap/ui/codeeditor/js/ace/mode-dot.js +131 -200
  189. package/src/sap/ui/codeeditor/js/ace/mode-drools.js +408 -349
  190. package/src/sap/ui/codeeditor/js/ace/mode-edifact.js +89 -125
  191. package/src/sap/ui/codeeditor/js/ace/mode-eiffel.js +47 -62
  192. package/src/sap/ui/codeeditor/js/ace/mode-ejs.js +1350 -1666
  193. package/src/sap/ui/codeeditor/js/ace/mode-elixir.js +349 -407
  194. package/src/sap/ui/codeeditor/js/ace/mode-elm.js +136 -168
  195. package/src/sap/ui/codeeditor/js/ace/mode-erlang.js +707 -881
  196. package/src/sap/ui/codeeditor/js/ace/mode-flix.js +164 -0
  197. package/src/sap/ui/codeeditor/js/ace/mode-forth.js +128 -172
  198. package/src/sap/ui/codeeditor/js/ace/mode-fortran.js +177 -246
  199. package/src/sap/ui/codeeditor/js/ace/mode-fsharp.js +92 -131
  200. package/src/sap/ui/codeeditor/js/ace/mode-fsl.js +91 -124
  201. package/src/sap/ui/codeeditor/js/ace/mode-ftl.js +813 -748
  202. package/src/sap/ui/codeeditor/js/ace/mode-gcode.js +52 -71
  203. package/src/sap/ui/codeeditor/js/ace/mode-gherkin.js +105 -119
  204. package/src/sap/ui/codeeditor/js/ace/mode-gitignore.js +12 -22
  205. package/src/sap/ui/codeeditor/js/ace/mode-glsl.js +184 -289
  206. package/src/sap/ui/codeeditor/js/ace/mode-gobstones.js +686 -623
  207. package/src/sap/ui/codeeditor/js/ace/mode-golang.js +167 -239
  208. package/src/sap/ui/codeeditor/js/ace/mode-graphqlschema.js +48 -88
  209. package/src/sap/ui/codeeditor/js/ace/mode-groovy.js +577 -471
  210. package/src/sap/ui/codeeditor/js/ace/mode-haml.js +1062 -1026
  211. package/src/sap/ui/codeeditor/js/ace/mode-handlebars.js +1061 -1305
  212. package/src/sap/ui/codeeditor/js/ace/mode-haskell.js +199 -255
  213. package/src/sap/ui/codeeditor/js/ace/mode-haskell_cabal.js +81 -87
  214. package/src/sap/ui/codeeditor/js/ace/mode-haxe.js +111 -184
  215. package/src/sap/ui/codeeditor/js/ace/mode-hjson.js +164 -199
  216. package/src/sap/ui/codeeditor/js/ace/mode-html.js +1009 -1239
  217. package/src/sap/ui/codeeditor/js/ace/mode-html_elixir.js +1402 -1705
  218. package/src/sap/ui/codeeditor/js/ace/mode-html_ruby.js +1390 -1706
  219. package/src/sap/ui/codeeditor/js/ace/mode-ini.js +58 -82
  220. package/src/sap/ui/codeeditor/js/ace/mode-io.js +85 -123
  221. package/src/sap/ui/codeeditor/js/ace/mode-ion.js +477 -0
  222. package/src/sap/ui/codeeditor/js/ace/mode-jack.js +109 -162
  223. package/src/sap/ui/codeeditor/js/ace/mode-jade.js +1339 -1344
  224. package/src/sap/ui/codeeditor/js/ace/mode-java.js +710 -498
  225. package/src/sap/ui/codeeditor/js/ace/mode-javascript.js +441 -354
  226. package/src/sap/ui/codeeditor/js/ace/mode-jexl.js +270 -0
  227. package/src/sap/ui/codeeditor/js/ace/mode-json.js +93 -147
  228. package/src/sap/ui/codeeditor/js/ace/mode-json5.js +128 -180
  229. package/src/sap/ui/codeeditor/js/ace/mode-jsoniq.js +58 -112
  230. package/src/sap/ui/codeeditor/js/ace/mode-jsp.js +1045 -865
  231. package/src/sap/ui/codeeditor/js/ace/mode-jssm.js +158 -190
  232. package/src/sap/ui/codeeditor/js/ace/mode-jsx.js +121 -194
  233. package/src/sap/ui/codeeditor/js/ace/mode-julia.js +128 -177
  234. package/src/sap/ui/codeeditor/js/ace/mode-kotlin.js +262 -614
  235. package/src/sap/ui/codeeditor/js/ace/mode-latex.js +94 -138
  236. package/src/sap/ui/codeeditor/js/ace/mode-latte.js +1120 -1366
  237. package/src/sap/ui/codeeditor/js/ace/mode-less.js +342 -442
  238. package/src/sap/ui/codeeditor/js/ace/mode-liquid.js +1353 -1414
  239. package/src/sap/ui/codeeditor/js/ace/mode-lisp.js +65 -73
  240. package/src/sap/ui/codeeditor/js/ace/mode-livescript.js +217 -224
  241. package/src/sap/ui/codeeditor/js/ace/mode-logiql.js +97 -142
  242. package/src/sap/ui/codeeditor/js/ace/mode-logtalk.js +187 -227
  243. package/src/sap/ui/codeeditor/js/ace/mode-lsl.js +99 -155
  244. package/src/sap/ui/codeeditor/js/ace/mode-lua.js +152 -211
  245. package/src/sap/ui/codeeditor/js/ace/mode-luapage.js +1167 -1470
  246. package/src/sap/ui/codeeditor/js/ace/mode-lucene.js +25 -34
  247. package/src/sap/ui/codeeditor/js/ace/mode-makefile.js +244 -282
  248. package/src/sap/ui/codeeditor/js/ace/mode-markdown.js +1858 -2177
  249. package/src/sap/ui/codeeditor/js/ace/mode-mask.js +964 -1007
  250. package/src/sap/ui/codeeditor/js/ace/mode-matlab.js +197 -221
  251. package/src/sap/ui/codeeditor/js/ace/mode-maze.js +127 -163
  252. package/src/sap/ui/codeeditor/js/ace/mode-mediawiki.js +464 -476
  253. package/src/sap/ui/codeeditor/js/ace/mode-mel.js +90 -140
  254. package/src/sap/ui/codeeditor/js/ace/mode-mips.js +101 -134
  255. package/src/sap/ui/codeeditor/js/ace/mode-mixal.js +63 -75
  256. package/src/sap/ui/codeeditor/js/ace/mode-mushcode.js +537 -576
  257. package/src/sap/ui/codeeditor/js/ace/mode-mysql.js +85 -102
  258. package/src/sap/ui/codeeditor/js/ace/mode-nasal.js +513 -0
  259. package/src/sap/ui/codeeditor/js/ace/mode-nginx.js +119 -155
  260. package/src/sap/ui/codeeditor/js/ace/mode-nim.js +159 -197
  261. package/src/sap/ui/codeeditor/js/ace/mode-nix.js +283 -375
  262. package/src/sap/ui/codeeditor/js/ace/mode-nsis.js +139 -172
  263. package/src/sap/ui/codeeditor/js/ace/mode-nunjucks.js +1138 -1378
  264. package/src/sap/ui/codeeditor/js/ace/mode-objectivec.js +400 -514
  265. package/src/sap/ui/codeeditor/js/ace/mode-ocaml.js +77 -120
  266. package/src/sap/ui/codeeditor/js/ace/mode-odin.js +449 -0
  267. package/src/sap/ui/codeeditor/js/ace/mode-partiql.js +750 -0
  268. package/src/sap/ui/codeeditor/js/ace/mode-pascal.js +28 -47
  269. package/src/sap/ui/codeeditor/js/ace/mode-perl.js +122 -185
  270. package/src/sap/ui/codeeditor/js/ace/mode-pgsql.js +974 -851
  271. package/src/sap/ui/codeeditor/js/ace/mode-php.js +2282 -1502
  272. package/src/sap/ui/codeeditor/js/ace/mode-php_laravel_blade.js +2463 -1696
  273. package/src/sap/ui/codeeditor/js/ace/mode-pig.js +133 -165
  274. package/src/sap/ui/codeeditor/js/ace/mode-plain_text.js +5 -10
  275. package/src/sap/ui/codeeditor/js/ace/mode-plsql.js +268 -0
  276. package/src/sap/ui/codeeditor/js/ace/mode-powershell.js +332 -183
  277. package/src/sap/ui/codeeditor/js/ace/mode-praat.js +168 -234
  278. package/src/sap/ui/codeeditor/js/ace/mode-prisma.js +292 -324
  279. package/src/sap/ui/codeeditor/js/ace/mode-prolog.js +180 -246
  280. package/src/sap/ui/codeeditor/js/ace/mode-properties.js +26 -37
  281. package/src/sap/ui/codeeditor/js/ace/mode-protobuf.js +232 -327
  282. package/src/sap/ui/codeeditor/js/ace/mode-prql.js +320 -0
  283. package/src/sap/ui/codeeditor/js/ace/mode-puppet.js +68 -120
  284. package/src/sap/ui/codeeditor/js/ace/mode-python.js +338 -370
  285. package/src/sap/ui/codeeditor/js/ace/mode-qml.js +244 -279
  286. package/src/sap/ui/codeeditor/js/ace/mode-r.js +295 -220
  287. package/src/sap/ui/codeeditor/js/ace/mode-raku.js +356 -433
  288. package/src/sap/ui/codeeditor/js/ace/mode-razor.js +1130 -1374
  289. package/src/sap/ui/codeeditor/js/ace/mode-rdoc.js +214 -171
  290. package/src/sap/ui/codeeditor/js/ace/mode-red.js +212 -274
  291. package/src/sap/ui/codeeditor/js/ace/mode-redshift.js +181 -220
  292. package/src/sap/ui/codeeditor/js/ace/mode-rhtml.js +1325 -1443
  293. package/src/sap/ui/codeeditor/js/ace/mode-robot.js +168 -0
  294. package/src/sap/ui/codeeditor/js/ace/mode-rst.js +217 -229
  295. package/src/sap/ui/codeeditor/js/ace/mode-ruby.js +338 -420
  296. package/src/sap/ui/codeeditor/js/ace/mode-rust.js +258 -155
  297. package/src/sap/ui/codeeditor/js/ace/mode-sac.js +349 -0
  298. package/src/sap/ui/codeeditor/js/ace/mode-sass.js +257 -309
  299. package/src/sap/ui/codeeditor/js/ace/mode-scad.js +127 -191
  300. package/src/sap/ui/codeeditor/js/ace/mode-scala.js +572 -468
  301. package/src/sap/ui/codeeditor/js/ace/mode-scheme.js +104 -126
  302. package/src/sap/ui/codeeditor/js/ace/mode-scrypt.js +181 -228
  303. package/src/sap/ui/codeeditor/js/ace/mode-scss.js +364 -472
  304. package/src/sap/ui/codeeditor/js/ace/mode-sh.js +204 -266
  305. package/src/sap/ui/codeeditor/js/ace/mode-sjs.js +477 -405
  306. package/src/sap/ui/codeeditor/js/ace/mode-slim.js +2631 -3161
  307. package/src/sap/ui/codeeditor/js/ace/mode-smarty.js +1075 -1334
  308. package/src/sap/ui/codeeditor/js/ace/mode-smithy.js +276 -327
  309. package/src/sap/ui/codeeditor/js/ace/mode-snippets.js +78 -102
  310. package/src/sap/ui/codeeditor/js/ace/mode-soy_template.js +1251 -1548
  311. package/src/sap/ui/codeeditor/js/ace/mode-space.js +47 -63
  312. package/src/sap/ui/codeeditor/js/ace/mode-sparql.js +139 -171
  313. package/src/sap/ui/codeeditor/js/ace/mode-sql.js +77 -133
  314. package/src/sap/ui/codeeditor/js/ace/mode-sqlserver.js +138 -192
  315. package/src/sap/ui/codeeditor/js/ace/mode-stylus.js +306 -338
  316. package/src/sap/ui/codeeditor/js/ace/mode-svg.js +642 -794
  317. package/src/sap/ui/codeeditor/js/ace/mode-swift.js +96 -150
  318. package/src/sap/ui/codeeditor/js/ace/mode-tcl.js +151 -200
  319. package/src/sap/ui/codeeditor/js/ace/mode-terraform.js +78 -132
  320. package/src/sap/ui/codeeditor/js/ace/mode-tex.js +148 -96
  321. package/src/sap/ui/codeeditor/js/ace/mode-textile.js +45 -70
  322. package/src/sap/ui/codeeditor/js/ace/mode-toml.js +63 -87
  323. package/src/sap/ui/codeeditor/js/ace/mode-tsx.js +462 -384
  324. package/src/sap/ui/codeeditor/js/ace/mode-turtle.js +119 -151
  325. package/src/sap/ui/codeeditor/js/ace/mode-twig.js +1099 -1350
  326. package/src/sap/ui/codeeditor/js/ace/mode-typescript.js +455 -376
  327. package/src/sap/ui/codeeditor/js/ace/mode-vala.js +382 -505
  328. package/src/sap/ui/codeeditor/js/ace/mode-vbscript.js +231 -264
  329. package/src/sap/ui/codeeditor/js/ace/mode-velocity.js +1116 -1388
  330. package/src/sap/ui/codeeditor/js/ace/mode-verilog.js +61 -81
  331. package/src/sap/ui/codeeditor/js/ace/mode-vhdl.js +57 -79
  332. package/src/sap/ui/codeeditor/js/ace/mode-visualforce.js +1046 -1292
  333. package/src/sap/ui/codeeditor/js/ace/mode-wollok.js +525 -417
  334. package/src/sap/ui/codeeditor/js/ace/mode-xml.js +182 -389
  335. package/src/sap/ui/codeeditor/js/ace/mode-xquery.js +58 -112
  336. package/src/sap/ui/codeeditor/js/ace/mode-yaml.js +202 -137
  337. package/src/sap/ui/codeeditor/js/ace/mode-zeek.js +237 -274
  338. package/src/sap/ui/codeeditor/js/ace/snippets/abc.js +5 -34
  339. package/src/sap/ui/codeeditor/js/ace/snippets/actionscript.js +5 -160
  340. package/src/sap/ui/codeeditor/js/ace/snippets/astro.js +9 -0
  341. package/src/sap/ui/codeeditor/js/ace/snippets/bibtex.js +9 -0
  342. package/src/sap/ui/codeeditor/js/ace/snippets/c_cpp.js +5 -134
  343. package/src/sap/ui/codeeditor/js/ace/snippets/clojure.js +5 -93
  344. package/src/sap/ui/codeeditor/js/ace/snippets/coffee.js +5 -98
  345. package/src/sap/ui/codeeditor/js/ace/snippets/csound_document.js +5 -13
  346. package/src/sap/ui/codeeditor/js/ace/snippets/csound_orchestra.js +5 -50
  347. package/src/sap/ui/codeeditor/js/ace/snippets/css.js +5 -970
  348. package/src/sap/ui/codeeditor/js/ace/snippets/cuttlefish.js +9 -0
  349. package/src/sap/ui/codeeditor/js/ace/snippets/dart.js +5 -86
  350. package/src/sap/ui/codeeditor/js/ace/snippets/diff.js +5 -14
  351. package/src/sap/ui/codeeditor/js/ace/snippets/django.js +5 -111
  352. package/src/sap/ui/codeeditor/js/ace/snippets/drools.js +5 -22
  353. package/src/sap/ui/codeeditor/js/ace/snippets/edifact.js +8 -246
  354. package/src/sap/ui/codeeditor/js/ace/snippets/erlang.js +5 -163
  355. package/src/sap/ui/codeeditor/js/ace/snippets/flix.js +9 -0
  356. package/src/sap/ui/codeeditor/js/ace/snippets/fsl.js +6 -4
  357. package/src/sap/ui/codeeditor/js/ace/snippets/gobstones.js +5 -1707
  358. package/src/sap/ui/codeeditor/js/ace/snippets/graphqlschema.js +5 -35
  359. package/src/sap/ui/codeeditor/js/ace/snippets/haml.js +5 -23
  360. package/src/sap/ui/codeeditor/js/ace/snippets/haskell.js +5 -85
  361. package/src/sap/ui/codeeditor/js/ace/snippets/html.js +5 -856
  362. package/src/sap/ui/codeeditor/js/ace/snippets/io.js +1 -3
  363. package/src/sap/ui/codeeditor/js/ace/snippets/ion.js +9 -0
  364. package/src/sap/ui/codeeditor/js/ace/snippets/java.js +5 -243
  365. package/src/sap/ui/codeeditor/js/ace/snippets/javascript.js +5 -198
  366. package/src/sap/ui/codeeditor/js/ace/snippets/jexl.js +9 -0
  367. package/src/sap/ui/codeeditor/js/ace/snippets/jsoniq.js +44 -41
  368. package/src/sap/ui/codeeditor/js/ace/snippets/jsp.js +5 -102
  369. package/src/sap/ui/codeeditor/js/ace/snippets/liquid.js +5 -884
  370. package/src/sap/ui/codeeditor/js/ace/snippets/lsl.js +5 -1235
  371. package/src/sap/ui/codeeditor/js/ace/snippets/lua.js +5 -24
  372. package/src/sap/ui/codeeditor/js/ace/snippets/makefile.js +5 -7
  373. package/src/sap/ui/codeeditor/js/ace/snippets/markdown.js +5 -91
  374. package/src/sap/ui/codeeditor/js/ace/snippets/maze.js +5 -12
  375. package/src/sap/ui/codeeditor/js/ace/snippets/nasal.js +9 -0
  376. package/src/sap/ui/codeeditor/js/ace/snippets/odin.js +9 -0
  377. package/src/sap/ui/codeeditor/js/ace/snippets/partiql.js +9 -0
  378. package/src/sap/ui/codeeditor/js/ace/snippets/perl.js +5 -350
  379. package/src/sap/ui/codeeditor/js/ace/snippets/php.js +5 -386
  380. package/src/sap/ui/codeeditor/js/ace/snippets/plsql.js +9 -0
  381. package/src/sap/ui/codeeditor/js/ace/snippets/prql.js +9 -0
  382. package/src/sap/ui/codeeditor/js/ace/snippets/python.js +5 -161
  383. package/src/sap/ui/codeeditor/js/ace/snippets/r.js +5 -124
  384. package/src/sap/ui/codeeditor/js/ace/snippets/razor.js +5 -6
  385. package/src/sap/ui/codeeditor/js/ace/snippets/robot.js +16 -0
  386. package/src/sap/ui/codeeditor/js/ace/snippets/rst.js +5 -25
  387. package/src/sap/ui/codeeditor/js/ace/snippets/ruby.js +5 -931
  388. package/src/sap/ui/codeeditor/js/ace/snippets/sac.js +9 -0
  389. package/src/sap/ui/codeeditor/js/ace/snippets/sh.js +5 -86
  390. package/src/sap/ui/codeeditor/js/ace/snippets/snippets.js +5 -12
  391. package/src/sap/ui/codeeditor/js/ace/snippets/sql.js +5 -29
  392. package/src/sap/ui/codeeditor/js/ace/snippets/sqlserver.js +5 -72
  393. package/src/sap/ui/codeeditor/js/ace/snippets/tcl.js +5 -95
  394. package/src/sap/ui/codeeditor/js/ace/snippets/tex.js +5 -193
  395. package/src/sap/ui/codeeditor/js/ace/snippets/textile.js +5 -33
  396. package/src/sap/ui/codeeditor/js/ace/snippets/vala.js +1 -2
  397. package/src/sap/ui/codeeditor/js/ace/snippets/velocity.js +5 -31
  398. package/src/sap/ui/codeeditor/js/ace/snippets/wollok.js +5 -87
  399. package/src/sap/ui/codeeditor/js/ace/snippets/xquery.js +44 -41
  400. package/src/sap/ui/codeeditor/js/ace/theme-ambiance.js +5 -172
  401. package/src/sap/ui/codeeditor/js/ace/theme-chaos.js +5 -150
  402. package/src/sap/ui/codeeditor/js/ace/theme-chrome.js +6 -123
  403. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_day.js +19 -0
  404. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night.js +18 -0
  405. package/src/sap/ui/codeeditor/js/ace/theme-cloud9_night_low_color.js +18 -0
  406. package/src/sap/ui/codeeditor/js/ace/theme-clouds.js +6 -90
  407. package/src/sap/ui/codeeditor/js/ace/theme-clouds_midnight.js +6 -91
  408. package/src/sap/ui/codeeditor/js/ace/theme-cobalt.js +6 -108
  409. package/src/sap/ui/codeeditor/js/ace/theme-crimson_editor.js +6 -113
  410. package/src/sap/ui/codeeditor/js/ace/theme-dawn.js +6 -103
  411. package/src/sap/ui/codeeditor/js/ace/theme-dracula.js +6 -122
  412. package/src/sap/ui/codeeditor/js/ace/theme-dreamweaver.js +7 -137
  413. package/src/sap/ui/codeeditor/js/ace/theme-eclipse.js +6 -92
  414. package/src/sap/ui/codeeditor/js/ace/theme-github.js +7 -99
  415. package/src/sap/ui/codeeditor/js/ace/theme-github_dark.js +18 -0
  416. package/src/sap/ui/codeeditor/js/ace/theme-gob.js +6 -107
  417. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox.js +5 -76
  418. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_dark_hard.js +18 -0
  419. package/src/sap/ui/codeeditor/js/ace/theme-gruvbox_light_hard.js +18 -0
  420. package/src/sap/ui/codeeditor/js/ace/theme-idle_fingers.js +6 -91
  421. package/src/sap/ui/codeeditor/js/ace/theme-iplastic.js +6 -116
  422. package/src/sap/ui/codeeditor/js/ace/theme-katzenmilch.js +6 -116
  423. package/src/sap/ui/codeeditor/js/ace/theme-kr_theme.js +6 -99
  424. package/src/sap/ui/codeeditor/js/ace/theme-kuroir.js +6 -56
  425. package/src/sap/ui/codeeditor/js/ace/theme-merbivore.js +6 -90
  426. package/src/sap/ui/codeeditor/js/ace/theme-merbivore_soft.js +6 -91
  427. package/src/sap/ui/codeeditor/js/ace/theme-mono_industrial.js +6 -102
  428. package/src/sap/ui/codeeditor/js/ace/theme-monokai.js +6 -100
  429. package/src/sap/ui/codeeditor/js/ace/theme-nord_dark.js +6 -89
  430. package/src/sap/ui/codeeditor/js/ace/theme-one_dark.js +10 -131
  431. package/src/sap/ui/codeeditor/js/ace/theme-pastel_on_dark.js +6 -103
  432. package/src/sap/ui/codeeditor/js/ace/theme-solarized_dark.js +6 -83
  433. package/src/sap/ui/codeeditor/js/ace/theme-solarized_light.js +6 -86
  434. package/src/sap/ui/codeeditor/js/ace/theme-sqlserver.js +6 -133
  435. package/src/sap/ui/codeeditor/js/ace/theme-terminal.js +6 -109
  436. package/src/sap/ui/codeeditor/js/ace/theme-textmate.js +3 -124
  437. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow.js +6 -103
  438. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night.js +6 -103
  439. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_blue.js +6 -101
  440. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_bright.js +6 -116
  441. package/src/sap/ui/codeeditor/js/ace/theme-tomorrow_night_eighties.js +6 -103
  442. package/src/sap/ui/codeeditor/js/ace/theme-twilight.js +6 -104
  443. package/src/sap/ui/codeeditor/js/ace/theme-vibrant_ink.js +6 -89
  444. package/src/sap/ui/codeeditor/js/ace/theme-xcode.js +6 -83
  445. package/src/sap/ui/codeeditor/js/ace/worker-base.js +516 -595
  446. package/src/sap/ui/codeeditor/js/ace/worker-coffee.js +496 -575
  447. package/src/sap/ui/codeeditor/js/ace/worker-css.js +501 -578
  448. package/src/sap/ui/codeeditor/js/ace/worker-html.js +515 -584
  449. package/src/sap/ui/codeeditor/js/ace/worker-javascript.js +2964 -2551
  450. package/src/sap/ui/codeeditor/js/ace/worker-json.js +496 -575
  451. package/src/sap/ui/codeeditor/js/ace/worker-lua.js +497 -576
  452. package/src/sap/ui/codeeditor/js/ace/worker-php.js +2906 -2795
  453. package/src/sap/ui/codeeditor/js/ace/worker-xml.js +496 -575
  454. package/src/sap/ui/codeeditor/js/ace/worker-xquery.js +496 -575
  455. package/src/sap/ui/codeeditor/js/ace/worker-yaml.js +5851 -0
  456. package/src/sap/ui/codeeditor/library.js +6 -5
  457. package/LICENSES/BSD-2-Clause.txt +0 -22
@@ -1,90 +1,154 @@
1
- ace.define("ace/mode/doc_comment_highlight_rules",[], function(require, exports, module) {
2
- "use strict";
3
-
1
+ ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
4
2
  var oop = require("../lib/oop");
5
3
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6
-
7
- var DocCommentHighlightRules = function() {
4
+ var JsDocCommentHighlightRules = function () {
8
5
  this.$rules = {
9
- "start" : [ {
10
- token : "comment.doc.tag",
11
- regex : "@[\\w\\d_]+" // TODO: fix email addresses
12
- },
13
- DocCommentHighlightRules.getTagRule(),
14
- {
15
- defaultToken : "comment.doc",
16
- caseInsensitive: true
17
- }]
6
+ "start": [
7
+ {
8
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
9
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
10
+ push: [
11
+ {
12
+ token: "lparen.doc",
13
+ regex: "{",
14
+ push: [
15
+ {
16
+ include: "doc-syntax"
17
+ }, {
18
+ token: "rparen.doc",
19
+ regex: "}|(?=$)",
20
+ next: "pop"
21
+ }
22
+ ]
23
+ }, {
24
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
25
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,
26
+ next: "pop"
27
+ }, {
28
+ token: "rparen.doc",
29
+ regex: "}|(?=$)",
30
+ next: "pop"
31
+ }, {
32
+ include: "doc-syntax"
33
+ }, {
34
+ defaultToken: "text.doc"
35
+ }
36
+ ]
37
+ }, {
38
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
39
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
40
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
41
+ push: [
42
+ {
43
+ token: "lparen.doc",
44
+ regex: "{",
45
+ push: [
46
+ {
47
+ include: "doc-syntax"
48
+ }, {
49
+ token: "rparen.doc",
50
+ regex: "}|(?=$)",
51
+ next: "pop"
52
+ }
53
+ ]
54
+ }, {
55
+ token: "rparen.doc",
56
+ regex: "}|(?=$)",
57
+ next: "pop"
58
+ }, {
59
+ include: "doc-syntax"
60
+ }, {
61
+ defaultToken: "text.doc"
62
+ }
63
+ ]
64
+ }, {
65
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
66
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
67
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
68
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
69
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
70
+ }, {
71
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
72
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
73
+ }, {
74
+ token: "comment.doc.tag",
75
+ regex: "@access\\s+(?:private|public|protected)"
76
+ }, {
77
+ token: "comment.doc.tag",
78
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
79
+ }, {
80
+ token: "comment.doc.tag",
81
+ regex: "@\\w+(?=\\s|$)"
82
+ },
83
+ JsDocCommentHighlightRules.getTagRule(),
84
+ {
85
+ defaultToken: "comment.doc",
86
+ caseInsensitive: true
87
+ }
88
+ ],
89
+ "doc-syntax": [{
90
+ token: "operator.doc",
91
+ regex: /[|:]/
92
+ }, {
93
+ token: "paren.doc",
94
+ regex: /[\[\]]/
95
+ }]
18
96
  };
97
+ this.normalizeRules();
19
98
  };
20
-
21
- oop.inherits(DocCommentHighlightRules, TextHighlightRules);
22
-
23
- DocCommentHighlightRules.getTagRule = function(start) {
99
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
100
+ JsDocCommentHighlightRules.getTagRule = function (start) {
24
101
  return {
25
- token : "comment.doc.tag.storage.type",
26
- regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
102
+ token: "comment.doc.tag.storage.type",
103
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27
104
  };
28
105
  };
29
-
30
- DocCommentHighlightRules.getStartRule = function(start) {
106
+ JsDocCommentHighlightRules.getStartRule = function (start) {
31
107
  return {
32
- token : "comment.doc", // doc comment
33
- regex : "\\/\\*(?=\\*)",
34
- next : start
108
+ token: "comment.doc",
109
+ regex: "\\/\\*(?=\\*)",
110
+ next: start
35
111
  };
36
112
  };
37
-
38
- DocCommentHighlightRules.getEndRule = function (start) {
113
+ JsDocCommentHighlightRules.getEndRule = function (start) {
39
114
  return {
40
- token : "comment.doc", // closing comment
41
- regex : "\\*\\/",
42
- next : start
115
+ token: "comment.doc",
116
+ regex: "\\*\\/",
117
+ next: start
43
118
  };
44
119
  };
45
-
46
-
47
- exports.DocCommentHighlightRules = DocCommentHighlightRules;
120
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
48
121
 
49
122
  });
50
123
 
51
- ace.define("ace/mode/javascript_highlight_rules",[], function(require, exports, module) {
52
- "use strict";
53
-
124
+ ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
54
125
  var oop = require("../lib/oop");
55
- var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
126
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
56
127
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
57
128
  var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
58
-
59
- var JavaScriptHighlightRules = function(options) {
129
+ var JavaScriptHighlightRules = function (options) {
60
130
  var keywordMapper = this.createKeywordMapper({
61
- "variable.language":
62
- "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
63
- "Namespace|QName|XML|XMLList|" + // E4X
64
- "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
65
- "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
66
- "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
67
- "SyntaxError|TypeError|URIError|" +
131
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
132
+ "Namespace|QName|XML|XMLList|" + // E4X
133
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
134
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
135
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
136
+ "SyntaxError|TypeError|URIError|" +
68
137
  "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
69
- "isNaN|parseFloat|parseInt|" +
70
- "JSON|Math|" + // Other
71
- "this|arguments|prototype|window|document" , // Pseudo
72
- "keyword":
73
- "const|yield|import|get|set|async|await|" +
138
+ "isNaN|parseFloat|parseInt|" +
139
+ "JSON|Math|" + // Other
140
+ "this|arguments|prototype|window|document",
141
+ "keyword": "const|yield|import|get|set|async|await|" +
74
142
  "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
75
143
  "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
76
144
  "__parent__|__count__|escape|unescape|with|__proto__|" +
77
- "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
78
- "storage.type":
79
- "const|let|var|function",
80
- "constant.language":
81
- "null|Infinity|NaN|undefined",
82
- "support.function":
83
- "alert",
145
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
146
+ "storage.type": "const|let|var|function",
147
+ "constant.language": "null|Infinity|NaN|undefined",
148
+ "support.function": "alert",
84
149
  "constant.language.boolean": "true|false"
85
150
  }, "identifier");
86
151
  var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
87
-
88
152
  var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
89
153
  "u[0-9a-fA-F]{4}|" + // unicode
90
154
  "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
@@ -92,143 +156,142 @@ var JavaScriptHighlightRules = function(options) {
92
156
  "3[0-7][0-7]?|" + // oct
93
157
  "[4-7][0-7]?|" + //oct
94
158
  ".)";
95
-
96
159
  this.$rules = {
97
- "no_regex" : [
160
+ "no_regex": [
98
161
  DocCommentHighlightRules.getStartRule("doc-start"),
99
162
  comments("no_regex"),
100
163
  {
101
- token : "string",
102
- regex : "'(?=.)",
103
- next : "qstring"
164
+ token: "string",
165
+ regex: "'(?=.)",
166
+ next: "qstring"
104
167
  }, {
105
- token : "string",
106
- regex : '"(?=.)',
107
- next : "qqstring"
168
+ token: "string",
169
+ regex: '"(?=.)',
170
+ next: "qqstring"
108
171
  }, {
109
- token : "constant.numeric", // hexadecimal, octal and binary
110
- regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
172
+ token: "constant.numeric",
173
+ regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
111
174
  }, {
112
- token : "constant.numeric", // decimal integers and floats
113
- regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
175
+ token: "constant.numeric",
176
+ regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
114
177
  }, {
115
- token : [
178
+ token: [
116
179
  "storage.type", "punctuation.operator", "support.function",
117
- "punctuation.operator", "entity.name.function", "text","keyword.operator"
180
+ "punctuation.operator", "entity.name.function", "text", "keyword.operator"
118
181
  ],
119
- regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
182
+ regex: "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe + ")(\\s*)(=)",
120
183
  next: "function_arguments"
121
184
  }, {
122
- token : [
185
+ token: [
123
186
  "storage.type", "punctuation.operator", "entity.name.function", "text",
124
187
  "keyword.operator", "text", "storage.type", "text", "paren.lparen"
125
188
  ],
126
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
189
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
127
190
  next: "function_arguments"
128
191
  }, {
129
- token : [
192
+ token: [
130
193
  "entity.name.function", "text", "keyword.operator", "text", "storage.type",
131
194
  "text", "paren.lparen"
132
195
  ],
133
- regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
196
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
134
197
  next: "function_arguments"
135
198
  }, {
136
- token : [
199
+ token: [
137
200
  "storage.type", "punctuation.operator", "entity.name.function", "text",
138
201
  "keyword.operator", "text",
139
202
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
140
203
  ],
141
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
204
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",
142
205
  next: "function_arguments"
143
206
  }, {
144
- token : [
207
+ token: [
145
208
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
146
209
  ],
147
- regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
210
+ regex: "(function\\*?)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
148
211
  next: "function_arguments"
149
212
  }, {
150
- token : [
213
+ token: [
151
214
  "entity.name.function", "text", "punctuation.operator",
152
215
  "text", "storage.type", "text", "paren.lparen"
153
216
  ],
154
- regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
217
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",
155
218
  next: "function_arguments"
156
219
  }, {
157
- token : [
220
+ token: [
158
221
  "text", "text", "storage.type", "text", "paren.lparen"
159
222
  ],
160
- regex : "(:)(\\s*)(function)(\\s*)(\\()",
223
+ regex: "(:)(\\s*)(function\\*?)(\\s*)(\\()",
161
224
  next: "function_arguments"
162
225
  }, {
163
- token : "keyword",
164
- regex : "from(?=\\s*('|\"))"
226
+ token: "keyword",
227
+ regex: "from(?=\\s*('|\"))"
165
228
  }, {
166
- token : "keyword",
167
- regex : "(?:" + kwBeforeRe + ")\\b",
168
- next : "start"
229
+ token: "keyword",
230
+ regex: "(?:" + kwBeforeRe + ")\\b",
231
+ next: "start"
169
232
  }, {
170
- token : ["support.constant"],
171
- regex : /that\b/
233
+ token: "support.constant",
234
+ regex: /that\b/
172
235
  }, {
173
- token : ["storage.type", "punctuation.operator", "support.function.firebug"],
174
- regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
236
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
237
+ regex: /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
175
238
  }, {
176
- token : keywordMapper,
177
- regex : identifierRe
239
+ token: keywordMapper,
240
+ regex: identifierRe
178
241
  }, {
179
- token : "punctuation.operator",
180
- regex : /[.](?![.])/,
181
- next : "property"
242
+ token: "punctuation.operator",
243
+ regex: /[.](?![.])/,
244
+ next: "property"
182
245
  }, {
183
- token : "storage.type",
184
- regex : /=>/,
185
- next : "start"
246
+ token: "storage.type",
247
+ regex: /=>/,
248
+ next: "start"
186
249
  }, {
187
- token : "keyword.operator",
188
- regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
189
- next : "start"
250
+ token: "keyword.operator",
251
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
252
+ next: "start"
190
253
  }, {
191
- token : "punctuation.operator",
192
- regex : /[?:,;.]/,
193
- next : "start"
254
+ token: "punctuation.operator",
255
+ regex: /[?:,;.]/,
256
+ next: "start"
194
257
  }, {
195
- token : "paren.lparen",
196
- regex : /[\[({]/,
197
- next : "start"
258
+ token: "paren.lparen",
259
+ regex: /[\[({]/,
260
+ next: "start"
198
261
  }, {
199
- token : "paren.rparen",
200
- regex : /[\])}]/
262
+ token: "paren.rparen",
263
+ regex: /[\])}]/
201
264
  }, {
202
265
  token: "comment",
203
266
  regex: /^#!.*$/
204
267
  }
205
268
  ],
206
269
  property: [{
207
- token : "text",
208
- regex : "\\s+"
270
+ token: "text",
271
+ regex: "\\s+"
209
272
  }, {
210
- token : [
273
+ token: [
211
274
  "storage.type", "punctuation.operator", "entity.name.function", "text",
212
275
  "keyword.operator", "text",
213
276
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
214
277
  ],
215
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
278
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",
216
279
  next: "function_arguments"
217
280
  }, {
218
- token : "punctuation.operator",
219
- regex : /[.](?![.])/
281
+ token: "punctuation.operator",
282
+ regex: /[.](?![.])/
220
283
  }, {
221
- token : "support.function",
222
- regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
284
+ token: "support.function",
285
+ regex: /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
223
286
  }, {
224
- token : "support.function.dom",
225
- regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
287
+ token: "support.function.dom",
288
+ regex: /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
226
289
  }, {
227
- token : "support.constant",
228
- regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
290
+ token: "support.constant",
291
+ regex: /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
229
292
  }, {
230
- token : "identifier",
231
- regex : identifierRe
293
+ token: "identifier",
294
+ regex: identifierRe
232
295
  }, {
233
296
  regex: "",
234
297
  token: "empty",
@@ -243,9 +306,9 @@ var JavaScriptHighlightRules = function(options) {
243
306
  regex: "\\/",
244
307
  next: "regex"
245
308
  }, {
246
- token : "text",
247
- regex : "\\s+|^$",
248
- next : "start"
309
+ token: "text",
310
+ regex: "\\s+|^$",
311
+ next: "start"
249
312
  }, {
250
313
  token: "empty",
251
314
  regex: "",
@@ -261,13 +324,13 @@ var JavaScriptHighlightRules = function(options) {
261
324
  regex: "/[sxngimy]*",
262
325
  next: "no_regex"
263
326
  }, {
264
- token : "invalid",
327
+ token: "invalid",
265
328
  regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
266
329
  }, {
267
- token : "constant.language.escape",
330
+ token: "constant.language.escape",
268
331
  regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
269
332
  }, {
270
- token : "constant.language.delimiter",
333
+ token: "constant.language.delimiter",
271
334
  regex: /\|/
272
335
  }, {
273
336
  token: "constant.language.escape",
@@ -300,13 +363,67 @@ var JavaScriptHighlightRules = function(options) {
300
363
  defaultToken: "string.regexp.charachterclass"
301
364
  }
302
365
  ],
366
+ "default_parameter": [
367
+ {
368
+ token: "string",
369
+ regex: "'(?=.)",
370
+ push: [
371
+ {
372
+ token: "string",
373
+ regex: "'|$",
374
+ next: "pop"
375
+ }, {
376
+ include: "qstring"
377
+ }
378
+ ]
379
+ }, {
380
+ token: "string",
381
+ regex: '"(?=.)',
382
+ push: [
383
+ {
384
+ token: "string",
385
+ regex: '"|$',
386
+ next: "pop"
387
+ }, {
388
+ include: "qqstring"
389
+ }
390
+ ]
391
+ }, {
392
+ token: "constant.language",
393
+ regex: "null|Infinity|NaN|undefined"
394
+ }, {
395
+ token: "constant.numeric",
396
+ regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
397
+ }, {
398
+ token: "constant.numeric",
399
+ regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
400
+ }, {
401
+ token: "punctuation.operator",
402
+ regex: ",",
403
+ next: "function_arguments"
404
+ }, {
405
+ token: "text",
406
+ regex: "\\s+"
407
+ }, {
408
+ token: "punctuation.operator",
409
+ regex: "$"
410
+ }, {
411
+ token: "empty",
412
+ regex: "",
413
+ next: "no_regex"
414
+ }
415
+ ],
303
416
  "function_arguments": [
417
+ comments("function_arguments"),
304
418
  {
305
419
  token: "variable.parameter",
306
420
  regex: identifierRe
307
421
  }, {
308
422
  token: "punctuation.operator",
309
- regex: "[, ]+"
423
+ regex: ","
424
+ }, {
425
+ token: "text",
426
+ regex: "\\s+"
310
427
  }, {
311
428
  token: "punctuation.operator",
312
429
  regex: "$"
@@ -316,44 +433,42 @@ var JavaScriptHighlightRules = function(options) {
316
433
  next: "no_regex"
317
434
  }
318
435
  ],
319
- "qqstring" : [
436
+ "qqstring": [
320
437
  {
321
- token : "constant.language.escape",
322
- regex : escapedRe
438
+ token: "constant.language.escape",
439
+ regex: escapedRe
323
440
  }, {
324
- token : "string",
325
- regex : "\\\\$",
326
- consumeLineEnd : true
441
+ token: "string",
442
+ regex: "\\\\$",
443
+ consumeLineEnd: true
327
444
  }, {
328
- token : "string",
329
- regex : '"|$',
330
- next : "no_regex"
445
+ token: "string",
446
+ regex: '"|$',
447
+ next: "no_regex"
331
448
  }, {
332
449
  defaultToken: "string"
333
450
  }
334
451
  ],
335
- "qstring" : [
452
+ "qstring": [
336
453
  {
337
- token : "constant.language.escape",
338
- regex : escapedRe
454
+ token: "constant.language.escape",
455
+ regex: escapedRe
339
456
  }, {
340
- token : "string",
341
- regex : "\\\\$",
342
- consumeLineEnd : true
457
+ token: "string",
458
+ regex: "\\\\$",
459
+ consumeLineEnd: true
343
460
  }, {
344
- token : "string",
345
- regex : "'|$",
346
- next : "no_regex"
461
+ token: "string",
462
+ regex: "'|$",
463
+ next: "no_regex"
347
464
  }, {
348
465
  defaultToken: "string"
349
466
  }
350
467
  ]
351
468
  };
352
-
353
-
354
469
  if (!options || !options.noES6) {
355
470
  this.$rules.no_regex.unshift({
356
- regex: "[{}]", onMatch: function(val, state, stack) {
471
+ regex: "[{}]", onMatch: function (val, state, stack) {
357
472
  this.next = val == "{" ? this.nextState : "";
358
473
  if (val == "{" && stack.length) {
359
474
  stack.unshift("start", state);
@@ -368,40 +483,60 @@ var JavaScriptHighlightRules = function(options) {
368
483
  },
369
484
  nextState: "start"
370
485
  }, {
371
- token : "string.quasi.start",
372
- regex : /`/,
373
- push : [{
374
- token : "constant.language.escape",
375
- regex : escapedRe
376
- }, {
377
- token : "paren.quasi.start",
378
- regex : /\${/,
379
- push : "start"
380
- }, {
381
- token : "string.quasi.end",
382
- regex : /`/,
383
- next : "pop"
384
- }, {
385
- defaultToken: "string.quasi"
386
- }]
486
+ token: "string.quasi.start",
487
+ regex: /`/,
488
+ push: [{
489
+ token: "constant.language.escape",
490
+ regex: escapedRe
491
+ }, {
492
+ token: "paren.quasi.start",
493
+ regex: /\${/,
494
+ push: "start"
495
+ }, {
496
+ token: "string.quasi.end",
497
+ regex: /`/,
498
+ next: "pop"
499
+ }, {
500
+ defaultToken: "string.quasi"
501
+ }]
502
+ }, {
503
+ token: ["variable.parameter", "text"],
504
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
505
+ }, {
506
+ token: "paren.lparen",
507
+ regex: "(\\()(?=.+\\s*=>)",
508
+ next: "function_arguments"
509
+ }, {
510
+ token: "variable.language",
511
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
512
+ });
513
+ this.$rules["function_arguments"].unshift({
514
+ token: "keyword.operator",
515
+ regex: "=",
516
+ next: "default_parameter"
517
+ }, {
518
+ token: "keyword.operator",
519
+ regex: "\\.{3}"
520
+ });
521
+ this.$rules["property"].unshift({
522
+ token: "support.function",
523
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
524
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
525
+ }, {
526
+ token: "constant.language",
527
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
387
528
  });
388
-
389
529
  if (!options || options.jsx != false)
390
530
  JSX.call(this);
391
531
  }
392
-
393
- this.embedRules(DocCommentHighlightRules, "doc-",
394
- [ DocCommentHighlightRules.getEndRule("no_regex") ]);
395
-
532
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
396
533
  this.normalizeRules();
397
534
  };
398
-
399
535
  oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
400
-
401
536
  function JSX() {
402
537
  var tagRegex = identifierRe.replace("\\d", "\\d\\-");
403
538
  var jsxTag = {
404
- onMatch : function(val, state, stack) {
539
+ onMatch: function (val, state, stack) {
405
540
  var offset = val.charAt(1) == "/" ? 2 : 1;
406
541
  if (offset == 1) {
407
542
  if (state != this.nextState)
@@ -409,7 +544,8 @@ function JSX() {
409
544
  else
410
545
  stack.unshift(this.next);
411
546
  stack[2]++;
412
- } else if (offset == 2) {
547
+ }
548
+ else if (offset == 2) {
413
549
  if (state == this.nextState) {
414
550
  stack[1]--;
415
551
  if (!stack[1] || stack[1] < 0) {
@@ -419,14 +555,14 @@ function JSX() {
419
555
  }
420
556
  }
421
557
  return [{
422
- type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
423
- value: val.slice(0, offset)
424
- }, {
425
- type: "meta.tag.tag-name.xml",
426
- value: val.substr(offset)
427
- }];
558
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
559
+ value: val.slice(0, offset)
560
+ }, {
561
+ type: "meta.tag.tag-name.xml",
562
+ value: val.substr(offset)
563
+ }];
428
564
  },
429
- regex : "</?" + tagRegex + "",
565
+ regex: "</?" + tagRegex + "",
430
566
  next: "jsxAttributes",
431
567
  nextState: "jsx"
432
568
  };
@@ -439,212 +575,177 @@ function JSX() {
439
575
  this.$rules.jsx = [
440
576
  jsxJsRule,
441
577
  jsxTag,
442
- {include : "reference"},
443
- {defaultToken: "string"}
578
+ { include: "reference" },
579
+ { defaultToken: "string" }
444
580
  ];
445
581
  this.$rules.jsxAttributes = [{
446
- token : "meta.tag.punctuation.tag-close.xml",
447
- regex : "/?>",
448
- onMatch : function(value, currentState, stack) {
449
- if (currentState == stack[0])
450
- stack.shift();
451
- if (value.length == 2) {
452
- if (stack[0] == this.nextState)
453
- stack[1]--;
454
- if (!stack[1] || stack[1] < 0) {
455
- stack.splice(0, 2);
582
+ token: "meta.tag.punctuation.tag-close.xml",
583
+ regex: "/?>",
584
+ onMatch: function (value, currentState, stack) {
585
+ if (currentState == stack[0])
586
+ stack.shift();
587
+ if (value.length == 2) {
588
+ if (stack[0] == this.nextState)
589
+ stack[1]--;
590
+ if (!stack[1] || stack[1] < 0) {
591
+ stack.splice(0, 2);
592
+ }
456
593
  }
457
- }
458
- this.next = stack[0] || "start";
459
- return [{type: this.token, value: value}];
594
+ this.next = stack[0] || "start";
595
+ return [{ type: this.token, value: value }];
596
+ },
597
+ nextState: "jsx"
460
598
  },
461
- nextState: "jsx"
462
- },
463
- jsxJsRule,
464
- comments("jsxAttributes"),
465
- {
466
- token : "entity.other.attribute-name.xml",
467
- regex : tagRegex
468
- }, {
469
- token : "keyword.operator.attribute-equals.xml",
470
- regex : "="
471
- }, {
472
- token : "text.tag-whitespace.xml",
473
- regex : "\\s+"
474
- }, {
475
- token : "string.attribute-value.xml",
476
- regex : "'",
477
- stateName : "jsx_attr_q",
478
- push : [
479
- {token : "string.attribute-value.xml", regex: "'", next: "pop"},
480
- {include : "reference"},
481
- {defaultToken : "string.attribute-value.xml"}
482
- ]
483
- }, {
484
- token : "string.attribute-value.xml",
485
- regex : '"',
486
- stateName : "jsx_attr_qq",
487
- push : [
488
- {token : "string.attribute-value.xml", regex: '"', next: "pop"},
489
- {include : "reference"},
490
- {defaultToken : "string.attribute-value.xml"}
491
- ]
492
- },
493
- jsxTag
599
+ jsxJsRule,
600
+ comments("jsxAttributes"),
601
+ {
602
+ token: "entity.other.attribute-name.xml",
603
+ regex: tagRegex
604
+ }, {
605
+ token: "keyword.operator.attribute-equals.xml",
606
+ regex: "="
607
+ }, {
608
+ token: "text.tag-whitespace.xml",
609
+ regex: "\\s+"
610
+ }, {
611
+ token: "string.attribute-value.xml",
612
+ regex: "'",
613
+ stateName: "jsx_attr_q",
614
+ push: [
615
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
616
+ { include: "reference" },
617
+ { defaultToken: "string.attribute-value.xml" }
618
+ ]
619
+ }, {
620
+ token: "string.attribute-value.xml",
621
+ regex: '"',
622
+ stateName: "jsx_attr_qq",
623
+ push: [
624
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
625
+ { include: "reference" },
626
+ { defaultToken: "string.attribute-value.xml" }
627
+ ]
628
+ },
629
+ jsxTag
494
630
  ];
495
631
  this.$rules.reference = [{
496
- token : "constant.language.escape.reference.xml",
497
- regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
498
- }];
632
+ token: "constant.language.escape.reference.xml",
633
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
634
+ }];
499
635
  }
500
-
501
636
  function comments(next) {
502
637
  return [
503
638
  {
504
- token : "comment", // multi line comment
505
- regex : /\/\*/,
639
+ token: "comment",
640
+ regex: /\/\*/,
506
641
  next: [
507
642
  DocCommentHighlightRules.getTagRule(),
508
- {token : "comment", regex : "\\*\\/", next : next || "pop"},
509
- {defaultToken : "comment", caseInsensitive: true}
643
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
644
+ { defaultToken: "comment", caseInsensitive: true }
510
645
  ]
511
646
  }, {
512
- token : "comment",
513
- regex : "\\/\\/",
647
+ token: "comment",
648
+ regex: "\\/\\/",
514
649
  next: [
515
650
  DocCommentHighlightRules.getTagRule(),
516
- {token : "comment", regex : "$|^", next : next || "pop"},
517
- {defaultToken : "comment", caseInsensitive: true}
651
+ { token: "comment", regex: "$|^", next: next || "pop" },
652
+ { defaultToken: "comment", caseInsensitive: true }
518
653
  ]
519
654
  }
520
655
  ];
521
656
  }
522
657
  exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
523
- });
524
658
 
525
- ace.define("ace/mode/matching_brace_outdent",[], function(require, exports, module) {
526
- "use strict";
659
+ });
527
660
 
661
+ ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
528
662
  var Range = require("../range").Range;
529
-
530
- var MatchingBraceOutdent = function() {};
531
-
532
- (function() {
533
-
534
- this.checkOutdent = function(line, input) {
535
- if (! /^\s+$/.test(line))
663
+ var MatchingBraceOutdent = function () { };
664
+ (function () {
665
+ this.checkOutdent = function (line, input) {
666
+ if (!/^\s+$/.test(line))
536
667
  return false;
537
-
538
668
  return /^\s*\}/.test(input);
539
669
  };
540
-
541
- this.autoOutdent = function(doc, row) {
670
+ this.autoOutdent = function (doc, row) {
542
671
  var line = doc.getLine(row);
543
672
  var match = line.match(/^(\s*\})/);
544
-
545
- if (!match) return 0;
546
-
673
+ if (!match)
674
+ return 0;
547
675
  var column = match[1].length;
548
- var openBracePos = doc.findMatchingBracket({row: row, column: column});
549
-
550
- if (!openBracePos || openBracePos.row == row) return 0;
551
-
676
+ var openBracePos = doc.findMatchingBracket({ row: row, column: column });
677
+ if (!openBracePos || openBracePos.row == row)
678
+ return 0;
552
679
  var indent = this.$getIndent(doc.getLine(openBracePos.row));
553
- doc.replace(new Range(row, 0, row, column-1), indent);
680
+ doc.replace(new Range(row, 0, row, column - 1), indent);
554
681
  };
555
-
556
- this.$getIndent = function(line) {
682
+ this.$getIndent = function (line) {
557
683
  return line.match(/^\s*/)[0];
558
684
  };
559
-
560
685
  }).call(MatchingBraceOutdent.prototype);
561
-
562
686
  exports.MatchingBraceOutdent = MatchingBraceOutdent;
563
- });
564
687
 
565
- ace.define("ace/mode/folding/cstyle",[], function(require, exports, module) {
566
- "use strict";
688
+ });
567
689
 
690
+ ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
568
691
  var oop = require("../../lib/oop");
569
692
  var Range = require("../../range").Range;
570
693
  var BaseFoldMode = require("./fold_mode").FoldMode;
571
-
572
- var FoldMode = exports.FoldMode = function(commentRegex) {
694
+ var FoldMode = exports.FoldMode = function (commentRegex) {
573
695
  if (commentRegex) {
574
- this.foldingStartMarker = new RegExp(
575
- this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
576
- );
577
- this.foldingStopMarker = new RegExp(
578
- this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
579
- );
696
+ this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
697
+ this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
580
698
  }
581
699
  };
582
700
  oop.inherits(FoldMode, BaseFoldMode);
583
-
584
- (function() {
585
-
701
+ (function () {
586
702
  this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
587
703
  this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
588
- this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
704
+ this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
589
705
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
590
706
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
591
707
  this._getFoldWidgetBase = this.getFoldWidget;
592
- this.getFoldWidget = function(session, foldStyle, row) {
708
+ this.getFoldWidget = function (session, foldStyle, row) {
593
709
  var line = session.getLine(row);
594
-
595
710
  if (this.singleLineBlockCommentRe.test(line)) {
596
711
  if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
597
712
  return "";
598
713
  }
599
-
600
714
  var fw = this._getFoldWidgetBase(session, foldStyle, row);
601
-
602
715
  if (!fw && this.startRegionRe.test(line))
603
716
  return "start"; // lineCommentRegionStart
604
-
605
717
  return fw;
606
718
  };
607
-
608
- this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
719
+ this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
609
720
  var line = session.getLine(row);
610
-
611
721
  if (this.startRegionRe.test(line))
612
722
  return this.getCommentRegionBlock(session, line, row);
613
-
614
723
  var match = line.match(this.foldingStartMarker);
615
724
  if (match) {
616
725
  var i = match.index;
617
-
618
726
  if (match[1])
619
727
  return this.openingBracketBlock(session, match[1], row, i);
620
-
621
728
  var range = session.getCommentFoldRange(row, i + match[0].length, 1);
622
-
623
729
  if (range && !range.isMultiLine()) {
624
730
  if (forceMultiline) {
625
731
  range = this.getSectionRange(session, row);
626
- } else if (foldStyle != "all")
732
+ }
733
+ else if (foldStyle != "all")
627
734
  range = null;
628
735
  }
629
-
630
736
  return range;
631
737
  }
632
-
633
738
  if (foldStyle === "markbegin")
634
739
  return;
635
-
636
740
  var match = line.match(this.foldingStopMarker);
637
741
  if (match) {
638
742
  var i = match.index + match[0].length;
639
-
640
743
  if (match[1])
641
744
  return this.closingBracketBlock(session, match[1], row, i);
642
-
643
745
  return session.getCommentFoldRange(row, i, -1);
644
746
  }
645
747
  };
646
-
647
- this.getSectionRange = function(session, row) {
748
+ this.getSectionRange = function (session, row) {
648
749
  var line = session.getLine(row);
649
750
  var startIndent = line.search(/\S/);
650
751
  var startRow = row;
@@ -657,54 +758,52 @@ oop.inherits(FoldMode, BaseFoldMode);
657
758
  var indent = line.search(/\S/);
658
759
  if (indent === -1)
659
760
  continue;
660
- if (startIndent > indent)
761
+ if (startIndent > indent)
661
762
  break;
662
763
  var subRange = this.getFoldWidgetRange(session, "all", row);
663
-
664
764
  if (subRange) {
665
765
  if (subRange.start.row <= startRow) {
666
766
  break;
667
- } else if (subRange.isMultiLine()) {
767
+ }
768
+ else if (subRange.isMultiLine()) {
668
769
  row = subRange.end.row;
669
- } else if (startIndent == indent) {
770
+ }
771
+ else if (startIndent == indent) {
670
772
  break;
671
773
  }
672
774
  }
673
775
  endRow = row;
674
776
  }
675
-
676
777
  return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
677
778
  };
678
- this.getCommentRegionBlock = function(session, line, row) {
779
+ this.getCommentRegionBlock = function (session, line, row) {
679
780
  var startColumn = line.search(/\s*$/);
680
781
  var maxRow = session.getLength();
681
782
  var startRow = row;
682
-
683
783
  var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
684
784
  var depth = 1;
685
785
  while (++row < maxRow) {
686
786
  line = session.getLine(row);
687
787
  var m = re.exec(line);
688
- if (!m) continue;
689
- if (m[1]) depth--;
690
- else depth++;
691
-
692
- if (!depth) break;
788
+ if (!m)
789
+ continue;
790
+ if (m[1])
791
+ depth--;
792
+ else
793
+ depth++;
794
+ if (!depth)
795
+ break;
693
796
  }
694
-
695
797
  var endRow = row;
696
798
  if (endRow > startRow) {
697
799
  return new Range(startRow, startColumn, endRow, line.length);
698
800
  }
699
801
  };
700
-
701
802
  }).call(FoldMode.prototype);
702
803
 
703
804
  });
704
805
 
705
- ace.define("ace/mode/javascript",[], function(require, exports, module) {
706
- "use strict";
707
-
806
+ ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
708
807
  var oop = require("../lib/oop");
709
808
  var TextMode = require("./text").Mode;
710
809
  var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
@@ -712,39 +811,35 @@ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutd
712
811
  var WorkerClient = require("../worker/worker_client").WorkerClient;
713
812
  var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
714
813
  var CStyleFoldMode = require("./folding/cstyle").FoldMode;
715
-
716
- var Mode = function() {
814
+ var Mode = function () {
717
815
  this.HighlightRules = JavaScriptHighlightRules;
718
-
719
816
  this.$outdent = new MatchingBraceOutdent();
720
817
  this.$behaviour = new CstyleBehaviour();
721
818
  this.foldingRules = new CStyleFoldMode();
722
819
  };
723
820
  oop.inherits(Mode, TextMode);
724
-
725
- (function() {
726
-
821
+ (function () {
727
822
  this.lineCommentStart = "//";
728
- this.blockComment = {start: "/*", end: "*/"};
729
- this.$quotes = {'"': '"', "'": "'", "`": "`"};
730
-
731
- this.getNextLineIndent = function(state, line, tab) {
823
+ this.blockComment = { start: "/*", end: "*/" };
824
+ this.$quotes = { '"': '"', "'": "'", "`": "`" };
825
+ this.$pairQuotesAfter = {
826
+ "`": /\w/
827
+ };
828
+ this.getNextLineIndent = function (state, line, tab) {
732
829
  var indent = this.$getIndent(line);
733
-
734
830
  var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
735
831
  var tokens = tokenizedLine.tokens;
736
832
  var endState = tokenizedLine.state;
737
-
738
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
833
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
739
834
  return indent;
740
835
  }
741
-
742
836
  if (state == "start" || state == "no_regex") {
743
837
  var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
744
838
  if (match) {
745
839
  indent += tab;
746
840
  }
747
- } else if (state == "doc-start") {
841
+ }
842
+ else if (state == "doc-start") {
748
843
  if (endState == "start" || endState == "no_regex") {
749
844
  return "";
750
845
  }
@@ -756,330 +851,298 @@ oop.inherits(Mode, TextMode);
756
851
  indent += "* ";
757
852
  }
758
853
  }
759
-
760
854
  return indent;
761
855
  };
762
-
763
- this.checkOutdent = function(state, line, input) {
856
+ this.checkOutdent = function (state, line, input) {
764
857
  return this.$outdent.checkOutdent(line, input);
765
858
  };
766
-
767
- this.autoOutdent = function(state, doc, row) {
859
+ this.autoOutdent = function (state, doc, row) {
768
860
  this.$outdent.autoOutdent(doc, row);
769
861
  };
770
-
771
- this.createWorker = function(session) {
862
+ this.createWorker = function (session) {
772
863
  var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
773
864
  worker.attachToDocument(session.getDocument());
774
-
775
- worker.on("annotate", function(results) {
865
+ worker.on("annotate", function (results) {
776
866
  session.setAnnotations(results.data);
777
867
  });
778
-
779
- worker.on("terminate", function() {
868
+ worker.on("terminate", function () {
780
869
  session.clearAnnotations();
781
870
  });
782
-
783
871
  return worker;
784
872
  };
785
-
786
873
  this.$id = "ace/mode/javascript";
787
874
  this.snippetFileId = "ace/snippets/javascript";
788
875
  }).call(Mode.prototype);
789
-
790
876
  exports.Mode = Mode;
791
- });
792
877
 
793
- ace.define("ace/mode/gobstones_highlight_rules",[], function(require, exports) {
794
- "use strict";
878
+ });
795
879
 
880
+ ace.define("ace/mode/gobstones_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
796
881
  var oop = require("../lib/oop");
797
882
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
798
-
799
- var GobstonesHighlightRules = function() {
800
-
801
- var definitions = {
802
- standard: "program|procedure|function|interactive|return|let",
803
- type: "type|is|variant|record|field|case"
804
- };
805
-
806
- var control = {
807
- commands: {
808
- repetitions: "repeat|while|foreach|in",
809
- alternatives: "if|elseif|else|switch"
810
- },
811
- expressions: {
812
- alternatives: "choose|when|otherwise|matching|select|on"
813
- }
814
- };
815
-
816
- var values = {
817
- colors: "Verde|Rojo|Azul|Negro",
818
- cardinals: "Norte|Sur|Este|Oeste",
819
- booleans: "True|False",
820
- numbers: /([-]?)([0-9]+)\b/,
821
- strings: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
822
- };
823
-
824
- var primitives = {
825
- commands: "Poner|Sacar|Mover|IrAlBorde|VaciarTablero|BOOM",
826
- expressions: "nroBolitas|hayBolitas|puedeMover|"+
827
- "siguiente|previo|opuesto|"+
828
- "minBool|maxBool|minDir|maxDir|minColor|maxColor|"+
829
- "primero|sinElPrimero|esVacía|"+
830
- "boom",
831
- keys: "K_A|K_B|K_C|K_D|K_E|K_F|K_G|K_G|K_H|K_I|K_J|K_K|K_L|K_M|K_N|K_Ñ|"+
832
- "K_O|K_P|K_Q|K_R|K_S|K_T|K_U|K_V|K_W|K_X|K_Y|K_Z|"+
833
- "K_0|K_1|K_2|K_3|K_4|K_5|K_6|K_7|K_8|K_9|"+
834
- "K_F1|K_F2|K_F3|K_F4|K_F5|K_F6|K_F7|K_F8|K_F9|K_F10|K_F11|K_12|"+
835
- "K_UP|K_DOWN|K_LEFT|K_RIGHT|K_RETURN|K_BACKSPACE|K_TAB|K_SPACE|K_ESCAPE"+
836
-
837
- "K_CTRL_A|K_CTRL_B|K_CTRL_C|K_CTRL_D|K_CTRL_E|K_CTRL_F|K_CTRL_G|K_CTRL_G|"+
838
- "K_CTRL_H|K_CTRL_I|K_CTRL_J|K_CTRL_K|K_CTRL_L|K_CTRL_M|K_CTRL_N|K_CTRL_Ñ|"+
839
- "K_CTRL_O|K_CTRL_P|K_CTRL_Q|K_CTRL_R|K_CTRL_S|K_CTRL_T|K_CTRL_U|K_CTRL_V|"+
840
- "K_CTRL_W|K_CTRL_X|K_CTRL_Y|K_CTRL_Z|"+
841
- "K_CTRL_0|K_CTRL_1|K_CTRL_2|K_CTRL_3|K_CTRL_4|K_CTRL_5|K_CTRL_6|K_CTRL_7|K_CTRL_8|K_CTRL_9|"+
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_SHIFT_3|"+
919
- "K_CTRL_ALT_SHIFT_4|K_CTRL_ALT_SHIFT_5|K_CTRL_ALT_SHIFT_6|K_CTRL_ALT_SHIFT_7|"+
920
- "K_CTRL_ALT_SHIFT_8|K_CTRL_ALT_SHIFT_9|"+
921
- "K_CTRL_ALT_SHIFT_F1|K_CTRL_ALT_SHIFT_F2|K_CTRL_ALT_SHIFT_F3|K_CTRL_ALT_SHIFT_F4|"+
922
- "K_CTRL_ALT_SHIFT_F5|K_CTRL_ALT_SHIFT_F6|K_CTRL_ALT_SHIFT_F7|K_CTRL_ALT_SHIFT_F8|"+
923
- "K_CTRL_ALT_SHIFT_F9|K_CTRL_ALT_SHIFT_F10|K_CTRL_ALT_SHIFT_F11|K_CTRL_ALT_SHIFT_F12|"+
924
- "K_CTRL_ALT_SHIFT_UP|K_CTRL_ALT_SHIFT_DOWN|K_CTRL_ALT_SHIFT_LEFT|K_CTRL_ALT_SHIFT_RIGHT|"+
925
- "K_CTRL_ALT_SHIFT_RETURN|K_CTRL_ALT_SHIFT_BACKSPACE|K_CTRL_ALT_SHIFT_TAB|"+
926
- "K_CTRL_ALT_SHIFT_SPACE|K_CTRL_ALT_SHIFT_ESCAPE"
927
- };
928
-
929
- var operations = {
930
- commands: ":=",
931
- expressions: {
932
- numeric: "\\+|\\-|\\*|\\^|div|mod",
933
- comparison: ">=|<=|==|\\/=|>|<",
934
- boolean: "\\|\\||&&|not",
935
- other: "\\+\\+|<\\-|\\[|\\]|\\_|\\->"
936
- }
937
- };
938
-
939
- var comments = {
940
- line: {
941
- double_slash: "\\/\\/.*$",
942
- double_dash: "\\-\\-.*$",
943
- number_sign: "#.*$"
944
- },
945
- block: { start: "\\/\\*", end: "\\*\\/" },
946
- block_alt: { start: "\\{\\-", end: "\\-\\}" }
947
- };
948
-
949
- this.$rules = {
950
- "start" : [
951
- {
952
- token : "comment.line.double-slash.gobstones",
953
- regex : comments.line.double_slash
954
- },
955
- {
956
- token : "comment.line.double-dash.gobstones",
957
- regex : comments.line.double_dash
958
- },
959
- {
960
- token : "comment.line.number-sign.gobstones",
961
- regex : comments.line.number_sign
962
- },
963
- {
964
- token : "comment.block.dash-asterisc.gobstones",
965
- regex : comments.block.start,
966
- next : "block_comment_end"
967
- },
968
- {
969
- token : "comment.block.brace-dash.gobstones",
970
- regex : comments.block_alt.start,
971
- next : "block_comment_alt_end"
972
- },
973
- {
974
- token : "constant.numeric.gobstones",
975
- regex : values.numbers
976
- },
977
- {
978
- token : "string.quoted.double.gobstones",
979
- regex : values.strings
980
- },
981
- {
982
- token : "keyword.operator.other.gobstones",
983
- regex : operations.expressions.other
984
- },
985
- {
986
- token : "keyword.operator.numeric.gobstones",
987
- regex : operations.expressions.numeric
988
- },
989
- {
990
- token : "keyword.operator.compare.gobstones",
991
- regex : operations.expressions.comparison
992
- },
993
- {
994
- token : "keyword.operator.boolean.gobstones",
995
- regex : operations.expressions.boolean
996
- },
997
- {
998
- token : this.createKeywordMapper({
999
- "storage.type.definitions.gobstones": definitions.standard,
1000
- "storage.type.types.gobstones": definitions.type,
1001
- "keyword.control.commands.repetitions.gobstones": control.commands.repetitions,
1002
- "keyword.control.commands.alternatives.gobstones": control.commands.alternatives,
1003
- "keyword.control.expressions.alternatives.gobstones": control.expressions.alternatives,
1004
- "constant.language.colors.gobstones":values.colors,
1005
- "constant.language.cardinals.gobstones": values.cardinals,
1006
- "constant.language.boolean.gobstones": values.booleans,
1007
- "support.function.gobstones": primitives.commands,
1008
- "support.variable.gobstones": primitives.expressions,
1009
- "variable.language.gobstones": primitives.keys
1010
- }, "identifier.gobstones"),
1011
- regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1012
- },
1013
- {
1014
- token : "comma.gobstones",
1015
- regex : ","
1016
- },
1017
- {
1018
- token : "semicolon.gobstones",
1019
- regex : ";"
1020
- },
1021
- {
1022
- token : "lparen",
1023
- regex : "[[({]"
1024
- },
1025
- {
1026
- token : "rparen",
1027
- regex : "[\\])}]"
1028
- },
1029
- {
1030
- token : "text",
1031
- regex : "\\s+"
1032
- }
1033
- ],
1034
- "block_comment_end": [{
1035
- token : "comment.block.dash-asterisc.gobstones",
1036
- regex : comments.block.end,
1037
- next : "start"
1038
- }, {
1039
- defaultToken : "comment.block.dash-asterisc.gobstones"
1040
- }
1041
- ],
1042
- "block_comment_alt_end": [{
1043
- token : "comment.block.brace-dash.gobstones",
1044
- regex : comments.block_alt.end,
1045
- next : "start"
1046
- }, {
1047
- defaultToken : "comment.block.brace-dash.gobstones"
1048
- }
1049
- ]
1050
- };
883
+ var GobstonesHighlightRules = function () {
884
+ var definitions = {
885
+ standard: "program|procedure|function|interactive|return|let",
886
+ type: "type|is|variant|record|field|case"
887
+ };
888
+ var control = {
889
+ commands: {
890
+ repetitions: "repeat|while|foreach|in",
891
+ alternatives: "if|elseif|else|switch"
892
+ },
893
+ expressions: {
894
+ alternatives: "choose|when|otherwise|matching|select|on"
895
+ }
896
+ };
897
+ var values = {
898
+ colors: "Verde|Rojo|Azul|Negro",
899
+ cardinals: "Norte|Sur|Este|Oeste",
900
+ booleans: "True|False",
901
+ numbers: /([-]?)([0-9]+)\b/,
902
+ strings: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
903
+ };
904
+ var primitives = {
905
+ commands: "Poner|Sacar|Mover|IrAlBorde|VaciarTablero|BOOM",
906
+ expressions: "nroBolitas|hayBolitas|puedeMover|" +
907
+ "siguiente|previo|opuesto|" +
908
+ "minBool|maxBool|minDir|maxDir|minColor|maxColor|" +
909
+ "primero|sinElPrimero|esVacía|" +
910
+ "boom",
911
+ keys: "K_A|K_B|K_C|K_D|K_E|K_F|K_G|K_G|K_H|K_I|K_J|K_K|K_L|K_M|K_N|K_Ñ|" +
912
+ "K_O|K_P|K_Q|K_R|K_S|K_T|K_U|K_V|K_W|K_X|K_Y|K_Z|" +
913
+ "K_0|K_1|K_2|K_3|K_4|K_5|K_6|K_7|K_8|K_9|" +
914
+ "K_F1|K_F2|K_F3|K_F4|K_F5|K_F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ALT_SHIFT_RIGHT|" +
998
+ "K_CTRL_ALT_SHIFT_RETURN|K_CTRL_ALT_SHIFT_BACKSPACE|K_CTRL_ALT_SHIFT_TAB|" +
999
+ "K_CTRL_ALT_SHIFT_SPACE|K_CTRL_ALT_SHIFT_ESCAPE"
1000
+ };
1001
+ var operations = {
1002
+ commands: ":=",
1003
+ expressions: {
1004
+ numeric: "\\+|\\-|\\*|\\^|div|mod",
1005
+ comparison: ">=|<=|==|\\/=|>|<",
1006
+ boolean: "\\|\\||&&|not",
1007
+ other: "\\+\\+|<\\-|\\[|\\]|\\_|\\->"
1008
+ }
1009
+ };
1010
+ var comments = {
1011
+ line: {
1012
+ double_slash: "\\/\\/.*$",
1013
+ double_dash: "\\-\\-.*$",
1014
+ number_sign: "#.*$"
1015
+ },
1016
+ block: { start: "\\/\\*", end: "\\*\\/" },
1017
+ block_alt: { start: "\\{\\-", end: "\\-\\}" }
1018
+ };
1019
+ this.$rules = {
1020
+ "start": [
1021
+ {
1022
+ token: "comment.line.double-slash.gobstones",
1023
+ regex: comments.line.double_slash
1024
+ },
1025
+ {
1026
+ token: "comment.line.double-dash.gobstones",
1027
+ regex: comments.line.double_dash
1028
+ },
1029
+ {
1030
+ token: "comment.line.number-sign.gobstones",
1031
+ regex: comments.line.number_sign
1032
+ },
1033
+ {
1034
+ token: "comment.block.dash-asterisc.gobstones",
1035
+ regex: comments.block.start,
1036
+ next: "block_comment_end"
1037
+ },
1038
+ {
1039
+ token: "comment.block.brace-dash.gobstones",
1040
+ regex: comments.block_alt.start,
1041
+ next: "block_comment_alt_end"
1042
+ },
1043
+ {
1044
+ token: "constant.numeric.gobstones",
1045
+ regex: values.numbers
1046
+ },
1047
+ {
1048
+ token: "string.quoted.double.gobstones",
1049
+ regex: values.strings
1050
+ },
1051
+ {
1052
+ token: "keyword.operator.other.gobstones",
1053
+ regex: operations.expressions.other
1054
+ },
1055
+ {
1056
+ token: "keyword.operator.numeric.gobstones",
1057
+ regex: operations.expressions.numeric
1058
+ },
1059
+ {
1060
+ token: "keyword.operator.compare.gobstones",
1061
+ regex: operations.expressions.comparison
1062
+ },
1063
+ {
1064
+ token: "keyword.operator.boolean.gobstones",
1065
+ regex: operations.expressions.boolean
1066
+ },
1067
+ {
1068
+ token: this.createKeywordMapper({
1069
+ "storage.type.definitions.gobstones": definitions.standard,
1070
+ "storage.type.types.gobstones": definitions.type,
1071
+ "keyword.control.commands.repetitions.gobstones": control.commands.repetitions,
1072
+ "keyword.control.commands.alternatives.gobstones": control.commands.alternatives,
1073
+ "keyword.control.expressions.alternatives.gobstones": control.expressions.alternatives,
1074
+ "constant.language.colors.gobstones": values.colors,
1075
+ "constant.language.cardinals.gobstones": values.cardinals,
1076
+ "constant.language.boolean.gobstones": values.booleans,
1077
+ "support.function.gobstones": primitives.commands,
1078
+ "support.variable.gobstones": primitives.expressions,
1079
+ "variable.language.gobstones": primitives.keys
1080
+ }, "identifier.gobstones"),
1081
+ regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
1082
+ },
1083
+ {
1084
+ token: "comma.gobstones",
1085
+ regex: ","
1086
+ },
1087
+ {
1088
+ token: "semicolon.gobstones",
1089
+ regex: ";"
1090
+ },
1091
+ {
1092
+ token: "lparen",
1093
+ regex: "[[({]"
1094
+ },
1095
+ {
1096
+ token: "rparen",
1097
+ regex: "[\\])}]"
1098
+ },
1099
+ {
1100
+ token: "text",
1101
+ regex: "\\s+"
1102
+ }
1103
+ ],
1104
+ "block_comment_end": [{
1105
+ token: "comment.block.dash-asterisc.gobstones",
1106
+ regex: comments.block.end,
1107
+ next: "start"
1108
+ }, {
1109
+ defaultToken: "comment.block.dash-asterisc.gobstones"
1110
+ }
1111
+ ],
1112
+ "block_comment_alt_end": [{
1113
+ token: "comment.block.brace-dash.gobstones",
1114
+ regex: comments.block_alt.end,
1115
+ next: "start"
1116
+ }, {
1117
+ defaultToken: "comment.block.brace-dash.gobstones"
1118
+ }
1119
+ ]
1120
+ };
1051
1121
  };
1052
-
1053
1122
  oop.inherits(GobstonesHighlightRules, TextHighlightRules);
1054
-
1055
1123
  exports.GobstonesHighlightRules = GobstonesHighlightRules;
1056
- });
1057
1124
 
1058
- ace.define("ace/mode/gobstones",[], function(require, exports) {
1059
- "use strict";
1125
+ });
1060
1126
 
1127
+ ace.define("ace/mode/gobstones",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/mode/gobstones_highlight_rules"], function(require, exports, module){"use strict";
1061
1128
  var oop = require("../lib/oop");
1062
1129
  var JavaScriptMode = require("./javascript").Mode;
1063
1130
  var GobstonesHighlightRules = require("./gobstones_highlight_rules").GobstonesHighlightRules;
1064
-
1065
- var Mode = function() {
1131
+ var Mode = function () {
1066
1132
  JavaScriptMode.call(this);
1067
1133
  this.HighlightRules = GobstonesHighlightRules;
1068
1134
  this.$behaviour = this.$defaultBehaviour;
1069
1135
  };
1070
1136
  oop.inherits(Mode, JavaScriptMode);
1071
-
1072
- (function() {
1073
-
1074
- this.createWorker = function() {
1137
+ (function () {
1138
+ this.createWorker = function () {
1075
1139
  return null;
1076
1140
  };
1077
-
1078
1141
  this.$id = "ace/mode/gobstones";
1079
1142
  this.snippetFileId = "ace/snippets/gobstones";
1080
1143
  }).call(Mode.prototype);
1081
-
1082
1144
  exports.Mode = Mode;
1145
+
1083
1146
  }); (function() {
1084
1147
  ace.require(["ace/mode/gobstones"], function(m) {
1085
1148
  if (typeof module == "object" && typeof exports == "object" && module) {