ace-rails-ap 2.0.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/ace/rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/ace/ace.js +14194 -13349
  5. data/vendor/assets/javascripts/ace/ext-beautify.js +335 -0
  6. data/vendor/assets/javascripts/ace/ext-chromevox.js +6 -1
  7. data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +8 -33
  8. data/vendor/assets/javascripts/ace/ext-emmet.js +487 -424
  9. data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -0
  10. data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +45 -72
  11. data/vendor/assets/javascripts/ace/ext-language_tools.js +734 -578
  12. data/vendor/assets/javascripts/ace/ext-linking.js +53 -0
  13. data/vendor/assets/javascripts/ace/ext-modelist.js +25 -10
  14. data/vendor/assets/javascripts/ace/ext-old_ie.js +93 -120
  15. data/vendor/assets/javascripts/ace/ext-searchbox.js +8 -41
  16. data/vendor/assets/javascripts/ace/ext-settings_menu.js +229 -234
  17. data/vendor/assets/javascripts/ace/ext-spellcheck.js +7 -3
  18. data/vendor/assets/javascripts/ace/ext-split.js +13 -37
  19. data/vendor/assets/javascripts/ace/ext-static_highlight.js +16 -39
  20. data/vendor/assets/javascripts/ace/ext-statusbar.js +8 -2
  21. data/vendor/assets/javascripts/ace/ext-textarea.js +254 -99
  22. data/vendor/assets/javascripts/ace/ext-themelist.js +13 -40
  23. data/vendor/assets/javascripts/ace/ext-whitespace.js +17 -41
  24. data/vendor/assets/javascripts/ace/keybinding-emacs.js +803 -788
  25. data/vendor/assets/javascripts/ace/keybinding-vim.js +1559 -1560
  26. data/vendor/assets/javascripts/ace/mode-abap.js +52 -83
  27. data/vendor/assets/javascripts/ace/mode-actionscript.js +27 -63
  28. data/vendor/assets/javascripts/ace/mode-ada.js +27 -58
  29. data/vendor/assets/javascripts/ace/mode-apache_conf.js +310 -0
  30. data/vendor/assets/javascripts/ace/mode-applescript.js +226 -0
  31. data/vendor/assets/javascripts/ace/mode-asciidoc.js +39 -70
  32. data/vendor/assets/javascripts/ace/mode-assembly_x86.js +26 -58
  33. data/vendor/assets/javascripts/ace/mode-autohotkey.js +27 -63
  34. data/vendor/assets/javascripts/ace/mode-batchfile.js +27 -63
  35. data/vendor/assets/javascripts/ace/mode-c9search.js +92 -112
  36. data/vendor/assets/javascripts/ace/mode-c_cpp.js +224 -223
  37. data/vendor/assets/javascripts/ace/mode-cirru.js +202 -0
  38. data/vendor/assets/javascripts/ace/mode-clojure.js +98 -92
  39. data/vendor/assets/javascripts/ace/mode-cobol.js +27 -58
  40. data/vendor/assets/javascripts/ace/mode-coffee.js +90 -122
  41. data/vendor/assets/javascripts/ace/mode-coldfusion.js +1908 -1464
  42. data/vendor/assets/javascripts/ace/mode-csharp.js +291 -264
  43. data/vendor/assets/javascripts/ace/mode-css.js +266 -267
  44. data/vendor/assets/javascripts/ace/mode-curly.js +796 -815
  45. data/vendor/assets/javascripts/ace/mode-d.js +64 -95
  46. data/vendor/assets/javascripts/ace/mode-dart.js +254 -256
  47. data/vendor/assets/javascripts/ace/mode-diff.js +27 -58
  48. data/vendor/assets/javascripts/ace/mode-django.js +856 -866
  49. data/vendor/assets/javascripts/ace/mode-dockerfile.js +759 -0
  50. data/vendor/assets/javascripts/ace/mode-dot.js +106 -106
  51. data/vendor/assets/javascripts/ace/mode-eiffel.js +135 -0
  52. data/vendor/assets/javascripts/ace/mode-ejs.js +931 -938
  53. data/vendor/assets/javascripts/ace/mode-erlang.js +27 -58
  54. data/vendor/assets/javascripts/ace/mode-forth.js +27 -63
  55. data/vendor/assets/javascripts/ace/mode-ftl.js +457 -508
  56. data/vendor/assets/javascripts/ace/mode-gcode.js +85 -0
  57. data/vendor/assets/javascripts/ace/mode-gherkin.js +129 -0
  58. data/vendor/assets/javascripts/ace/mode-gitignore.js +50 -0
  59. data/vendor/assets/javascripts/ace/mode-glsl.js +252 -248
  60. data/vendor/assets/javascripts/ace/mode-golang.js +206 -179
  61. data/vendor/assets/javascripts/ace/mode-groovy.js +310 -242
  62. data/vendor/assets/javascripts/ace/mode-haml.js +156 -190
  63. data/vendor/assets/javascripts/ace/mode-handlebars.js +815 -784
  64. data/vendor/assets/javascripts/ace/mode-haskell.js +27 -63
  65. data/vendor/assets/javascripts/ace/mode-haxe.js +206 -176
  66. data/vendor/assets/javascripts/ace/mode-html.js +779 -792
  67. data/vendor/assets/javascripts/ace/mode-html_ruby.js +916 -923
  68. data/vendor/assets/javascripts/ace/mode-ini.js +27 -58
  69. data/vendor/assets/javascripts/ace/mode-io.js +201 -0
  70. data/vendor/assets/javascripts/ace/mode-jack.js +169 -170
  71. data/vendor/assets/javascripts/ace/mode-jade.js +722 -774
  72. data/vendor/assets/javascripts/ace/mode-java.js +310 -245
  73. data/vendor/assets/javascripts/ace/mode-javascript.js +285 -247
  74. data/vendor/assets/javascripts/ace/mode-json.js +183 -184
  75. data/vendor/assets/javascripts/ace/mode-jsoniq.js +3211 -1274
  76. data/vendor/assets/javascripts/ace/mode-jsp.js +481 -504
  77. data/vendor/assets/javascripts/ace/mode-jsx.js +206 -176
  78. data/vendor/assets/javascripts/ace/mode-julia.js +33 -69
  79. data/vendor/assets/javascripts/ace/mode-latex.js +74 -41
  80. data/vendor/assets/javascripts/ace/mode-less.js +250 -251
  81. data/vendor/assets/javascripts/ace/mode-liquid.js +424 -475
  82. data/vendor/assets/javascripts/ace/mode-lisp.js +24 -57
  83. data/vendor/assets/javascripts/ace/mode-livescript.js +42 -41
  84. data/vendor/assets/javascripts/ace/mode-logiql.js +229 -230
  85. data/vendor/assets/javascripts/ace/mode-lsl.js +200 -441
  86. data/vendor/assets/javascripts/ace/mode-lua.js +136 -167
  87. data/vendor/assets/javascripts/ace/mode-luapage.js +904 -884
  88. data/vendor/assets/javascripts/ace/mode-lucene.js +22 -17
  89. data/vendor/assets/javascripts/ace/mode-makefile.js +162 -137
  90. data/vendor/assets/javascripts/ace/mode-markdown.js +846 -854
  91. data/vendor/assets/javascripts/ace/mode-matlab.js +98 -72
  92. data/vendor/assets/javascripts/ace/mode-mel.js +569 -0
  93. data/vendor/assets/javascripts/ace/mode-mushcode.js +84 -115
  94. data/vendor/assets/javascripts/ace/mode-mysql.js +49 -80
  95. data/vendor/assets/javascripts/ace/mode-nix.js +252 -256
  96. data/vendor/assets/javascripts/ace/mode-objectivec.js +242 -274
  97. data/vendor/assets/javascripts/ace/mode-ocaml.js +71 -102
  98. data/vendor/assets/javascripts/ace/mode-pascal.js +32 -68
  99. data/vendor/assets/javascripts/ace/mode-perl.js +67 -98
  100. data/vendor/assets/javascripts/ace/mode-pgsql.js +990 -982
  101. data/vendor/assets/javascripts/ace/mode-php.js +1878 -1900
  102. data/vendor/assets/javascripts/ace/mode-plain_text.js +3 -34
  103. data/vendor/assets/javascripts/ace/mode-powershell.js +181 -151
  104. data/vendor/assets/javascripts/ace/mode-praat.js +418 -0
  105. data/vendor/assets/javascripts/ace/mode-prolog.js +27 -63
  106. data/vendor/assets/javascripts/ace/mode-properties.js +20 -48
  107. data/vendor/assets/javascripts/ace/mode-protobuf.js +252 -259
  108. data/vendor/assets/javascripts/ace/mode-python.js +84 -115
  109. data/vendor/assets/javascripts/ace/mode-r.js +105 -140
  110. data/vendor/assets/javascripts/ace/mode-rdoc.js +84 -89
  111. data/vendor/assets/javascripts/ace/mode-rhtml.js +892 -908
  112. data/vendor/assets/javascripts/ace/mode-ruby.js +434 -98
  113. data/vendor/assets/javascripts/ace/mode-rust.js +27 -63
  114. data/vendor/assets/javascripts/ace/mode-sass.js +75 -106
  115. data/vendor/assets/javascripts/ace/mode-scad.js +219 -220
  116. data/vendor/assets/javascripts/ace/mode-scala.js +311 -243
  117. data/vendor/assets/javascripts/ace/mode-scheme.js +24 -60
  118. data/vendor/assets/javascripts/ace/mode-scss.js +250 -251
  119. data/vendor/assets/javascripts/ace/mode-sh.js +506 -118
  120. data/vendor/assets/javascripts/ace/mode-sjs.js +314 -280
  121. data/vendor/assets/javascripts/ace/mode-smarty.js +2474 -0
  122. data/vendor/assets/javascripts/ace/mode-snippets.js +89 -89
  123. data/vendor/assets/javascripts/ace/mode-soy_template.js +792 -811
  124. data/vendor/assets/javascripts/ace/mode-space.js +22 -23
  125. data/vendor/assets/javascripts/ace/mode-sql.js +31 -58
  126. data/vendor/assets/javascripts/ace/mode-stylus.js +161 -197
  127. data/vendor/assets/javascripts/ace/mode-svg.js +906 -836
  128. data/vendor/assets/javascripts/ace/mode-tcl.js +61 -92
  129. data/vendor/assets/javascripts/ace/mode-tex.js +36 -73
  130. data/vendor/assets/javascripts/ace/mode-text.js +1 -0
  131. data/vendor/assets/javascripts/ace/mode-textile.js +41 -72
  132. data/vendor/assets/javascripts/ace/mode-toml.js +26 -62
  133. data/vendor/assets/javascripts/ace/mode-twig.js +1196 -892
  134. data/vendor/assets/javascripts/ace/mode-typescript.js +313 -277
  135. data/vendor/assets/javascripts/ace/mode-vala.js +982 -0
  136. data/vendor/assets/javascripts/ace/mode-vbscript.js +25 -62
  137. data/vendor/assets/javascripts/ace/mode-velocity.js +2251 -1242
  138. data/vendor/assets/javascripts/ace/mode-verilog.js +27 -59
  139. data/vendor/assets/javascripts/ace/mode-vhdl.js +26 -55
  140. data/vendor/assets/javascripts/ace/mode-xml.js +319 -644
  141. data/vendor/assets/javascripts/ace/mode-xquery.js +2503 -588
  142. data/vendor/assets/javascripts/ace/mode-yaml.js +56 -90
  143. data/vendor/assets/javascripts/ace/snippets/abap.js +7 -0
  144. data/vendor/assets/javascripts/ace/snippets/actionscript.js +159 -0
  145. data/vendor/assets/javascripts/ace/snippets/ada.js +7 -0
  146. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +7 -0
  147. data/vendor/assets/javascripts/ace/snippets/applescript.js +7 -0
  148. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +7 -0
  149. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +7 -0
  150. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +7 -0
  151. data/vendor/assets/javascripts/ace/snippets/batchfile.js +7 -0
  152. data/vendor/assets/javascripts/ace/snippets/c9search.js +7 -0
  153. data/vendor/assets/javascripts/ace/snippets/c_cpp.js +138 -0
  154. data/vendor/assets/javascripts/ace/snippets/cirru.js +7 -0
  155. data/vendor/assets/javascripts/ace/snippets/clojure.js +97 -0
  156. data/vendor/assets/javascripts/ace/snippets/cobol.js +7 -0
  157. data/vendor/assets/javascripts/ace/snippets/coffee.js +102 -0
  158. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +7 -0
  159. data/vendor/assets/javascripts/ace/snippets/csharp.js +7 -0
  160. data/vendor/assets/javascripts/ace/snippets/css.js +974 -0
  161. data/vendor/assets/javascripts/ace/snippets/curly.js +7 -0
  162. data/vendor/assets/javascripts/ace/snippets/d.js +7 -0
  163. data/vendor/assets/javascripts/ace/snippets/dart.js +90 -0
  164. data/vendor/assets/javascripts/ace/snippets/diff.js +18 -0
  165. data/vendor/assets/javascripts/ace/snippets/django.js +115 -0
  166. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +7 -0
  167. data/vendor/assets/javascripts/ace/snippets/dot.js +7 -0
  168. data/vendor/assets/javascripts/ace/snippets/eiffel.js +7 -0
  169. data/vendor/assets/javascripts/ace/snippets/ejs.js +7 -0
  170. data/vendor/assets/javascripts/ace/snippets/erlang.js +167 -0
  171. data/vendor/assets/javascripts/ace/snippets/forth.js +7 -0
  172. data/vendor/assets/javascripts/ace/snippets/ftl.js +7 -0
  173. data/vendor/assets/javascripts/ace/snippets/gcode.js +7 -0
  174. data/vendor/assets/javascripts/ace/snippets/gherkin.js +7 -0
  175. data/vendor/assets/javascripts/ace/snippets/gitignore.js +7 -0
  176. data/vendor/assets/javascripts/ace/snippets/glsl.js +7 -0
  177. data/vendor/assets/javascripts/ace/snippets/golang.js +7 -0
  178. data/vendor/assets/javascripts/ace/snippets/groovy.js +7 -0
  179. data/vendor/assets/javascripts/ace/snippets/haml.js +27 -0
  180. data/vendor/assets/javascripts/ace/snippets/handlebars.js +7 -0
  181. data/vendor/assets/javascripts/ace/snippets/haskell.js +89 -0
  182. data/vendor/assets/javascripts/ace/snippets/haxe.js +7 -0
  183. data/vendor/assets/javascripts/ace/snippets/html.js +835 -0
  184. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +7 -0
  185. data/vendor/assets/javascripts/ace/snippets/ini.js +7 -0
  186. data/vendor/assets/javascripts/ace/snippets/io.js +69 -0
  187. data/vendor/assets/javascripts/ace/snippets/jack.js +7 -0
  188. data/vendor/assets/javascripts/ace/snippets/jade.js +7 -0
  189. data/vendor/assets/javascripts/ace/snippets/java.js +241 -0
  190. data/vendor/assets/javascripts/ace/snippets/javascript.js +189 -0
  191. data/vendor/assets/javascripts/ace/snippets/json.js +7 -0
  192. data/vendor/assets/javascripts/ace/snippets/jsoniq.js +68 -0
  193. data/vendor/assets/javascripts/ace/snippets/jsp.js +106 -0
  194. data/vendor/assets/javascripts/ace/snippets/jsx.js +7 -0
  195. data/vendor/assets/javascripts/ace/snippets/julia.js +7 -0
  196. data/vendor/assets/javascripts/ace/snippets/latex.js +7 -0
  197. data/vendor/assets/javascripts/ace/snippets/less.js +7 -0
  198. data/vendor/assets/javascripts/ace/snippets/liquid.js +7 -0
  199. data/vendor/assets/javascripts/ace/snippets/lisp.js +7 -0
  200. data/vendor/assets/javascripts/ace/snippets/livescript.js +7 -0
  201. data/vendor/assets/javascripts/ace/snippets/logiql.js +7 -0
  202. data/vendor/assets/javascripts/ace/snippets/lsl.js +1073 -0
  203. data/vendor/assets/javascripts/ace/snippets/lua.js +28 -0
  204. data/vendor/assets/javascripts/ace/snippets/luapage.js +7 -0
  205. data/vendor/assets/javascripts/ace/snippets/lucene.js +7 -0
  206. data/vendor/assets/javascripts/ace/snippets/makefile.js +11 -0
  207. data/vendor/assets/javascripts/ace/snippets/markdown.js +95 -0
  208. data/vendor/assets/javascripts/ace/snippets/matlab.js +7 -0
  209. data/vendor/assets/javascripts/ace/snippets/mel.js +7 -0
  210. data/vendor/assets/javascripts/ace/snippets/mushcode.js +7 -0
  211. data/vendor/assets/javascripts/ace/snippets/mysql.js +7 -0
  212. data/vendor/assets/javascripts/ace/snippets/nix.js +7 -0
  213. data/vendor/assets/javascripts/ace/snippets/objectivec.js +7 -0
  214. data/vendor/assets/javascripts/ace/snippets/ocaml.js +7 -0
  215. data/vendor/assets/javascripts/ace/snippets/pascal.js +7 -0
  216. data/vendor/assets/javascripts/ace/snippets/perl.js +354 -0
  217. data/vendor/assets/javascripts/ace/snippets/pgsql.js +7 -0
  218. data/vendor/assets/javascripts/ace/snippets/php.js +283 -0
  219. data/vendor/assets/javascripts/ace/snippets/plain_text.js +7 -0
  220. data/vendor/assets/javascripts/ace/snippets/powershell.js +7 -0
  221. data/vendor/assets/javascripts/ace/snippets/praat.js +7 -0
  222. data/vendor/assets/javascripts/ace/snippets/prolog.js +7 -0
  223. data/vendor/assets/javascripts/ace/snippets/properties.js +7 -0
  224. data/vendor/assets/javascripts/ace/snippets/protobuf.js +7 -0
  225. data/vendor/assets/javascripts/ace/snippets/python.js +165 -0
  226. data/vendor/assets/javascripts/ace/snippets/r.js +128 -0
  227. data/vendor/assets/javascripts/ace/snippets/rdoc.js +7 -0
  228. data/vendor/assets/javascripts/ace/snippets/rhtml.js +7 -0
  229. data/vendor/assets/javascripts/ace/snippets/ruby.js +935 -0
  230. data/vendor/assets/javascripts/ace/snippets/rust.js +7 -0
  231. data/vendor/assets/javascripts/ace/snippets/sass.js +7 -0
  232. data/vendor/assets/javascripts/ace/snippets/scad.js +7 -0
  233. data/vendor/assets/javascripts/ace/snippets/scala.js +7 -0
  234. data/vendor/assets/javascripts/ace/snippets/scheme.js +7 -0
  235. data/vendor/assets/javascripts/ace/snippets/scss.js +7 -0
  236. data/vendor/assets/javascripts/ace/snippets/sh.js +90 -0
  237. data/vendor/assets/javascripts/ace/snippets/sjs.js +7 -0
  238. data/vendor/assets/javascripts/ace/snippets/smarty.js +7 -0
  239. data/vendor/assets/javascripts/ace/snippets/snippets.js +16 -0
  240. data/vendor/assets/javascripts/ace/snippets/soy_template.js +7 -0
  241. data/vendor/assets/javascripts/ace/snippets/space.js +7 -0
  242. data/vendor/assets/javascripts/ace/snippets/sql.js +33 -0
  243. data/vendor/assets/javascripts/ace/snippets/stylus.js +7 -0
  244. data/vendor/assets/javascripts/ace/snippets/svg.js +7 -0
  245. data/vendor/assets/javascripts/ace/snippets/tcl.js +99 -0
  246. data/vendor/assets/javascripts/ace/snippets/tex.js +197 -0
  247. data/vendor/assets/javascripts/ace/snippets/text.js +7 -0
  248. data/vendor/assets/javascripts/ace/snippets/textile.js +37 -0
  249. data/vendor/assets/javascripts/ace/snippets/toml.js +7 -0
  250. data/vendor/assets/javascripts/ace/snippets/twig.js +7 -0
  251. data/vendor/assets/javascripts/ace/snippets/typescript.js +7 -0
  252. data/vendor/assets/javascripts/ace/snippets/vala.js +193 -0
  253. data/vendor/assets/javascripts/ace/snippets/vbscript.js +7 -0
  254. data/vendor/assets/javascripts/ace/snippets/velocity.js +36 -0
  255. data/vendor/assets/javascripts/ace/snippets/verilog.js +7 -0
  256. data/vendor/assets/javascripts/ace/snippets/vhdl.js +7 -0
  257. data/vendor/assets/javascripts/ace/snippets/xml.js +7 -0
  258. data/vendor/assets/javascripts/ace/snippets/xquery.js +68 -0
  259. data/vendor/assets/javascripts/ace/snippets/yaml.js +7 -0
  260. data/vendor/assets/javascripts/ace/theme-ambiance.js +4 -24
  261. data/vendor/assets/javascripts/ace/theme-chaos.js +2 -25
  262. data/vendor/assets/javascripts/ace/theme-chrome.js +2 -31
  263. data/vendor/assets/javascripts/ace/theme-clouds.js +1 -31
  264. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +1 -31
  265. data/vendor/assets/javascripts/ace/theme-cobalt.js +1 -31
  266. data/vendor/assets/javascripts/ace/theme-crimson_editor.js +1 -31
  267. data/vendor/assets/javascripts/ace/theme-dawn.js +1 -31
  268. data/vendor/assets/javascripts/ace/theme-dreamweaver.js +5 -31
  269. data/vendor/assets/javascripts/ace/theme-eclipse.js +7 -33
  270. data/vendor/assets/javascripts/ace/theme-github.js +2 -35
  271. data/vendor/assets/javascripts/ace/theme-idle_fingers.js +1 -31
  272. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +119 -0
  273. data/vendor/assets/javascripts/ace/theme-kr.js +1 -31
  274. data/vendor/assets/javascripts/ace/theme-kr_theme.js +57 -141
  275. data/vendor/assets/javascripts/ace/theme-kuroir.js +59 -0
  276. data/vendor/assets/javascripts/ace/theme-merbivore.js +1 -31
  277. data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +1 -31
  278. data/vendor/assets/javascripts/ace/theme-mono_industrial.js +1 -31
  279. data/vendor/assets/javascripts/ace/theme-monokai.js +1 -31
  280. data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +1 -31
  281. data/vendor/assets/javascripts/ace/theme-solarized_dark.js +1 -31
  282. data/vendor/assets/javascripts/ace/theme-solarized_light.js +1 -31
  283. data/vendor/assets/javascripts/ace/theme-terminal.js +1 -31
  284. data/vendor/assets/javascripts/ace/theme-textmate.js +3 -32
  285. data/vendor/assets/javascripts/ace/theme-tomorrow.js +1 -31
  286. data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +1 -31
  287. data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +1 -31
  288. data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +1 -31
  289. data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +1 -31
  290. data/vendor/assets/javascripts/ace/theme-twilight.js +1 -31
  291. data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +1 -31
  292. data/vendor/assets/javascripts/ace/theme-xcode.js +2 -33
  293. data/vendor/assets/javascripts/ace/worker-coffee.js +5026 -5008
  294. data/vendor/assets/javascripts/ace/worker-css.js +5489 -5134
  295. data/vendor/assets/javascripts/ace/worker-html.js +11517 -0
  296. data/vendor/assets/javascripts/ace/worker-javascript.js +9810 -9501
  297. data/vendor/assets/javascripts/ace/worker-json.js +1583 -1564
  298. data/vendor/assets/javascripts/ace/worker-lua.js +2631 -2612
  299. data/vendor/assets/javascripts/ace/worker-php.js +2385 -2341
  300. data/vendor/assets/javascripts/ace/worker-xquery.js +31643 -3993
  301. metadata +147 -11
@@ -1,172 +1,5 @@
1
- /* ***** BEGIN LICENSE BLOCK *****
2
- * Distributed under the BSD license:
3
- *
4
- * Copyright (c) 2013 Matthew Christopher Kastor-Inare III, Atropa Inc. Intl
5
- * All rights reserved.
6
- *
7
- * Contributed to Ajax.org under the BSD license.
8
- *
9
- * Redistribution and use in source and binary forms, with or without
10
- * modification, are permitted provided that the following conditions are met:
11
- * * Redistributions of source code must retain the above copyright
12
- * notice, this list of conditions and the following disclaimer.
13
- * * Redistributions in binary form must reproduce the above copyright
14
- * notice, this list of conditions and the following disclaimer in the
15
- * documentation and/or other materials provided with the distribution.
16
- * * Neither the name of Ajax.org B.V. nor the
17
- * names of its contributors may be used to endorse or promote products
18
- * derived from this software without specific prior written permission.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
24
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- *
31
- * ***** END LICENSE BLOCK ***** */
32
-
33
- define('ace/ext/settings_menu', ['require', 'exports', 'module' , 'ace/ext/menu_tools/generate_settings_menu', 'ace/ext/menu_tools/overlay_page', 'ace/editor'], function(require, exports, module) {
34
-
35
- var generateSettingsMenu = require('./menu_tools/generate_settings_menu').generateSettingsMenu;
36
- var overlayPage = require('./menu_tools/overlay_page').overlayPage;
37
- function showSettingsMenu(editor) {
38
- var sm = document.getElementById('ace_settingsmenu');
39
- if (!sm)
40
- overlayPage(editor, generateSettingsMenu(editor), '0', '0', '0');
41
- }
42
- module.exports.init = function(editor) {
43
- var Editor = require("ace/editor").Editor;
44
- Editor.prototype.showSettingsMenu = function() {
45
- showSettingsMenu(this);
46
- };
47
- };
48
- });
49
-
50
- define('ace/ext/menu_tools/generate_settings_menu', ['require', 'exports', 'module' , 'ace/ext/menu_tools/element_generator', 'ace/ext/menu_tools/add_editor_menu_options', 'ace/ext/menu_tools/get_set_functions'], function(require, exports, module) {
51
-
52
- var egen = require('./element_generator');
53
- var addEditorMenuOptions = require('./add_editor_menu_options').addEditorMenuOptions;
54
- var getSetFunctions = require('./get_set_functions').getSetFunctions;
55
- module.exports.generateSettingsMenu = function generateSettingsMenu (editor) {
56
- var elements = [];
57
- function cleanupElementsList() {
58
- elements.sort(function(a, b) {
59
- var x = a.getAttribute('contains');
60
- var y = b.getAttribute('contains');
61
- return x.localeCompare(y);
62
- });
63
- }
64
- function wrapElements() {
65
- var topmenu = document.createElement('div');
66
- topmenu.setAttribute('id', 'ace_settingsmenu');
67
- elements.forEach(function(element) {
68
- topmenu.appendChild(element);
69
- });
70
- return topmenu;
71
- }
72
- function createNewEntry(obj, clss, item, val) {
73
- var el;
74
- var div = document.createElement('div');
75
- div.setAttribute('contains', item);
76
- div.setAttribute('class', 'ace_optionsMenuEntry');
77
- div.setAttribute('style', 'clear: both;');
78
-
79
- div.appendChild(egen.createLabel(
80
- item.replace(/^set/, '').replace(/([A-Z])/g, ' $1').trim(),
81
- item
82
- ));
83
-
84
- if (Array.isArray(val)) {
85
- el = egen.createSelection(item, val, clss);
86
- el.addEventListener('change', function(e) {
87
- try{
88
- editor.menuOptions[e.target.id].forEach(function(x) {
89
- if(x.textContent !== e.target.textContent) {
90
- delete x.selected;
91
- }
92
- });
93
- obj[e.target.id](e.target.value);
94
- } catch (err) {
95
- throw new Error(err);
96
- }
97
- });
98
- } else if(typeof val === 'boolean') {
99
- el = egen.createCheckbox(item, val, clss);
100
- el.addEventListener('change', function(e) {
101
- try{
102
- obj[e.target.id](!!e.target.checked);
103
- } catch (err) {
104
- throw new Error(err);
105
- }
106
- });
107
- } else {
108
- el = egen.createInput(item, val, clss);
109
- el.addEventListener('change', function(e) {
110
- try{
111
- if(e.target.value === 'true') {
112
- obj[e.target.id](true);
113
- } else if(e.target.value === 'false') {
114
- obj[e.target.id](false);
115
- } else {
116
- obj[e.target.id](e.target.value);
117
- }
118
- } catch (err) {
119
- throw new Error(err);
120
- }
121
- });
122
- }
123
- el.style.cssText = 'float:right;';
124
- div.appendChild(el);
125
- return div;
126
- }
127
- function makeDropdown(item, esr, clss, fn) {
128
- var val = editor.menuOptions[item];
129
- var currentVal = esr[fn]();
130
- if (typeof currentVal == 'object')
131
- currentVal = currentVal.$id;
132
- val.forEach(function(valuex) {
133
- if (valuex.value === currentVal)
134
- valuex.selected = 'selected';
135
- });
136
- return createNewEntry(esr, clss, item, val);
137
- }
138
- function handleSet(setObj) {
139
- var item = setObj.functionName;
140
- var esr = setObj.parentObj;
141
- var clss = setObj.parentName;
142
- var val;
143
- var fn = item.replace(/^set/, 'get');
144
- if(editor.menuOptions[item] !== undefined) {
145
- elements.push(makeDropdown(item, esr, clss, fn));
146
- } else if(typeof esr[fn] === 'function') {
147
- try {
148
- val = esr[fn]();
149
- if(typeof val === 'object') {
150
- val = val.$id;
151
- }
152
- elements.push(
153
- createNewEntry(esr, clss, item, val)
154
- );
155
- } catch (e) {
156
- }
157
- }
158
- }
159
- addEditorMenuOptions(editor);
160
- getSetFunctions(editor).forEach(function(setObj) {
161
- handleSet(setObj);
162
- });
163
- cleanupElementsList();
164
- return wrapElements();
165
- };
166
-
167
- });
168
-
169
- define('ace/ext/menu_tools/element_generator', ['require', 'exports', 'module' ], function(require, exports, module) {
1
+ define("ace/ext/menu_tools/element_generator",["require","exports","module"], function(require, exports, module) {
2
+ 'use strict';
170
3
  module.exports.createOption = function createOption (obj) {
171
4
  var attribute;
172
5
  var el = document.createElement('option');
@@ -221,54 +54,8 @@ module.exports.createSelection = function createSelection (id, values, clss) {
221
54
 
222
55
  });
223
56
 
224
- define('ace/ext/menu_tools/add_editor_menu_options', ['require', 'exports', 'module' , 'ace/ext/modelist', 'ace/ext/themelist'], function(require, exports, module) {
225
- module.exports.addEditorMenuOptions = function addEditorMenuOptions (editor) {
226
- var modelist = require('../modelist');
227
- var themelist = require('../themelist');
228
- editor.menuOptions = {
229
- "setNewLineMode" : [{
230
- "textContent" : "unix",
231
- "value" : "unix"
232
- }, {
233
- "textContent" : "windows",
234
- "value" : "windows"
235
- }, {
236
- "textContent" : "auto",
237
- "value" : "auto"
238
- }],
239
- "setTheme" : [],
240
- "setMode" : [],
241
- "setKeyboardHandler": [{
242
- "textContent" : "ace",
243
- "value" : ""
244
- }, {
245
- "textContent" : "vim",
246
- "value" : "ace/keyboard/vim"
247
- }, {
248
- "textContent" : "emacs",
249
- "value" : "ace/keyboard/emacs"
250
- }]
251
- };
252
-
253
- editor.menuOptions.setTheme = themelist.themes.map(function(theme) {
254
- return {
255
- 'textContent' : theme.caption,
256
- 'value' : theme.theme
257
- };
258
- });
259
-
260
- editor.menuOptions.setMode = modelist.modes.map(function(mode) {
261
- return {
262
- 'textContent' : mode.name,
263
- 'value' : mode.mode
264
- };
265
- });
266
- };
267
-
268
-
269
- });
270
- define('ace/ext/modelist', ['require', 'exports', 'module' ], function(require, exports, module) {
271
-
57
+ define("ace/ext/modelist",["require","exports","module"], function(require, exports, module) {
58
+ "use strict";
272
59
 
273
60
  var modes = [];
274
61
  function getModeForPath(path) {
@@ -313,7 +100,8 @@ var supportedModes = {
313
100
  BatchFile: ["bat|cmd"],
314
101
  C9Search: ["c9search_results"],
315
102
  C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp"],
316
- Clojure: ["clj"],
103
+ Cirru: ["cirru|cr"],
104
+ Clojure: ["clj|cljs"],
317
105
  Cobol: ["CBL|COB"],
318
106
  coffee: ["coffee|cf|cson|^Cakefile"],
319
107
  ColdFusion: ["cfm"],
@@ -323,11 +111,16 @@ var supportedModes = {
323
111
  D: ["d|di"],
324
112
  Dart: ["dart"],
325
113
  Diff: ["diff|patch"],
114
+ Dockerfile: ["^Dockerfile"],
326
115
  Dot: ["dot"],
327
- Erlang: ["erl|hrl"],
116
+ Eiffel: ["e"],
328
117
  EJS: ["ejs"],
118
+ Erlang: ["erl|hrl"],
329
119
  Forth: ["frt|fs|ldr"],
330
120
  FTL: ["ftl"],
121
+ Gcode: ["gcode"],
122
+ Gherkin: ["feature"],
123
+ Gitignore: ["^.gitignore"],
331
124
  Glsl: ["glsl|frag|vert"],
332
125
  golang: ["go"],
333
126
  Groovy: ["groovy"],
@@ -338,6 +131,7 @@ var supportedModes = {
338
131
  HTML: ["html|htm|xhtml"],
339
132
  HTML_Ruby: ["erb|rhtml|html.erb"],
340
133
  INI: ["ini|conf|cfg|prefs"],
134
+ Io: ["io"],
341
135
  Jack: ["jack"],
342
136
  Jade: ["jade"],
343
137
  Java: ["java"],
@@ -358,11 +152,11 @@ var supportedModes = {
358
152
  LuaPage: ["lp"],
359
153
  Lucene: ["lucene"],
360
154
  Makefile: ["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],
361
- MATLAB: ["matlab"],
362
155
  Markdown: ["md|markdown"],
156
+ MATLAB: ["matlab"],
363
157
  MEL: ["mel"],
364
- MySQL: ["mysql"],
365
158
  MUSHCode: ["mc|mush"],
159
+ MySQL: ["mysql"],
366
160
  Nix: ["nix"],
367
161
  ObjectiveC: ["m|mm"],
368
162
  OCaml: ["ml|mli"],
@@ -371,6 +165,7 @@ var supportedModes = {
371
165
  pgSQL: ["pgsql"],
372
166
  PHP: ["php|phtml"],
373
167
  Powershell: ["ps1"],
168
+ Praat: ["praat|praatscript|psc|proc"],
374
169
  Prolog: ["plg|prolog"],
375
170
  Properties: ["properties"],
376
171
  Protobuf: ["proto"],
@@ -387,9 +182,10 @@ var supportedModes = {
387
182
  SCSS: ["scss"],
388
183
  SH: ["sh|bash|^.bashrc"],
389
184
  SJS: ["sjs"],
390
- Space: ["space"],
185
+ Smarty: ["smarty|tpl"],
391
186
  snippets: ["snippets"],
392
187
  Soy_Template:["soy"],
188
+ Space: ["space"],
393
189
  SQL: ["sql"],
394
190
  Stylus: ["styl|stylus"],
395
191
  SVG: ["svg"],
@@ -400,9 +196,11 @@ var supportedModes = {
400
196
  Toml: ["toml"],
401
197
  Twig: ["twig"],
402
198
  Typescript: ["ts|typescript|str"],
403
- VBScript: ["vbs"],
199
+ Vala: ["vala"],
200
+ VBScript: ["vbs|vb"],
404
201
  Velocity: ["vm"],
405
202
  Verilog: ["v|vh|sv|svh"],
203
+ VHDL: ["vhd|vhdl"],
406
204
  XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
407
205
  XQuery: ["xq"],
408
206
  YAML: ["yaml|yml"]
@@ -412,7 +210,7 @@ var nameOverrides = {
412
210
  ObjectiveC: "Objective-C",
413
211
  CSharp: "C#",
414
212
  golang: "Go",
415
- C_Cpp: "C/C++",
213
+ C_Cpp: "C and C++",
416
214
  coffee: "CoffeeScript",
417
215
  HTML_Ruby: "HTML (Ruby)",
418
216
  FTL: "FreeMarker"
@@ -435,8 +233,9 @@ module.exports = {
435
233
 
436
234
  });
437
235
 
438
- define('ace/ext/themelist', ['require', 'exports', 'module' ], function(require, exports, module) {
439
-
236
+ define("ace/ext/themelist",["require","exports","module","ace/lib/fixoldbrowsers"], function(require, exports, module) {
237
+ "use strict";
238
+ require("ace/lib/fixoldbrowsers");
440
239
 
441
240
  var themeData = [
442
241
  ["Chrome" ],
@@ -471,17 +270,17 @@ var themeData = [
471
270
  ["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
472
271
  ["Twilight" ,"twilight" , "dark"],
473
272
  ["Vibrant Ink" ,"vibrant_ink" , "dark"]
474
- ]
273
+ ];
475
274
 
476
275
 
477
276
  exports.themesByName = {};
478
277
  exports.themes = themeData.map(function(data) {
479
278
  var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
480
279
  var theme = {
481
- caption: data[0],
482
- theme: "ace/theme/" + name,
483
- isDark: data[2] == "dark",
484
- name: name
280
+ caption: data[0],
281
+ theme: "ace/theme/" + name,
282
+ isDark: data[2] == "dark",
283
+ name: name
485
284
  };
486
285
  exports.themesByName[name] = theme;
487
286
  return theme;
@@ -489,7 +288,62 @@ exports.themes = themeData.map(function(data) {
489
288
 
490
289
  });
491
290
 
492
- define('ace/ext/menu_tools/get_set_functions', ['require', 'exports', 'module' ], function(require, exports, module) {
291
+ define("ace/ext/menu_tools/add_editor_menu_options",["require","exports","module","ace/ext/modelist","ace/ext/themelist"], function(require, exports, module) {
292
+ 'use strict';
293
+ module.exports.addEditorMenuOptions = function addEditorMenuOptions (editor) {
294
+ var modelist = require('../modelist');
295
+ var themelist = require('../themelist');
296
+ editor.menuOptions = {
297
+ setNewLineMode: [{
298
+ textContent: "unix",
299
+ value: "unix"
300
+ }, {
301
+ textContent: "windows",
302
+ value: "windows"
303
+ }, {
304
+ textContent: "auto",
305
+ value: "auto"
306
+ }],
307
+ setTheme: [],
308
+ setMode: [],
309
+ setKeyboardHandler: [{
310
+ textContent: "ace",
311
+ value: ""
312
+ }, {
313
+ textContent: "vim",
314
+ value: "ace/keyboard/vim"
315
+ }, {
316
+ textContent: "emacs",
317
+ value: "ace/keyboard/emacs"
318
+ }, {
319
+ textContent: "textarea",
320
+ value: "ace/keyboard/textarea"
321
+ }, {
322
+ textContent: "sublime",
323
+ value: "ace/keyboard/sublime"
324
+ }]
325
+ };
326
+
327
+ editor.menuOptions.setTheme = themelist.themes.map(function(theme) {
328
+ return {
329
+ textContent: theme.caption,
330
+ value: theme.theme
331
+ };
332
+ });
333
+
334
+ editor.menuOptions.setMode = modelist.modes.map(function(mode) {
335
+ return {
336
+ textContent: mode.name,
337
+ value: mode.mode
338
+ };
339
+ });
340
+ };
341
+
342
+
343
+ });
344
+
345
+ define("ace/ext/menu_tools/get_set_functions",["require","exports","module"], function(require, exports, module) {
346
+ 'use strict';
493
347
  module.exports.getSetFunctions = function getSetFunctions (editor) {
494
348
  var out = [];
495
349
  var my = {
@@ -530,8 +384,127 @@ module.exports.getSetFunctions = function getSetFunctions (editor) {
530
384
 
531
385
  });
532
386
 
533
- define('ace/ext/menu_tools/overlay_page', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
387
+ define("ace/ext/menu_tools/generate_settings_menu",["require","exports","module","ace/ext/menu_tools/element_generator","ace/ext/menu_tools/add_editor_menu_options","ace/ext/menu_tools/get_set_functions"], function(require, exports, module) {
388
+ 'use strict';
389
+ var egen = require('./element_generator');
390
+ var addEditorMenuOptions = require('./add_editor_menu_options').addEditorMenuOptions;
391
+ var getSetFunctions = require('./get_set_functions').getSetFunctions;
392
+ module.exports.generateSettingsMenu = function generateSettingsMenu (editor) {
393
+ var elements = [];
394
+ function cleanupElementsList() {
395
+ elements.sort(function(a, b) {
396
+ var x = a.getAttribute('contains');
397
+ var y = b.getAttribute('contains');
398
+ return x.localeCompare(y);
399
+ });
400
+ }
401
+ function wrapElements() {
402
+ var topmenu = document.createElement('div');
403
+ topmenu.setAttribute('id', 'ace_settingsmenu');
404
+ elements.forEach(function(element) {
405
+ topmenu.appendChild(element);
406
+ });
407
+ return topmenu;
408
+ }
409
+ function createNewEntry(obj, clss, item, val) {
410
+ var el;
411
+ var div = document.createElement('div');
412
+ div.setAttribute('contains', item);
413
+ div.setAttribute('class', 'ace_optionsMenuEntry');
414
+ div.setAttribute('style', 'clear: both;');
415
+
416
+ div.appendChild(egen.createLabel(
417
+ item.replace(/^set/, '').replace(/([A-Z])/g, ' $1').trim(),
418
+ item
419
+ ));
420
+
421
+ if (Array.isArray(val)) {
422
+ el = egen.createSelection(item, val, clss);
423
+ el.addEventListener('change', function(e) {
424
+ try{
425
+ editor.menuOptions[e.target.id].forEach(function(x) {
426
+ if(x.textContent !== e.target.textContent) {
427
+ delete x.selected;
428
+ }
429
+ });
430
+ obj[e.target.id](e.target.value);
431
+ } catch (err) {
432
+ throw new Error(err);
433
+ }
434
+ });
435
+ } else if(typeof val === 'boolean') {
436
+ el = egen.createCheckbox(item, val, clss);
437
+ el.addEventListener('change', function(e) {
438
+ try{
439
+ obj[e.target.id](!!e.target.checked);
440
+ } catch (err) {
441
+ throw new Error(err);
442
+ }
443
+ });
444
+ } else {
445
+ el = egen.createInput(item, val, clss);
446
+ el.addEventListener('change', function(e) {
447
+ try{
448
+ if(e.target.value === 'true') {
449
+ obj[e.target.id](true);
450
+ } else if(e.target.value === 'false') {
451
+ obj[e.target.id](false);
452
+ } else {
453
+ obj[e.target.id](e.target.value);
454
+ }
455
+ } catch (err) {
456
+ throw new Error(err);
457
+ }
458
+ });
459
+ }
460
+ el.style.cssText = 'float:right;';
461
+ div.appendChild(el);
462
+ return div;
463
+ }
464
+ function makeDropdown(item, esr, clss, fn) {
465
+ var val = editor.menuOptions[item];
466
+ var currentVal = esr[fn]();
467
+ if (typeof currentVal == 'object')
468
+ currentVal = currentVal.$id;
469
+ val.forEach(function(valuex) {
470
+ if (valuex.value === currentVal)
471
+ valuex.selected = 'selected';
472
+ });
473
+ return createNewEntry(esr, clss, item, val);
474
+ }
475
+ function handleSet(setObj) {
476
+ var item = setObj.functionName;
477
+ var esr = setObj.parentObj;
478
+ var clss = setObj.parentName;
479
+ var val;
480
+ var fn = item.replace(/^set/, 'get');
481
+ if(editor.menuOptions[item] !== undefined) {
482
+ elements.push(makeDropdown(item, esr, clss, fn));
483
+ } else if(typeof esr[fn] === 'function') {
484
+ try {
485
+ val = esr[fn]();
486
+ if(typeof val === 'object') {
487
+ val = val.$id;
488
+ }
489
+ elements.push(
490
+ createNewEntry(esr, clss, item, val)
491
+ );
492
+ } catch (e) {
493
+ }
494
+ }
495
+ }
496
+ addEditorMenuOptions(editor);
497
+ getSetFunctions(editor).forEach(function(setObj) {
498
+ handleSet(setObj);
499
+ });
500
+ cleanupElementsList();
501
+ return wrapElements();
502
+ };
503
+
504
+ });
534
505
 
506
+ define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
507
+ 'use strict';
535
508
  var dom = require("../../lib/dom");
536
509
  var cssText = "#ace_settingsmenu, #kbshortcutmenu {\
537
510
  background-color: #F7F7F7;\
@@ -629,4 +602,26 @@ module.exports.overlayPage = function overlayPage(editor, contentElement, top, r
629
602
  editor.blur();
630
603
  };
631
604
 
632
- });
605
+ });
606
+
607
+ define("ace/ext/settings_menu",["require","exports","module","ace/ext/menu_tools/generate_settings_menu","ace/ext/menu_tools/overlay_page","ace/editor"], function(require, exports, module) {
608
+ "use strict";
609
+ var generateSettingsMenu = require('./menu_tools/generate_settings_menu').generateSettingsMenu;
610
+ var overlayPage = require('./menu_tools/overlay_page').overlayPage;
611
+ function showSettingsMenu(editor) {
612
+ var sm = document.getElementById('ace_settingsmenu');
613
+ if (!sm)
614
+ overlayPage(editor, generateSettingsMenu(editor), '0', '0', '0');
615
+ }
616
+ module.exports.init = function(editor) {
617
+ var Editor = require("ace/editor").Editor;
618
+ Editor.prototype.showSettingsMenu = function() {
619
+ showSettingsMenu(this);
620
+ };
621
+ };
622
+ });
623
+ ;
624
+ (function() {
625
+ window.require(["ace/ext/settings_menu"], function() {});
626
+ })();
627
+