ace-rails-ap 4.3 → 4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/ace-rails-ap.gemspec +0 -2
  4. data/lib/ace/rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/ace/ace.js +659 -1137
  6. data/vendor/assets/javascripts/ace/ext-beautify.js +5 -2
  7. data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
  8. data/vendor/assets/javascripts/ace/ext-emmet.js +36 -28
  9. data/vendor/assets/javascripts/ace/ext-language_tools.js +63 -48
  10. data/vendor/assets/javascripts/ace/ext-modelist.js +12 -6
  11. data/vendor/assets/javascripts/ace/ext-options.js +46 -19
  12. data/vendor/assets/javascripts/ace/ext-prompt.js +57 -38
  13. data/vendor/assets/javascripts/ace/ext-settings_menu.js +46 -19
  14. data/vendor/assets/javascripts/ace/ext-spellcheck.js +0 -1
  15. data/vendor/assets/javascripts/ace/ext-themelist.js +2 -1
  16. data/vendor/assets/javascripts/ace/keybinding-emacs.js +21 -22
  17. data/vendor/assets/javascripts/ace/keybinding-sublime.js +2 -5
  18. data/vendor/assets/javascripts/ace/keybinding-vim.js +45 -9
  19. data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
  20. data/vendor/assets/javascripts/ace/mode-abc.js +3 -0
  21. data/vendor/assets/javascripts/ace/mode-actionscript.js +1 -0
  22. data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
  23. data/vendor/assets/javascripts/ace/mode-asl.js +17 -16
  24. data/vendor/assets/javascripts/ace/mode-c_cpp.js +1 -0
  25. data/vendor/assets/javascripts/ace/mode-clojure.js +1 -0
  26. data/vendor/assets/javascripts/ace/mode-coffee.js +1 -0
  27. data/vendor/assets/javascripts/ace/mode-coldfusion.js +3 -0
  28. data/vendor/assets/javascripts/ace/mode-csound_document.js +40 -5
  29. data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +37 -5
  30. data/vendor/assets/javascripts/ace/mode-csound_score.js +1 -0
  31. data/vendor/assets/javascripts/ace/mode-css.js +1 -0
  32. data/vendor/assets/javascripts/ace/mode-curly.js +3 -0
  33. data/vendor/assets/javascripts/ace/mode-d.js +1 -1
  34. data/vendor/assets/javascripts/ace/mode-dart.js +2 -0
  35. data/vendor/assets/javascripts/ace/mode-diff.js +1 -0
  36. data/vendor/assets/javascripts/ace/mode-django.js +4 -0
  37. data/vendor/assets/javascripts/ace/mode-dockerfile.js +1 -0
  38. data/vendor/assets/javascripts/ace/mode-drools.js +1 -0
  39. data/vendor/assets/javascripts/ace/mode-edifact.js +1 -0
  40. data/vendor/assets/javascripts/ace/mode-ejs.js +673 -165
  41. data/vendor/assets/javascripts/ace/mode-erlang.js +1 -0
  42. data/vendor/assets/javascripts/ace/mode-fsl.js +1 -0
  43. data/vendor/assets/javascripts/ace/mode-glsl.js +1 -0
  44. data/vendor/assets/javascripts/ace/mode-gobstones.js +2 -0
  45. data/vendor/assets/javascripts/ace/mode-graphqlschema.js +1 -0
  46. data/vendor/assets/javascripts/ace/mode-groovy.js +1 -0
  47. data/vendor/assets/javascripts/ace/mode-haml.js +419 -104
  48. data/vendor/assets/javascripts/ace/mode-handlebars.js +3 -0
  49. data/vendor/assets/javascripts/ace/mode-haskell.js +1 -0
  50. data/vendor/assets/javascripts/ace/mode-html.js +3 -0
  51. data/vendor/assets/javascripts/ace/mode-html_elixir.js +3 -0
  52. data/vendor/assets/javascripts/ace/mode-html_ruby.js +673 -165
  53. data/vendor/assets/javascripts/ace/mode-io.js +1 -0
  54. data/vendor/assets/javascripts/ace/mode-java.js +2 -0
  55. data/vendor/assets/javascripts/ace/mode-javascript.js +1 -0
  56. data/vendor/assets/javascripts/ace/mode-json.js +3 -0
  57. data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
  58. data/vendor/assets/javascripts/ace/mode-jsoniq.js +1 -0
  59. data/vendor/assets/javascripts/ace/mode-jsp.js +1 -0
  60. data/vendor/assets/javascripts/ace/mode-kotlin.js +2 -0
  61. data/vendor/assets/javascripts/ace/mode-liquid.js +4 -0
  62. data/vendor/assets/javascripts/ace/mode-lsl.js +1 -0
  63. data/vendor/assets/javascripts/ace/mode-lua.js +1 -0
  64. data/vendor/assets/javascripts/ace/mode-luapage.js +4 -0
  65. data/vendor/assets/javascripts/ace/mode-makefile.js +1 -0
  66. data/vendor/assets/javascripts/ace/mode-markdown.js +5 -0
  67. data/vendor/assets/javascripts/ace/mode-maze.js +1 -0
  68. data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
  69. data/vendor/assets/javascripts/ace/mode-nix.js +1 -0
  70. data/vendor/assets/javascripts/ace/mode-nsis.js +1 -1
  71. data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
  72. data/vendor/assets/javascripts/ace/mode-perl.js +1 -0
  73. data/vendor/assets/javascripts/ace/mode-pgsql.js +2 -2
  74. data/vendor/assets/javascripts/ace/mode-php.js +4 -0
  75. data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +4 -0
  76. data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
  77. data/vendor/assets/javascripts/ace/mode-protobuf.js +1 -0
  78. data/vendor/assets/javascripts/ace/mode-puppet.js +5 -6
  79. data/vendor/assets/javascripts/ace/mode-python.js +3 -2
  80. data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
  81. data/vendor/assets/javascripts/ace/mode-r.js +1 -0
  82. data/vendor/assets/javascripts/ace/mode-razor.js +4 -0
  83. data/vendor/assets/javascripts/ace/mode-rhtml.js +3 -0
  84. data/vendor/assets/javascripts/ace/mode-rst.js +1 -0
  85. data/vendor/assets/javascripts/ace/mode-ruby.js +670 -165
  86. data/vendor/assets/javascripts/ace/mode-rust.js +1 -1
  87. data/vendor/assets/javascripts/ace/mode-scala.js +1 -0
  88. data/vendor/assets/javascripts/ace/mode-sh.js +1 -0
  89. data/vendor/assets/javascripts/ace/mode-sjs.js +1 -0
  90. data/vendor/assets/javascripts/ace/mode-slim.js +708 -110
  91. data/vendor/assets/javascripts/ace/mode-smarty.js +3 -0
  92. data/vendor/assets/javascripts/ace/mode-snippets.js +1 -0
  93. data/vendor/assets/javascripts/ace/mode-soy_template.js +3 -0
  94. data/vendor/assets/javascripts/ace/mode-sql.js +1 -0
  95. data/vendor/assets/javascripts/ace/mode-sqlserver.js +2 -1
  96. data/vendor/assets/javascripts/ace/mode-svg.js +1 -0
  97. data/vendor/assets/javascripts/ace/mode-swift.js +6 -0
  98. data/vendor/assets/javascripts/ace/mode-tcl.js +1 -0
  99. data/vendor/assets/javascripts/ace/mode-terraform.js +10 -7
  100. data/vendor/assets/javascripts/ace/mode-tex.js +1 -0
  101. data/vendor/assets/javascripts/ace/mode-textile.js +1 -0
  102. data/vendor/assets/javascripts/ace/mode-tsx.js +1 -0
  103. data/vendor/assets/javascripts/ace/mode-twig.js +3 -0
  104. data/vendor/assets/javascripts/ace/mode-typescript.js +1 -0
  105. data/vendor/assets/javascripts/ace/mode-vala.js +1 -0
  106. data/vendor/assets/javascripts/ace/mode-vbscript.js +444 -15
  107. data/vendor/assets/javascripts/ace/mode-velocity.js +4 -0
  108. data/vendor/assets/javascripts/ace/mode-vhdl.js +5 -6
  109. data/vendor/assets/javascripts/ace/mode-visualforce.js +3 -0
  110. data/vendor/assets/javascripts/ace/mode-wollok.js +2 -0
  111. data/vendor/assets/javascripts/ace/mode-xquery.js +1 -0
  112. data/vendor/assets/javascripts/ace/snippets/abap.js +1 -6
  113. data/vendor/assets/javascripts/ace/snippets/ada.js +1 -6
  114. data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
  115. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +1 -6
  116. data/vendor/assets/javascripts/ace/snippets/apex.js +1 -6
  117. data/vendor/assets/javascripts/ace/snippets/applescript.js +1 -6
  118. data/vendor/assets/javascripts/ace/snippets/aql.js +1 -6
  119. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +1 -6
  120. data/vendor/assets/javascripts/ace/snippets/asl.js +1 -5
  121. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +1 -6
  122. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +1 -6
  123. data/vendor/assets/javascripts/ace/snippets/batchfile.js +1 -6
  124. data/vendor/assets/javascripts/ace/snippets/c9search.js +1 -6
  125. data/vendor/assets/javascripts/ace/snippets/cirru.js +1 -6
  126. data/vendor/assets/javascripts/ace/snippets/cobol.js +1 -6
  127. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +1 -6
  128. data/vendor/assets/javascripts/ace/snippets/crystal.js +1 -6
  129. data/vendor/assets/javascripts/ace/snippets/csharp.js +1 -6
  130. data/vendor/assets/javascripts/ace/snippets/csound_score.js +1 -6
  131. data/vendor/assets/javascripts/ace/snippets/csp.js +1 -6
  132. data/vendor/assets/javascripts/ace/snippets/curly.js +1 -6
  133. data/vendor/assets/javascripts/ace/snippets/d.js +1 -6
  134. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +1 -6
  135. data/vendor/assets/javascripts/ace/snippets/dot.js +1 -6
  136. data/vendor/assets/javascripts/ace/snippets/eiffel.js +1 -6
  137. data/vendor/assets/javascripts/ace/snippets/ejs.js +1 -6
  138. data/vendor/assets/javascripts/ace/snippets/elixir.js +1 -6
  139. data/vendor/assets/javascripts/ace/snippets/elm.js +1 -6
  140. data/vendor/assets/javascripts/ace/snippets/forth.js +1 -6
  141. data/vendor/assets/javascripts/ace/snippets/fortran.js +1 -6
  142. data/vendor/assets/javascripts/ace/snippets/fsharp.js +1 -6
  143. data/vendor/assets/javascripts/ace/snippets/ftl.js +1 -6
  144. data/vendor/assets/javascripts/ace/snippets/gcode.js +1 -6
  145. data/vendor/assets/javascripts/ace/snippets/gherkin.js +1 -6
  146. data/vendor/assets/javascripts/ace/snippets/gitignore.js +1 -6
  147. data/vendor/assets/javascripts/ace/snippets/glsl.js +1 -6
  148. data/vendor/assets/javascripts/ace/snippets/golang.js +1 -6
  149. data/vendor/assets/javascripts/ace/snippets/groovy.js +1 -6
  150. data/vendor/assets/javascripts/ace/snippets/handlebars.js +1 -6
  151. data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +1 -6
  152. data/vendor/assets/javascripts/ace/snippets/haxe.js +1 -6
  153. data/vendor/assets/javascripts/ace/snippets/hjson.js +1 -6
  154. data/vendor/assets/javascripts/ace/snippets/html_elixir.js +1 -6
  155. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +1 -6
  156. data/vendor/assets/javascripts/ace/snippets/ini.js +1 -6
  157. data/vendor/assets/javascripts/ace/snippets/jack.js +1 -6
  158. data/vendor/assets/javascripts/ace/snippets/jade.js +1 -6
  159. data/vendor/assets/javascripts/ace/snippets/json.js +1 -6
  160. data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
  161. data/vendor/assets/javascripts/ace/snippets/jssm.js +1 -6
  162. data/vendor/assets/javascripts/ace/snippets/jsx.js +1 -6
  163. data/vendor/assets/javascripts/ace/snippets/julia.js +1 -6
  164. data/vendor/assets/javascripts/ace/snippets/kotlin.js +1 -6
  165. data/vendor/assets/javascripts/ace/snippets/latex.js +1 -6
  166. data/vendor/assets/javascripts/ace/snippets/less.js +1 -6
  167. data/vendor/assets/javascripts/ace/snippets/lisp.js +1 -6
  168. data/vendor/assets/javascripts/ace/snippets/livescript.js +1 -6
  169. data/vendor/assets/javascripts/ace/snippets/logiql.js +1 -6
  170. data/vendor/assets/javascripts/ace/snippets/logtalk.js +1 -6
  171. data/vendor/assets/javascripts/ace/snippets/luapage.js +1 -6
  172. data/vendor/assets/javascripts/ace/snippets/lucene.js +1 -6
  173. data/vendor/assets/javascripts/ace/snippets/mask.js +1 -6
  174. data/vendor/assets/javascripts/ace/snippets/matlab.js +1 -6
  175. data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
  176. data/vendor/assets/javascripts/ace/snippets/mel.js +1 -6
  177. data/vendor/assets/javascripts/ace/snippets/mixal.js +1 -6
  178. data/vendor/assets/javascripts/ace/snippets/mushcode.js +1 -6
  179. data/vendor/assets/javascripts/ace/snippets/mysql.js +1 -6
  180. data/vendor/assets/javascripts/ace/snippets/nginx.js +1 -6
  181. data/vendor/assets/javascripts/ace/snippets/nim.js +1 -6
  182. data/vendor/assets/javascripts/ace/snippets/nix.js +1 -6
  183. data/vendor/assets/javascripts/ace/snippets/nsis.js +1 -6
  184. data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
  185. data/vendor/assets/javascripts/ace/snippets/objectivec.js +1 -6
  186. data/vendor/assets/javascripts/ace/snippets/ocaml.js +1 -6
  187. data/vendor/assets/javascripts/ace/snippets/pascal.js +1 -6
  188. data/vendor/assets/javascripts/ace/snippets/perl6.js +1 -6
  189. data/vendor/assets/javascripts/ace/snippets/pgsql.js +1 -6
  190. data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +1 -6
  191. data/vendor/assets/javascripts/ace/snippets/pig.js +1 -6
  192. data/vendor/assets/javascripts/ace/snippets/plain_text.js +1 -6
  193. data/vendor/assets/javascripts/ace/snippets/powershell.js +1 -6
  194. data/vendor/assets/javascripts/ace/snippets/praat.js +1 -6
  195. data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
  196. data/vendor/assets/javascripts/ace/snippets/prolog.js +1 -6
  197. data/vendor/assets/javascripts/ace/snippets/properties.js +1 -6
  198. data/vendor/assets/javascripts/ace/snippets/protobuf.js +1 -6
  199. data/vendor/assets/javascripts/ace/snippets/puppet.js +1 -6
  200. data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
  201. data/vendor/assets/javascripts/ace/snippets/rdoc.js +1 -6
  202. data/vendor/assets/javascripts/ace/snippets/red.js +1 -6
  203. data/vendor/assets/javascripts/ace/snippets/redshift.js +1 -6
  204. data/vendor/assets/javascripts/ace/snippets/rhtml.js +1 -6
  205. data/vendor/assets/javascripts/ace/snippets/rust.js +1 -6
  206. data/vendor/assets/javascripts/ace/snippets/sass.js +1 -6
  207. data/vendor/assets/javascripts/ace/snippets/scad.js +1 -6
  208. data/vendor/assets/javascripts/ace/snippets/scala.js +1 -6
  209. data/vendor/assets/javascripts/ace/snippets/scheme.js +1 -6
  210. data/vendor/assets/javascripts/ace/snippets/scss.js +1 -6
  211. data/vendor/assets/javascripts/ace/snippets/sjs.js +1 -6
  212. data/vendor/assets/javascripts/ace/snippets/slim.js +1 -6
  213. data/vendor/assets/javascripts/ace/snippets/smarty.js +1 -6
  214. data/vendor/assets/javascripts/ace/snippets/soy_template.js +1 -6
  215. data/vendor/assets/javascripts/ace/snippets/space.js +1 -6
  216. data/vendor/assets/javascripts/ace/snippets/sparql.js +1 -6
  217. data/vendor/assets/javascripts/ace/snippets/stylus.js +1 -6
  218. data/vendor/assets/javascripts/ace/snippets/svg.js +1 -6
  219. data/vendor/assets/javascripts/ace/snippets/swift.js +1 -6
  220. data/vendor/assets/javascripts/ace/snippets/terraform.js +1 -6
  221. data/vendor/assets/javascripts/ace/snippets/text.js +1 -6
  222. data/vendor/assets/javascripts/ace/snippets/toml.js +1 -6
  223. data/vendor/assets/javascripts/ace/snippets/tsx.js +1 -6
  224. data/vendor/assets/javascripts/ace/snippets/turtle.js +1 -6
  225. data/vendor/assets/javascripts/ace/snippets/twig.js +1 -6
  226. data/vendor/assets/javascripts/ace/snippets/typescript.js +1 -6
  227. data/vendor/assets/javascripts/ace/snippets/vbscript.js +1 -6
  228. data/vendor/assets/javascripts/ace/snippets/verilog.js +1 -6
  229. data/vendor/assets/javascripts/ace/snippets/vhdl.js +1 -6
  230. data/vendor/assets/javascripts/ace/snippets/visualforce.js +1 -6
  231. data/vendor/assets/javascripts/ace/snippets/xml.js +1 -6
  232. data/vendor/assets/javascripts/ace/snippets/yaml.js +1 -6
  233. data/vendor/assets/javascripts/ace/snippets/zeek.js +1 -6
  234. data/vendor/assets/javascripts/ace/theme-ambiance.js +3 -2
  235. data/vendor/assets/javascripts/ace/theme-chaos.js +1 -1
  236. data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
  237. data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
  238. data/vendor/assets/javascripts/ace/worker-coffee.js +17 -703
  239. data/vendor/assets/javascripts/ace/worker-css.js +17 -703
  240. data/vendor/assets/javascripts/ace/worker-html.js +17 -703
  241. data/vendor/assets/javascripts/ace/worker-javascript.js +7833 -5352
  242. data/vendor/assets/javascripts/ace/worker-json.js +17 -703
  243. data/vendor/assets/javascripts/ace/worker-lua.js +17 -703
  244. data/vendor/assets/javascripts/ace/worker-php.js +857 -1475
  245. data/vendor/assets/javascripts/ace/worker-xml.js +26 -707
  246. data/vendor/assets/javascripts/ace/worker-xquery.js +17 -703
  247. metadata +18 -4
  248. data/vendor/assets/javascripts/ace/mode-bro.js +0 -334
  249. data/vendor/assets/javascripts/ace/snippets/bro.js +0 -14
@@ -448,6 +448,7 @@ oop.inherits(Mode, TextMode);
448
448
  this.lineCommentStart = ";";
449
449
  this.blockComment = {start: "/*", end: "*/"};
450
450
 
451
+ this.$id = "ace/mode/csound_score";
451
452
  }).call(Mode.prototype);
452
453
 
453
454
  exports.Mode = Mode;
@@ -705,6 +705,7 @@ oop.inherits(Mode, TextMode);
705
705
  };
706
706
 
707
707
  this.$id = "ace/mode/css";
708
+ this.snippetFileId = "ace/snippets/css";
708
709
  }).call(Mode.prototype);
709
710
 
710
711
  exports.Mode = Mode;
@@ -784,6 +784,7 @@ oop.inherits(Mode, TextMode);
784
784
  };
785
785
 
786
786
  this.$id = "ace/mode/javascript";
787
+ this.snippetFileId = "ace/snippets/javascript";
787
788
  }).call(Mode.prototype);
788
789
 
789
790
  exports.Mode = Mode;
@@ -1316,6 +1317,7 @@ oop.inherits(Mode, TextMode);
1316
1317
  };
1317
1318
 
1318
1319
  this.$id = "ace/mode/css";
1320
+ this.snippetFileId = "ace/snippets/css";
1319
1321
  }).call(Mode.prototype);
1320
1322
 
1321
1323
  exports.Mode = Mode;
@@ -2493,6 +2495,7 @@ oop.inherits(Mode, TextMode);
2493
2495
  };
2494
2496
 
2495
2497
  this.$id = "ace/mode/html";
2498
+ this.snippetFileId = "ace/snippets/html";
2496
2499
  }).call(Mode.prototype);
2497
2500
 
2498
2501
  exports.Mode = Mode;
@@ -308,7 +308,7 @@ var DHighlightRules = function() {
308
308
  regex: '[a-zA-Z]+'
309
309
  }, {
310
310
  token: 'string',
311
- regex: '".*"'
311
+ regex: '"[^"]*"'
312
312
  }, {
313
313
  token: 'comment',
314
314
  regex: '//.*$'
@@ -489,6 +489,7 @@ oop.inherits(Mode, TextMode);
489
489
  };
490
490
 
491
491
  this.$id = "ace/mode/c_cpp";
492
+ this.snippetFileId = "ace/snippets/c_cpp";
492
493
  }).call(Mode.prototype);
493
494
 
494
495
  exports.Mode = Mode;
@@ -700,6 +701,7 @@ oop.inherits(Mode, CMode);
700
701
  this.lineCommentStart = "//";
701
702
  this.blockComment = {start: "/*", end: "*/"};
702
703
  this.$id = "ace/mode/dart";
704
+ this.snippetFileId = "ace/snippets/dart";
703
705
  }).call(Mode.prototype);
704
706
 
705
707
  exports.Mode = Mode;
@@ -132,6 +132,7 @@ oop.inherits(Mode, TextMode);
132
132
  (function() {
133
133
 
134
134
  this.$id = "ace/mode/diff";
135
+ this.snippetFileId = "ace/snippets/diff";
135
136
  }).call(Mode.prototype);
136
137
 
137
138
  exports.Mode = Mode;
@@ -784,6 +784,7 @@ oop.inherits(Mode, TextMode);
784
784
  };
785
785
 
786
786
  this.$id = "ace/mode/javascript";
787
+ this.snippetFileId = "ace/snippets/javascript";
787
788
  }).call(Mode.prototype);
788
789
 
789
790
  exports.Mode = Mode;
@@ -1316,6 +1317,7 @@ oop.inherits(Mode, TextMode);
1316
1317
  };
1317
1318
 
1318
1319
  this.$id = "ace/mode/css";
1320
+ this.snippetFileId = "ace/snippets/css";
1319
1321
  }).call(Mode.prototype);
1320
1322
 
1321
1323
  exports.Mode = Mode;
@@ -2493,6 +2495,7 @@ oop.inherits(Mode, TextMode);
2493
2495
  };
2494
2496
 
2495
2497
  this.$id = "ace/mode/html";
2498
+ this.snippetFileId = "ace/snippets/html";
2496
2499
  }).call(Mode.prototype);
2497
2500
 
2498
2501
  exports.Mode = Mode;
@@ -2578,6 +2581,7 @@ oop.inherits(Mode, HtmlMode);
2578
2581
 
2579
2582
  (function() {
2580
2583
  this.$id = "ace/mode/django";
2584
+ this.snippetFileId = "ace/snippets/django";
2581
2585
  }).call(Mode.prototype);
2582
2586
 
2583
2587
  exports.Mode = Mode;
@@ -435,6 +435,7 @@ oop.inherits(Mode, TextMode);
435
435
  };
436
436
 
437
437
  this.$id = "ace/mode/sh";
438
+ this.snippetFileId = "ace/snippets/sh";
438
439
  }).call(Mode.prototype);
439
440
 
440
441
  exports.Mode = Mode;
@@ -483,6 +483,7 @@ oop.inherits(Mode, TextMode);
483
483
  (function() {
484
484
  this.lineCommentStart = "//";
485
485
  this.$id = "ace/mode/drools";
486
+ this.snippetFileId = "ace/snippets/drools";
486
487
  }).call(Mode.prototype);
487
488
 
488
489
  exports.Mode = Mode;
@@ -152,6 +152,7 @@ oop.inherits(Mode, TextMode);
152
152
 
153
153
  (function() {
154
154
  this.$id = "ace/mode/edifact";
155
+ this.snippetFileId = "ace/snippets/edifact";
155
156
  }).call(Mode.prototype);
156
157
 
157
158
  exports.Mode = Mode;
@@ -1264,6 +1264,7 @@ oop.inherits(Mode, TextMode);
1264
1264
  };
1265
1265
 
1266
1266
  this.$id = "ace/mode/javascript";
1267
+ this.snippetFileId = "ace/snippets/javascript";
1267
1268
  }).call(Mode.prototype);
1268
1269
 
1269
1270
  exports.Mode = Mode;
@@ -1601,6 +1602,7 @@ oop.inherits(Mode, TextMode);
1601
1602
  };
1602
1603
 
1603
1604
  this.$id = "ace/mode/css";
1605
+ this.snippetFileId = "ace/snippets/css";
1604
1606
  }).call(Mode.prototype);
1605
1607
 
1606
1608
  exports.Mode = Mode;
@@ -2493,6 +2495,7 @@ oop.inherits(Mode, TextMode);
2493
2495
  };
2494
2496
 
2495
2497
  this.$id = "ace/mode/html";
2498
+ this.snippetFileId = "ace/snippets/html";
2496
2499
  }).call(Mode.prototype);
2497
2500
 
2498
2501
  exports.Mode = Mode;
@@ -2508,17 +2511,17 @@ var constantOtherSymbol = exports.constantOtherSymbol = {
2508
2511
  regex : "[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"
2509
2512
  };
2510
2513
 
2511
- var qString = exports.qString = {
2514
+ exports.qString = {
2512
2515
  token : "string", // single line
2513
2516
  regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
2514
2517
  };
2515
2518
 
2516
- var qqString = exports.qqString = {
2519
+ exports.qqString = {
2517
2520
  token : "string", // single line
2518
2521
  regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
2519
2522
  };
2520
2523
 
2521
- var tString = exports.tString = {
2524
+ exports.tString = {
2522
2525
  token : "string", // backtick string
2523
2526
  regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
2524
2527
  };
@@ -2528,9 +2531,34 @@ var constantNumericHex = exports.constantNumericHex = {
2528
2531
  regex : "0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"
2529
2532
  };
2530
2533
 
2534
+ var constantNumericBinary = exports.constantNumericBinary = {
2535
+ token: "constant.numeric",
2536
+ regex: /\b(0[bB][01](?:[01]|_(?=[01]))*)\b/
2537
+ };
2538
+
2539
+ var constantNumericDecimal = exports.constantNumericDecimal = {
2540
+ token: "constant.numeric",
2541
+ regex: /\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/
2542
+ };
2543
+
2544
+ var constantNumericOctal = exports.constantNumericDecimal = {
2545
+ token: "constant.numeric",
2546
+ regex: /\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/
2547
+ };
2548
+
2549
+ var constantNumericRational = exports.constantNumericRational = {
2550
+ token: "constant.numeric", //rational + complex
2551
+ regex: /\b([\d]+(?:[./][\d]+)?ri?)\b/
2552
+ };
2553
+
2554
+ var constantNumericComplex = exports.constantNumericComplex = {
2555
+ token: "constant.numeric", //simple complex numbers
2556
+ regex: /\b([\d]i)\b/
2557
+ };
2558
+
2531
2559
  var constantNumericFloat = exports.constantNumericFloat = {
2532
- token : "constant.numeric", // float
2533
- regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?\\b"
2560
+ token : "constant.numeric", // float + complex
2561
+ regex : "[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"
2534
2562
  };
2535
2563
 
2536
2564
  var instanceVariable = exports.instanceVariable = {
@@ -2570,18 +2598,19 @@ var RubyHighlightRules = function() {
2570
2598
  "filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" +
2571
2599
  "translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" +
2572
2600
  "cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" +
2573
- "has_many|has_one|belongs_to|has_and_belongs_to_many"
2601
+ "has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|" +
2602
+ "private_class_method|remove_method|undef_method"
2574
2603
  );
2575
2604
 
2576
2605
  var keywords = (
2577
2606
  "alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|" +
2578
2607
  "__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|" +
2579
- "redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield"
2608
+ "redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend"
2580
2609
  );
2581
2610
 
2582
2611
  var buildinConstants = (
2583
2612
  "true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|" +
2584
- "RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING"
2613
+ "RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION"
2585
2614
  );
2586
2615
 
2587
2616
  var builtinVariables = (
@@ -2597,126 +2626,191 @@ var RubyHighlightRules = function() {
2597
2626
  "invalid.deprecated": "debugger" // TODO is this a remnant from js mode?
2598
2627
  }, "identifier");
2599
2628
 
2629
+ var escapedChars = "\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'\"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})";
2630
+
2631
+ var closeParen = {
2632
+ "(": ")",
2633
+ "[": "]",
2634
+ "{": "}",
2635
+ "<": ">",
2636
+ "^": "^",
2637
+ "|": "|",
2638
+ "%": "%"
2639
+ };
2640
+
2600
2641
  this.$rules = {
2601
- "start" : [
2642
+ "start": [
2602
2643
  {
2603
- token : "comment",
2604
- regex : "#.*$"
2644
+ token: "comment",
2645
+ regex: "#.*$"
2605
2646
  }, {
2606
- token : "comment", // multi line comment
2607
- regex : "^=begin(?:$|\\s.*$)",
2608
- next : "comment"
2647
+ token: "comment.multiline", // multi line comment
2648
+ regex: "^=begin(?=$|\\s.*$)",
2649
+ next: "comment"
2609
2650
  }, {
2610
- token : "string.regexp",
2611
- regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
2651
+ token: "string.regexp",
2652
+ regex: /[/](?=.*\/)/,
2653
+ next: "regex"
2612
2654
  },
2613
2655
 
2614
2656
  [{
2615
- regex: "[{}]", onMatch: function(val, state, stack) {
2616
- this.next = val == "{" ? this.nextState : "";
2617
- if (val == "{" && stack.length) {
2618
- stack.unshift("start", state);
2619
- return "paren.lparen";
2620
- }
2621
- if (val == "}" && stack.length) {
2622
- stack.shift();
2623
- this.next = stack.shift();
2624
- if (this.next.indexOf("string") != -1)
2625
- return "paren.end";
2626
- }
2627
- return val == "{" ? "paren.lparen" : "paren.rparen";
2628
- },
2629
- nextState: "start"
2630
- }, {
2631
- token : "string.start",
2632
- regex : /"/,
2633
- push : [{
2634
- token : "constant.language.escape",
2635
- regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
2657
+ token: ["constant.other.symbol.ruby", "string.start"],
2658
+ regex: /(:)?(")/,
2659
+ push: [{
2660
+ token: "constant.language.escape",
2661
+ regex: escapedChars
2636
2662
  }, {
2637
- token : "paren.start",
2638
- regex : /#{/,
2639
- push : "start"
2663
+ token: "paren.start",
2664
+ regex: /#{/,
2665
+ push: "start"
2640
2666
  }, {
2641
- token : "string.end",
2642
- regex : /"/,
2643
- next : "pop"
2667
+ token: "string.end",
2668
+ regex: /"/,
2669
+ next: "pop"
2644
2670
  }, {
2645
2671
  defaultToken: "string"
2646
2672
  }]
2647
2673
  }, {
2648
- token : "string.start",
2649
- regex : /`/,
2650
- push : [{
2651
- token : "constant.language.escape",
2652
- regex : /\\(?:[nsrtvfbae'"\\]|c.|C-.|M-.(?:\\C-.)?|[0-7]{3}|x[\da-fA-F]{2}|u[\da-fA-F]{4})/
2674
+ token: "string.start",
2675
+ regex: /`/,
2676
+ push: [{
2677
+ token: "constant.language.escape",
2678
+ regex: escapedChars
2653
2679
  }, {
2654
- token : "paren.start",
2655
- regex : /#{/,
2656
- push : "start"
2680
+ token: "paren.start",
2681
+ regex: /#{/,
2682
+ push: "start"
2657
2683
  }, {
2658
- token : "string.end",
2659
- regex : /`/,
2660
- next : "pop"
2684
+ token: "string.end",
2685
+ regex: /`/,
2686
+ next: "pop"
2661
2687
  }, {
2662
2688
  defaultToken: "string"
2663
2689
  }]
2664
2690
  }, {
2665
- token : "string.start",
2666
- regex : /'/,
2667
- push : [{
2668
- token : "constant.language.escape",
2669
- regex : /\\['\\]/
2670
- }, {
2671
- token : "string.end",
2672
- regex : /'/,
2673
- next : "pop"
2691
+ token: ["constant.other.symbol.ruby", "string.start"],
2692
+ regex: /(:)?(')/,
2693
+ push: [{
2694
+ token: "constant.language.escape",
2695
+ regex: /\\['\\]/
2696
+ }, {
2697
+ token: "string.end",
2698
+ regex: /'/,
2699
+ next: "pop"
2674
2700
  }, {
2675
2701
  defaultToken: "string"
2676
2702
  }]
2703
+ }, {
2704
+ token: "string.start",//doesn't see any differences between strings and array of strings in highlighting
2705
+ regex: /%[qwx]([(\[<{^|%])/, onMatch: function (val, state, stack) {
2706
+ if (stack.length)
2707
+ stack = [];
2708
+ var paren = val[val.length - 1];
2709
+ stack.unshift(paren, state);
2710
+ this.next = "qStateWithoutInterpolation";
2711
+ return this.token;
2712
+ }
2713
+ }, {
2714
+ token: "string.start", //doesn't see any differences between strings and array of strings in highlighting
2715
+ regex: /%[QWX]?([(\[<{^|%])/, onMatch: function (val, state, stack) {
2716
+ if (stack.length)
2717
+ stack = [];
2718
+ var paren = val[val.length - 1];
2719
+ stack.unshift(paren, state);
2720
+ this.next = "qStateWithInterpolation";
2721
+ return this.token;
2722
+ }
2723
+ }, {
2724
+ token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
2725
+ regex: /%[si]([(\[<{^|%])/, onMatch: function (val, state, stack) {
2726
+ if (stack.length)
2727
+ stack = [];
2728
+ var paren = val[val.length - 1];
2729
+ stack.unshift(paren, state);
2730
+ this.next = "sStateWithoutInterpolation";
2731
+ return this.token;
2732
+ }
2733
+ }, {
2734
+ token: "constant.other.symbol.ruby", //doesn't see any differences between symbols and array of symbols in highlighting
2735
+ regex: /%[SI]([(\[<{^|%])/, onMatch: function (val, state, stack) {
2736
+ if (stack.length)
2737
+ stack = [];
2738
+ var paren = val[val.length - 1];
2739
+ stack.unshift(paren, state);
2740
+ this.next = "sStateWithInterpolation";
2741
+ return this.token;
2742
+ }
2743
+ }, {
2744
+ token: "string.regexp",
2745
+ regex: /%[r]([(\[<{^|%])/, onMatch: function (val, state, stack) {
2746
+ if (stack.length)
2747
+ stack = [];
2748
+ var paren = val[val.length - 1];
2749
+ stack.unshift(paren, state);
2750
+ this.next = "rState";
2751
+ return this.token;
2752
+ }
2677
2753
  }],
2678
2754
 
2679
2755
  {
2680
- token : "text", // namespaces aren't symbols
2681
- regex : "::"
2756
+ token: "punctuation", // namespaces aren't symbols
2757
+ regex: "::"
2758
+ },
2759
+ instanceVariable,
2760
+ {
2761
+ token: "variable.global", // global variable
2762
+ regex: "[$][a-zA-Z_\\d]+"
2763
+ }, {
2764
+ token: "support.class", // class name
2765
+ regex: "[A-Z][a-zA-Z_\\d]*"
2766
+ }, {
2767
+ token: ["punctuation.operator", "support.function"],
2768
+ regex: /(\.)([a-zA-Z_\d]+)(?=\()/
2769
+ }, {
2770
+ token: ["punctuation.operator", "identifier"],
2771
+ regex: /(\.)([a-zA-Z_][a-zA-Z_\d]*)/
2682
2772
  }, {
2683
- token : "variable.instance", // instance variable
2684
- regex : "@{1,2}[a-zA-Z_\\d]+"
2773
+ token: "string.character",
2774
+ regex: "\\B\\?(?:" + escapedChars + "|\\S)"
2685
2775
  }, {
2686
- token : "support.class", // class name
2687
- regex : "[A-Z][a-zA-Z_\\d]+"
2776
+ token: "punctuation.operator",
2777
+ regex: /\?(?=.+:)/
2688
2778
  },
2689
2779
 
2780
+ constantNumericRational,
2781
+ constantNumericComplex,
2690
2782
  constantOtherSymbol,
2691
2783
  constantNumericHex,
2692
2784
  constantNumericFloat,
2693
-
2785
+ constantNumericBinary,
2786
+ constantNumericDecimal,
2787
+ constantNumericOctal,
2694
2788
  {
2695
- token : "constant.language.boolean",
2696
- regex : "(?:true|false)\\b"
2789
+ token: "constant.language.boolean",
2790
+ regex: "(?:true|false)\\b"
2697
2791
  }, {
2698
- token : keywordMapper,
2699
- regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
2792
+ token: keywordMapper,
2793
+ regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
2700
2794
  }, {
2701
- token : "punctuation.separator.key-value",
2702
- regex : "=>"
2795
+ token: "punctuation.separator.key-value",
2796
+ regex: "=>"
2703
2797
  }, {
2704
2798
  stateName: "heredoc",
2705
- onMatch : function(value, currentState, stack) {
2706
- var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
2799
+ onMatch: function (value, currentState, stack) {
2800
+ var next = (value[2] == '-' || value[2] == '~') ? "indentedHeredoc" : "heredoc";
2707
2801
  var tokens = value.split(this.splitRegex);
2708
2802
  stack.push(next, tokens[3]);
2709
2803
  return [
2710
- {type:"constant", value: tokens[1]},
2711
- {type:"string", value: tokens[2]},
2712
- {type:"support.class", value: tokens[3]},
2713
- {type:"string", value: tokens[4]}
2804
+ {type: "constant", value: tokens[1]},
2805
+ {type: "string", value: tokens[2]},
2806
+ {type: "support.class", value: tokens[3]},
2807
+ {type: "string", value: tokens[4]}
2714
2808
  ];
2715
2809
  },
2716
- regex : "(<<-?)(['\"`]?)([\\w]+)(['\"`]?)",
2810
+ regex: "(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",
2717
2811
  rules: {
2718
2812
  heredoc: [{
2719
- onMatch: function(value, currentState, stack) {
2813
+ onMatch: function(value, currentState, stack) {
2720
2814
  if (value === stack[1]) {
2721
2815
  stack.shift();
2722
2816
  stack.shift();
@@ -2733,7 +2827,7 @@ var RubyHighlightRules = function() {
2733
2827
  token: "string",
2734
2828
  regex: "^ +"
2735
2829
  }, {
2736
- onMatch: function(value, currentState, stack) {
2830
+ onMatch: function(value, currentState, stack) {
2737
2831
  if (value === stack[1]) {
2738
2832
  stack.shift();
2739
2833
  stack.shift();
@@ -2748,38 +2842,261 @@ var RubyHighlightRules = function() {
2748
2842
  }]
2749
2843
  }
2750
2844
  }, {
2751
- regex : "$",
2752
- token : "empty",
2753
- next : function(currentState, stack) {
2845
+ regex: "$",
2846
+ token: "empty",
2847
+ next: function(currentState, stack) {
2754
2848
  if (stack[0] === "heredoc" || stack[0] === "indentedHeredoc")
2755
2849
  return stack[0];
2756
2850
  return currentState;
2757
2851
  }
2852
+ }, {
2853
+ token: "keyword.operator",
2854
+ regex: "!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"
2855
+ }, {
2856
+ token: "paren.lparen",
2857
+ regex: "[[({]"
2858
+ }, {
2859
+ token: "paren.rparen",
2860
+ regex: "[\\])}]",
2861
+ onMatch: function(value, currentState, stack) {
2862
+ this.next = '';
2863
+ if (value == "}" && stack.length > 1 && stack[1] != "start") {
2864
+ stack.shift();
2865
+ this.next = stack.shift();
2866
+ }
2867
+ return this.token;
2868
+ }
2758
2869
  }, {
2759
- token : "string.character",
2760
- regex : "\\B\\?."
2870
+ token: "text",
2871
+ regex: "\\s+"
2761
2872
  }, {
2762
- token : "keyword.operator",
2763
- regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
2873
+ token: "punctuation.operator",
2874
+ regex: /[?:,;.]/
2875
+ }
2876
+ ],
2877
+ "comment": [
2878
+ {
2879
+ token: "comment.multiline", // closing comment
2880
+ regex: "^=end(?=$|\\s.*$)",
2881
+ next: "start"
2764
2882
  }, {
2765
- token : "paren.lparen",
2766
- regex : "[[({]"
2883
+ token: "comment", // comment spanning whole line
2884
+ regex: ".+"
2885
+ }
2886
+ ],
2887
+ "qStateWithInterpolation": [{
2888
+ token: "string.start",// excluded nested |^% due to difficulty in realization
2889
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
2890
+ if (stack.length && val === stack[0]) {
2891
+ stack.unshift(val, state);
2892
+ return this.token;
2893
+ }
2894
+ return "string";
2895
+ }
2896
+ }, {
2897
+ token: "constant.language.escape",
2898
+ regex: escapedChars
2899
+ }, {
2900
+ token: "constant.language.escape",
2901
+ regex: /\\./
2902
+ }, {
2903
+ token: "paren.start",
2904
+ regex: /#{/,
2905
+ push: "start"
2906
+ }, {
2907
+ token: "string.end",
2908
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
2909
+ if (stack.length && val === closeParen[stack[0]]) {
2910
+ stack.shift();
2911
+ this.next = stack.shift();
2912
+ return this.token;
2913
+ }
2914
+ this.next = '';
2915
+ return "string";
2916
+ }
2917
+ }, {
2918
+ defaultToken: "string"
2919
+ }],
2920
+ "qStateWithoutInterpolation": [{
2921
+ token: "string.start",// excluded nested |^% due to difficulty in realization
2922
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
2923
+ if (stack.length && val === stack[0]) {
2924
+ stack.unshift(val, state);
2925
+ return this.token;
2926
+ }
2927
+ return "string";
2928
+ }
2929
+ }, {
2930
+ token: "constant.language.escape",
2931
+ regex: /\\['\\]/
2932
+ }, {
2933
+ token: "constant.language.escape",
2934
+ regex: /\\./
2935
+ }, {
2936
+ token: "string.end",
2937
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
2938
+ if (stack.length && val === closeParen[stack[0]]) {
2939
+ stack.shift();
2940
+ this.next = stack.shift();
2941
+ return this.token;
2942
+ }
2943
+ this.next = '';
2944
+ return "string";
2945
+ }
2946
+ }, {
2947
+ defaultToken: "string"
2948
+ }],
2949
+ "sStateWithoutInterpolation": [{
2950
+ token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
2951
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
2952
+ if (stack.length && val === stack[0]) {
2953
+ stack.unshift(val, state);
2954
+ return this.token;
2955
+ }
2956
+ return "constant.other.symbol.ruby";
2957
+ }
2958
+ }, {
2959
+ token: "constant.other.symbol.ruby",
2960
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
2961
+ if (stack.length && val === closeParen[stack[0]]) {
2962
+ stack.shift();
2963
+ this.next = stack.shift();
2964
+ return this.token;
2965
+ }
2966
+ this.next = '';
2967
+ return "constant.other.symbol.ruby";
2968
+ }
2969
+ }, {
2970
+ defaultToken: "constant.other.symbol.ruby"
2971
+ }],
2972
+ "sStateWithInterpolation": [{
2973
+ token: "constant.other.symbol.ruby",// excluded nested |^% due to difficulty in realization
2974
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
2975
+ if (stack.length && val === stack[0]) {
2976
+ stack.unshift(val, state);
2977
+ return this.token;
2978
+ }
2979
+ return "constant.other.symbol.ruby";
2980
+ }
2981
+ }, {
2982
+ token: "constant.language.escape",
2983
+ regex: escapedChars
2984
+ }, {
2985
+ token: "constant.language.escape",
2986
+ regex: /\\./
2987
+ }, {
2988
+ token: "paren.start",
2989
+ regex: /#{/,
2990
+ push: "start"
2991
+ }, {
2992
+ token: "constant.other.symbol.ruby",
2993
+ regex: /[)\]>}^|%]/, onMatch: function (val, state, stack) {
2994
+ if (stack.length && val === closeParen[stack[0]]) {
2995
+ stack.shift();
2996
+ this.next = stack.shift();
2997
+ return this.token;
2998
+ }
2999
+ this.next = '';
3000
+ return "constant.other.symbol.ruby";
3001
+ }
3002
+ }, {
3003
+ defaultToken: "constant.other.symbol.ruby"
3004
+ }],
3005
+ "rState": [{
3006
+ token: "string.regexp",// excluded nested |^% due to difficulty in realization
3007
+ regex: /[(\[<{]/, onMatch: function (val, state, stack) {
3008
+ if (stack.length && val === stack[0]) {
3009
+ stack.unshift(val, state);
3010
+ return this.token;
3011
+ }
3012
+ return "constant.language.escape";
3013
+ }
3014
+ }, {
3015
+ token: "paren.start",
3016
+ regex: /#{/,
3017
+ push: "start"
3018
+ }, {
3019
+ token: "string.regexp",
3020
+ regex: /\//
3021
+ }, {
3022
+ token: "string.regexp",
3023
+ regex: /[)\]>}^|%][imxouesn]*/, onMatch: function (val, state, stack) {
3024
+ if (stack.length && val[0] === closeParen[stack[0]]) {
3025
+ stack.shift();
3026
+ this.next = stack.shift();
3027
+ return this.token;
3028
+ }
3029
+ this.next = '';
3030
+ return "constant.language.escape";
3031
+ }
3032
+ },
3033
+ {include: "regex"},
3034
+ {
3035
+ defaultToken: "string.regexp"
3036
+ }],
3037
+ "regex": [
3038
+ {// character classes
3039
+ token: "regexp.keyword",
3040
+ regex: /\\[wWdDhHsS]/
2767
3041
  }, {
2768
- token : "paren.rparen",
2769
- regex : "[\\])}]"
3042
+ token: "constant.language.escape",
3043
+ regex: /\\[AGbBzZ]/
2770
3044
  }, {
2771
- token : "text",
2772
- regex : "\\s+"
3045
+ token: "constant.language.escape",
3046
+ regex: /\\g<[a-zA-Z0-9]*>/
3047
+ }, {
3048
+ token: ["constant.language.escape", "regexp.keyword", "constant.language.escape"],
3049
+ regex: /(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/
3050
+ }, {
3051
+ token: ["constant.language.escape", "invalid", "constant.language.escape"],
3052
+ regex: /(\\p{\^?)([^/]*)(})/
3053
+ }, {// escapes
3054
+ token: "regexp.keyword.operator",
3055
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
3056
+ }, {// flag
3057
+ token: "string.regexp",
3058
+ regex: /[/][imxouesn]*/,
3059
+ next: "start"
3060
+ }, {// invalid operators
3061
+ token: "invalid",
3062
+ regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
3063
+ }, {// operators
3064
+ token: "constant.language.escape",
3065
+ regex: /\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
3066
+ }, {
3067
+ token: "constant.language.delimiter",
3068
+ regex: /\|/
3069
+ }, {
3070
+ token: "regexp.keyword",
3071
+ regex: /\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/
3072
+ }, {
3073
+ token: "constant.language.escape",
3074
+ regex: /\[\^?/,
3075
+ push: "regex_character_class"
3076
+ }, {
3077
+ defaultToken: "string.regexp"
2773
3078
  }
2774
3079
  ],
2775
- "comment" : [
3080
+ "regex_character_class": [
2776
3081
  {
2777
- token : "comment", // closing comment
2778
- regex : "^=end(?:$|\\s.*$)",
2779
- next : "start"
3082
+ token: "regexp.keyword",
3083
+ regex: /\\[wWdDhHsS]/
3084
+ }, {
3085
+ token: "regexp.charclass.keyword.operator",
3086
+ regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
3087
+ }, {
3088
+ token: "constant.language.escape",
3089
+ regex: /&?&?\[\^?/,
3090
+ push: "regex_character_class"
2780
3091
  }, {
2781
- token : "comment", // comment spanning whole line
2782
- regex : ".+"
3092
+ token: "constant.language.escape",
3093
+ regex: "]",
3094
+ next: "pop"
3095
+ }, {
3096
+ token: "constant.language.escape",
3097
+ regex: "-"
3098
+ }, {
3099
+ defaultToken: "string.regexp.characterclass"
2783
3100
  }
2784
3101
  ]
2785
3102
  };
@@ -2792,94 +3109,271 @@ oop.inherits(RubyHighlightRules, TextHighlightRules);
2792
3109
  exports.RubyHighlightRules = RubyHighlightRules;
2793
3110
  });
2794
3111
 
2795
- define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
3112
+ define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"], function (require, exports, module) {
2796
3113
  "use strict";
2797
3114
 
2798
3115
  var oop = require("../../lib/oop");
2799
3116
  var BaseFoldMode = require("./fold_mode").FoldMode;
2800
3117
  var Range = require("../../range").Range;
3118
+ var TokenIterator = require("../../token_iterator").TokenIterator;
3119
+
3120
+
3121
+ var FoldMode = exports.FoldMode = function () {
3122
+ };
2801
3123
 
2802
- var FoldMode = exports.FoldMode = function() {};
2803
3124
  oop.inherits(FoldMode, BaseFoldMode);
2804
3125
 
2805
- (function() {
3126
+ (function () {
3127
+ this.indentKeywords = {
3128
+ "class": 1,
3129
+ "def": 1,
3130
+ "module": 1,
3131
+ "do": 1,
3132
+ "unless": 1,
3133
+ "if": 1,
3134
+ "while": 1,
3135
+ "for": 1,
3136
+ "until": 1,
3137
+ "begin": 1,
3138
+ "else": 0,
3139
+ "elsif": 0,
3140
+ "rescue": 0,
3141
+ "ensure": 0,
3142
+ "when": 0,
3143
+ "end": -1,
3144
+ "case": 1,
3145
+ "=begin": 1,
3146
+ "=end": -1
3147
+ };
2806
3148
 
2807
- this.getFoldWidgetRange = function(session, foldStyle, row) {
2808
- var range = this.indentationBlock(session, row);
2809
- if (range)
2810
- return range;
3149
+ this.foldingStartMarker = /(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/;
3150
+ this.foldingStopMarker = /(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/;
2811
3151
 
2812
- var re = /\S/;
3152
+ this.getFoldWidget = function (session, foldStyle, row) {
2813
3153
  var line = session.getLine(row);
2814
- var startLevel = line.search(re);
2815
- if (startLevel == -1 || line[startLevel] != "#")
2816
- return;
2817
-
2818
- var startColumn = line.length;
2819
- var maxRow = session.getLength();
2820
- var startRow = row;
2821
- var endRow = row;
3154
+ var isStart = this.foldingStartMarker.test(line);
3155
+ var isEnd = this.foldingStopMarker.test(line);
3156
+
3157
+ if (isStart && !isEnd) {
3158
+ var match = line.match(this.foldingStartMarker);
3159
+ if (match[1]) {
3160
+ if (match[1] == "if" || match[1] == "else" || match[1] == "while" || match[1] == "until" || match[1] == "unless") {
3161
+ if (match[1] == "else" && /^\s*else\s*$/.test(line) === false) {
3162
+ return;
3163
+ }
3164
+ if (/^\s*(?:if|else|while|until|unless)\s*/.test(line) === false) {
3165
+ return;
3166
+ }
3167
+ }
2822
3168
 
2823
- while (++row < maxRow) {
2824
- line = session.getLine(row);
2825
- var level = line.search(re);
3169
+ if (match[1] == "when") {
3170
+ if (/\sthen\s/.test(line) === true) {
3171
+ return;
3172
+ }
3173
+ }
3174
+ if (session.getTokenAt(row, match.index + 2).type === "keyword")
3175
+ return "start";
3176
+ } else if (match[3]) {
3177
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
3178
+ return "start";
3179
+ } else {
3180
+ return "start";
3181
+ }
3182
+ }
3183
+ if (foldStyle != "markbeginend" || !isEnd || isStart && isEnd)
3184
+ return "";
2826
3185
 
2827
- if (level == -1)
2828
- continue;
3186
+ var match = line.match(this.foldingStopMarker);
3187
+ if (match[3] === "end") {
3188
+ if (session.getTokenAt(row, match.index + 1).type === "keyword")
3189
+ return "end";
3190
+ } else if (match[1]) {
3191
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
3192
+ return "end";
3193
+ } else
3194
+ return "end";
3195
+ };
2829
3196
 
2830
- if (line[level] != "#")
2831
- break;
3197
+ this.getFoldWidgetRange = function (session, foldStyle, row) {
3198
+ var line = session.doc.getLine(row);
3199
+ var match = this.foldingStartMarker.exec(line);
3200
+ if (match) {
3201
+ if (match[1] || match[3])
3202
+ return this.rubyBlock(session, row, match.index + 2);
2832
3203
 
2833
- endRow = row;
3204
+ return this.openingBracketBlock(session, "{", row, match.index);
2834
3205
  }
2835
3206
 
2836
- if (endRow > startRow) {
2837
- var endColumn = session.getLine(endRow).length;
2838
- return new Range(startRow, startColumn, endRow, endColumn);
3207
+ var match = this.foldingStopMarker.exec(line);
3208
+ if (match) {
3209
+ if (match[3] === "end") {
3210
+ if (session.getTokenAt(row, match.index + 1).type === "keyword")
3211
+ return this.rubyBlock(session, row, match.index + 1);
3212
+ }
3213
+
3214
+ if (match[1] === "=end") {
3215
+ if (session.getTokenAt(row, match.index + 1).type === "comment.multiline")
3216
+ return this.rubyBlock(session, row, match.index + 1);
3217
+ }
3218
+
3219
+ return this.closingBracketBlock(session, "}", row, match.index + match[0].length);
2839
3220
  }
2840
3221
  };
2841
- this.getFoldWidget = function(session, foldStyle, row) {
3222
+
3223
+ this.rubyBlock = function (session, row, column, tokenRange) {
3224
+ var stream = new TokenIterator(session, row, column);
3225
+
3226
+ var token = stream.getCurrentToken();
3227
+ if (!token || (token.type != "keyword" && token.type != "comment.multiline"))
3228
+ return;
3229
+
3230
+ var val = token.value;
2842
3231
  var line = session.getLine(row);
2843
- var indent = line.search(/\S/);
2844
- var next = session.getLine(row + 1);
2845
- var prev = session.getLine(row - 1);
2846
- var prevIndent = prev.search(/\S/);
2847
- var nextIndent = next.search(/\S/);
2848
-
2849
- if (indent == -1) {
2850
- session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
2851
- return "";
3232
+ switch (token.value) {
3233
+ case "if":
3234
+ case "unless":
3235
+ case "while":
3236
+ case "until":
3237
+ var checkToken = new RegExp("^\\s*" + token.value);
3238
+ if (!checkToken.test(line)) {
3239
+ return;
3240
+ }
3241
+ var dir = this.indentKeywords[val];
3242
+ break;
3243
+ case "when":
3244
+ if (/\sthen\s/.test(line)) {
3245
+ return;
3246
+ }
3247
+ case "elsif":
3248
+ case "rescue":
3249
+ case "ensure":
3250
+ var dir = 1;
3251
+ break;
3252
+ case "else":
3253
+ var checkToken = new RegExp("^\\s*" + token.value + "\\s*$");
3254
+ if (!checkToken.test(line)) {
3255
+ return;
3256
+ }
3257
+ var dir = 1;
3258
+ break;
3259
+ default:
3260
+ var dir = this.indentKeywords[val];
3261
+ break;
2852
3262
  }
2853
- if (prevIndent == -1) {
2854
- if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
2855
- session.foldWidgets[row - 1] = "";
2856
- session.foldWidgets[row + 1] = "";
2857
- return "start";
3263
+
3264
+ var stack = [val];
3265
+ if (!dir)
3266
+ return;
3267
+
3268
+ var startColumn = dir === -1 ? session.getLine(row - 1).length : session.getLine(row).length;
3269
+ var startRow = row;
3270
+ var ranges = [];
3271
+ ranges.push(stream.getCurrentTokenRange());
3272
+
3273
+ stream.step = dir === -1 ? stream.stepBackward : stream.stepForward;
3274
+ if (token.type == "comment.multiline") {
3275
+ while (token = stream.step()) {
3276
+ if (token.type !== "comment.multiline")
3277
+ continue;
3278
+ if (dir == 1) {
3279
+ startColumn = 6;
3280
+ if (token.value == "=end") {
3281
+ break;
3282
+ }
3283
+ } else {
3284
+ if (token.value == "=begin") {
3285
+ break;
3286
+ }
3287
+ }
2858
3288
  }
2859
- } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
2860
- if (session.getLine(row - 2).search(/\S/) == -1) {
2861
- session.foldWidgets[row - 1] = "start";
2862
- session.foldWidgets[row + 1] = "";
2863
- return "";
3289
+ } else {
3290
+ while (token = stream.step()) {
3291
+ var ignore = false;
3292
+ if (token.type !== "keyword")
3293
+ continue;
3294
+ var level = dir * this.indentKeywords[token.value];
3295
+ line = session.getLine(stream.getCurrentTokenRow());
3296
+ switch (token.value) {
3297
+ case "do":
3298
+ for (var i = stream.$tokenIndex - 1; i >= 0; i--) {
3299
+ var prevToken = stream.$rowTokens[i];
3300
+ if (prevToken && (prevToken.value == "while" || prevToken.value == "until" || prevToken.value == "for")) {
3301
+ level = 0;
3302
+ break;
3303
+ }
3304
+ }
3305
+ break;
3306
+ case "else":
3307
+ var checkToken = new RegExp("^\\s*" + token.value + "\\s*$");
3308
+ if (!checkToken.test(line) || val == "case") {
3309
+ level = 0;
3310
+ ignore = true;
3311
+ }
3312
+ break;
3313
+ case "if":
3314
+ case "unless":
3315
+ case "while":
3316
+ case "until":
3317
+ var checkToken = new RegExp("^\\s*" + token.value);
3318
+ if (!checkToken.test(line)) {
3319
+ level = 0;
3320
+ ignore = true;
3321
+ }
3322
+ break;
3323
+ case "when":
3324
+ if (/\sthen\s/.test(line) || val == "case") {
3325
+ level = 0;
3326
+ ignore = true;
3327
+ }
3328
+ break;
3329
+ }
3330
+
3331
+ if (level > 0) {
3332
+ stack.unshift(token.value);
3333
+ } else if (level <= 0 && ignore === false) {
3334
+ stack.shift();
3335
+ if (!stack.length) {
3336
+ if ((val == "while" || val == "until" || val == "for") && token.value != "do") {
3337
+ break;
3338
+ }
3339
+ if (token.value == "do" && dir == -1 && level != 0)
3340
+ break;
3341
+ if (token.value != "do")
3342
+ break;
3343
+ }
3344
+
3345
+ if (level === 0) {
3346
+ stack.unshift(token.value);
3347
+ }
3348
+ }
2864
3349
  }
2865
3350
  }
2866
3351
 
2867
- if (prevIndent!= -1 && prevIndent < indent)
2868
- session.foldWidgets[row - 1] = "start";
2869
- else
2870
- session.foldWidgets[row - 1] = "";
3352
+ if (!token)
3353
+ return null;
2871
3354
 
2872
- if (indent < nextIndent)
2873
- return "start";
2874
- else
2875
- return "";
3355
+ if (tokenRange) {
3356
+ ranges.push(stream.getCurrentTokenRange());
3357
+ return ranges;
3358
+ }
3359
+
3360
+ var row = stream.getCurrentTokenRow();
3361
+ if (dir === -1) {
3362
+ if (token.type === "comment.multiline") {
3363
+ var endColumn = 6;
3364
+ } else {
3365
+ var endColumn = session.getLine(row).length;
3366
+ }
3367
+ return new Range(row, endColumn, startRow - 1, startColumn);
3368
+ } else
3369
+ return new Range(startRow, startColumn, row - 1, session.getLine(row - 1).length);
2876
3370
  };
2877
3371
 
2878
3372
  }).call(FoldMode.prototype);
2879
3373
 
2880
3374
  });
2881
3375
 
2882
- define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/coffee"], function(require, exports, module) {
3376
+ define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/ruby"], function(require, exports, module) {
2883
3377
  "use strict";
2884
3378
 
2885
3379
  var oop = require("../lib/oop");
@@ -2888,13 +3382,14 @@ var RubyHighlightRules = require("./ruby_highlight_rules").RubyHighlightRules;
2888
3382
  var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
2889
3383
  var Range = require("../range").Range;
2890
3384
  var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
2891
- var FoldMode = require("./folding/coffee").FoldMode;
3385
+ var FoldMode = require("./folding/ruby").FoldMode;
2892
3386
 
2893
3387
  var Mode = function() {
2894
3388
  this.HighlightRules = RubyHighlightRules;
2895
3389
  this.$outdent = new MatchingBraceOutdent();
2896
3390
  this.$behaviour = new CstyleBehaviour();
2897
3391
  this.foldingRules = new FoldMode();
3392
+ this.indentKeywords = this.foldingRules.indentKeywords;
2898
3393
  };
2899
3394
  oop.inherits(Mode, TextMode);
2900
3395
 
@@ -2909,7 +3404,7 @@ oop.inherits(Mode, TextMode);
2909
3404
  var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
2910
3405
  var tokens = tokenizedLine.tokens;
2911
3406
 
2912
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
3407
+ if (tokens.length && tokens[tokens.length - 1].type == "comment") {
2913
3408
  return indent;
2914
3409
  }
2915
3410
 
@@ -2917,7 +3412,7 @@ oop.inherits(Mode, TextMode);
2917
3412
  var match = line.match(/^.*[\{\(\[]\s*$/);
2918
3413
  var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
2919
3414
  var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
2920
- var startingConditional = line.match(/^\s*(if|else|when)\s*/);
3415
+ var startingConditional = line.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);
2921
3416
  if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
2922
3417
  indent += tab;
2923
3418
  }
@@ -2927,7 +3422,7 @@ oop.inherits(Mode, TextMode);
2927
3422
  };
2928
3423
 
2929
3424
  this.checkOutdent = function(state, line, input) {
2930
- return /^\s+(end|else)$/.test(line + input) || this.$outdent.checkOutdent(line, input);
3425
+ return /^\s+(end|else|rescue|ensure)$/.test(line + input) || this.$outdent.checkOutdent(line, input);
2931
3426
  };
2932
3427
 
2933
3428
  this.autoOutdent = function(state, session, row) {
@@ -2940,11 +3435,24 @@ oop.inherits(Mode, TextMode);
2940
3435
  var tab = session.getTabString();
2941
3436
  if (prevIndent.length <= indent.length) {
2942
3437
  if (indent.slice(-tab.length) == tab)
2943
- session.remove(new Range(row, indent.length-tab.length, row, indent.length));
3438
+ session.remove(new Range(row, indent.length - tab.length, row, indent.length));
2944
3439
  }
2945
3440
  };
2946
3441
 
3442
+ this.getMatching = function(session, row, column) {
3443
+ if (row == undefined) {
3444
+ var pos = session.selection.lead;
3445
+ column = pos.column;
3446
+ row = pos.row;
3447
+ }
3448
+
3449
+ var startToken = session.getTokenAt(row, column);
3450
+ if (startToken && startToken.value in this.indentKeywords)
3451
+ return this.foldingRules.rubyBlock(session, row, column, true);
3452
+ };
3453
+
2947
3454
  this.$id = "ace/mode/ruby";
3455
+ this.snippetFileId = "ace/snippets/ruby";
2948
3456
  }).call(Mode.prototype);
2949
3457
 
2950
3458
  exports.Mode = Mode;