@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,171 +1,150 @@
1
- ace.define("ace/mode/doc_comment_highlight_rules",[], function(require, exports, module) {
2
- "use strict";
3
-
1
+ ace.define("ace/mode/doc_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 DocCommentHighlightRules = 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",
9
+ regex: "@\\w+(?=\\s|$)"
10
+ }, DocCommentHighlightRules.getTagRule(), {
11
+ defaultToken: "comment.doc",
12
+ caseInsensitive: true
13
+ }
14
+ ]
18
15
  };
19
16
  };
20
-
21
17
  oop.inherits(DocCommentHighlightRules, TextHighlightRules);
22
-
23
- DocCommentHighlightRules.getTagRule = function(start) {
18
+ DocCommentHighlightRules.getTagRule = function (start) {
24
19
  return {
25
- token : "comment.doc.tag.storage.type",
26
- regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
20
+ token: "comment.doc.tag.storage.type",
21
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27
22
  };
28
23
  };
29
-
30
- DocCommentHighlightRules.getStartRule = function(start) {
24
+ DocCommentHighlightRules.getStartRule = function (start) {
31
25
  return {
32
- token : "comment.doc", // doc comment
33
- regex : "\\/\\*(?=\\*)",
34
- next : start
26
+ token: "comment.doc",
27
+ regex: "\\/\\*(?=\\*)",
28
+ next: start
35
29
  };
36
30
  };
37
-
38
31
  DocCommentHighlightRules.getEndRule = function (start) {
39
32
  return {
40
- token : "comment.doc", // closing comment
41
- regex : "\\*\\/",
42
- next : start
33
+ token: "comment.doc",
34
+ regex: "\\*\\/",
35
+ next: start
43
36
  };
44
37
  };
45
-
46
-
47
38
  exports.DocCommentHighlightRules = DocCommentHighlightRules;
48
39
 
49
40
  });
50
41
 
51
- ace.define("ace/mode/perl_highlight_rules",[], function(require, exports, module) {
52
- "use strict";
53
-
42
+ ace.define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
54
43
  var oop = require("../lib/oop");
55
44
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
56
-
57
- var PerlHighlightRules = function() {
58
-
59
- var keywords = (
60
- "base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
61
- "no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars"
62
- );
63
-
45
+ var PerlHighlightRules = function () {
46
+ var keywords = ("base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
47
+ "no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars");
64
48
  var buildinConstants = ("ARGV|ENV|INC|SIG");
65
-
66
- var builtinFunctions = (
67
- "getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
68
- "gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
69
- "getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
70
- "endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
71
- "getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
72
- "localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
73
- "closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
74
- "shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
75
- "dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
76
- "setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
77
- "lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
78
- "waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
79
- "chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
80
- "unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
81
- "length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
82
- "undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
83
- "sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
84
- "BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
85
- "join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
86
- "keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
87
- "eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
88
- "map|die|uc|lc|do"
89
- );
90
-
49
+ var builtinFunctions = ("getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
50
+ "gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
51
+ "getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
52
+ "endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
53
+ "getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
54
+ "localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
55
+ "closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
56
+ "shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
57
+ "dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
58
+ "setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
59
+ "lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
60
+ "waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
61
+ "chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
62
+ "unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
63
+ "length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
64
+ "undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
65
+ "sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
66
+ "BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
67
+ "join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
68
+ "keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
69
+ "eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
70
+ "map|die|uc|lc|do");
91
71
  var keywordMapper = this.createKeywordMapper({
92
72
  "keyword": keywords,
93
73
  "constant.language": buildinConstants,
94
74
  "support.function": builtinFunctions
95
75
  }, "identifier");
96
-
97
76
  this.$rules = {
98
- "start" : [
77
+ "start": [
99
78
  {
100
- token : "comment.doc",
101
- regex : "^=(?:begin|item)\\b",
102
- next : "block_comment"
79
+ token: "comment.doc",
80
+ regex: "^=(?:begin|item)\\b",
81
+ next: "block_comment"
103
82
  }, {
104
- token : "string.regexp",
105
- regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
83
+ token: "string.regexp",
84
+ regex: "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
106
85
  }, {
107
- token : "string", // single line
108
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
86
+ token: "string",
87
+ regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
109
88
  }, {
110
- token : "string", // multi line string start
111
- regex : '["].*\\\\$',
112
- next : "qqstring"
89
+ token: "string",
90
+ regex: '["].*\\\\$',
91
+ next: "qqstring"
113
92
  }, {
114
- token : "string", // single line
115
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
93
+ token: "string",
94
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
116
95
  }, {
117
- token : "string", // multi line string start
118
- regex : "['].*\\\\$",
119
- next : "qstring"
96
+ token: "string",
97
+ regex: "['].*\\\\$",
98
+ next: "qstring"
120
99
  }, {
121
- token : "constant.numeric", // hex
122
- regex : "0x[0-9a-fA-F]+\\b"
100
+ token: "constant.numeric",
101
+ regex: "0x[0-9a-fA-F]+\\b"
123
102
  }, {
124
- token : "constant.numeric", // float
125
- regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
103
+ token: "constant.numeric",
104
+ regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
126
105
  }, {
127
- token : keywordMapper,
128
- regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
106
+ token: keywordMapper,
107
+ regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
129
108
  }, {
130
- token : "keyword.operator",
131
- regex : "%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
109
+ token: "keyword.operator",
110
+ regex: "%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
132
111
  }, {
133
- token : "comment",
134
- regex : "#.*$"
112
+ token: "comment",
113
+ regex: "#.*$"
135
114
  }, {
136
- token : "lparen",
137
- regex : "[[({]"
115
+ token: "lparen",
116
+ regex: "[[({]"
138
117
  }, {
139
- token : "rparen",
140
- regex : "[\\])}]"
118
+ token: "rparen",
119
+ regex: "[\\])}]"
141
120
  }, {
142
- token : "text",
143
- regex : "\\s+"
121
+ token: "text",
122
+ regex: "\\s+"
144
123
  }
145
124
  ],
146
- "qqstring" : [
125
+ "qqstring": [
147
126
  {
148
- token : "string",
149
- regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
150
- next : "start"
127
+ token: "string",
128
+ regex: '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
129
+ next: "start"
151
130
  }, {
152
- token : "string",
153
- regex : '.+'
131
+ token: "string",
132
+ regex: '.+'
154
133
  }
155
134
  ],
156
- "qstring" : [
135
+ "qstring": [
157
136
  {
158
- token : "string",
159
- regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
160
- next : "start"
137
+ token: "string",
138
+ regex: "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
139
+ next: "start"
161
140
  }, {
162
- token : "string",
163
- regex : '.+'
141
+ token: "string",
142
+ regex: '.+'
164
143
  }
165
144
  ],
166
145
  "block_comment": [
167
146
  {
168
- token: "comment.doc",
147
+ token: "comment.doc",
169
148
  regex: "^=cut\\b",
170
149
  next: "start"
171
150
  },
@@ -175,32 +154,23 @@ var PerlHighlightRules = function() {
175
154
  ]
176
155
  };
177
156
  };
178
-
179
157
  oop.inherits(PerlHighlightRules, TextHighlightRules);
180
-
181
158
  exports.PerlHighlightRules = PerlHighlightRules;
159
+
182
160
  });
183
161
 
184
- ace.define("ace/mode/python_highlight_rules",[], function(require, exports, module) {
162
+ ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){/*
163
+ * TODO: python delimiters
164
+ */
185
165
  "use strict";
186
-
187
166
  var oop = require("../lib/oop");
188
167
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
189
-
190
- var PythonHighlightRules = function() {
191
-
192
- var keywords = (
193
- "and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
168
+ var PythonHighlightRules = function () {
169
+ var keywords = ("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
194
170
  "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
195
- "raise|return|try|while|with|yield|async|await|nonlocal"
196
- );
197
-
198
- var builtinConstants = (
199
- "True|False|None|NotImplemented|Ellipsis|__debug__"
200
- );
201
-
202
- var builtinFunctions = (
203
- "abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
171
+ "raise|return|try|while|with|yield|async|await|nonlocal");
172
+ var builtinConstants = ("True|False|None|NotImplemented|Ellipsis|__debug__");
173
+ var builtinFunctions = ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
204
174
  "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
205
175
  "binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
206
176
  "float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
@@ -208,8 +178,7 @@ var PythonHighlightRules = function() {
208
178
  "cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
209
179
  "__import__|complex|hash|min|apply|delattr|help|next|setattr|set|" +
210
180
  "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|" +
211
- "ascii|breakpoint|bytes"
212
- );
181
+ "ascii|breakpoint|bytes");
213
182
  var keywordMapper = this.createKeywordMapper({
214
183
  "invalid.deprecated": "debugger",
215
184
  "support.function": builtinFunctions,
@@ -217,7 +186,6 @@ var PythonHighlightRules = function() {
217
186
  "constant.language": builtinConstants,
218
187
  "keyword": keywords
219
188
  }, "identifier");
220
-
221
189
  var strPre = "[uU]?";
222
190
  var strRawPre = "[rR]";
223
191
  var strFormatPre = "[fF]";
@@ -227,464 +195,575 @@ var PythonHighlightRules = function() {
227
195
  var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
228
196
  var binInteger = "(?:0[bB][01]+)";
229
197
  var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
230
-
231
198
  var exponent = "(?:[eE][+-]?\\d+)";
232
199
  var fraction = "(?:\\.\\d+)";
233
200
  var intPart = "(?:\\d+)";
234
201
  var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
235
202
  var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
236
203
  var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
237
-
238
204
  var stringEscape = "\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";
239
-
240
205
  this.$rules = {
241
- "start" : [ {
242
- token : "comment",
243
- regex : "#.*$"
244
- }, {
245
- token : "string", // multi line """ string start
246
- regex : strPre + '"{3}',
247
- next : "qqstring3"
248
- }, {
249
- token : "string", // " string
250
- regex : strPre + '"(?=.)',
251
- next : "qqstring"
252
- }, {
253
- token : "string", // multi line ''' string start
254
- regex : strPre + "'{3}",
255
- next : "qstring3"
256
- }, {
257
- token : "string", // ' string
258
- regex : strPre + "'(?=.)",
259
- next : "qstring"
260
- }, {
261
- token: "string",
262
- regex: strRawPre + '"{3}',
263
- next: "rawqqstring3"
264
- }, {
265
- token: "string",
266
- regex: strRawPre + '"(?=.)',
267
- next: "rawqqstring"
268
- }, {
269
- token: "string",
270
- regex: strRawPre + "'{3}",
271
- next: "rawqstring3"
272
- }, {
273
- token: "string",
274
- regex: strRawPre + "'(?=.)",
275
- next: "rawqstring"
276
- }, {
277
- token: "string",
278
- regex: strFormatPre + '"{3}',
279
- next: "fqqstring3"
280
- }, {
281
- token: "string",
282
- regex: strFormatPre + '"(?=.)',
283
- next: "fqqstring"
284
- }, {
285
- token: "string",
286
- regex: strFormatPre + "'{3}",
287
- next: "fqstring3"
288
- }, {
289
- token: "string",
290
- regex: strFormatPre + "'(?=.)",
291
- next: "fqstring"
292
- },{
293
- token: "string",
294
- regex: strRawFormatPre + '"{3}',
295
- next: "rfqqstring3"
296
- }, {
297
- token: "string",
298
- regex: strRawFormatPre + '"(?=.)',
299
- next: "rfqqstring"
300
- }, {
301
- token: "string",
302
- regex: strRawFormatPre + "'{3}",
303
- next: "rfqstring3"
304
- }, {
305
- token: "string",
306
- regex: strRawFormatPre + "'(?=.)",
307
- next: "rfqstring"
308
- }, {
309
- token: "keyword.operator",
310
- regex: "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
311
- }, {
312
- token: "punctuation",
313
- regex: ",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="
314
- }, {
315
- token: "paren.lparen",
316
- regex: "[\\[\\(\\{]"
317
- }, {
318
- token: "paren.rparen",
319
- regex: "[\\]\\)\\}]"
320
- }, {
321
- token: "text",
322
- regex: "\\s+"
323
- }, {
324
- include: "constants"
325
- }],
206
+ "start": [{
207
+ token: "comment",
208
+ regex: "#.*$"
209
+ }, {
210
+ token: "string",
211
+ regex: strPre + '"{3}',
212
+ next: "qqstring3"
213
+ }, {
214
+ token: "string",
215
+ regex: strPre + '"(?=.)',
216
+ next: "qqstring"
217
+ }, {
218
+ token: "string",
219
+ regex: strPre + "'{3}",
220
+ next: "qstring3"
221
+ }, {
222
+ token: "string",
223
+ regex: strPre + "'(?=.)",
224
+ next: "qstring"
225
+ }, {
226
+ token: "string",
227
+ regex: strRawPre + '"{3}',
228
+ next: "rawqqstring3"
229
+ }, {
230
+ token: "string",
231
+ regex: strRawPre + '"(?=.)',
232
+ next: "rawqqstring"
233
+ }, {
234
+ token: "string",
235
+ regex: strRawPre + "'{3}",
236
+ next: "rawqstring3"
237
+ }, {
238
+ token: "string",
239
+ regex: strRawPre + "'(?=.)",
240
+ next: "rawqstring"
241
+ }, {
242
+ token: "string",
243
+ regex: strFormatPre + '"{3}',
244
+ next: "fqqstring3"
245
+ }, {
246
+ token: "string",
247
+ regex: strFormatPre + '"(?=.)',
248
+ next: "fqqstring"
249
+ }, {
250
+ token: "string",
251
+ regex: strFormatPre + "'{3}",
252
+ next: "fqstring3"
253
+ }, {
254
+ token: "string",
255
+ regex: strFormatPre + "'(?=.)",
256
+ next: "fqstring"
257
+ }, {
258
+ token: "string",
259
+ regex: strRawFormatPre + '"{3}',
260
+ next: "rfqqstring3"
261
+ }, {
262
+ token: "string",
263
+ regex: strRawFormatPre + '"(?=.)',
264
+ next: "rfqqstring"
265
+ }, {
266
+ token: "string",
267
+ regex: strRawFormatPre + "'{3}",
268
+ next: "rfqstring3"
269
+ }, {
270
+ token: "string",
271
+ regex: strRawFormatPre + "'(?=.)",
272
+ next: "rfqstring"
273
+ }, {
274
+ token: "keyword.operator",
275
+ regex: "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
276
+ }, {
277
+ token: "punctuation",
278
+ regex: ",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="
279
+ }, {
280
+ token: "paren.lparen",
281
+ regex: "[\\[\\(\\{]"
282
+ }, {
283
+ token: "paren.rparen",
284
+ regex: "[\\]\\)\\}]"
285
+ }, {
286
+ token: ["keyword", "text", "entity.name.function"],
287
+ regex: "(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"
288
+ }, {
289
+ token: "text",
290
+ regex: "\\s+"
291
+ }, {
292
+ include: "constants"
293
+ }],
326
294
  "qqstring3": [{
327
- token: "constant.language.escape",
328
- regex: stringEscape
329
- }, {
330
- token: "string", // multi line """ string end
331
- regex: '"{3}',
332
- next: "start"
333
- }, {
334
- defaultToken: "string"
335
- }],
295
+ token: "constant.language.escape",
296
+ regex: stringEscape
297
+ }, {
298
+ token: "string",
299
+ regex: '"{3}',
300
+ next: "start"
301
+ }, {
302
+ defaultToken: "string"
303
+ }],
336
304
  "qstring3": [{
337
- token: "constant.language.escape",
338
- regex: stringEscape
339
- }, {
340
- token: "string", // multi line ''' string end
341
- regex: "'{3}",
342
- next: "start"
343
- }, {
344
- defaultToken: "string"
345
- }],
305
+ token: "constant.language.escape",
306
+ regex: stringEscape
307
+ }, {
308
+ token: "string",
309
+ regex: "'{3}",
310
+ next: "start"
311
+ }, {
312
+ defaultToken: "string"
313
+ }],
346
314
  "qqstring": [{
347
- token: "constant.language.escape",
348
- regex: stringEscape
349
- }, {
350
- token: "string",
351
- regex: "\\\\$",
352
- next: "qqstring"
353
- }, {
354
- token: "string",
355
- regex: '"|$',
356
- next: "start"
357
- }, {
358
- defaultToken: "string"
359
- }],
315
+ token: "constant.language.escape",
316
+ regex: stringEscape
317
+ }, {
318
+ token: "string",
319
+ regex: "\\\\$",
320
+ next: "qqstring"
321
+ }, {
322
+ token: "string",
323
+ regex: '"|$',
324
+ next: "start"
325
+ }, {
326
+ defaultToken: "string"
327
+ }],
360
328
  "qstring": [{
361
- token: "constant.language.escape",
362
- regex: stringEscape
363
- }, {
364
- token: "string",
365
- regex: "\\\\$",
366
- next: "qstring"
367
- }, {
368
- token: "string",
369
- regex: "'|$",
370
- next: "start"
371
- }, {
372
- defaultToken: "string"
373
- }],
329
+ token: "constant.language.escape",
330
+ regex: stringEscape
331
+ }, {
332
+ token: "string",
333
+ regex: "\\\\$",
334
+ next: "qstring"
335
+ }, {
336
+ token: "string",
337
+ regex: "'|$",
338
+ next: "start"
339
+ }, {
340
+ defaultToken: "string"
341
+ }],
374
342
  "rawqqstring3": [{
375
- token: "string", // multi line """ string end
376
- regex: '"{3}',
377
- next: "start"
378
- }, {
379
- defaultToken: "string"
380
- }],
343
+ token: "string",
344
+ regex: '"{3}',
345
+ next: "start"
346
+ }, {
347
+ defaultToken: "string"
348
+ }],
381
349
  "rawqstring3": [{
382
- token: "string", // multi line ''' string end
383
- regex: "'{3}",
384
- next: "start"
385
- }, {
386
- defaultToken: "string"
387
- }],
350
+ token: "string",
351
+ regex: "'{3}",
352
+ next: "start"
353
+ }, {
354
+ defaultToken: "string"
355
+ }],
388
356
  "rawqqstring": [{
389
- token: "string",
390
- regex: "\\\\$",
391
- next: "rawqqstring"
392
- }, {
393
- token: "string",
394
- regex: '"|$',
395
- next: "start"
396
- }, {
397
- defaultToken: "string"
398
- }],
357
+ token: "string",
358
+ regex: "\\\\$",
359
+ next: "rawqqstring"
360
+ }, {
361
+ token: "string",
362
+ regex: '"|$',
363
+ next: "start"
364
+ }, {
365
+ defaultToken: "string"
366
+ }],
399
367
  "rawqstring": [{
400
- token: "string",
401
- regex: "\\\\$",
402
- next: "rawqstring"
403
- }, {
404
- token: "string",
405
- regex: "'|$",
406
- next: "start"
407
- }, {
408
- defaultToken: "string"
409
- }],
368
+ token: "string",
369
+ regex: "\\\\$",
370
+ next: "rawqstring"
371
+ }, {
372
+ token: "string",
373
+ regex: "'|$",
374
+ next: "start"
375
+ }, {
376
+ defaultToken: "string"
377
+ }],
410
378
  "fqqstring3": [{
411
- token: "constant.language.escape",
412
- regex: stringEscape
413
- }, {
414
- token: "string", // multi line """ string end
415
- regex: '"{3}',
416
- next: "start"
417
- }, {
418
- token: "paren.lparen",
419
- regex: "{",
420
- push: "fqstringParRules"
421
- }, {
422
- defaultToken: "string"
423
- }],
379
+ token: "constant.language.escape",
380
+ regex: stringEscape
381
+ }, {
382
+ token: "string",
383
+ regex: '"{3}',
384
+ next: "start"
385
+ }, {
386
+ token: "paren.lparen",
387
+ regex: "{",
388
+ push: "fqstringParRules"
389
+ }, {
390
+ defaultToken: "string"
391
+ }],
424
392
  "fqstring3": [{
425
- token: "constant.language.escape",
426
- regex: stringEscape
427
- }, {
428
- token: "string", // multi line ''' string end
429
- regex: "'{3}",
430
- next: "start"
431
- }, {
432
- token: "paren.lparen",
433
- regex: "{",
434
- push: "fqstringParRules"
435
- }, {
436
- defaultToken: "string"
437
- }],
393
+ token: "constant.language.escape",
394
+ regex: stringEscape
395
+ }, {
396
+ token: "string",
397
+ regex: "'{3}",
398
+ next: "start"
399
+ }, {
400
+ token: "paren.lparen",
401
+ regex: "{",
402
+ push: "fqstringParRules"
403
+ }, {
404
+ defaultToken: "string"
405
+ }],
438
406
  "fqqstring": [{
439
- token: "constant.language.escape",
440
- regex: stringEscape
441
- }, {
442
- token: "string",
443
- regex: "\\\\$",
444
- next: "fqqstring"
445
- }, {
446
- token: "string",
447
- regex: '"|$',
448
- next: "start"
449
- }, {
450
- token: "paren.lparen",
451
- regex: "{",
452
- push: "fqstringParRules"
453
- }, {
454
- defaultToken: "string"
455
- }],
407
+ token: "constant.language.escape",
408
+ regex: stringEscape
409
+ }, {
410
+ token: "string",
411
+ regex: "\\\\$",
412
+ next: "fqqstring"
413
+ }, {
414
+ token: "string",
415
+ regex: '"|$',
416
+ next: "start"
417
+ }, {
418
+ token: "paren.lparen",
419
+ regex: "{",
420
+ push: "fqstringParRules"
421
+ }, {
422
+ defaultToken: "string"
423
+ }],
456
424
  "fqstring": [{
457
- token: "constant.language.escape",
458
- regex: stringEscape
459
- }, {
460
- token: "string",
461
- regex: "'|$",
462
- next: "start"
463
- }, {
464
- token: "paren.lparen",
465
- regex: "{",
466
- push: "fqstringParRules"
467
- }, {
468
- defaultToken: "string"
469
- }],
425
+ token: "constant.language.escape",
426
+ regex: stringEscape
427
+ }, {
428
+ token: "string",
429
+ regex: "'|$",
430
+ next: "start"
431
+ }, {
432
+ token: "paren.lparen",
433
+ regex: "{",
434
+ push: "fqstringParRules"
435
+ }, {
436
+ defaultToken: "string"
437
+ }],
470
438
  "rfqqstring3": [{
471
- token: "string", // multi line """ string end
472
- regex: '"{3}',
473
- next: "start"
474
- }, {
475
- token: "paren.lparen",
476
- regex: "{",
477
- push: "fqstringParRules"
478
- }, {
479
- defaultToken: "string"
480
- }],
439
+ token: "string",
440
+ regex: '"{3}',
441
+ next: "start"
442
+ }, {
443
+ token: "paren.lparen",
444
+ regex: "{",
445
+ push: "fqstringParRules"
446
+ }, {
447
+ defaultToken: "string"
448
+ }],
481
449
  "rfqstring3": [{
482
- token: "string", // multi line ''' string end
483
- regex: "'{3}",
484
- next: "start"
485
- }, {
486
- token: "paren.lparen",
487
- regex: "{",
488
- push: "fqstringParRules"
489
- }, {
490
- defaultToken: "string"
491
- }],
450
+ token: "string",
451
+ regex: "'{3}",
452
+ next: "start"
453
+ }, {
454
+ token: "paren.lparen",
455
+ regex: "{",
456
+ push: "fqstringParRules"
457
+ }, {
458
+ defaultToken: "string"
459
+ }],
492
460
  "rfqqstring": [{
493
- token: "string",
494
- regex: "\\\\$",
495
- next: "rfqqstring"
496
- }, {
497
- token: "string",
498
- regex: '"|$',
499
- next: "start"
500
- }, {
501
- token: "paren.lparen",
502
- regex: "{",
503
- push: "fqstringParRules"
504
- }, {
505
- defaultToken: "string"
506
- }],
461
+ token: "string",
462
+ regex: "\\\\$",
463
+ next: "rfqqstring"
464
+ }, {
465
+ token: "string",
466
+ regex: '"|$',
467
+ next: "start"
468
+ }, {
469
+ token: "paren.lparen",
470
+ regex: "{",
471
+ push: "fqstringParRules"
472
+ }, {
473
+ defaultToken: "string"
474
+ }],
507
475
  "rfqstring": [{
508
- token: "string",
509
- regex: "'|$",
510
- next: "start"
511
- }, {
512
- token: "paren.lparen",
513
- regex: "{",
514
- push: "fqstringParRules"
515
- }, {
516
- defaultToken: "string"
517
- }],
518
- "fqstringParRules": [{//TODO: nested {}
519
- token: "paren.lparen",
520
- regex: "[\\[\\(]"
521
- }, {
522
- token: "paren.rparen",
523
- regex: "[\\]\\)]"
524
- }, {
525
- token: "string",
526
- regex: "\\s+"
527
- }, {
528
- token: "string",
529
- regex: "'[^']*'"
530
- }, {
531
- token: "string",
532
- regex: '"[^"]*"'
533
- }, {
534
- token: "function.support",
535
- regex: "(!s|!r|!a)"
536
- }, {
537
- include: "constants"
538
- },{
539
- token: 'paren.rparen',
540
- regex: "}",
541
- next: 'pop'
542
- },{
543
- token: 'paren.lparen',
544
- regex: "{",
545
- push: "fqstringParRules"
546
- }],
476
+ token: "string",
477
+ regex: "'|$",
478
+ next: "start"
479
+ }, {
480
+ token: "paren.lparen",
481
+ regex: "{",
482
+ push: "fqstringParRules"
483
+ }, {
484
+ defaultToken: "string"
485
+ }],
486
+ "fqstringParRules": [{
487
+ token: "paren.lparen",
488
+ regex: "[\\[\\(]"
489
+ }, {
490
+ token: "paren.rparen",
491
+ regex: "[\\]\\)]"
492
+ }, {
493
+ token: "string",
494
+ regex: "\\s+"
495
+ }, {
496
+ token: "string",
497
+ regex: "'[^']*'"
498
+ }, {
499
+ token: "string",
500
+ regex: '"[^"]*"'
501
+ }, {
502
+ token: "function.support",
503
+ regex: "(!s|!r|!a)"
504
+ }, {
505
+ include: "constants"
506
+ }, {
507
+ token: 'paren.rparen',
508
+ regex: "}",
509
+ next: 'pop'
510
+ }, {
511
+ token: 'paren.lparen',
512
+ regex: "{",
513
+ push: "fqstringParRules"
514
+ }],
547
515
  "constants": [{
548
- token: "constant.numeric", // imaginary
549
- regex: "(?:" + floatNumber + "|\\d+)[jJ]\\b"
550
- }, {
551
- token: "constant.numeric", // float
552
- regex: floatNumber
553
- }, {
554
- token: "constant.numeric", // long integer
555
- regex: integer + "[lL]\\b"
556
- }, {
557
- token: "constant.numeric", // integer
558
- regex: integer + "\\b"
559
- }, {
560
- token: ["punctuation", "function.support"],// method
561
- regex: "(\\.)([a-zA-Z_]+)\\b"
562
- }, {
563
- token: keywordMapper,
564
- regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
565
- }]
516
+ token: "constant.numeric",
517
+ regex: "(?:" + floatNumber + "|\\d+)[jJ]\\b"
518
+ }, {
519
+ token: "constant.numeric",
520
+ regex: floatNumber
521
+ }, {
522
+ token: "constant.numeric",
523
+ regex: integer + "[lL]\\b"
524
+ }, {
525
+ token: "constant.numeric",
526
+ regex: integer + "\\b"
527
+ }, {
528
+ token: ["punctuation", "function.support"],
529
+ regex: "(\\.)([a-zA-Z_]+)\\b"
530
+ }, {
531
+ token: keywordMapper,
532
+ regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
533
+ }]
566
534
  };
567
535
  this.normalizeRules();
568
536
  };
569
-
570
537
  oop.inherits(PythonHighlightRules, TextHighlightRules);
571
-
572
538
  exports.PythonHighlightRules = PythonHighlightRules;
573
- });
574
539
 
575
- ace.define("ace/mode/json_highlight_rules",[], function(require, exports, module) {
576
- "use strict";
540
+ });
577
541
 
542
+ ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
578
543
  var oop = require("../lib/oop");
579
544
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
580
-
581
- var JsonHighlightRules = function() {
545
+ var JsonHighlightRules = function () {
582
546
  this.$rules = {
583
- "start" : [
547
+ "start": [
584
548
  {
585
- token : "variable", // single line
586
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'
549
+ token: "variable",
550
+ regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'
551
+ }, {
552
+ token: "string",
553
+ regex: '"',
554
+ next: "string"
587
555
  }, {
588
- token : "string", // single line
589
- regex : '"',
590
- next : "string"
556
+ token: "constant.numeric",
557
+ regex: "0[xX][0-9a-fA-F]+\\b"
591
558
  }, {
592
- token : "constant.numeric", // hex
593
- regex : "0[xX][0-9a-fA-F]+\\b"
559
+ token: "constant.numeric",
560
+ regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
594
561
  }, {
595
- token : "constant.numeric", // float
596
- regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
562
+ token: "constant.language.boolean",
563
+ regex: "(?:true|false)\\b"
597
564
  }, {
598
- token : "constant.language.boolean",
599
- regex : "(?:true|false)\\b"
565
+ token: "text",
566
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
600
567
  }, {
601
- token : "text", // single quoted strings are not allowed
602
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
568
+ token: "comment",
569
+ regex: "\\/\\/.*$"
603
570
  }, {
604
- token : "comment", // comments are not allowed, but who cares?
605
- regex : "\\/\\/.*$"
571
+ token: "comment.start",
572
+ regex: "\\/\\*",
573
+ next: "comment"
606
574
  }, {
607
- token : "comment.start", // comments are not allowed, but who cares?
608
- regex : "\\/\\*",
609
- next : "comment"
575
+ token: "paren.lparen",
576
+ regex: "[[({]"
610
577
  }, {
611
- token : "paren.lparen",
612
- regex : "[[({]"
578
+ token: "paren.rparen",
579
+ regex: "[\\])}]"
613
580
  }, {
614
- token : "paren.rparen",
615
- regex : "[\\])}]"
581
+ token: "punctuation.operator",
582
+ regex: /[,]/
616
583
  }, {
617
- token : "text",
618
- regex : "\\s+"
584
+ token: "text",
585
+ regex: "\\s+"
619
586
  }
620
587
  ],
621
- "string" : [
588
+ "string": [
622
589
  {
623
- token : "constant.language.escape",
624
- regex : /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
590
+ token: "constant.language.escape",
591
+ regex: /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/
625
592
  }, {
626
- token : "string",
627
- regex : '"|$',
628
- next : "start"
593
+ token: "string",
594
+ regex: '"|$',
595
+ next: "start"
629
596
  }, {
630
- defaultToken : "string"
597
+ defaultToken: "string"
631
598
  }
632
599
  ],
633
- "comment" : [
600
+ "comment": [
634
601
  {
635
- token : "comment.end", // comments are not allowed, but who cares?
636
- regex : "\\*\\/",
637
- next : "start"
602
+ token: "comment.end",
603
+ regex: "\\*\\/",
604
+ next: "start"
638
605
  }, {
639
606
  defaultToken: "comment"
640
607
  }
641
608
  ]
642
609
  };
643
-
644
610
  };
645
-
646
611
  oop.inherits(JsonHighlightRules, TextHighlightRules);
647
-
648
612
  exports.JsonHighlightRules = JsonHighlightRules;
613
+
649
614
  });
650
615
 
651
- ace.define("ace/mode/javascript_highlight_rules",[], function(require, exports, module) {
652
- "use strict";
616
+ 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";
617
+ var oop = require("../lib/oop");
618
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
619
+ var JsDocCommentHighlightRules = function () {
620
+ this.$rules = {
621
+ "start": [
622
+ {
623
+ token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
624
+ regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
625
+ push: [
626
+ {
627
+ token: "lparen.doc",
628
+ regex: "{",
629
+ push: [
630
+ {
631
+ include: "doc-syntax"
632
+ }, {
633
+ token: "rparen.doc",
634
+ regex: "}|(?=$)",
635
+ next: "pop"
636
+ }
637
+ ]
638
+ }, {
639
+ token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
640
+ regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,
641
+ next: "pop"
642
+ }, {
643
+ token: "rparen.doc",
644
+ regex: "}|(?=$)",
645
+ next: "pop"
646
+ }, {
647
+ include: "doc-syntax"
648
+ }, {
649
+ defaultToken: "text.doc"
650
+ }
651
+ ]
652
+ }, {
653
+ token: ["comment.doc.tag", "text.doc", "lparen.doc"],
654
+ regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
655
+ + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
656
+ push: [
657
+ {
658
+ token: "lparen.doc",
659
+ regex: "{",
660
+ push: [
661
+ {
662
+ include: "doc-syntax"
663
+ }, {
664
+ token: "rparen.doc",
665
+ regex: "}|(?=$)",
666
+ next: "pop"
667
+ }
668
+ ]
669
+ }, {
670
+ token: "rparen.doc",
671
+ regex: "}|(?=$)",
672
+ next: "pop"
673
+ }, {
674
+ include: "doc-syntax"
675
+ }, {
676
+ defaultToken: "text.doc"
677
+ }
678
+ ]
679
+ }, {
680
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
681
+ regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
682
+ + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
683
+ + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
684
+ + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
685
+ }, {
686
+ token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
687
+ regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
688
+ }, {
689
+ token: "comment.doc.tag",
690
+ regex: "@access\\s+(?:private|public|protected)"
691
+ }, {
692
+ token: "comment.doc.tag",
693
+ regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
694
+ }, {
695
+ token: "comment.doc.tag",
696
+ regex: "@\\w+(?=\\s|$)"
697
+ },
698
+ JsDocCommentHighlightRules.getTagRule(),
699
+ {
700
+ defaultToken: "comment.doc",
701
+ caseInsensitive: true
702
+ }
703
+ ],
704
+ "doc-syntax": [{
705
+ token: "operator.doc",
706
+ regex: /[|:]/
707
+ }, {
708
+ token: "paren.doc",
709
+ regex: /[\[\]]/
710
+ }]
711
+ };
712
+ this.normalizeRules();
713
+ };
714
+ oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
715
+ JsDocCommentHighlightRules.getTagRule = function (start) {
716
+ return {
717
+ token: "comment.doc.tag.storage.type",
718
+ regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
719
+ };
720
+ };
721
+ JsDocCommentHighlightRules.getStartRule = function (start) {
722
+ return {
723
+ token: "comment.doc",
724
+ regex: "\\/\\*(?=\\*)",
725
+ next: start
726
+ };
727
+ };
728
+ JsDocCommentHighlightRules.getEndRule = function (start) {
729
+ return {
730
+ token: "comment.doc",
731
+ regex: "\\*\\/",
732
+ next: start
733
+ };
734
+ };
735
+ exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
653
736
 
737
+ });
738
+
739
+ 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";
654
740
  var oop = require("../lib/oop");
655
- var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
741
+ var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
656
742
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
657
743
  var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
658
-
659
- var JavaScriptHighlightRules = function(options) {
744
+ var JavaScriptHighlightRules = function (options) {
660
745
  var keywordMapper = this.createKeywordMapper({
661
- "variable.language":
662
- "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
663
- "Namespace|QName|XML|XMLList|" + // E4X
664
- "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
665
- "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
666
- "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
667
- "SyntaxError|TypeError|URIError|" +
746
+ "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
747
+ "Namespace|QName|XML|XMLList|" + // E4X
748
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
749
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
750
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
751
+ "SyntaxError|TypeError|URIError|" +
668
752
  "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
669
- "isNaN|parseFloat|parseInt|" +
670
- "JSON|Math|" + // Other
671
- "this|arguments|prototype|window|document" , // Pseudo
672
- "keyword":
673
- "const|yield|import|get|set|async|await|" +
753
+ "isNaN|parseFloat|parseInt|" +
754
+ "JSON|Math|" + // Other
755
+ "this|arguments|prototype|window|document",
756
+ "keyword": "const|yield|import|get|set|async|await|" +
674
757
  "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
675
758
  "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
676
759
  "__parent__|__count__|escape|unescape|with|__proto__|" +
677
- "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
678
- "storage.type":
679
- "const|let|var|function",
680
- "constant.language":
681
- "null|Infinity|NaN|undefined",
682
- "support.function":
683
- "alert",
760
+ "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
761
+ "storage.type": "const|let|var|function",
762
+ "constant.language": "null|Infinity|NaN|undefined",
763
+ "support.function": "alert",
684
764
  "constant.language.boolean": "true|false"
685
765
  }, "identifier");
686
766
  var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
687
-
688
767
  var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
689
768
  "u[0-9a-fA-F]{4}|" + // unicode
690
769
  "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
@@ -692,143 +771,142 @@ var JavaScriptHighlightRules = function(options) {
692
771
  "3[0-7][0-7]?|" + // oct
693
772
  "[4-7][0-7]?|" + //oct
694
773
  ".)";
695
-
696
774
  this.$rules = {
697
- "no_regex" : [
775
+ "no_regex": [
698
776
  DocCommentHighlightRules.getStartRule("doc-start"),
699
777
  comments("no_regex"),
700
778
  {
701
- token : "string",
702
- regex : "'(?=.)",
703
- next : "qstring"
779
+ token: "string",
780
+ regex: "'(?=.)",
781
+ next: "qstring"
704
782
  }, {
705
- token : "string",
706
- regex : '"(?=.)',
707
- next : "qqstring"
783
+ token: "string",
784
+ regex: '"(?=.)',
785
+ next: "qqstring"
708
786
  }, {
709
- token : "constant.numeric", // hexadecimal, octal and binary
710
- regex : /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
787
+ token: "constant.numeric",
788
+ regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
711
789
  }, {
712
- token : "constant.numeric", // decimal integers and floats
713
- regex : /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
790
+ token: "constant.numeric",
791
+ regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
714
792
  }, {
715
- token : [
793
+ token: [
716
794
  "storage.type", "punctuation.operator", "support.function",
717
- "punctuation.operator", "entity.name.function", "text","keyword.operator"
795
+ "punctuation.operator", "entity.name.function", "text", "keyword.operator"
718
796
  ],
719
- regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
797
+ regex: "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe + ")(\\s*)(=)",
720
798
  next: "function_arguments"
721
799
  }, {
722
- token : [
800
+ token: [
723
801
  "storage.type", "punctuation.operator", "entity.name.function", "text",
724
802
  "keyword.operator", "text", "storage.type", "text", "paren.lparen"
725
803
  ],
726
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
804
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
727
805
  next: "function_arguments"
728
806
  }, {
729
- token : [
807
+ token: [
730
808
  "entity.name.function", "text", "keyword.operator", "text", "storage.type",
731
809
  "text", "paren.lparen"
732
810
  ],
733
- regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
811
+ regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",
734
812
  next: "function_arguments"
735
813
  }, {
736
- token : [
814
+ token: [
737
815
  "storage.type", "punctuation.operator", "entity.name.function", "text",
738
816
  "keyword.operator", "text",
739
817
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
740
818
  ],
741
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
819
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",
742
820
  next: "function_arguments"
743
821
  }, {
744
- token : [
822
+ token: [
745
823
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
746
824
  ],
747
- regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
825
+ regex: "(function\\*?)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
748
826
  next: "function_arguments"
749
827
  }, {
750
- token : [
828
+ token: [
751
829
  "entity.name.function", "text", "punctuation.operator",
752
830
  "text", "storage.type", "text", "paren.lparen"
753
831
  ],
754
- regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
832
+ regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",
755
833
  next: "function_arguments"
756
834
  }, {
757
- token : [
835
+ token: [
758
836
  "text", "text", "storage.type", "text", "paren.lparen"
759
837
  ],
760
- regex : "(:)(\\s*)(function)(\\s*)(\\()",
838
+ regex: "(:)(\\s*)(function\\*?)(\\s*)(\\()",
761
839
  next: "function_arguments"
762
840
  }, {
763
- token : "keyword",
764
- regex : "from(?=\\s*('|\"))"
841
+ token: "keyword",
842
+ regex: "from(?=\\s*('|\"))"
765
843
  }, {
766
- token : "keyword",
767
- regex : "(?:" + kwBeforeRe + ")\\b",
768
- next : "start"
844
+ token: "keyword",
845
+ regex: "(?:" + kwBeforeRe + ")\\b",
846
+ next: "start"
769
847
  }, {
770
- token : ["support.constant"],
771
- regex : /that\b/
848
+ token: "support.constant",
849
+ regex: /that\b/
772
850
  }, {
773
- token : ["storage.type", "punctuation.operator", "support.function.firebug"],
774
- regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
851
+ token: ["storage.type", "punctuation.operator", "support.function.firebug"],
852
+ regex: /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
775
853
  }, {
776
- token : keywordMapper,
777
- regex : identifierRe
854
+ token: keywordMapper,
855
+ regex: identifierRe
778
856
  }, {
779
- token : "punctuation.operator",
780
- regex : /[.](?![.])/,
781
- next : "property"
857
+ token: "punctuation.operator",
858
+ regex: /[.](?![.])/,
859
+ next: "property"
782
860
  }, {
783
- token : "storage.type",
784
- regex : /=>/,
785
- next : "start"
861
+ token: "storage.type",
862
+ regex: /=>/,
863
+ next: "start"
786
864
  }, {
787
- token : "keyword.operator",
788
- regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
789
- next : "start"
865
+ token: "keyword.operator",
866
+ regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
867
+ next: "start"
790
868
  }, {
791
- token : "punctuation.operator",
792
- regex : /[?:,;.]/,
793
- next : "start"
869
+ token: "punctuation.operator",
870
+ regex: /[?:,;.]/,
871
+ next: "start"
794
872
  }, {
795
- token : "paren.lparen",
796
- regex : /[\[({]/,
797
- next : "start"
873
+ token: "paren.lparen",
874
+ regex: /[\[({]/,
875
+ next: "start"
798
876
  }, {
799
- token : "paren.rparen",
800
- regex : /[\])}]/
877
+ token: "paren.rparen",
878
+ regex: /[\])}]/
801
879
  }, {
802
880
  token: "comment",
803
881
  regex: /^#!.*$/
804
882
  }
805
883
  ],
806
884
  property: [{
807
- token : "text",
808
- regex : "\\s+"
885
+ token: "text",
886
+ regex: "\\s+"
809
887
  }, {
810
- token : [
888
+ token: [
811
889
  "storage.type", "punctuation.operator", "entity.name.function", "text",
812
890
  "keyword.operator", "text",
813
891
  "storage.type", "text", "entity.name.function", "text", "paren.lparen"
814
892
  ],
815
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
893
+ regex: "(" + identifierRe + ")(\\.)(" + identifierRe + ")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",
816
894
  next: "function_arguments"
817
895
  }, {
818
- token : "punctuation.operator",
819
- regex : /[.](?![.])/
896
+ token: "punctuation.operator",
897
+ regex: /[.](?![.])/
820
898
  }, {
821
- token : "support.function",
822
- 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(?=\()/
899
+ token: "support.function",
900
+ 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(?=\()/
823
901
  }, {
824
- token : "support.function.dom",
825
- 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(?=\()/
902
+ token: "support.function.dom",
903
+ 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(?=\()/
826
904
  }, {
827
- token : "support.constant",
828
- 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/
905
+ token: "support.constant",
906
+ 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/
829
907
  }, {
830
- token : "identifier",
831
- regex : identifierRe
908
+ token: "identifier",
909
+ regex: identifierRe
832
910
  }, {
833
911
  regex: "",
834
912
  token: "empty",
@@ -843,9 +921,9 @@ var JavaScriptHighlightRules = function(options) {
843
921
  regex: "\\/",
844
922
  next: "regex"
845
923
  }, {
846
- token : "text",
847
- regex : "\\s+|^$",
848
- next : "start"
924
+ token: "text",
925
+ regex: "\\s+|^$",
926
+ next: "start"
849
927
  }, {
850
928
  token: "empty",
851
929
  regex: "",
@@ -861,13 +939,13 @@ var JavaScriptHighlightRules = function(options) {
861
939
  regex: "/[sxngimy]*",
862
940
  next: "no_regex"
863
941
  }, {
864
- token : "invalid",
942
+ token: "invalid",
865
943
  regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
866
944
  }, {
867
- token : "constant.language.escape",
945
+ token: "constant.language.escape",
868
946
  regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
869
947
  }, {
870
- token : "constant.language.delimiter",
948
+ token: "constant.language.delimiter",
871
949
  regex: /\|/
872
950
  }, {
873
951
  token: "constant.language.escape",
@@ -900,13 +978,67 @@ var JavaScriptHighlightRules = function(options) {
900
978
  defaultToken: "string.regexp.charachterclass"
901
979
  }
902
980
  ],
981
+ "default_parameter": [
982
+ {
983
+ token: "string",
984
+ regex: "'(?=.)",
985
+ push: [
986
+ {
987
+ token: "string",
988
+ regex: "'|$",
989
+ next: "pop"
990
+ }, {
991
+ include: "qstring"
992
+ }
993
+ ]
994
+ }, {
995
+ token: "string",
996
+ regex: '"(?=.)',
997
+ push: [
998
+ {
999
+ token: "string",
1000
+ regex: '"|$',
1001
+ next: "pop"
1002
+ }, {
1003
+ include: "qqstring"
1004
+ }
1005
+ ]
1006
+ }, {
1007
+ token: "constant.language",
1008
+ regex: "null|Infinity|NaN|undefined"
1009
+ }, {
1010
+ token: "constant.numeric",
1011
+ regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
1012
+ }, {
1013
+ token: "constant.numeric",
1014
+ regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
1015
+ }, {
1016
+ token: "punctuation.operator",
1017
+ regex: ",",
1018
+ next: "function_arguments"
1019
+ }, {
1020
+ token: "text",
1021
+ regex: "\\s+"
1022
+ }, {
1023
+ token: "punctuation.operator",
1024
+ regex: "$"
1025
+ }, {
1026
+ token: "empty",
1027
+ regex: "",
1028
+ next: "no_regex"
1029
+ }
1030
+ ],
903
1031
  "function_arguments": [
1032
+ comments("function_arguments"),
904
1033
  {
905
1034
  token: "variable.parameter",
906
1035
  regex: identifierRe
907
1036
  }, {
908
1037
  token: "punctuation.operator",
909
- regex: "[, ]+"
1038
+ regex: ","
1039
+ }, {
1040
+ token: "text",
1041
+ regex: "\\s+"
910
1042
  }, {
911
1043
  token: "punctuation.operator",
912
1044
  regex: "$"
@@ -916,44 +1048,42 @@ var JavaScriptHighlightRules = function(options) {
916
1048
  next: "no_regex"
917
1049
  }
918
1050
  ],
919
- "qqstring" : [
1051
+ "qqstring": [
920
1052
  {
921
- token : "constant.language.escape",
922
- regex : escapedRe
1053
+ token: "constant.language.escape",
1054
+ regex: escapedRe
923
1055
  }, {
924
- token : "string",
925
- regex : "\\\\$",
926
- consumeLineEnd : true
1056
+ token: "string",
1057
+ regex: "\\\\$",
1058
+ consumeLineEnd: true
927
1059
  }, {
928
- token : "string",
929
- regex : '"|$',
930
- next : "no_regex"
1060
+ token: "string",
1061
+ regex: '"|$',
1062
+ next: "no_regex"
931
1063
  }, {
932
1064
  defaultToken: "string"
933
1065
  }
934
1066
  ],
935
- "qstring" : [
1067
+ "qstring": [
936
1068
  {
937
- token : "constant.language.escape",
938
- regex : escapedRe
1069
+ token: "constant.language.escape",
1070
+ regex: escapedRe
939
1071
  }, {
940
- token : "string",
941
- regex : "\\\\$",
942
- consumeLineEnd : true
1072
+ token: "string",
1073
+ regex: "\\\\$",
1074
+ consumeLineEnd: true
943
1075
  }, {
944
- token : "string",
945
- regex : "'|$",
946
- next : "no_regex"
1076
+ token: "string",
1077
+ regex: "'|$",
1078
+ next: "no_regex"
947
1079
  }, {
948
1080
  defaultToken: "string"
949
1081
  }
950
1082
  ]
951
1083
  };
952
-
953
-
954
1084
  if (!options || !options.noES6) {
955
1085
  this.$rules.no_regex.unshift({
956
- regex: "[{}]", onMatch: function(val, state, stack) {
1086
+ regex: "[{}]", onMatch: function (val, state, stack) {
957
1087
  this.next = val == "{" ? this.nextState : "";
958
1088
  if (val == "{" && stack.length) {
959
1089
  stack.unshift("start", state);
@@ -968,40 +1098,60 @@ var JavaScriptHighlightRules = function(options) {
968
1098
  },
969
1099
  nextState: "start"
970
1100
  }, {
971
- token : "string.quasi.start",
972
- regex : /`/,
973
- push : [{
974
- token : "constant.language.escape",
975
- regex : escapedRe
976
- }, {
977
- token : "paren.quasi.start",
978
- regex : /\${/,
979
- push : "start"
980
- }, {
981
- token : "string.quasi.end",
982
- regex : /`/,
983
- next : "pop"
984
- }, {
985
- defaultToken: "string.quasi"
986
- }]
1101
+ token: "string.quasi.start",
1102
+ regex: /`/,
1103
+ push: [{
1104
+ token: "constant.language.escape",
1105
+ regex: escapedRe
1106
+ }, {
1107
+ token: "paren.quasi.start",
1108
+ regex: /\${/,
1109
+ push: "start"
1110
+ }, {
1111
+ token: "string.quasi.end",
1112
+ regex: /`/,
1113
+ next: "pop"
1114
+ }, {
1115
+ defaultToken: "string.quasi"
1116
+ }]
1117
+ }, {
1118
+ token: ["variable.parameter", "text"],
1119
+ regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
1120
+ }, {
1121
+ token: "paren.lparen",
1122
+ regex: "(\\()(?=.+\\s*=>)",
1123
+ next: "function_arguments"
1124
+ }, {
1125
+ token: "variable.language",
1126
+ regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
1127
+ });
1128
+ this.$rules["function_arguments"].unshift({
1129
+ token: "keyword.operator",
1130
+ regex: "=",
1131
+ next: "default_parameter"
1132
+ }, {
1133
+ token: "keyword.operator",
1134
+ regex: "\\.{3}"
1135
+ });
1136
+ this.$rules["property"].unshift({
1137
+ token: "support.function",
1138
+ regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
1139
+ + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
1140
+ }, {
1141
+ token: "constant.language",
1142
+ regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
987
1143
  });
988
-
989
1144
  if (!options || options.jsx != false)
990
1145
  JSX.call(this);
991
1146
  }
992
-
993
- this.embedRules(DocCommentHighlightRules, "doc-",
994
- [ DocCommentHighlightRules.getEndRule("no_regex") ]);
995
-
1147
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
996
1148
  this.normalizeRules();
997
1149
  };
998
-
999
1150
  oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
1000
-
1001
1151
  function JSX() {
1002
1152
  var tagRegex = identifierRe.replace("\\d", "\\d\\-");
1003
1153
  var jsxTag = {
1004
- onMatch : function(val, state, stack) {
1154
+ onMatch: function (val, state, stack) {
1005
1155
  var offset = val.charAt(1) == "/" ? 2 : 1;
1006
1156
  if (offset == 1) {
1007
1157
  if (state != this.nextState)
@@ -1009,7 +1159,8 @@ function JSX() {
1009
1159
  else
1010
1160
  stack.unshift(this.next);
1011
1161
  stack[2]++;
1012
- } else if (offset == 2) {
1162
+ }
1163
+ else if (offset == 2) {
1013
1164
  if (state == this.nextState) {
1014
1165
  stack[1]--;
1015
1166
  if (!stack[1] || stack[1] < 0) {
@@ -1019,14 +1170,14 @@ function JSX() {
1019
1170
  }
1020
1171
  }
1021
1172
  return [{
1022
- type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
1023
- value: val.slice(0, offset)
1024
- }, {
1025
- type: "meta.tag.tag-name.xml",
1026
- value: val.substr(offset)
1027
- }];
1173
+ type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
1174
+ value: val.slice(0, offset)
1175
+ }, {
1176
+ type: "meta.tag.tag-name.xml",
1177
+ value: val.substr(offset)
1178
+ }];
1028
1179
  },
1029
- regex : "</?" + tagRegex + "",
1180
+ regex: "</?" + tagRegex + "",
1030
1181
  next: "jsxAttributes",
1031
1182
  nextState: "jsx"
1032
1183
  };
@@ -1039,92 +1190,90 @@ function JSX() {
1039
1190
  this.$rules.jsx = [
1040
1191
  jsxJsRule,
1041
1192
  jsxTag,
1042
- {include : "reference"},
1043
- {defaultToken: "string"}
1193
+ { include: "reference" },
1194
+ { defaultToken: "string" }
1044
1195
  ];
1045
1196
  this.$rules.jsxAttributes = [{
1046
- token : "meta.tag.punctuation.tag-close.xml",
1047
- regex : "/?>",
1048
- onMatch : function(value, currentState, stack) {
1049
- if (currentState == stack[0])
1050
- stack.shift();
1051
- if (value.length == 2) {
1052
- if (stack[0] == this.nextState)
1053
- stack[1]--;
1054
- if (!stack[1] || stack[1] < 0) {
1055
- stack.splice(0, 2);
1197
+ token: "meta.tag.punctuation.tag-close.xml",
1198
+ regex: "/?>",
1199
+ onMatch: function (value, currentState, stack) {
1200
+ if (currentState == stack[0])
1201
+ stack.shift();
1202
+ if (value.length == 2) {
1203
+ if (stack[0] == this.nextState)
1204
+ stack[1]--;
1205
+ if (!stack[1] || stack[1] < 0) {
1206
+ stack.splice(0, 2);
1207
+ }
1056
1208
  }
1057
- }
1058
- this.next = stack[0] || "start";
1059
- return [{type: this.token, value: value}];
1209
+ this.next = stack[0] || "start";
1210
+ return [{ type: this.token, value: value }];
1211
+ },
1212
+ nextState: "jsx"
1060
1213
  },
1061
- nextState: "jsx"
1062
- },
1063
- jsxJsRule,
1064
- comments("jsxAttributes"),
1065
- {
1066
- token : "entity.other.attribute-name.xml",
1067
- regex : tagRegex
1068
- }, {
1069
- token : "keyword.operator.attribute-equals.xml",
1070
- regex : "="
1071
- }, {
1072
- token : "text.tag-whitespace.xml",
1073
- regex : "\\s+"
1074
- }, {
1075
- token : "string.attribute-value.xml",
1076
- regex : "'",
1077
- stateName : "jsx_attr_q",
1078
- push : [
1079
- {token : "string.attribute-value.xml", regex: "'", next: "pop"},
1080
- {include : "reference"},
1081
- {defaultToken : "string.attribute-value.xml"}
1082
- ]
1083
- }, {
1084
- token : "string.attribute-value.xml",
1085
- regex : '"',
1086
- stateName : "jsx_attr_qq",
1087
- push : [
1088
- {token : "string.attribute-value.xml", regex: '"', next: "pop"},
1089
- {include : "reference"},
1090
- {defaultToken : "string.attribute-value.xml"}
1091
- ]
1092
- },
1093
- jsxTag
1214
+ jsxJsRule,
1215
+ comments("jsxAttributes"),
1216
+ {
1217
+ token: "entity.other.attribute-name.xml",
1218
+ regex: tagRegex
1219
+ }, {
1220
+ token: "keyword.operator.attribute-equals.xml",
1221
+ regex: "="
1222
+ }, {
1223
+ token: "text.tag-whitespace.xml",
1224
+ regex: "\\s+"
1225
+ }, {
1226
+ token: "string.attribute-value.xml",
1227
+ regex: "'",
1228
+ stateName: "jsx_attr_q",
1229
+ push: [
1230
+ { token: "string.attribute-value.xml", regex: "'", next: "pop" },
1231
+ { include: "reference" },
1232
+ { defaultToken: "string.attribute-value.xml" }
1233
+ ]
1234
+ }, {
1235
+ token: "string.attribute-value.xml",
1236
+ regex: '"',
1237
+ stateName: "jsx_attr_qq",
1238
+ push: [
1239
+ { token: "string.attribute-value.xml", regex: '"', next: "pop" },
1240
+ { include: "reference" },
1241
+ { defaultToken: "string.attribute-value.xml" }
1242
+ ]
1243
+ },
1244
+ jsxTag
1094
1245
  ];
1095
1246
  this.$rules.reference = [{
1096
- token : "constant.language.escape.reference.xml",
1097
- regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1098
- }];
1247
+ token: "constant.language.escape.reference.xml",
1248
+ regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1249
+ }];
1099
1250
  }
1100
-
1101
1251
  function comments(next) {
1102
1252
  return [
1103
1253
  {
1104
- token : "comment", // multi line comment
1105
- regex : /\/\*/,
1254
+ token: "comment",
1255
+ regex: /\/\*/,
1106
1256
  next: [
1107
1257
  DocCommentHighlightRules.getTagRule(),
1108
- {token : "comment", regex : "\\*\\/", next : next || "pop"},
1109
- {defaultToken : "comment", caseInsensitive: true}
1258
+ { token: "comment", regex: "\\*\\/", next: next || "pop" },
1259
+ { defaultToken: "comment", caseInsensitive: true }
1110
1260
  ]
1111
1261
  }, {
1112
- token : "comment",
1113
- regex : "\\/\\/",
1262
+ token: "comment",
1263
+ regex: "\\/\\/",
1114
1264
  next: [
1115
1265
  DocCommentHighlightRules.getTagRule(),
1116
- {token : "comment", regex : "$|^", next : next || "pop"},
1117
- {defaultToken : "comment", caseInsensitive: true}
1266
+ { token: "comment", regex: "$|^", next: next || "pop" },
1267
+ { defaultToken: "comment", caseInsensitive: true }
1118
1268
  ]
1119
1269
  }
1120
1270
  ];
1121
1271
  }
1122
1272
  exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
1123
- });
1124
1273
 
1125
- ace.define("ace/mode/pgsql_highlight_rules",[], function(require, exports, module) {
1274
+ });
1126
1275
 
1127
- var oop = require("../lib/oop");
1276
+ ace.define("ace/mode/pgsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/perl_highlight_rules","ace/mode/python_highlight_rules","ace/mode/json_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module){var oop = require("../lib/oop");
1128
1277
  var lang = require("../lib/lang");
1129
1278
  var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
1130
1279
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
@@ -1132,10 +1281,8 @@ var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
1132
1281
  var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
1133
1282
  var JsonHighlightRules = require("./json_highlight_rules").JsonHighlightRules;
1134
1283
  var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1135
-
1136
- var PgsqlHighlightRules = function() {
1137
- var keywords = (
1138
- "abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|" +
1284
+ var PgsqlHighlightRules = function () {
1285
+ var keywords = ("abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|" +
1139
1286
  "analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|anyrange|array|as|asc|" +
1140
1287
  "assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|" +
1141
1288
  "bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|" +
@@ -1176,12 +1323,8 @@ var PgsqlHighlightRules = function() {
1176
1323
  "unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|" +
1177
1324
  "varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|" +
1178
1325
  "with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|" +
1179
- "xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone"
1180
- );
1181
-
1182
-
1183
- var builtinFunctions = (
1184
- "RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|" +
1326
+ "xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone|ties");
1327
+ var builtinFunctions = ("RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|" +
1185
1328
  "RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|" +
1186
1329
  "RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|" +
1187
1330
  "RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|" +
@@ -1529,210 +1672,190 @@ var PgsqlHighlightRules = function() {
1529
1672
  "win866_to_iso|win866_to_koi8r|win866_to_mic|win866_to_win1251|win_to_utf8|xideq|" +
1530
1673
  "xideqint4|xidin|xidout|xidrecv|xidsend|xml|xml_in|xml_is_well_formed|" +
1531
1674
  "xml_is_well_formed_content|xml_is_well_formed_document|xml_out|xml_recv|xml_send|" +
1532
- "xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists"
1533
- );
1534
-
1675
+ "xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists");
1535
1676
  var keywordMapper = this.createKeywordMapper({
1536
1677
  "support.function": builtinFunctions,
1537
1678
  "keyword": keywords
1538
1679
  }, "identifier", true);
1539
-
1540
-
1541
1680
  var sqlRules = [{
1542
- token : "string", // single line string -- assume dollar strings if multi-line for now
1543
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1681
+ token: "string",
1682
+ regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
1544
1683
  }, {
1545
- token : "variable.language", // pg identifier
1546
- regex : '".*?"'
1684
+ token: "variable.language",
1685
+ regex: '".*?"'
1547
1686
  }, {
1548
- token : "constant.numeric", // float
1549
- regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
1687
+ token: "constant.numeric",
1688
+ regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
1550
1689
  }, {
1551
- token : keywordMapper,
1552
- regex : "[a-zA-Z_][a-zA-Z0-9_$]*\\b" // TODO - Unicode in identifiers
1690
+ token: keywordMapper,
1691
+ regex: "[a-zA-Z_][a-zA-Z0-9_$]*\\b" // TODO - Unicode in identifiers
1553
1692
  }, {
1554
- token : "keyword.operator",
1555
- regex : "!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|" +
1556
- "\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||" +
1557
- "\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|" +
1558
- "~=|~>=~|~>~|~~|~~\\*"
1693
+ token: "keyword.operator",
1694
+ regex: "!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|" +
1695
+ "\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||" +
1696
+ "\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|" +
1697
+ "~=|~>=~|~>~|~~|~~\\*"
1559
1698
  }, {
1560
- token : "paren.lparen",
1561
- regex : "[\\(]"
1699
+ token: "paren.lparen",
1700
+ regex: "[\\(]"
1562
1701
  }, {
1563
- token : "paren.rparen",
1564
- regex : "[\\)]"
1702
+ token: "paren.rparen",
1703
+ regex: "[\\)]"
1565
1704
  }, {
1566
- token : "text",
1567
- regex : "\\s+"
1705
+ token: "text",
1706
+ regex: "\\s+"
1568
1707
  }
1569
1708
  ];
1570
-
1571
-
1572
1709
  this.$rules = {
1573
- "start" : [{
1574
- token : "comment",
1575
- regex : "--.*$"
1710
+ "start": [{
1711
+ token: "comment",
1712
+ regex: "--.*$"
1576
1713
  },
1577
1714
  DocCommentHighlightRules.getStartRule("doc-start"),
1578
1715
  {
1579
- token : "comment", // multi-line comment
1580
- regex : "\\/\\*",
1581
- next : "comment"
1582
- },{
1583
- token : "keyword.statementBegin",
1584
- regex : "[a-zA-Z]+", // Could enumerate starting keywords but this allows things to work when new statements are added.
1585
- next : "statement"
1586
- },{
1587
- token : "support.buildin", // psql directive
1588
- regex : "^\\\\[\\S]+.*$"
1716
+ token: "comment",
1717
+ regex: "\\/\\*",
1718
+ next: "comment"
1719
+ }, {
1720
+ token: "keyword.statementBegin",
1721
+ regex: "[a-zA-Z]+",
1722
+ next: "statement"
1723
+ }, {
1724
+ token: "support.buildin",
1725
+ regex: "^\\\\[\\S]+.*$"
1589
1726
  }
1590
1727
  ],
1591
-
1592
- "statement" : [{
1593
- token : "comment",
1594
- regex : "--.*$"
1728
+ "statement": [{
1729
+ token: "comment",
1730
+ regex: "--.*$"
1595
1731
  }, {
1596
- token : "comment", // multi-line comment
1597
- regex : "\\/\\*",
1598
- next : "commentStatement"
1732
+ token: "comment",
1733
+ regex: "\\/\\*",
1734
+ next: "commentStatement"
1599
1735
  }, {
1600
- token : "statementEnd",
1601
- regex : ";",
1602
- next : "start"
1736
+ token: "statementEnd",
1737
+ regex: ";",
1738
+ next: "start"
1603
1739
  }, {
1604
- token : "string",
1605
- regex : "\\$perl\\$",
1606
- next : "perl-start"
1740
+ token: "string",
1741
+ regex: "\\$perl\\$",
1742
+ next: "perl-start"
1607
1743
  }, {
1608
- token : "string",
1609
- regex : "\\$python\\$",
1610
- next : "python-start"
1744
+ token: "string",
1745
+ regex: "\\$python\\$",
1746
+ next: "python-start"
1611
1747
  }, {
1612
- token : "string",
1613
- regex : "\\$json\\$",
1614
- next : "json-start"
1748
+ token: "string",
1749
+ regex: "\\$json\\$",
1750
+ next: "json-start"
1615
1751
  }, {
1616
- token : "string",
1617
- regex : "\\$(js|javascript)\\$",
1618
- next : "javascript-start"
1752
+ token: "string",
1753
+ regex: "\\$(js|javascript)\\$",
1754
+ next: "javascript-start"
1619
1755
  }, {
1620
- token : "string",
1621
- regex : "\\$[\\w_0-9]*\\$$", // dollar quote at the end of a line
1622
- next : "dollarSql"
1756
+ token: "string",
1757
+ regex: "\\$\\$$",
1758
+ next: "dollarSql"
1623
1759
  }, {
1624
- token : "string",
1625
- regex : "\\$[\\w_0-9]*\\$",
1626
- next : "dollarStatementString"
1760
+ token: "string",
1761
+ regex: "\\$[\\w_0-9]*\\$",
1762
+ next: "dollarStatementString"
1627
1763
  }
1628
1764
  ].concat(sqlRules),
1629
-
1630
- "dollarSql" : [{
1631
- token : "comment",
1632
- regex : "--.*$"
1765
+ "dollarSql": [{
1766
+ token: "comment",
1767
+ regex: "--.*$"
1633
1768
  }, {
1634
- token : "comment", // multi-line comment
1635
- regex : "\\/\\*",
1636
- next : "commentDollarSql"
1769
+ token: "comment",
1770
+ regex: "\\/\\*",
1771
+ next: "commentDollarSql"
1637
1772
  }, {
1638
- token : "string", // end quoting with dollar at the start of a line
1639
- regex : "^\\$[\\w_0-9]*\\$",
1640
- next : "statement"
1773
+ token: ["keyword", "statementEnd", "text", "string"],
1774
+ regex: "(^|END)(;)?(\\s*)(\\$\\$)",
1775
+ next: "statement"
1641
1776
  }, {
1642
- token : "string",
1643
- regex : "\\$[\\w_0-9]*\\$",
1644
- next : "dollarSqlString"
1777
+ token: "string",
1778
+ regex: "\\$[\\w_0-9]*\\$",
1779
+ next: "dollarSqlString"
1645
1780
  }
1646
1781
  ].concat(sqlRules),
1647
-
1648
- "comment" : [{
1649
- token : "comment", // closing comment
1650
- regex : "\\*\\/",
1651
- next : "start"
1782
+ "comment": [{
1783
+ token: "comment",
1784
+ regex: "\\*\\/",
1785
+ next: "start"
1652
1786
  }, {
1653
- defaultToken : "comment"
1787
+ defaultToken: "comment"
1654
1788
  }
1655
1789
  ],
1656
-
1657
- "commentStatement" : [{
1658
- token : "comment", // closing comment
1659
- regex : "\\*\\/",
1660
- next : "statement"
1790
+ "commentStatement": [{
1791
+ token: "comment",
1792
+ regex: "\\*\\/",
1793
+ next: "statement"
1661
1794
  }, {
1662
- defaultToken : "comment"
1795
+ defaultToken: "comment"
1663
1796
  }
1664
1797
  ],
1665
-
1666
- "commentDollarSql" : [{
1667
- token : "comment", // closing comment
1668
- regex : "\\*\\/",
1669
- next : "dollarSql"
1798
+ "commentDollarSql": [{
1799
+ token: "comment",
1800
+ regex: "\\*\\/",
1801
+ next: "dollarSql"
1670
1802
  }, {
1671
- defaultToken : "comment"
1803
+ defaultToken: "comment"
1672
1804
  }
1673
1805
  ],
1674
-
1675
- "dollarStatementString" : [{
1676
- token : "string", // closing dollarstring
1677
- regex : ".*?\\$[\\w_0-9]*\\$",
1678
- next : "statement"
1806
+ "dollarStatementString": [{
1807
+ token: "string",
1808
+ regex: ".*?\\$[\\w_0-9]*\\$",
1809
+ next: "statement"
1679
1810
  }, {
1680
- token : "string", // dollarstring spanning whole line
1681
- regex : ".+"
1811
+ token: "string",
1812
+ regex: ".+"
1682
1813
  }
1683
1814
  ],
1684
-
1685
- "dollarSqlString" : [{
1686
- token : "string", // closing dollarstring
1687
- regex : ".*?\\$[\\w_0-9]*\\$",
1688
- next : "dollarSql"
1815
+ "dollarSqlString": [{
1816
+ token: "string",
1817
+ regex: ".*?\\$[\\w_0-9]*\\$",
1818
+ next: "dollarSql"
1689
1819
  }, {
1690
- token : "string", // dollarstring spanning whole line
1691
- regex : ".+"
1820
+ token: "string",
1821
+ regex: ".+"
1692
1822
  }
1693
1823
  ]
1694
1824
  };
1695
-
1696
- this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]);
1697
- this.embedRules(PerlHighlightRules, "perl-", [{token : "string", regex : "\\$perl\\$", next : "statement"}]);
1698
- this.embedRules(PythonHighlightRules, "python-", [{token : "string", regex : "\\$python\\$", next : "statement"}]);
1699
- this.embedRules(JsonHighlightRules, "json-", [{token : "string", regex : "\\$json\\$", next : "statement"}]);
1700
- this.embedRules(JavaScriptHighlightRules, "javascript-", [{token : "string", regex : "\\$(js|javascript)\\$", next : "statement"}]);
1825
+ this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("start")]);
1826
+ this.embedRules(PerlHighlightRules, "perl-", [{ token: "string", regex: "\\$perl\\$", next: "statement" }]);
1827
+ this.embedRules(PythonHighlightRules, "python-", [{ token: "string", regex: "\\$python\\$", next: "statement" }]);
1828
+ this.embedRules(JsonHighlightRules, "json-", [{ token: "string", regex: "\\$json\\$", next: "statement" }]);
1829
+ this.embedRules(JavaScriptHighlightRules, "javascript-", [{ token: "string", regex: "\\$(js|javascript)\\$", next: "statement" }]);
1701
1830
  };
1702
-
1703
1831
  oop.inherits(PgsqlHighlightRules, TextHighlightRules);
1704
-
1705
1832
  exports.PgsqlHighlightRules = PgsqlHighlightRules;
1706
- });
1707
1833
 
1708
- ace.define("ace/mode/pgsql",[], function(require, exports, module) {
1834
+ });
1709
1835
 
1710
- var oop = require("../lib/oop");
1836
+ ace.define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pgsql_highlight_rules"], function(require, exports, module){var oop = require("../lib/oop");
1711
1837
  var TextMode = require("../mode/text").Mode;
1712
1838
  var PgsqlHighlightRules = require("./pgsql_highlight_rules").PgsqlHighlightRules;
1713
-
1714
- var Mode = function() {
1839
+ var Mode = function () {
1715
1840
  this.HighlightRules = PgsqlHighlightRules;
1716
1841
  this.$behaviour = this.$defaultBehaviour;
1717
1842
  };
1718
1843
  oop.inherits(Mode, TextMode);
1719
-
1720
- (function() {
1844
+ (function () {
1721
1845
  this.lineCommentStart = "--";
1722
- this.blockComment = {start: "/*", end: "*/"};
1723
-
1724
- this.getNextLineIndent = function(state, line, tab) {
1846
+ this.blockComment = { start: "/*", end: "*/" };
1847
+ this.getNextLineIndent = function (state, line, tab) {
1725
1848
  if (state == "start" || state == "keyword.statementEnd") {
1726
1849
  return "";
1727
- } else {
1850
+ }
1851
+ else {
1728
1852
  return this.$getIndent(line); // Keep whatever indent the previous line has
1729
1853
  }
1730
1854
  };
1731
-
1732
1855
  this.$id = "ace/mode/pgsql";
1733
1856
  }).call(Mode.prototype);
1734
-
1735
1857
  exports.Mode = Mode;
1858
+
1736
1859
  }); (function() {
1737
1860
  ace.require(["ace/mode/pgsql"], function(m) {
1738
1861
  if (typeof module == "object" && typeof exports == "object" && module) {