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
@@ -25,7 +25,7 @@ DocCommentHighlightRules.getTagRule = function(start) {
25
25
  token : "comment.doc.tag.storage.type",
26
26
  regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
27
27
  };
28
- }
28
+ };
29
29
 
30
30
  DocCommentHighlightRules.getStartRule = function(start) {
31
31
  return {
@@ -181,7 +181,8 @@ var JavaScriptHighlightRules = function(options) {
181
181
  next : "property"
182
182
  }, {
183
183
  token : "storage.type",
184
- regex : /=>/
184
+ regex : /=>/,
185
+ next : "start"
185
186
  }, {
186
187
  token : "keyword.operator",
187
188
  regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
@@ -582,8 +583,8 @@ oop.inherits(FoldMode, BaseFoldMode);
582
583
 
583
584
  (function() {
584
585
 
585
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
586
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
586
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
587
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
587
588
  this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
588
589
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
589
590
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
@@ -783,57 +784,46 @@ oop.inherits(Mode, TextMode);
783
784
  };
784
785
 
785
786
  this.$id = "ace/mode/javascript";
787
+ this.snippetFileId = "ace/snippets/javascript";
786
788
  }).call(Mode.prototype);
787
789
 
788
790
  exports.Mode = Mode;
789
791
  });
790
792
 
791
- define("ace/mode/typescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules"], function(require, exports, module) {
793
+ define("ace/mode/typescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules"], function (require, exports, module) {
792
794
  "use strict";
793
795
 
794
796
  var oop = require("../lib/oop");
795
797
  var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
796
798
 
797
- var TypeScriptHighlightRules = function(options) {
799
+ var TypeScriptHighlightRules = function (options) {
798
800
 
799
- var tsRules = [
801
+ var tsRules = [
800
802
  {
801
- token: ["keyword.operator.ts", "text", "variable.parameter.function.ts", "text"],
802
- regex: "\\b(module)(\\s*)([a-zA-Z0-9_?.$][\\w?.$]*)(\\s*\\{)"
803
- },
804
- {
805
- token: ["storage.type.variable.ts", "text", "keyword.other.ts", "text"],
806
- regex: "(super)(\\s*\\()([a-zA-Z0-9,_?.$\\s]+\\s*)(\\))"
803
+ token: ["storage.type", "text", "entity.name.function.ts"],
804
+ regex: "(function)(\\s+)([a-zA-Z0-9\$_\u00a1-\uffff][a-zA-Z0-9\d\$_\u00a1-\uffff]*)"
807
805
  },
808
806
  {
809
- token: ["entity.name.function.ts","paren.lparen", "paren.rparen"],
810
- regex: "([a-zA-Z_?.$][\\w?.$]*)(\\()(\\))"
807
+ token: "keyword",
808
+ regex: "(?:\\b(constructor|declare|interface|as|AS|public|private|extends|export|super|readonly|module|namespace|abstract|implements)\\b)"
811
809
  },
812
810
  {
813
- token: ["variable.parameter.function.ts", "text", "variable.parameter.function.ts"],
814
- regex: "([a-zA-Z0-9_?.$][\\w?.$]*)(\\s*:\\s*)([a-zA-Z0-9_?.$][\\w?.$]*)"
815
- },
811
+ token: ["keyword", "storage.type.variable.ts"],
812
+ regex: "(class|type)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*)"
813
+ },
816
814
  {
817
- token: ["keyword.operator.ts"],
818
- regex: "(?:\\b(constructor|declare|interface|as|AS|public|private|class|extends|export|super)\\b)"
815
+ token: "keyword",
816
+ regex: "\\b(?:super|export|import|keyof|infer)\\b"
819
817
  },
820
818
  {
821
819
  token: ["storage.type.variable.ts"],
822
- regex: "(?:\\b(this\\.|string\\b|bool\\b|number)\\b)"
823
- },
824
- {
825
- token: ["keyword.operator.ts", "storage.type.variable.ts", "keyword.operator.ts", "storage.type.variable.ts"],
826
- regex: "(class)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*\\s+)(extends)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*\\s+)?"
827
- },
828
- {
829
- token: "keyword",
830
- regex: "(?:super|export|class|extends|import)\\b"
820
+ regex: "(?:\\b(this\\.|string\\b|bool\\b|boolean\\b|number\\b|true\\b|false\\b|undefined\\b|any\\b|null\\b|(?:unique )?symbol\\b|object\\b|never\\b|enum\\b))"
831
821
  }
832
822
  ];
833
823
 
834
824
  var JSRules = new JavaScriptHighlightRules({jsx: (options && options.jsx) == true}).getRules();
835
825
 
836
- JSRules.start = tsRules.concat(JSRules.start);
826
+ JSRules.no_regex = tsRules.concat(JSRules.no_regex);
837
827
  this.$rules = JSRules;
838
828
  };
839
829
 
@@ -869,4 +859,11 @@ oop.inherits(Mode, jsMode);
869
859
  }).call(Mode.prototype);
870
860
 
871
861
  exports.Mode = Mode;
872
- });
862
+ }); (function() {
863
+ window.require(["ace/mode/typescript"], function(m) {
864
+ if (typeof module == "object" && typeof exports == "object" && module) {
865
+ module.exports = m;
866
+ }
867
+ });
868
+ })();
869
+
@@ -399,7 +399,7 @@ var ValaHighlightRules = function() {
399
399
  '#values':
400
400
  [ { include: '#strings' },
401
401
  { include: '#object-types' },
402
- { include: '#constants-and-special-vars' } ] }
402
+ { include: '#constants-and-special-vars' } ] };
403
403
 
404
404
  this.normalizeRules();
405
405
  };
@@ -410,7 +410,7 @@ ValaHighlightRules.metaData = {
410
410
  foldingStartMarker: '(\\{\\s*(//.*)?$|^\\s*// \\{\\{\\{)',
411
411
  foldingStopMarker: '^\\s*(\\}|// \\}\\}\\}$)',
412
412
  name: 'Vala',
413
- scopeName: 'source.vala' }
413
+ scopeName: 'source.vala' };
414
414
 
415
415
 
416
416
  oop.inherits(ValaHighlightRules, TextHighlightRules);
@@ -439,8 +439,8 @@ oop.inherits(FoldMode, BaseFoldMode);
439
439
 
440
440
  (function() {
441
441
 
442
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
443
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
442
+ this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
443
+ this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
444
444
  this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
445
445
  this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
446
446
  this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
@@ -662,8 +662,16 @@ oop.inherits(Mode, TextMode);
662
662
  this.autoOutdent = function(state, doc, row) {
663
663
  this.$outdent.autoOutdent(doc, row);
664
664
  };
665
- this.$id = "ace/mode/vala"
665
+ this.$id = "ace/mode/vala";
666
+ this.snippetFileId = "ace/snippets/vala";
666
667
  }).call(Mode.prototype);
667
668
 
668
669
  exports.Mode = Mode;
669
- });
670
+ }); (function() {
671
+ window.require(["ace/mode/vala"], function(m) {
672
+ if (typeof module == "object" && typeof exports == "object" && module) {
673
+ module.exports = m;
674
+ }
675
+ });
676
+ })();
677
+
@@ -8,11 +8,13 @@ var VBScriptHighlightRules = function() {
8
8
 
9
9
  var keywordMapper = this.createKeywordMapper({
10
10
  "keyword.control.asp": "If|Then|Else|ElseIf|End|While|Wend|For|To|Each|Case|Select|Return"
11
- + "|Continue|Do|Until|Loop|Next|With|Exit|Function|Property|Type|Enum|Sub|IIf",
12
- "storage.type.asp": "Dim|Call|Class|Const|Dim|Redim|Set|Let|Get|New|Randomize|Option|Explicit",
11
+ + "|Continue|Do|Until|Loop|Next|With|Exit|Function|Property|Type|Enum|Sub|IIf|Class",
12
+ "storage.type.asp": "Dim|Call|Const|Redim|Set|Let|Get|New|Randomize|Option|Explicit|Preserve|Erase|Execute|ExecuteGlobal",
13
13
  "storage.modifier.asp": "Private|Public|Default",
14
- "keyword.operator.asp": "Mod|And|Not|Or|Xor|as",
14
+ "keyword.operator.asp": "Mod|And|Not|Or|Xor|As|Eqv|Imp|Is",
15
15
  "constant.language.asp": "Empty|False|Nothing|Null|True",
16
+ "variable.language.vb.asp": "Me",
17
+ "support.class.vb.asp": "RegExp",
16
18
  "support.class.asp": "Application|ObjectContext|Request|Response|Server|Session",
17
19
  "support.class.collection.asp": "Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables",
18
20
  "support.constant.asp": "TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute"
@@ -30,13 +32,17 @@ var VBScriptHighlightRules = function() {
30
32
  + "|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace"
31
33
  + "|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion"
32
34
  + "|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse"
33
- + "|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year",
34
- "support.type.vb.asp": "vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|"
35
- + "int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday"
36
- + "|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek"
37
- + "|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger"
35
+ + "|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year"
36
+ + "|AscB|AscW|ChrB|ChrW|InStrB|LeftB|LenB|MidB|RightB|Abs|GetUILanguage",
37
+ "support.type.vb.asp": "vbTrue|vbFalse|vbCr|vbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString"
38
+ + "|vbTab|vbVerticalTab|vbBinaryCompare|vbTextCompare|vbSunday|vbMonday|vbTuesday|vbWednesday"
39
+ + "|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek|vbFirstJan1|vbFirstFourDays|vbFirstFullWeek"
40
+ + "|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime|vbObjectError|vbEmpty|vbNull|vbInteger"
38
41
  + "|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant"
39
- + "|vbDataObject|vbDecimal|vbByte|vbArray"
42
+ + "|vbDataObject|vbDecimal|vbByte|vbArray|vbOKOnly|vbOKCancel|vbAbortRetryIgnore|vbYesNoCancel|vbYesNo"
43
+ + "|vbRetryCancel|vbCritical|vbQuestion|vbExclamation|vbInformation|vbDefaultButton1|vbDefaultButton2"
44
+ + "|vbDefaultButton3|vbDefaultButton4|vbApplicationModal|vbSystemModal|vbOK|vbCancel|vbAbort|vbRetry|vbIgnore|vbYes|vbNo"
45
+ + "|vbUseDefault"
40
46
  }, "identifier", true);
41
47
 
42
48
  this.$rules = {
@@ -78,7 +84,7 @@ var VBScriptHighlightRules = function() {
78
84
  },
79
85
  {
80
86
  token: "storage.type.asp",
81
- regex: "On Error Resume Next|On Error GoTo",
87
+ regex: "On\\s+Error\\s+(?:Resume\\s+Next|GoTo)\\b",
82
88
  caseInsensitive: true
83
89
  },
84
90
  {
@@ -106,7 +112,7 @@ var VBScriptHighlightRules = function() {
106
112
  },
107
113
  {
108
114
  token: ["keyword.operator.asp"],
109
- regex: "\\-|\\+|\\*\\/|\\>|\\<|\\=|\\&"
115
+ regex: "\\-|\\+|\\*|\\/|\\>|\\<|\\=|\\&|\\\\|\\^"
110
116
  }
111
117
  ],
112
118
  "state_3": [
@@ -145,7 +151,7 @@ var VBScriptHighlightRules = function() {
145
151
  "comment": [
146
152
  {
147
153
  token: "comment.line.apostrophe.asp",
148
- regex: "$|(?=(?:%>))",
154
+ regex: "$",
149
155
  next: "start"
150
156
  },
151
157
  {
@@ -166,7 +172,7 @@ var VBScriptHighlightRules = function() {
166
172
  defaultToken: "string.quoted.double.asp"
167
173
  }
168
174
  ]
169
- }
175
+ };
170
176
 
171
177
  };
172
178
 
@@ -175,25 +181,455 @@ oop.inherits(VBScriptHighlightRules, TextHighlightRules);
175
181
  exports.VBScriptHighlightRules = VBScriptHighlightRules;
176
182
  });
177
183
 
178
- define("ace/mode/vbscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/vbscript_highlight_rules"], function(require, exports, module) {
184
+ define("ace/mode/folding/vbscript",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"], function(require, exports, module) {
185
+ "use strict";
186
+
187
+ var oop = require("../../lib/oop");
188
+ var BaseFoldMode = require("./fold_mode").FoldMode;
189
+ var Range = require("../../range").Range;
190
+ var TokenIterator = require("../../token_iterator").TokenIterator;
191
+
192
+
193
+ var FoldMode = exports.FoldMode = function() {};
194
+
195
+ oop.inherits(FoldMode, BaseFoldMode);
196
+
197
+ (function() {
198
+ this.indentKeywords = {
199
+ "class": 1,
200
+ "function": 1,
201
+ "sub": 1,
202
+ "if": 1,
203
+ "select": 1,
204
+ "do": 1,
205
+ "for": 1,
206
+ "while": 1,
207
+ "with": 1,
208
+ "property": 1,
209
+ "else": 1,
210
+ "elseif": 1,
211
+ "end": -1,
212
+ "loop": -1,
213
+ "next": -1,
214
+ "wend": -1
215
+ };
216
+
217
+ this.foldingStartMarker = /(?:\s|^)(class|function|sub|if|select|do|for|while|with|property|else|elseif)\b/i;
218
+ this.foldingStopMarker = /\b(end|loop|next|wend)\b/i;
219
+
220
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
221
+ var line = session.getLine(row);
222
+ var isStart = this.foldingStartMarker.test(line);
223
+ var isEnd = this.foldingStopMarker.test(line);
224
+ if (isStart || isEnd) {
225
+ var match = (isEnd) ? this.foldingStopMarker.exec(line) : this.foldingStartMarker.exec(line);
226
+ var keyword = match && match[1].toLowerCase();
227
+ if (keyword) {
228
+ var type = session.getTokenAt(row, match.index + 2).type;
229
+ if (type === "keyword.control.asp" || type === "storage.type.function.asp")
230
+ return this.vbsBlock(session, row, match.index + 2);
231
+ }
232
+ }
233
+ };
234
+ this.getFoldWidget = function(session, foldStyle, row) {
235
+ var line = session.getLine(row);
236
+ var isStart = this.foldingStartMarker.test(line);
237
+ var isEnd = this.foldingStopMarker.test(line);
238
+ if (isStart && !isEnd) {
239
+ var match = this.foldingStartMarker.exec(line);
240
+ var keyword = match && match[1].toLowerCase();
241
+ if (keyword) {
242
+ var type = session.getTokenAt(row, match.index + 2).type;
243
+ if (type == "keyword.control.asp" || type == "storage.type.function.asp") {
244
+ if (keyword == "if" && !/then\s*('|$)/i.test(line))
245
+ return "";
246
+ return "start";
247
+ }
248
+ }
249
+ }
250
+ return "";
251
+ };
252
+
253
+ this.vbsBlock = function(session, row, column, tokenRange) {
254
+ var stream = new TokenIterator(session, row, column);
255
+
256
+ var endOpenings = {
257
+ "class": 1,
258
+ "function": 1,
259
+ "sub": 1,
260
+ "if": 1,
261
+ "select": 1,
262
+ "with": 1,
263
+ "property": 1,
264
+ "else": 1,
265
+ "elseif": 1
266
+ };
267
+
268
+ var token = stream.getCurrentToken();
269
+ if (!token || (token.type != "keyword.control.asp" && token.type != "storage.type.function.asp"))
270
+ return;
271
+
272
+ var startTokenValue = token.value.toLowerCase();
273
+ var val = token.value.toLowerCase();
274
+
275
+ var stack = [val];
276
+ var dir = this.indentKeywords[val];
277
+
278
+ if (!dir)
279
+ return;
280
+
281
+ var firstRange = stream.getCurrentTokenRange();
282
+ switch (val) {
283
+ case "property":
284
+ case "sub":
285
+ case "function":
286
+ case "if":
287
+ case "select":
288
+ case "do":
289
+ case "for":
290
+ case "class":
291
+ case "while":
292
+ case "with":
293
+ var line = session.getLine(row);
294
+ var singleLineCondition = /^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(line);
295
+ if (singleLineCondition)
296
+ return;
297
+ var checkToken = new RegExp("(?:^|\\s)" + val, "i");
298
+ var endTest = /^\s*End\s(If|Sub|Select|Function|Class|With|Property)\s*/i.test(line);
299
+ if (!checkToken.test(line) && !endTest) {
300
+ return;
301
+ }
302
+ if (endTest) {
303
+ var tokenRange = stream.getCurrentTokenRange();
304
+ stream.step = stream.stepBackward;
305
+ stream.step();
306
+ stream.step();
307
+ token = stream.getCurrentToken();
308
+ if (token) {
309
+ val = token.value.toLowerCase();
310
+ if (val == "end") {
311
+ firstRange = stream.getCurrentTokenRange();
312
+ firstRange = new Range(firstRange.start.row, firstRange.start.column, tokenRange.start.row, tokenRange.end.column);
313
+ }
314
+ }
315
+ dir = -1;
316
+ }
317
+ break;
318
+ case "end":
319
+ var tokenPos = stream.getCurrentTokenPosition();
320
+ firstRange = stream.getCurrentTokenRange();
321
+ stream.step = stream.stepForward;
322
+ stream.step();
323
+ stream.step();
324
+ token = stream.getCurrentToken();
325
+ if (token) {
326
+ val = token.value.toLowerCase();
327
+ if (val in endOpenings) {
328
+ startTokenValue = val;
329
+ var nextTokenPos = stream.getCurrentTokenPosition();
330
+ var endColumn = nextTokenPos.column + val.length;
331
+ firstRange = new Range(tokenPos.row, tokenPos.column, nextTokenPos.row, endColumn);
332
+ }
333
+ }
334
+ stream.step = stream.stepBackward;
335
+ stream.step();
336
+ stream.step();
337
+ break;
338
+ }
339
+ var startColumn = dir === -1 ? session.getLine(row - 1).length : session.getLine(row).length;
340
+ var startRow = row;
341
+ var ranges = [];
342
+ ranges.push(firstRange);
343
+
344
+ stream.step = dir === -1 ? stream.stepBackward : stream.stepForward;
345
+ while(token = stream.step()) {
346
+ var outputRange = null;
347
+ var ignore = false;
348
+ if (token.type != "keyword.control.asp" && token.type != "storage.type.function.asp")
349
+ continue;
350
+ val = token.value.toLowerCase();
351
+ var level = dir * this.indentKeywords[val];
352
+
353
+ switch (val) {
354
+ case "property":
355
+ case "sub":
356
+ case "function":
357
+ case "if":
358
+ case "select":
359
+ case "do":
360
+ case "for":
361
+ case "class":
362
+ case "while":
363
+ case "with":
364
+ var line = session.getLine(stream.getCurrentTokenRow());
365
+ var singleLineCondition = /^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(line);
366
+ if (singleLineCondition) {
367
+ level = 0;
368
+ ignore = true;
369
+ }
370
+ var checkToken = new RegExp("^\\s* end\\s+" + val, "i");
371
+ if (checkToken.test(line)) {
372
+ level = 0;
373
+ ignore = true;
374
+ }
375
+ break;
376
+ case "elseif":
377
+ case "else":
378
+ level = 0;
379
+ if (startTokenValue != "elseif") {
380
+ ignore = true;
381
+ }
382
+ break;
383
+ }
384
+
385
+ if (level > 0) {
386
+ stack.unshift(val);
387
+ } else if (level <= 0 && ignore === false) {
388
+ stack.shift();
389
+ if (!stack.length) {
390
+ switch (val) {
391
+ case "end":
392
+ var tokenPos = stream.getCurrentTokenPosition();
393
+ outputRange = stream.getCurrentTokenRange();
394
+ stream.step();
395
+ stream.step();
396
+ token = stream.getCurrentToken();
397
+ if (token) {
398
+ val = token.value.toLowerCase();
399
+ if (val in endOpenings) {
400
+ if ((startTokenValue == "else" || startTokenValue == "elseif")) {
401
+ if (val !== "if") {
402
+ ranges.shift();
403
+ }
404
+ } else {
405
+ if (val != startTokenValue)
406
+ ranges.shift();
407
+ }
408
+ var nextTokenPos = stream.getCurrentTokenPosition();
409
+ var endColumn = nextTokenPos.column + val.length;
410
+ outputRange = new Range(tokenPos.row, tokenPos.column, nextTokenPos.row, endColumn);
411
+ } else {
412
+ ranges.shift();
413
+ }
414
+ } else {
415
+ ranges.shift();
416
+ }
417
+ stream.step = stream.stepBackward;
418
+ stream.step();
419
+ stream.step();
420
+ token = stream.getCurrentToken();
421
+ val = token.value.toLowerCase();
422
+ break;
423
+ case "select":
424
+ case "sub":
425
+ case "if":
426
+ case "function":
427
+ case "class":
428
+ case "with":
429
+ case "property":
430
+ if (val != startTokenValue)
431
+ ranges.shift();
432
+ break;
433
+ case "do":
434
+ if (startTokenValue != "loop")
435
+ ranges.shift();
436
+ break;
437
+ case "loop":
438
+ if (startTokenValue != "do")
439
+ ranges.shift();
440
+ break;
441
+ case "for":
442
+ if (startTokenValue != "next")
443
+ ranges.shift();
444
+ break;
445
+ case "next":
446
+ if (startTokenValue != "for")
447
+ ranges.shift();
448
+ break;
449
+ case "while":
450
+ if (startTokenValue != "wend")
451
+ ranges.shift();
452
+ break;
453
+ case "wend":
454
+ if (startTokenValue != "while")
455
+ ranges.shift();
456
+ break;
457
+ }
458
+ break;
459
+ }
460
+
461
+ if (level === 0){
462
+ stack.unshift(val);
463
+ }
464
+ }
465
+ }
466
+
467
+ if (!token)
468
+ return null;
469
+
470
+ if (tokenRange) {
471
+ if (!outputRange) {
472
+ ranges.push(stream.getCurrentTokenRange());
473
+ } else {
474
+ ranges.push(outputRange);
475
+ }
476
+ return ranges;
477
+ }
478
+
479
+ var row = stream.getCurrentTokenRow();
480
+ if (dir === -1) {
481
+ var endColumn = session.getLine(row).length;
482
+ return new Range(row, endColumn, startRow - 1, startColumn);
483
+ } else
484
+ return new Range(startRow, startColumn, row - 1, session.getLine(row - 1).length);
485
+ };
486
+
487
+ }).call(FoldMode.prototype);
488
+
489
+ });
490
+
491
+ define("ace/mode/vbscript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/vbscript_highlight_rules","ace/mode/folding/vbscript","ace/range"], function(require, exports, module) {
179
492
  "use strict";
180
493
 
181
494
  var oop = require("../lib/oop");
182
495
  var TextMode = require("./text").Mode;
183
496
  var VBScriptHighlightRules = require("./vbscript_highlight_rules").VBScriptHighlightRules;
497
+ var FoldMode = require("./folding/vbscript").FoldMode;
498
+ var Range = require("../range").Range;
184
499
 
185
500
  var Mode = function() {
186
501
  this.HighlightRules = VBScriptHighlightRules;
502
+ this.foldingRules = new FoldMode();
187
503
  this.$behaviour = this.$defaultBehaviour;
504
+ this.indentKeywords = this.foldingRules.indentKeywords;
188
505
  };
189
506
  oop.inherits(Mode, TextMode);
190
507
 
191
508
  (function() {
192
-
509
+
193
510
  this.lineCommentStart = ["'", "REM"];
194
-
511
+
512
+ var outdentKeywords = [
513
+ "else",
514
+ "elseif",
515
+ "end",
516
+ "loop",
517
+ "next",
518
+ "wend"
519
+ ];
520
+
521
+ function getNetIndentLevel(tokens, line, indentKeywords) {
522
+ var level = 0;
523
+ for (var i = 0; i < tokens.length; i++) {
524
+ var token = tokens[i];
525
+ if (token.type == "keyword.control.asp" || token.type == "storage.type.function.asp") {
526
+ var val = token.value.toLowerCase();
527
+ if (val in indentKeywords) {
528
+ switch (val) {
529
+ case "property":
530
+ case "sub":
531
+ case "function":
532
+ case "select":
533
+ case "do":
534
+ case "for":
535
+ case "class":
536
+ case "while":
537
+ case "with":
538
+ case "if":
539
+ var checkToken = new RegExp("^\\s* end\\s+" + val, "i");
540
+ var singleLineCondition = /^\s*If\s+.*\s+Then(?!')\s+(?!')\S/i.test(line);
541
+ if (!singleLineCondition && !checkToken.test(line))
542
+ level += indentKeywords[val];
543
+ break;
544
+ default:
545
+ level += indentKeywords[val];
546
+ break;
547
+ }
548
+ }
549
+ }
550
+ }
551
+ if (level < 0) {
552
+ return -1;
553
+ } else if (level > 0) {
554
+ return 1;
555
+ } else {
556
+ return 0;
557
+ }
558
+ }
559
+
560
+ this.getNextLineIndent = function(state, line, tab) {
561
+ var indent = this.$getIndent(line);
562
+ var level = 0;
563
+
564
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
565
+ var tokens = tokenizedLine.tokens;
566
+
567
+ if (state == "start") {
568
+ level = getNetIndentLevel(tokens, line, this.indentKeywords);
569
+ }
570
+ if (level > 0) {
571
+ return indent + tab;
572
+ } else if (level < 0 && indent.substr(indent.length - tab.length) == tab) {
573
+ if (!this.checkOutdent(state, line, "\n")) {
574
+ return indent.substr(0, indent.length - tab.length);
575
+ }
576
+ }
577
+ return indent;
578
+ };
579
+
580
+ this.checkOutdent = function(state, line, input) {
581
+ if (input != "\n" && input != "\r" && input != "\r\n")
582
+ return false;
583
+
584
+ var tokens = this.getTokenizer().getLineTokens(line.trim(), state).tokens;
585
+
586
+ if (!tokens || !tokens.length)
587
+ return false;
588
+ var val = tokens[0].value.toLowerCase();
589
+ return ((tokens[0].type == "keyword.control.asp" || tokens[0].type == "storage.type.function.asp") && outdentKeywords.indexOf(val) != -1);
590
+ };
591
+
592
+ this.getMatching = function(session, row, column, tokenRange) {
593
+ if (row == undefined) {
594
+ var pos = session.selection.lead;
595
+ column = pos.column;
596
+ row = pos.row;
597
+ }
598
+ if (tokenRange == undefined)
599
+ tokenRange = true;
600
+
601
+ var startToken = session.getTokenAt(row, column);
602
+ if (startToken) {
603
+ var val = startToken.value.toLowerCase();
604
+ if (val in this.indentKeywords)
605
+ return this.foldingRules.vbsBlock(session, row, column, tokenRange);
606
+ }
607
+ };
608
+
609
+ this.autoOutdent = function(state, session, row) {
610
+ var line = session.getLine(row);
611
+ var column = line.match(/^\s*/)[0].length;
612
+ if (!column || !row) return;
613
+
614
+ var startRange = this.getMatching(session, row, column + 1, false);
615
+ if (!startRange || startRange.start.row == row)
616
+ return;
617
+ var indent = this.$getIndent(session.getLine(startRange.start.row));
618
+ if (indent.length != column) {
619
+ session.replace(new Range(row, 0, row, column), indent);
620
+ session.outdentRows(new Range(row + 1, 0, row + 1, 0));
621
+ }
622
+ };
623
+
195
624
  this.$id = "ace/mode/vbscript";
196
625
  }).call(Mode.prototype);
197
626
 
198
627
  exports.Mode = Mode;
199
- });
628
+ }); (function() {
629
+ window.require(["ace/mode/vbscript"], function(m) {
630
+ if (typeof module == "object" && typeof exports == "object" && module) {
631
+ module.exports = m;
632
+ }
633
+ });
634
+ })();
635
+