ace-rails-ap 4.1.3 → 4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (437) hide show
  1. checksums.yaml +5 -5
  2. data/.gitmodules +1 -1
  3. data/Gemfile +2 -3
  4. data/ace-rails-ap.gemspec +0 -2
  5. data/lib/ace/rails/version.rb +1 -1
  6. data/update.sh +1 -1
  7. data/vendor/assets/javascripts/ace/ace.js +5192 -3414
  8. data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
  9. data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
  10. data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
  11. data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
  12. data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
  13. data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
  14. data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
  15. data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
  16. data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
  17. data/vendor/assets/javascripts/ace/ext-options.js +793 -0
  18. data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
  19. data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
  20. data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
  21. data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
  22. data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
  23. data/vendor/assets/javascripts/ace/ext-split.js +7 -46
  24. data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
  25. data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
  26. data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
  27. data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
  28. data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
  29. data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
  30. data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
  31. data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
  32. data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
  33. data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
  34. data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
  35. data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
  36. data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
  37. data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
  38. data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
  39. data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
  40. data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
  41. data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
  42. data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
  43. data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
  44. data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
  45. data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
  46. data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
  47. data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
  48. data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
  49. data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
  50. data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
  51. data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
  52. data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
  53. data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
  54. data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
  55. data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
  56. data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
  57. data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
  58. data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
  59. data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
  60. data/vendor/assets/javascripts/ace/mode-css.js +48 -27
  61. data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
  62. data/vendor/assets/javascripts/ace/mode-d.js +12 -5
  63. data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
  64. data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
  65. data/vendor/assets/javascripts/ace/mode-django.js +164 -134
  66. data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
  67. data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
  68. data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
  69. data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
  70. data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
  71. data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
  72. data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
  73. data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
  74. data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
  75. data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
  76. data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
  77. data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
  78. data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
  79. data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
  80. data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
  81. data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
  82. data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
  83. data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
  84. data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
  85. data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
  86. data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
  87. data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
  88. data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
  89. data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
  90. data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
  91. data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
  92. data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
  93. data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
  94. data/vendor/assets/javascripts/ace/mode-html.js +162 -133
  95. data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
  96. data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
  97. data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
  98. data/vendor/assets/javascripts/ace/mode-io.js +14 -12
  99. data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
  100. data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
  101. data/vendor/assets/javascripts/ace/mode-java.js +110 -7
  102. data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
  103. data/vendor/assets/javascripts/ace/mode-json.js +13 -3
  104. data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
  105. data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
  106. data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
  107. data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
  108. data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
  109. data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
  110. data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
  111. data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
  112. data/vendor/assets/javascripts/ace/mode-less.js +47 -27
  113. data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
  114. data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
  115. data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
  116. data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
  117. data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
  118. data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
  119. data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
  120. data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
  121. data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
  122. data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
  123. data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
  124. data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
  125. data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
  126. data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
  127. data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
  128. data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
  129. data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
  130. data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
  131. data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
  132. data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
  133. data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
  134. data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
  135. data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
  136. data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
  137. data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
  138. data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
  139. data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
  140. data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
  141. data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
  142. data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
  143. data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
  144. data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
  145. data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
  146. data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
  147. data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
  148. data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
  149. data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
  150. data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
  151. data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
  152. data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
  153. data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
  154. data/vendor/assets/javascripts/ace/mode-python.js +306 -63
  155. data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
  156. data/vendor/assets/javascripts/ace/mode-r.js +15 -4
  157. data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
  158. data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
  159. data/vendor/assets/javascripts/ace/mode-red.js +450 -0
  160. data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
  161. data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
  162. data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
  163. data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
  164. data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
  165. data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
  166. data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
  167. data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
  168. data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
  169. data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
  170. data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
  171. data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
  172. data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
  173. data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
  174. data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
  175. data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
  176. data/vendor/assets/javascripts/ace/mode-space.js +8 -1
  177. data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
  178. data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
  179. data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
  180. data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
  181. data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
  182. data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
  183. data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
  184. data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
  185. data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
  186. data/vendor/assets/javascripts/ace/mode-text.js +8 -0
  187. data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
  188. data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
  189. data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
  190. data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
  191. data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
  192. data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
  193. data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
  194. data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
  195. data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
  196. data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
  197. data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
  198. data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
  199. data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
  200. data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
  201. data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
  202. data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
  203. data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
  204. data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
  205. data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
  206. data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
  207. data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
  208. data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
  209. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
  210. data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
  211. data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
  212. data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
  213. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
  214. data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
  215. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
  216. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
  217. data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
  218. data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
  219. data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
  220. data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
  221. data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
  222. data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
  223. data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
  224. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
  225. data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
  226. data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
  227. data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
  228. data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
  229. data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
  230. data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
  231. data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
  232. data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
  233. data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
  234. data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
  235. data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
  236. data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
  237. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
  238. data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
  239. data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
  240. data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
  241. data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
  242. data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
  243. data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
  244. data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
  245. data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
  246. data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
  247. data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
  248. data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
  249. data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
  250. data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
  251. data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
  252. data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
  253. data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
  254. data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
  255. data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
  256. data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
  257. data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
  258. data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
  259. data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
  260. data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
  261. data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
  262. data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
  263. data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
  264. data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
  265. data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
  266. data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
  267. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
  268. data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
  269. data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
  270. data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
  271. data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
  272. data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
  273. data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
  274. data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
  275. data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
  276. data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
  277. data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
  278. data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
  279. data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
  280. data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
  281. data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
  282. data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
  283. data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
  284. data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
  285. data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
  286. data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
  287. data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
  288. data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
  289. data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
  290. data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
  291. data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
  292. data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
  293. data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
  294. data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
  295. data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
  296. data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
  297. data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
  298. data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
  299. data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
  300. data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
  301. data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
  302. data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
  303. data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
  304. data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
  305. data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
  306. data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
  307. data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
  308. data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
  309. data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
  310. data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
  311. data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
  312. data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
  313. data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
  314. data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
  315. data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
  316. data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
  317. data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
  318. data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
  319. data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
  320. data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
  321. data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
  322. data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
  323. data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
  324. data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
  325. data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
  326. data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
  327. data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
  328. data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
  329. data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
  330. data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
  331. data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
  332. data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
  333. data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
  334. data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
  335. data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
  336. data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
  337. data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
  338. data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
  339. data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
  340. data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
  341. data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
  342. data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
  343. data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
  344. data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
  345. data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
  346. data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
  347. data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
  348. data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
  349. data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
  350. data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
  351. data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
  352. data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
  353. data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
  354. data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
  355. data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
  356. data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
  357. data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
  358. data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
  359. data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
  360. data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
  361. data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
  362. data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
  363. data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
  364. data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
  365. data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
  366. data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
  367. data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
  368. data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
  369. data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
  370. data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
  371. data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
  372. data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
  373. data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
  374. data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
  375. data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
  376. data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
  377. data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
  378. data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
  379. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
  380. data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
  381. data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
  382. data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
  383. data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
  384. data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
  385. data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
  386. data/vendor/assets/javascripts/ace/theme-github.js +8 -1
  387. data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
  388. data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
  389. data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
  390. data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
  391. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
  392. data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
  393. data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
  394. data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
  395. data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
  396. data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
  397. data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
  398. data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
  399. data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
  400. data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
  401. data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
  402. data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
  403. data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
  404. data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
  405. data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
  406. data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
  407. data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
  408. data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
  409. data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
  410. data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
  411. data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
  412. data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
  413. data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
  414. data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
  415. data/vendor/assets/javascripts/ace/worker-css.js +66 -739
  416. data/vendor/assets/javascripts/ace/worker-html.js +55 -738
  417. data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
  418. data/vendor/assets/javascripts/ace/worker-json.js +56 -737
  419. data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
  420. data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
  421. data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
  422. data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
  423. metadata +74 -19
  424. data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
  425. data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
  426. data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
  427. data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
  428. data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
  429. data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
  430. data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
  431. data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
  432. data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
  433. data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
  434. data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
  435. data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
  436. data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
  437. data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -1,5 +1,5 @@
1
1
  "no use strict";
2
- ;(function(window) {
2
+ !(function(window) {
3
3
  if (typeof window.window != "undefined" && window.document)
4
4
  return;
5
5
  if (window.require && window.define)
@@ -134,7 +134,7 @@ window.define = function(id, deps, factory) {
134
134
  exports: {},
135
135
  factory: function() {
136
136
  var module = this;
137
- var returnExports = factory.apply(this, deps.map(function(dep) {
137
+ var returnExports = factory.apply(this, deps.slice(0, factory.length).map(function(dep) {
138
138
  switch (dep) {
139
139
  // Because "require", "exports" and "module" aren't actual
140
140
  // dependencies, we must handle them seperately.
@@ -209,7 +209,6 @@ window.onmessage = function(e) {
209
209
  }
210
210
  else if (msg.init) {
211
211
  window.initBaseUrls(msg.tlns);
212
- require("ace/lib/es5-shim");
213
212
  sender = window.sender = window.initSender();
214
213
  var clazz = require(msg.module)[msg.classname];
215
214
  main = window.main = new clazz(sender);
@@ -217,7 +216,7 @@ window.onmessage = function(e) {
217
216
  };
218
217
  })(this);
219
218
 
220
- define("ace/lib/oop",["require","exports","module"], function(require, exports, module) {
219
+ define("ace/lib/oop",[], function(require, exports, module) {
221
220
  "use strict";
222
221
 
223
222
  exports.inherits = function(ctor, superCtor) {
@@ -245,7 +244,7 @@ exports.implement = function(proto, mixin) {
245
244
 
246
245
  });
247
246
 
248
- define("ace/range",["require","exports","module"], function(require, exports, module) {
247
+ define("ace/range",[], function(require, exports, module) {
249
248
  "use strict";
250
249
  var comparePoints = function(p1, p2) {
251
250
  return p1.row - p2.row || p1.column - p2.column;
@@ -450,9 +449,9 @@ var Range = function(startRow, startColumn, endRow, endColumn) {
450
449
  };
451
450
  this.collapseRows = function() {
452
451
  if (this.end.column == 0)
453
- return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0)
452
+ return new Range(this.start.row, 0, Math.max(this.start.row, this.end.row-1), 0);
454
453
  else
455
- return new Range(this.start.row, 0, this.end.row, 0)
454
+ return new Range(this.start.row, 0, this.end.row, 0);
456
455
  };
457
456
  this.toScreenRange = function(session) {
458
457
  var screenPosStart = session.documentToScreenPosition(this.start);
@@ -484,7 +483,7 @@ Range.comparePoints = function(p1, p2) {
484
483
  exports.Range = Range;
485
484
  });
486
485
 
487
- define("ace/apply_delta",["require","exports","module"], function(require, exports, module) {
486
+ define("ace/apply_delta",[], function(require, exports, module) {
488
487
  "use strict";
489
488
 
490
489
  function throwDeltaError(delta, errorText){
@@ -546,10 +545,10 @@ exports.applyDelta = function(docLines, delta, doNotValidate) {
546
545
  }
547
546
  break;
548
547
  }
549
- }
548
+ };
550
549
  });
551
550
 
552
- define("ace/lib/event_emitter",["require","exports","module"], function(require, exports, module) {
551
+ define("ace/lib/event_emitter",[], function(require, exports, module) {
553
552
  "use strict";
554
553
 
555
554
  var EventEmitter = {};
@@ -599,15 +598,20 @@ EventEmitter._signal = function(eventName, e) {
599
598
 
600
599
  EventEmitter.once = function(eventName, callback) {
601
600
  var _self = this;
602
- callback && this.addEventListener(eventName, function newCallback() {
603
- _self.removeEventListener(eventName, newCallback);
601
+ this.on(eventName, function newCallback() {
602
+ _self.off(eventName, newCallback);
604
603
  callback.apply(null, arguments);
605
604
  });
605
+ if (!callback) {
606
+ return new Promise(function(resolve) {
607
+ callback = resolve;
608
+ });
609
+ }
606
610
  };
607
611
 
608
612
 
609
613
  EventEmitter.setDefaultHandler = function(eventName, callback) {
610
- var handlers = this._defaultHandlers
614
+ var handlers = this._defaultHandlers;
611
615
  if (!handlers)
612
616
  handlers = this._defaultHandlers = {_disabled_: {}};
613
617
 
@@ -624,13 +628,12 @@ EventEmitter.setDefaultHandler = function(eventName, callback) {
624
628
  handlers[eventName] = callback;
625
629
  };
626
630
  EventEmitter.removeDefaultHandler = function(eventName, callback) {
627
- var handlers = this._defaultHandlers
631
+ var handlers = this._defaultHandlers;
628
632
  if (!handlers)
629
633
  return;
630
634
  var disabled = handlers._disabled_[eventName];
631
635
 
632
636
  if (handlers[eventName] == callback) {
633
- var old = handlers[eventName];
634
637
  if (disabled)
635
638
  this.setDefaultHandler(eventName, disabled.pop());
636
639
  } else if (disabled) {
@@ -668,14 +671,16 @@ EventEmitter.removeEventListener = function(eventName, callback) {
668
671
  };
669
672
 
670
673
  EventEmitter.removeAllListeners = function(eventName) {
671
- if (this._eventRegistry) this._eventRegistry[eventName] = [];
674
+ if (!eventName) this._eventRegistry = this._defaultHandlers = undefined;
675
+ if (this._eventRegistry) this._eventRegistry[eventName] = undefined;
676
+ if (this._defaultHandlers) this._defaultHandlers[eventName] = undefined;
672
677
  };
673
678
 
674
679
  exports.EventEmitter = EventEmitter;
675
680
 
676
681
  });
677
682
 
678
- define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"], function(require, exports, module) {
683
+ define("ace/anchor",[], function(require, exports, module) {
679
684
  "use strict";
680
685
 
681
686
  var oop = require("./lib/oop");
@@ -768,7 +773,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
768
773
  });
769
774
  };
770
775
  this.detach = function() {
771
- this.document.removeEventListener("change", this.$onChange);
776
+ this.document.off("change", this.$onChange);
772
777
  };
773
778
  this.attach = function(doc) {
774
779
  this.document = doc || this.document;
@@ -800,7 +805,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
800
805
 
801
806
  });
802
807
 
803
- define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"], function(require, exports, module) {
808
+ define("ace/document",[], function(require, exports, module) {
804
809
  "use strict";
805
810
 
806
811
  var oop = require("./lib/oop");
@@ -1091,28 +1096,33 @@ var Document = function(textOrLines) {
1091
1096
  return;
1092
1097
  }
1093
1098
 
1094
- if (isInsert && delta.lines.length > 20000)
1099
+ if (isInsert && delta.lines.length > 20000) {
1095
1100
  this.$splitAndapplyLargeDelta(delta, 20000);
1096
- applyDelta(this.$lines, delta, doNotValidate);
1097
- this._signal("change", delta);
1101
+ }
1102
+ else {
1103
+ applyDelta(this.$lines, delta, doNotValidate);
1104
+ this._signal("change", delta);
1105
+ }
1106
+ };
1107
+
1108
+ this.$safeApplyDelta = function(delta) {
1109
+ var docLength = this.$lines.length;
1110
+ if (
1111
+ delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength
1112
+ || delta.action == "insert" && delta.start.row <= docLength
1113
+ ) {
1114
+ this.applyDelta(delta);
1115
+ }
1098
1116
  };
1099
1117
 
1100
1118
  this.$splitAndapplyLargeDelta = function(delta, MAX) {
1101
1119
  var lines = delta.lines;
1102
- var l = lines.length;
1120
+ var l = lines.length - MAX + 1;
1103
1121
  var row = delta.start.row;
1104
1122
  var column = delta.start.column;
1105
- var from = 0, to = 0;
1106
- do {
1107
- from = to;
1123
+ for (var from = 0, to = 0; from < l; from = to) {
1108
1124
  to += MAX - 1;
1109
1125
  var chunk = lines.slice(from, to);
1110
- if (to > l) {
1111
- delta.lines = chunk;
1112
- delta.start.row = row + from;
1113
- delta.start.column = column;
1114
- break;
1115
- }
1116
1126
  chunk.push("");
1117
1127
  this.applyDelta({
1118
1128
  start: this.pos(row + from, column),
@@ -1120,10 +1130,14 @@ var Document = function(textOrLines) {
1120
1130
  action: delta.action,
1121
1131
  lines: chunk
1122
1132
  }, true);
1123
- } while(true);
1133
+ }
1134
+ delta.lines = lines.slice(from);
1135
+ delta.start.row = row + from;
1136
+ delta.start.column = column;
1137
+ this.applyDelta(delta, true);
1124
1138
  };
1125
1139
  this.revertDelta = function(delta) {
1126
- this.applyDelta({
1140
+ this.$safeApplyDelta({
1127
1141
  start: this.clonePos(delta.start),
1128
1142
  end: this.clonePos(delta.end),
1129
1143
  action: (delta.action == "insert" ? "remove" : "insert"),
@@ -1138,7 +1152,7 @@ var Document = function(textOrLines) {
1138
1152
  if (index < 0)
1139
1153
  return {row: i, column: index + lines[i].length + newlineLength};
1140
1154
  }
1141
- return {row: l-1, column: lines[l-1].length};
1155
+ return {row: l-1, column: index + lines[l-1].length + newlineLength};
1142
1156
  };
1143
1157
  this.positionToIndex = function(pos, startRow) {
1144
1158
  var lines = this.$lines || this.getAllLines();
@@ -1156,7 +1170,7 @@ var Document = function(textOrLines) {
1156
1170
  exports.Document = Document;
1157
1171
  });
1158
1172
 
1159
- define("ace/lib/lang",["require","exports","module"], function(require, exports, module) {
1173
+ define("ace/lib/lang",[], function(require, exports, module) {
1160
1174
  "use strict";
1161
1175
 
1162
1176
  exports.last = function(a) {
@@ -1258,7 +1272,7 @@ exports.escapeRegExp = function(str) {
1258
1272
  };
1259
1273
 
1260
1274
  exports.escapeHTML = function(str) {
1261
- return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;");
1275
+ return ("" + str).replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;");
1262
1276
  };
1263
1277
 
1264
1278
  exports.getMatchOffsets = function(string, regExp) {
@@ -1344,7 +1358,7 @@ exports.delayedCall = function(fcn, defaultTimeout) {
1344
1358
  };
1345
1359
  });
1346
1360
 
1347
- define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"], function(require, exports, module) {
1361
+ define("ace/worker/mirror",[], function(require, exports, module) {
1348
1362
  "use strict";
1349
1363
 
1350
1364
  var Range = require("../range").Range;
@@ -1406,7 +1420,7 @@ var Mirror = exports.Mirror = function(sender) {
1406
1420
 
1407
1421
  });
1408
1422
 
1409
- define("ace/mode/lua/luaparse",["require","exports","module"], function(require, exports, module) {
1423
+ define("ace/mode/lua/luaparse",[], function(require, exports, module) {
1410
1424
 
1411
1425
  (function (root, name, factory) {
1412
1426
  factory(exports)
@@ -1859,7 +1873,7 @@ define("ace/mode/lua/luaparse",["require","exports","module"], function(require,
1859
1873
  if (91 === next || 61 === next) return scanLongStringLiteral();
1860
1874
  return scanPunctuator('[');
1861
1875
  case 42: case 47: case 94: case 37: case 44: case 123: case 125:
1862
- case 93: case 40: case 41: case 59: case 35: case 45: case 43:
1876
+ case 93: case 40: case 41: case 59: case 35: case 45: case 43: case 38: case 124:
1863
1877
  return scanPunctuator(input.charAt(index));
1864
1878
  }
1865
1879
 
@@ -2679,6 +2693,7 @@ define("ace/mode/lua/luaparse",["require","exports","module"], function(require,
2679
2693
  case 42: case 47: case 37: return 7; // * / %
2680
2694
  case 43: case 45: return 6; // + -
2681
2695
  case 60: case 62: return 3; // < >
2696
+ case 38: case 124: return 7; // & |
2682
2697
  }
2683
2698
  } else if (2 === length) {
2684
2699
  switch (charCode) {
@@ -2896,7 +2911,7 @@ define("ace/mode/lua/luaparse",["require","exports","module"], function(require,
2896
2911
 
2897
2912
  });
2898
2913
 
2899
- define("ace/mode/lua_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/lua/luaparse"], function(require, exports, module) {
2914
+ define("ace/mode/lua_worker",[], function(require, exports, module) {
2900
2915
  "use strict";
2901
2916
 
2902
2917
  var oop = require("../lib/oop");
@@ -2933,700 +2948,3 @@ oop.inherits(Worker, Mirror);
2933
2948
  }).call(Worker.prototype);
2934
2949
 
2935
2950
  });
2936
-
2937
- define("ace/lib/es5-shim",["require","exports","module"], function(require, exports, module) {
2938
-
2939
- function Empty() {}
2940
-
2941
- if (!Function.prototype.bind) {
2942
- Function.prototype.bind = function bind(that) { // .length is 1
2943
- var target = this;
2944
- if (typeof target != "function") {
2945
- throw new TypeError("Function.prototype.bind called on incompatible " + target);
2946
- }
2947
- var args = slice.call(arguments, 1); // for normal call
2948
- var bound = function () {
2949
-
2950
- if (this instanceof bound) {
2951
-
2952
- var result = target.apply(
2953
- this,
2954
- args.concat(slice.call(arguments))
2955
- );
2956
- if (Object(result) === result) {
2957
- return result;
2958
- }
2959
- return this;
2960
-
2961
- } else {
2962
- return target.apply(
2963
- that,
2964
- args.concat(slice.call(arguments))
2965
- );
2966
-
2967
- }
2968
-
2969
- };
2970
- if(target.prototype) {
2971
- Empty.prototype = target.prototype;
2972
- bound.prototype = new Empty();
2973
- Empty.prototype = null;
2974
- }
2975
- return bound;
2976
- };
2977
- }
2978
- var call = Function.prototype.call;
2979
- var prototypeOfArray = Array.prototype;
2980
- var prototypeOfObject = Object.prototype;
2981
- var slice = prototypeOfArray.slice;
2982
- var _toString = call.bind(prototypeOfObject.toString);
2983
- var owns = call.bind(prototypeOfObject.hasOwnProperty);
2984
- var defineGetter;
2985
- var defineSetter;
2986
- var lookupGetter;
2987
- var lookupSetter;
2988
- var supportsAccessors;
2989
- if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
2990
- defineGetter = call.bind(prototypeOfObject.__defineGetter__);
2991
- defineSetter = call.bind(prototypeOfObject.__defineSetter__);
2992
- lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
2993
- lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
2994
- }
2995
- if ([1,2].splice(0).length != 2) {
2996
- if(function() { // test IE < 9 to splice bug - see issue #138
2997
- function makeArray(l) {
2998
- var a = new Array(l+2);
2999
- a[0] = a[1] = 0;
3000
- return a;
3001
- }
3002
- var array = [], lengthBefore;
3003
-
3004
- array.splice.apply(array, makeArray(20));
3005
- array.splice.apply(array, makeArray(26));
3006
-
3007
- lengthBefore = array.length; //46
3008
- array.splice(5, 0, "XXX"); // add one element
3009
-
3010
- lengthBefore + 1 == array.length
3011
-
3012
- if (lengthBefore + 1 == array.length) {
3013
- return true;// has right splice implementation without bugs
3014
- }
3015
- }()) {//IE 6/7
3016
- var array_splice = Array.prototype.splice;
3017
- Array.prototype.splice = function(start, deleteCount) {
3018
- if (!arguments.length) {
3019
- return [];
3020
- } else {
3021
- return array_splice.apply(this, [
3022
- start === void 0 ? 0 : start,
3023
- deleteCount === void 0 ? (this.length - start) : deleteCount
3024
- ].concat(slice.call(arguments, 2)))
3025
- }
3026
- };
3027
- } else {//IE8
3028
- Array.prototype.splice = function(pos, removeCount){
3029
- var length = this.length;
3030
- if (pos > 0) {
3031
- if (pos > length)
3032
- pos = length;
3033
- } else if (pos == void 0) {
3034
- pos = 0;
3035
- } else if (pos < 0) {
3036
- pos = Math.max(length + pos, 0);
3037
- }
3038
-
3039
- if (!(pos+removeCount < length))
3040
- removeCount = length - pos;
3041
-
3042
- var removed = this.slice(pos, pos+removeCount);
3043
- var insert = slice.call(arguments, 2);
3044
- var add = insert.length;
3045
- if (pos === length) {
3046
- if (add) {
3047
- this.push.apply(this, insert);
3048
- }
3049
- } else {
3050
- var remove = Math.min(removeCount, length - pos);
3051
- var tailOldPos = pos + remove;
3052
- var tailNewPos = tailOldPos + add - remove;
3053
- var tailCount = length - tailOldPos;
3054
- var lengthAfterRemove = length - remove;
3055
-
3056
- if (tailNewPos < tailOldPos) { // case A
3057
- for (var i = 0; i < tailCount; ++i) {
3058
- this[tailNewPos+i] = this[tailOldPos+i];
3059
- }
3060
- } else if (tailNewPos > tailOldPos) { // case B
3061
- for (i = tailCount; i--; ) {
3062
- this[tailNewPos+i] = this[tailOldPos+i];
3063
- }
3064
- } // else, add == remove (nothing to do)
3065
-
3066
- if (add && pos === lengthAfterRemove) {
3067
- this.length = lengthAfterRemove; // truncate array
3068
- this.push.apply(this, insert);
3069
- } else {
3070
- this.length = lengthAfterRemove + add; // reserves space
3071
- for (i = 0; i < add; ++i) {
3072
- this[pos+i] = insert[i];
3073
- }
3074
- }
3075
- }
3076
- return removed;
3077
- };
3078
- }
3079
- }
3080
- if (!Array.isArray) {
3081
- Array.isArray = function isArray(obj) {
3082
- return _toString(obj) == "[object Array]";
3083
- };
3084
- }
3085
- var boxedString = Object("a"),
3086
- splitString = boxedString[0] != "a" || !(0 in boxedString);
3087
-
3088
- if (!Array.prototype.forEach) {
3089
- Array.prototype.forEach = function forEach(fun /*, thisp*/) {
3090
- var object = toObject(this),
3091
- self = splitString && _toString(this) == "[object String]" ?
3092
- this.split("") :
3093
- object,
3094
- thisp = arguments[1],
3095
- i = -1,
3096
- length = self.length >>> 0;
3097
- if (_toString(fun) != "[object Function]") {
3098
- throw new TypeError(); // TODO message
3099
- }
3100
-
3101
- while (++i < length) {
3102
- if (i in self) {
3103
- fun.call(thisp, self[i], i, object);
3104
- }
3105
- }
3106
- };
3107
- }
3108
- if (!Array.prototype.map) {
3109
- Array.prototype.map = function map(fun /*, thisp*/) {
3110
- var object = toObject(this),
3111
- self = splitString && _toString(this) == "[object String]" ?
3112
- this.split("") :
3113
- object,
3114
- length = self.length >>> 0,
3115
- result = Array(length),
3116
- thisp = arguments[1];
3117
- if (_toString(fun) != "[object Function]") {
3118
- throw new TypeError(fun + " is not a function");
3119
- }
3120
-
3121
- for (var i = 0; i < length; i++) {
3122
- if (i in self)
3123
- result[i] = fun.call(thisp, self[i], i, object);
3124
- }
3125
- return result;
3126
- };
3127
- }
3128
- if (!Array.prototype.filter) {
3129
- Array.prototype.filter = function filter(fun /*, thisp */) {
3130
- var object = toObject(this),
3131
- self = splitString && _toString(this) == "[object String]" ?
3132
- this.split("") :
3133
- object,
3134
- length = self.length >>> 0,
3135
- result = [],
3136
- value,
3137
- thisp = arguments[1];
3138
- if (_toString(fun) != "[object Function]") {
3139
- throw new TypeError(fun + " is not a function");
3140
- }
3141
-
3142
- for (var i = 0; i < length; i++) {
3143
- if (i in self) {
3144
- value = self[i];
3145
- if (fun.call(thisp, value, i, object)) {
3146
- result.push(value);
3147
- }
3148
- }
3149
- }
3150
- return result;
3151
- };
3152
- }
3153
- if (!Array.prototype.every) {
3154
- Array.prototype.every = function every(fun /*, thisp */) {
3155
- var object = toObject(this),
3156
- self = splitString && _toString(this) == "[object String]" ?
3157
- this.split("") :
3158
- object,
3159
- length = self.length >>> 0,
3160
- thisp = arguments[1];
3161
- if (_toString(fun) != "[object Function]") {
3162
- throw new TypeError(fun + " is not a function");
3163
- }
3164
-
3165
- for (var i = 0; i < length; i++) {
3166
- if (i in self && !fun.call(thisp, self[i], i, object)) {
3167
- return false;
3168
- }
3169
- }
3170
- return true;
3171
- };
3172
- }
3173
- if (!Array.prototype.some) {
3174
- Array.prototype.some = function some(fun /*, thisp */) {
3175
- var object = toObject(this),
3176
- self = splitString && _toString(this) == "[object String]" ?
3177
- this.split("") :
3178
- object,
3179
- length = self.length >>> 0,
3180
- thisp = arguments[1];
3181
- if (_toString(fun) != "[object Function]") {
3182
- throw new TypeError(fun + " is not a function");
3183
- }
3184
-
3185
- for (var i = 0; i < length; i++) {
3186
- if (i in self && fun.call(thisp, self[i], i, object)) {
3187
- return true;
3188
- }
3189
- }
3190
- return false;
3191
- };
3192
- }
3193
- if (!Array.prototype.reduce) {
3194
- Array.prototype.reduce = function reduce(fun /*, initial*/) {
3195
- var object = toObject(this),
3196
- self = splitString && _toString(this) == "[object String]" ?
3197
- this.split("") :
3198
- object,
3199
- length = self.length >>> 0;
3200
- if (_toString(fun) != "[object Function]") {
3201
- throw new TypeError(fun + " is not a function");
3202
- }
3203
- if (!length && arguments.length == 1) {
3204
- throw new TypeError("reduce of empty array with no initial value");
3205
- }
3206
-
3207
- var i = 0;
3208
- var result;
3209
- if (arguments.length >= 2) {
3210
- result = arguments[1];
3211
- } else {
3212
- do {
3213
- if (i in self) {
3214
- result = self[i++];
3215
- break;
3216
- }
3217
- if (++i >= length) {
3218
- throw new TypeError("reduce of empty array with no initial value");
3219
- }
3220
- } while (true);
3221
- }
3222
-
3223
- for (; i < length; i++) {
3224
- if (i in self) {
3225
- result = fun.call(void 0, result, self[i], i, object);
3226
- }
3227
- }
3228
-
3229
- return result;
3230
- };
3231
- }
3232
- if (!Array.prototype.reduceRight) {
3233
- Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
3234
- var object = toObject(this),
3235
- self = splitString && _toString(this) == "[object String]" ?
3236
- this.split("") :
3237
- object,
3238
- length = self.length >>> 0;
3239
- if (_toString(fun) != "[object Function]") {
3240
- throw new TypeError(fun + " is not a function");
3241
- }
3242
- if (!length && arguments.length == 1) {
3243
- throw new TypeError("reduceRight of empty array with no initial value");
3244
- }
3245
-
3246
- var result, i = length - 1;
3247
- if (arguments.length >= 2) {
3248
- result = arguments[1];
3249
- } else {
3250
- do {
3251
- if (i in self) {
3252
- result = self[i--];
3253
- break;
3254
- }
3255
- if (--i < 0) {
3256
- throw new TypeError("reduceRight of empty array with no initial value");
3257
- }
3258
- } while (true);
3259
- }
3260
-
3261
- do {
3262
- if (i in this) {
3263
- result = fun.call(void 0, result, self[i], i, object);
3264
- }
3265
- } while (i--);
3266
-
3267
- return result;
3268
- };
3269
- }
3270
- if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {
3271
- Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {
3272
- var self = splitString && _toString(this) == "[object String]" ?
3273
- this.split("") :
3274
- toObject(this),
3275
- length = self.length >>> 0;
3276
-
3277
- if (!length) {
3278
- return -1;
3279
- }
3280
-
3281
- var i = 0;
3282
- if (arguments.length > 1) {
3283
- i = toInteger(arguments[1]);
3284
- }
3285
- i = i >= 0 ? i : Math.max(0, length + i);
3286
- for (; i < length; i++) {
3287
- if (i in self && self[i] === sought) {
3288
- return i;
3289
- }
3290
- }
3291
- return -1;
3292
- };
3293
- }
3294
- if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {
3295
- Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {
3296
- var self = splitString && _toString(this) == "[object String]" ?
3297
- this.split("") :
3298
- toObject(this),
3299
- length = self.length >>> 0;
3300
-
3301
- if (!length) {
3302
- return -1;
3303
- }
3304
- var i = length - 1;
3305
- if (arguments.length > 1) {
3306
- i = Math.min(i, toInteger(arguments[1]));
3307
- }
3308
- i = i >= 0 ? i : length - Math.abs(i);
3309
- for (; i >= 0; i--) {
3310
- if (i in self && sought === self[i]) {
3311
- return i;
3312
- }
3313
- }
3314
- return -1;
3315
- };
3316
- }
3317
- if (!Object.getPrototypeOf) {
3318
- Object.getPrototypeOf = function getPrototypeOf(object) {
3319
- return object.__proto__ || (
3320
- object.constructor ?
3321
- object.constructor.prototype :
3322
- prototypeOfObject
3323
- );
3324
- };
3325
- }
3326
- if (!Object.getOwnPropertyDescriptor) {
3327
- var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a " +
3328
- "non-object: ";
3329
- Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) {
3330
- if ((typeof object != "object" && typeof object != "function") || object === null)
3331
- throw new TypeError(ERR_NON_OBJECT + object);
3332
- if (!owns(object, property))
3333
- return;
3334
-
3335
- var descriptor, getter, setter;
3336
- descriptor = { enumerable: true, configurable: true };
3337
- if (supportsAccessors) {
3338
- var prototype = object.__proto__;
3339
- object.__proto__ = prototypeOfObject;
3340
-
3341
- var getter = lookupGetter(object, property);
3342
- var setter = lookupSetter(object, property);
3343
- object.__proto__ = prototype;
3344
-
3345
- if (getter || setter) {
3346
- if (getter) descriptor.get = getter;
3347
- if (setter) descriptor.set = setter;
3348
- return descriptor;
3349
- }
3350
- }
3351
- descriptor.value = object[property];
3352
- return descriptor;
3353
- };
3354
- }
3355
- if (!Object.getOwnPropertyNames) {
3356
- Object.getOwnPropertyNames = function getOwnPropertyNames(object) {
3357
- return Object.keys(object);
3358
- };
3359
- }
3360
- if (!Object.create) {
3361
- var createEmpty;
3362
- if (Object.prototype.__proto__ === null) {
3363
- createEmpty = function () {
3364
- return { "__proto__": null };
3365
- };
3366
- } else {
3367
- createEmpty = function () {
3368
- var empty = {};
3369
- for (var i in empty)
3370
- empty[i] = null;
3371
- empty.constructor =
3372
- empty.hasOwnProperty =
3373
- empty.propertyIsEnumerable =
3374
- empty.isPrototypeOf =
3375
- empty.toLocaleString =
3376
- empty.toString =
3377
- empty.valueOf =
3378
- empty.__proto__ = null;
3379
- return empty;
3380
- }
3381
- }
3382
-
3383
- Object.create = function create(prototype, properties) {
3384
- var object;
3385
- if (prototype === null) {
3386
- object = createEmpty();
3387
- } else {
3388
- if (typeof prototype != "object")
3389
- throw new TypeError("typeof prototype["+(typeof prototype)+"] != 'object'");
3390
- var Type = function () {};
3391
- Type.prototype = prototype;
3392
- object = new Type();
3393
- object.__proto__ = prototype;
3394
- }
3395
- if (properties !== void 0)
3396
- Object.defineProperties(object, properties);
3397
- return object;
3398
- };
3399
- }
3400
-
3401
- function doesDefinePropertyWork(object) {
3402
- try {
3403
- Object.defineProperty(object, "sentinel", {});
3404
- return "sentinel" in object;
3405
- } catch (exception) {
3406
- }
3407
- }
3408
- if (Object.defineProperty) {
3409
- var definePropertyWorksOnObject = doesDefinePropertyWork({});
3410
- var definePropertyWorksOnDom = typeof document == "undefined" ||
3411
- doesDefinePropertyWork(document.createElement("div"));
3412
- if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
3413
- var definePropertyFallback = Object.defineProperty;
3414
- }
3415
- }
3416
-
3417
- if (!Object.defineProperty || definePropertyFallback) {
3418
- var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ";
3419
- var ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: "
3420
- var ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined " +
3421
- "on this javascript engine";
3422
-
3423
- Object.defineProperty = function defineProperty(object, property, descriptor) {
3424
- if ((typeof object != "object" && typeof object != "function") || object === null)
3425
- throw new TypeError(ERR_NON_OBJECT_TARGET + object);
3426
- if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null)
3427
- throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);
3428
- if (definePropertyFallback) {
3429
- try {
3430
- return definePropertyFallback.call(Object, object, property, descriptor);
3431
- } catch (exception) {
3432
- }
3433
- }
3434
- if (owns(descriptor, "value")) {
3435
-
3436
- if (supportsAccessors && (lookupGetter(object, property) ||
3437
- lookupSetter(object, property)))
3438
- {
3439
- var prototype = object.__proto__;
3440
- object.__proto__ = prototypeOfObject;
3441
- delete object[property];
3442
- object[property] = descriptor.value;
3443
- object.__proto__ = prototype;
3444
- } else {
3445
- object[property] = descriptor.value;
3446
- }
3447
- } else {
3448
- if (!supportsAccessors)
3449
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
3450
- if (owns(descriptor, "get"))
3451
- defineGetter(object, property, descriptor.get);
3452
- if (owns(descriptor, "set"))
3453
- defineSetter(object, property, descriptor.set);
3454
- }
3455
-
3456
- return object;
3457
- };
3458
- }
3459
- if (!Object.defineProperties) {
3460
- Object.defineProperties = function defineProperties(object, properties) {
3461
- for (var property in properties) {
3462
- if (owns(properties, property))
3463
- Object.defineProperty(object, property, properties[property]);
3464
- }
3465
- return object;
3466
- };
3467
- }
3468
- if (!Object.seal) {
3469
- Object.seal = function seal(object) {
3470
- return object;
3471
- };
3472
- }
3473
- if (!Object.freeze) {
3474
- Object.freeze = function freeze(object) {
3475
- return object;
3476
- };
3477
- }
3478
- try {
3479
- Object.freeze(function () {});
3480
- } catch (exception) {
3481
- Object.freeze = (function freeze(freezeObject) {
3482
- return function freeze(object) {
3483
- if (typeof object == "function") {
3484
- return object;
3485
- } else {
3486
- return freezeObject(object);
3487
- }
3488
- };
3489
- })(Object.freeze);
3490
- }
3491
- if (!Object.preventExtensions) {
3492
- Object.preventExtensions = function preventExtensions(object) {
3493
- return object;
3494
- };
3495
- }
3496
- if (!Object.isSealed) {
3497
- Object.isSealed = function isSealed(object) {
3498
- return false;
3499
- };
3500
- }
3501
- if (!Object.isFrozen) {
3502
- Object.isFrozen = function isFrozen(object) {
3503
- return false;
3504
- };
3505
- }
3506
- if (!Object.isExtensible) {
3507
- Object.isExtensible = function isExtensible(object) {
3508
- if (Object(object) === object) {
3509
- throw new TypeError(); // TODO message
3510
- }
3511
- var name = '';
3512
- while (owns(object, name)) {
3513
- name += '?';
3514
- }
3515
- object[name] = true;
3516
- var returnValue = owns(object, name);
3517
- delete object[name];
3518
- return returnValue;
3519
- };
3520
- }
3521
- if (!Object.keys) {
3522
- var hasDontEnumBug = true,
3523
- dontEnums = [
3524
- "toString",
3525
- "toLocaleString",
3526
- "valueOf",
3527
- "hasOwnProperty",
3528
- "isPrototypeOf",
3529
- "propertyIsEnumerable",
3530
- "constructor"
3531
- ],
3532
- dontEnumsLength = dontEnums.length;
3533
-
3534
- for (var key in {"toString": null}) {
3535
- hasDontEnumBug = false;
3536
- }
3537
-
3538
- Object.keys = function keys(object) {
3539
-
3540
- if (
3541
- (typeof object != "object" && typeof object != "function") ||
3542
- object === null
3543
- ) {
3544
- throw new TypeError("Object.keys called on a non-object");
3545
- }
3546
-
3547
- var keys = [];
3548
- for (var name in object) {
3549
- if (owns(object, name)) {
3550
- keys.push(name);
3551
- }
3552
- }
3553
-
3554
- if (hasDontEnumBug) {
3555
- for (var i = 0, ii = dontEnumsLength; i < ii; i++) {
3556
- var dontEnum = dontEnums[i];
3557
- if (owns(object, dontEnum)) {
3558
- keys.push(dontEnum);
3559
- }
3560
- }
3561
- }
3562
- return keys;
3563
- };
3564
-
3565
- }
3566
- if (!Date.now) {
3567
- Date.now = function now() {
3568
- return new Date().getTime();
3569
- };
3570
- }
3571
- var ws = "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" +
3572
- "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028" +
3573
- "\u2029\uFEFF";
3574
- if (!String.prototype.trim || ws.trim()) {
3575
- ws = "[" + ws + "]";
3576
- var trimBeginRegexp = new RegExp("^" + ws + ws + "*"),
3577
- trimEndRegexp = new RegExp(ws + ws + "*$");
3578
- String.prototype.trim = function trim() {
3579
- return String(this).replace(trimBeginRegexp, "").replace(trimEndRegexp, "");
3580
- };
3581
- }
3582
-
3583
- function toInteger(n) {
3584
- n = +n;
3585
- if (n !== n) { // isNaN
3586
- n = 0;
3587
- } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
3588
- n = (n > 0 || -1) * Math.floor(Math.abs(n));
3589
- }
3590
- return n;
3591
- }
3592
-
3593
- function isPrimitive(input) {
3594
- var type = typeof input;
3595
- return (
3596
- input === null ||
3597
- type === "undefined" ||
3598
- type === "boolean" ||
3599
- type === "number" ||
3600
- type === "string"
3601
- );
3602
- }
3603
-
3604
- function toPrimitive(input) {
3605
- var val, valueOf, toString;
3606
- if (isPrimitive(input)) {
3607
- return input;
3608
- }
3609
- valueOf = input.valueOf;
3610
- if (typeof valueOf === "function") {
3611
- val = valueOf.call(input);
3612
- if (isPrimitive(val)) {
3613
- return val;
3614
- }
3615
- }
3616
- toString = input.toString;
3617
- if (typeof toString === "function") {
3618
- val = toString.call(input);
3619
- if (isPrimitive(val)) {
3620
- return val;
3621
- }
3622
- }
3623
- throw new TypeError();
3624
- }
3625
- var toObject = function (o) {
3626
- if (o == null) { // this matches both null and undefined
3627
- throw new TypeError("can't convert "+o+" to object");
3628
- }
3629
- return Object(o);
3630
- };
3631
-
3632
- });