ace-rails-ap 2.0.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/ace/rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/ace/ace.js +14194 -13349
  5. data/vendor/assets/javascripts/ace/ext-beautify.js +335 -0
  6. data/vendor/assets/javascripts/ace/ext-chromevox.js +6 -1
  7. data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +8 -33
  8. data/vendor/assets/javascripts/ace/ext-emmet.js +487 -424
  9. data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -0
  10. data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +45 -72
  11. data/vendor/assets/javascripts/ace/ext-language_tools.js +734 -578
  12. data/vendor/assets/javascripts/ace/ext-linking.js +53 -0
  13. data/vendor/assets/javascripts/ace/ext-modelist.js +25 -10
  14. data/vendor/assets/javascripts/ace/ext-old_ie.js +93 -120
  15. data/vendor/assets/javascripts/ace/ext-searchbox.js +8 -41
  16. data/vendor/assets/javascripts/ace/ext-settings_menu.js +229 -234
  17. data/vendor/assets/javascripts/ace/ext-spellcheck.js +7 -3
  18. data/vendor/assets/javascripts/ace/ext-split.js +13 -37
  19. data/vendor/assets/javascripts/ace/ext-static_highlight.js +16 -39
  20. data/vendor/assets/javascripts/ace/ext-statusbar.js +8 -2
  21. data/vendor/assets/javascripts/ace/ext-textarea.js +254 -99
  22. data/vendor/assets/javascripts/ace/ext-themelist.js +13 -40
  23. data/vendor/assets/javascripts/ace/ext-whitespace.js +17 -41
  24. data/vendor/assets/javascripts/ace/keybinding-emacs.js +803 -788
  25. data/vendor/assets/javascripts/ace/keybinding-vim.js +1559 -1560
  26. data/vendor/assets/javascripts/ace/mode-abap.js +52 -83
  27. data/vendor/assets/javascripts/ace/mode-actionscript.js +27 -63
  28. data/vendor/assets/javascripts/ace/mode-ada.js +27 -58
  29. data/vendor/assets/javascripts/ace/mode-apache_conf.js +310 -0
  30. data/vendor/assets/javascripts/ace/mode-applescript.js +226 -0
  31. data/vendor/assets/javascripts/ace/mode-asciidoc.js +39 -70
  32. data/vendor/assets/javascripts/ace/mode-assembly_x86.js +26 -58
  33. data/vendor/assets/javascripts/ace/mode-autohotkey.js +27 -63
  34. data/vendor/assets/javascripts/ace/mode-batchfile.js +27 -63
  35. data/vendor/assets/javascripts/ace/mode-c9search.js +92 -112
  36. data/vendor/assets/javascripts/ace/mode-c_cpp.js +224 -223
  37. data/vendor/assets/javascripts/ace/mode-cirru.js +202 -0
  38. data/vendor/assets/javascripts/ace/mode-clojure.js +98 -92
  39. data/vendor/assets/javascripts/ace/mode-cobol.js +27 -58
  40. data/vendor/assets/javascripts/ace/mode-coffee.js +90 -122
  41. data/vendor/assets/javascripts/ace/mode-coldfusion.js +1908 -1464
  42. data/vendor/assets/javascripts/ace/mode-csharp.js +291 -264
  43. data/vendor/assets/javascripts/ace/mode-css.js +266 -267
  44. data/vendor/assets/javascripts/ace/mode-curly.js +796 -815
  45. data/vendor/assets/javascripts/ace/mode-d.js +64 -95
  46. data/vendor/assets/javascripts/ace/mode-dart.js +254 -256
  47. data/vendor/assets/javascripts/ace/mode-diff.js +27 -58
  48. data/vendor/assets/javascripts/ace/mode-django.js +856 -866
  49. data/vendor/assets/javascripts/ace/mode-dockerfile.js +759 -0
  50. data/vendor/assets/javascripts/ace/mode-dot.js +106 -106
  51. data/vendor/assets/javascripts/ace/mode-eiffel.js +135 -0
  52. data/vendor/assets/javascripts/ace/mode-ejs.js +931 -938
  53. data/vendor/assets/javascripts/ace/mode-erlang.js +27 -58
  54. data/vendor/assets/javascripts/ace/mode-forth.js +27 -63
  55. data/vendor/assets/javascripts/ace/mode-ftl.js +457 -508
  56. data/vendor/assets/javascripts/ace/mode-gcode.js +85 -0
  57. data/vendor/assets/javascripts/ace/mode-gherkin.js +129 -0
  58. data/vendor/assets/javascripts/ace/mode-gitignore.js +50 -0
  59. data/vendor/assets/javascripts/ace/mode-glsl.js +252 -248
  60. data/vendor/assets/javascripts/ace/mode-golang.js +206 -179
  61. data/vendor/assets/javascripts/ace/mode-groovy.js +310 -242
  62. data/vendor/assets/javascripts/ace/mode-haml.js +156 -190
  63. data/vendor/assets/javascripts/ace/mode-handlebars.js +815 -784
  64. data/vendor/assets/javascripts/ace/mode-haskell.js +27 -63
  65. data/vendor/assets/javascripts/ace/mode-haxe.js +206 -176
  66. data/vendor/assets/javascripts/ace/mode-html.js +779 -792
  67. data/vendor/assets/javascripts/ace/mode-html_ruby.js +916 -923
  68. data/vendor/assets/javascripts/ace/mode-ini.js +27 -58
  69. data/vendor/assets/javascripts/ace/mode-io.js +201 -0
  70. data/vendor/assets/javascripts/ace/mode-jack.js +169 -170
  71. data/vendor/assets/javascripts/ace/mode-jade.js +722 -774
  72. data/vendor/assets/javascripts/ace/mode-java.js +310 -245
  73. data/vendor/assets/javascripts/ace/mode-javascript.js +285 -247
  74. data/vendor/assets/javascripts/ace/mode-json.js +183 -184
  75. data/vendor/assets/javascripts/ace/mode-jsoniq.js +3211 -1274
  76. data/vendor/assets/javascripts/ace/mode-jsp.js +481 -504
  77. data/vendor/assets/javascripts/ace/mode-jsx.js +206 -176
  78. data/vendor/assets/javascripts/ace/mode-julia.js +33 -69
  79. data/vendor/assets/javascripts/ace/mode-latex.js +74 -41
  80. data/vendor/assets/javascripts/ace/mode-less.js +250 -251
  81. data/vendor/assets/javascripts/ace/mode-liquid.js +424 -475
  82. data/vendor/assets/javascripts/ace/mode-lisp.js +24 -57
  83. data/vendor/assets/javascripts/ace/mode-livescript.js +42 -41
  84. data/vendor/assets/javascripts/ace/mode-logiql.js +229 -230
  85. data/vendor/assets/javascripts/ace/mode-lsl.js +200 -441
  86. data/vendor/assets/javascripts/ace/mode-lua.js +136 -167
  87. data/vendor/assets/javascripts/ace/mode-luapage.js +904 -884
  88. data/vendor/assets/javascripts/ace/mode-lucene.js +22 -17
  89. data/vendor/assets/javascripts/ace/mode-makefile.js +162 -137
  90. data/vendor/assets/javascripts/ace/mode-markdown.js +846 -854
  91. data/vendor/assets/javascripts/ace/mode-matlab.js +98 -72
  92. data/vendor/assets/javascripts/ace/mode-mel.js +569 -0
  93. data/vendor/assets/javascripts/ace/mode-mushcode.js +84 -115
  94. data/vendor/assets/javascripts/ace/mode-mysql.js +49 -80
  95. data/vendor/assets/javascripts/ace/mode-nix.js +252 -256
  96. data/vendor/assets/javascripts/ace/mode-objectivec.js +242 -274
  97. data/vendor/assets/javascripts/ace/mode-ocaml.js +71 -102
  98. data/vendor/assets/javascripts/ace/mode-pascal.js +32 -68
  99. data/vendor/assets/javascripts/ace/mode-perl.js +67 -98
  100. data/vendor/assets/javascripts/ace/mode-pgsql.js +990 -982
  101. data/vendor/assets/javascripts/ace/mode-php.js +1878 -1900
  102. data/vendor/assets/javascripts/ace/mode-plain_text.js +3 -34
  103. data/vendor/assets/javascripts/ace/mode-powershell.js +181 -151
  104. data/vendor/assets/javascripts/ace/mode-praat.js +418 -0
  105. data/vendor/assets/javascripts/ace/mode-prolog.js +27 -63
  106. data/vendor/assets/javascripts/ace/mode-properties.js +20 -48
  107. data/vendor/assets/javascripts/ace/mode-protobuf.js +252 -259
  108. data/vendor/assets/javascripts/ace/mode-python.js +84 -115
  109. data/vendor/assets/javascripts/ace/mode-r.js +105 -140
  110. data/vendor/assets/javascripts/ace/mode-rdoc.js +84 -89
  111. data/vendor/assets/javascripts/ace/mode-rhtml.js +892 -908
  112. data/vendor/assets/javascripts/ace/mode-ruby.js +434 -98
  113. data/vendor/assets/javascripts/ace/mode-rust.js +27 -63
  114. data/vendor/assets/javascripts/ace/mode-sass.js +75 -106
  115. data/vendor/assets/javascripts/ace/mode-scad.js +219 -220
  116. data/vendor/assets/javascripts/ace/mode-scala.js +311 -243
  117. data/vendor/assets/javascripts/ace/mode-scheme.js +24 -60
  118. data/vendor/assets/javascripts/ace/mode-scss.js +250 -251
  119. data/vendor/assets/javascripts/ace/mode-sh.js +506 -118
  120. data/vendor/assets/javascripts/ace/mode-sjs.js +314 -280
  121. data/vendor/assets/javascripts/ace/mode-smarty.js +2474 -0
  122. data/vendor/assets/javascripts/ace/mode-snippets.js +89 -89
  123. data/vendor/assets/javascripts/ace/mode-soy_template.js +792 -811
  124. data/vendor/assets/javascripts/ace/mode-space.js +22 -23
  125. data/vendor/assets/javascripts/ace/mode-sql.js +31 -58
  126. data/vendor/assets/javascripts/ace/mode-stylus.js +161 -197
  127. data/vendor/assets/javascripts/ace/mode-svg.js +906 -836
  128. data/vendor/assets/javascripts/ace/mode-tcl.js +61 -92
  129. data/vendor/assets/javascripts/ace/mode-tex.js +36 -73
  130. data/vendor/assets/javascripts/ace/mode-text.js +1 -0
  131. data/vendor/assets/javascripts/ace/mode-textile.js +41 -72
  132. data/vendor/assets/javascripts/ace/mode-toml.js +26 -62
  133. data/vendor/assets/javascripts/ace/mode-twig.js +1196 -892
  134. data/vendor/assets/javascripts/ace/mode-typescript.js +313 -277
  135. data/vendor/assets/javascripts/ace/mode-vala.js +982 -0
  136. data/vendor/assets/javascripts/ace/mode-vbscript.js +25 -62
  137. data/vendor/assets/javascripts/ace/mode-velocity.js +2251 -1242
  138. data/vendor/assets/javascripts/ace/mode-verilog.js +27 -59
  139. data/vendor/assets/javascripts/ace/mode-vhdl.js +26 -55
  140. data/vendor/assets/javascripts/ace/mode-xml.js +319 -644
  141. data/vendor/assets/javascripts/ace/mode-xquery.js +2503 -588
  142. data/vendor/assets/javascripts/ace/mode-yaml.js +56 -90
  143. data/vendor/assets/javascripts/ace/snippets/abap.js +7 -0
  144. data/vendor/assets/javascripts/ace/snippets/actionscript.js +159 -0
  145. data/vendor/assets/javascripts/ace/snippets/ada.js +7 -0
  146. data/vendor/assets/javascripts/ace/snippets/apache_conf.js +7 -0
  147. data/vendor/assets/javascripts/ace/snippets/applescript.js +7 -0
  148. data/vendor/assets/javascripts/ace/snippets/asciidoc.js +7 -0
  149. data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +7 -0
  150. data/vendor/assets/javascripts/ace/snippets/autohotkey.js +7 -0
  151. data/vendor/assets/javascripts/ace/snippets/batchfile.js +7 -0
  152. data/vendor/assets/javascripts/ace/snippets/c9search.js +7 -0
  153. data/vendor/assets/javascripts/ace/snippets/c_cpp.js +138 -0
  154. data/vendor/assets/javascripts/ace/snippets/cirru.js +7 -0
  155. data/vendor/assets/javascripts/ace/snippets/clojure.js +97 -0
  156. data/vendor/assets/javascripts/ace/snippets/cobol.js +7 -0
  157. data/vendor/assets/javascripts/ace/snippets/coffee.js +102 -0
  158. data/vendor/assets/javascripts/ace/snippets/coldfusion.js +7 -0
  159. data/vendor/assets/javascripts/ace/snippets/csharp.js +7 -0
  160. data/vendor/assets/javascripts/ace/snippets/css.js +974 -0
  161. data/vendor/assets/javascripts/ace/snippets/curly.js +7 -0
  162. data/vendor/assets/javascripts/ace/snippets/d.js +7 -0
  163. data/vendor/assets/javascripts/ace/snippets/dart.js +90 -0
  164. data/vendor/assets/javascripts/ace/snippets/diff.js +18 -0
  165. data/vendor/assets/javascripts/ace/snippets/django.js +115 -0
  166. data/vendor/assets/javascripts/ace/snippets/dockerfile.js +7 -0
  167. data/vendor/assets/javascripts/ace/snippets/dot.js +7 -0
  168. data/vendor/assets/javascripts/ace/snippets/eiffel.js +7 -0
  169. data/vendor/assets/javascripts/ace/snippets/ejs.js +7 -0
  170. data/vendor/assets/javascripts/ace/snippets/erlang.js +167 -0
  171. data/vendor/assets/javascripts/ace/snippets/forth.js +7 -0
  172. data/vendor/assets/javascripts/ace/snippets/ftl.js +7 -0
  173. data/vendor/assets/javascripts/ace/snippets/gcode.js +7 -0
  174. data/vendor/assets/javascripts/ace/snippets/gherkin.js +7 -0
  175. data/vendor/assets/javascripts/ace/snippets/gitignore.js +7 -0
  176. data/vendor/assets/javascripts/ace/snippets/glsl.js +7 -0
  177. data/vendor/assets/javascripts/ace/snippets/golang.js +7 -0
  178. data/vendor/assets/javascripts/ace/snippets/groovy.js +7 -0
  179. data/vendor/assets/javascripts/ace/snippets/haml.js +27 -0
  180. data/vendor/assets/javascripts/ace/snippets/handlebars.js +7 -0
  181. data/vendor/assets/javascripts/ace/snippets/haskell.js +89 -0
  182. data/vendor/assets/javascripts/ace/snippets/haxe.js +7 -0
  183. data/vendor/assets/javascripts/ace/snippets/html.js +835 -0
  184. data/vendor/assets/javascripts/ace/snippets/html_ruby.js +7 -0
  185. data/vendor/assets/javascripts/ace/snippets/ini.js +7 -0
  186. data/vendor/assets/javascripts/ace/snippets/io.js +69 -0
  187. data/vendor/assets/javascripts/ace/snippets/jack.js +7 -0
  188. data/vendor/assets/javascripts/ace/snippets/jade.js +7 -0
  189. data/vendor/assets/javascripts/ace/snippets/java.js +241 -0
  190. data/vendor/assets/javascripts/ace/snippets/javascript.js +189 -0
  191. data/vendor/assets/javascripts/ace/snippets/json.js +7 -0
  192. data/vendor/assets/javascripts/ace/snippets/jsoniq.js +68 -0
  193. data/vendor/assets/javascripts/ace/snippets/jsp.js +106 -0
  194. data/vendor/assets/javascripts/ace/snippets/jsx.js +7 -0
  195. data/vendor/assets/javascripts/ace/snippets/julia.js +7 -0
  196. data/vendor/assets/javascripts/ace/snippets/latex.js +7 -0
  197. data/vendor/assets/javascripts/ace/snippets/less.js +7 -0
  198. data/vendor/assets/javascripts/ace/snippets/liquid.js +7 -0
  199. data/vendor/assets/javascripts/ace/snippets/lisp.js +7 -0
  200. data/vendor/assets/javascripts/ace/snippets/livescript.js +7 -0
  201. data/vendor/assets/javascripts/ace/snippets/logiql.js +7 -0
  202. data/vendor/assets/javascripts/ace/snippets/lsl.js +1073 -0
  203. data/vendor/assets/javascripts/ace/snippets/lua.js +28 -0
  204. data/vendor/assets/javascripts/ace/snippets/luapage.js +7 -0
  205. data/vendor/assets/javascripts/ace/snippets/lucene.js +7 -0
  206. data/vendor/assets/javascripts/ace/snippets/makefile.js +11 -0
  207. data/vendor/assets/javascripts/ace/snippets/markdown.js +95 -0
  208. data/vendor/assets/javascripts/ace/snippets/matlab.js +7 -0
  209. data/vendor/assets/javascripts/ace/snippets/mel.js +7 -0
  210. data/vendor/assets/javascripts/ace/snippets/mushcode.js +7 -0
  211. data/vendor/assets/javascripts/ace/snippets/mysql.js +7 -0
  212. data/vendor/assets/javascripts/ace/snippets/nix.js +7 -0
  213. data/vendor/assets/javascripts/ace/snippets/objectivec.js +7 -0
  214. data/vendor/assets/javascripts/ace/snippets/ocaml.js +7 -0
  215. data/vendor/assets/javascripts/ace/snippets/pascal.js +7 -0
  216. data/vendor/assets/javascripts/ace/snippets/perl.js +354 -0
  217. data/vendor/assets/javascripts/ace/snippets/pgsql.js +7 -0
  218. data/vendor/assets/javascripts/ace/snippets/php.js +283 -0
  219. data/vendor/assets/javascripts/ace/snippets/plain_text.js +7 -0
  220. data/vendor/assets/javascripts/ace/snippets/powershell.js +7 -0
  221. data/vendor/assets/javascripts/ace/snippets/praat.js +7 -0
  222. data/vendor/assets/javascripts/ace/snippets/prolog.js +7 -0
  223. data/vendor/assets/javascripts/ace/snippets/properties.js +7 -0
  224. data/vendor/assets/javascripts/ace/snippets/protobuf.js +7 -0
  225. data/vendor/assets/javascripts/ace/snippets/python.js +165 -0
  226. data/vendor/assets/javascripts/ace/snippets/r.js +128 -0
  227. data/vendor/assets/javascripts/ace/snippets/rdoc.js +7 -0
  228. data/vendor/assets/javascripts/ace/snippets/rhtml.js +7 -0
  229. data/vendor/assets/javascripts/ace/snippets/ruby.js +935 -0
  230. data/vendor/assets/javascripts/ace/snippets/rust.js +7 -0
  231. data/vendor/assets/javascripts/ace/snippets/sass.js +7 -0
  232. data/vendor/assets/javascripts/ace/snippets/scad.js +7 -0
  233. data/vendor/assets/javascripts/ace/snippets/scala.js +7 -0
  234. data/vendor/assets/javascripts/ace/snippets/scheme.js +7 -0
  235. data/vendor/assets/javascripts/ace/snippets/scss.js +7 -0
  236. data/vendor/assets/javascripts/ace/snippets/sh.js +90 -0
  237. data/vendor/assets/javascripts/ace/snippets/sjs.js +7 -0
  238. data/vendor/assets/javascripts/ace/snippets/smarty.js +7 -0
  239. data/vendor/assets/javascripts/ace/snippets/snippets.js +16 -0
  240. data/vendor/assets/javascripts/ace/snippets/soy_template.js +7 -0
  241. data/vendor/assets/javascripts/ace/snippets/space.js +7 -0
  242. data/vendor/assets/javascripts/ace/snippets/sql.js +33 -0
  243. data/vendor/assets/javascripts/ace/snippets/stylus.js +7 -0
  244. data/vendor/assets/javascripts/ace/snippets/svg.js +7 -0
  245. data/vendor/assets/javascripts/ace/snippets/tcl.js +99 -0
  246. data/vendor/assets/javascripts/ace/snippets/tex.js +197 -0
  247. data/vendor/assets/javascripts/ace/snippets/text.js +7 -0
  248. data/vendor/assets/javascripts/ace/snippets/textile.js +37 -0
  249. data/vendor/assets/javascripts/ace/snippets/toml.js +7 -0
  250. data/vendor/assets/javascripts/ace/snippets/twig.js +7 -0
  251. data/vendor/assets/javascripts/ace/snippets/typescript.js +7 -0
  252. data/vendor/assets/javascripts/ace/snippets/vala.js +193 -0
  253. data/vendor/assets/javascripts/ace/snippets/vbscript.js +7 -0
  254. data/vendor/assets/javascripts/ace/snippets/velocity.js +36 -0
  255. data/vendor/assets/javascripts/ace/snippets/verilog.js +7 -0
  256. data/vendor/assets/javascripts/ace/snippets/vhdl.js +7 -0
  257. data/vendor/assets/javascripts/ace/snippets/xml.js +7 -0
  258. data/vendor/assets/javascripts/ace/snippets/xquery.js +68 -0
  259. data/vendor/assets/javascripts/ace/snippets/yaml.js +7 -0
  260. data/vendor/assets/javascripts/ace/theme-ambiance.js +4 -24
  261. data/vendor/assets/javascripts/ace/theme-chaos.js +2 -25
  262. data/vendor/assets/javascripts/ace/theme-chrome.js +2 -31
  263. data/vendor/assets/javascripts/ace/theme-clouds.js +1 -31
  264. data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +1 -31
  265. data/vendor/assets/javascripts/ace/theme-cobalt.js +1 -31
  266. data/vendor/assets/javascripts/ace/theme-crimson_editor.js +1 -31
  267. data/vendor/assets/javascripts/ace/theme-dawn.js +1 -31
  268. data/vendor/assets/javascripts/ace/theme-dreamweaver.js +5 -31
  269. data/vendor/assets/javascripts/ace/theme-eclipse.js +7 -33
  270. data/vendor/assets/javascripts/ace/theme-github.js +2 -35
  271. data/vendor/assets/javascripts/ace/theme-idle_fingers.js +1 -31
  272. data/vendor/assets/javascripts/ace/theme-katzenmilch.js +119 -0
  273. data/vendor/assets/javascripts/ace/theme-kr.js +1 -31
  274. data/vendor/assets/javascripts/ace/theme-kr_theme.js +57 -141
  275. data/vendor/assets/javascripts/ace/theme-kuroir.js +59 -0
  276. data/vendor/assets/javascripts/ace/theme-merbivore.js +1 -31
  277. data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +1 -31
  278. data/vendor/assets/javascripts/ace/theme-mono_industrial.js +1 -31
  279. data/vendor/assets/javascripts/ace/theme-monokai.js +1 -31
  280. data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +1 -31
  281. data/vendor/assets/javascripts/ace/theme-solarized_dark.js +1 -31
  282. data/vendor/assets/javascripts/ace/theme-solarized_light.js +1 -31
  283. data/vendor/assets/javascripts/ace/theme-terminal.js +1 -31
  284. data/vendor/assets/javascripts/ace/theme-textmate.js +3 -32
  285. data/vendor/assets/javascripts/ace/theme-tomorrow.js +1 -31
  286. data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +1 -31
  287. data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +1 -31
  288. data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +1 -31
  289. data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +1 -31
  290. data/vendor/assets/javascripts/ace/theme-twilight.js +1 -31
  291. data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +1 -31
  292. data/vendor/assets/javascripts/ace/theme-xcode.js +2 -33
  293. data/vendor/assets/javascripts/ace/worker-coffee.js +5026 -5008
  294. data/vendor/assets/javascripts/ace/worker-css.js +5489 -5134
  295. data/vendor/assets/javascripts/ace/worker-html.js +11517 -0
  296. data/vendor/assets/javascripts/ace/worker-javascript.js +9810 -9501
  297. data/vendor/assets/javascripts/ace/worker-json.js +1583 -1564
  298. data/vendor/assets/javascripts/ace/worker-lua.js +2631 -2612
  299. data/vendor/assets/javascripts/ace/worker-php.js +2385 -2341
  300. data/vendor/assets/javascripts/ace/worker-xquery.js +31643 -3993
  301. metadata +147 -11
@@ -1,60 +1,48 @@
1
- define('ace/mode/golang', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/golang_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
1
+ define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2
+ "use strict";
2
3
 
3
4
  var oop = require("../lib/oop");
4
- var TextMode = require("./text").Mode;
5
- var Tokenizer = require("../tokenizer").Tokenizer;
6
- var GolangHighlightRules = require("./golang_highlight_rules").GolangHighlightRules;
7
- var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8
- var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
9
- var CStyleFoldMode = require("./folding/cstyle").FoldMode;
10
-
11
- var Mode = function() {
12
- this.HighlightRules = GolangHighlightRules;
13
- this.$outdent = new MatchingBraceOutdent();
14
- this.foldingRules = new CStyleFoldMode();
15
- };
16
- oop.inherits(Mode, TextMode);
17
-
18
- (function() {
19
-
20
- this.lineCommentStart = "//";
21
- this.blockComment = {start: "/*", end: "*/"};
22
-
23
- this.getNextLineIndent = function(state, line, tab) {
24
- var indent = this.$getIndent(line);
5
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
25
6
 
26
- var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
27
- var tokens = tokenizedLine.tokens;
28
- var endState = tokenizedLine.state;
7
+ var DocCommentHighlightRules = function() {
29
8
 
30
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
31
- return indent;
32
- }
33
-
34
- if (state == "start") {
35
- var match = line.match(/^.*[\{\(\[]\s*$/);
36
- if (match) {
37
- indent += tab;
38
- }
39
- }
9
+ this.$rules = {
10
+ "start" : [ {
11
+ token : "comment.doc.tag",
12
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
13
+ }, {
14
+ token : "comment.doc.tag",
15
+ regex : "\\bTODO\\b"
16
+ }, {
17
+ defaultToken : "comment.doc"
18
+ }]
19
+ };
20
+ };
40
21
 
41
- return indent;
42
- };//end getNextLineIndent
22
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
43
23
 
44
- this.checkOutdent = function(state, line, input) {
45
- return this.$outdent.checkOutdent(line, input);
24
+ DocCommentHighlightRules.getStartRule = function(start) {
25
+ return {
26
+ token : "comment.doc", // doc comment
27
+ regex : "\\/\\*(?=\\*)",
28
+ next : start
46
29
  };
30
+ };
47
31
 
48
- this.autoOutdent = function(state, doc, row) {
49
- this.$outdent.autoOutdent(doc, row);
32
+ DocCommentHighlightRules.getEndRule = function (start) {
33
+ return {
34
+ token : "comment.doc", // closing comment
35
+ regex : "\\*\\/",
36
+ next : start
50
37
  };
38
+ };
51
39
 
52
- this.$id = "ace/mode/golang";
53
- }).call(Mode.prototype);
54
40
 
55
- exports.Mode = Mode;
41
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
42
+
56
43
  });
57
- define('ace/mode/golang_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
44
+
45
+ define("ace/mode/golang_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
58
46
  var oop = require("../lib/oop");
59
47
  var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
60
48
  var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
@@ -128,9 +116,6 @@ define('ace/mode/golang_highlight_rules', ['require', 'exports', 'module' , 'ace
128
116
  }, {
129
117
  token : "paren.rparen",
130
118
  regex : "[\\])}]"
131
- }, {
132
- token: "invalid",
133
- regex: "\\s+$"
134
119
  }, {
135
120
  token : "text",
136
121
  regex : "\\s+"
@@ -166,52 +151,8 @@ define('ace/mode/golang_highlight_rules', ['require', 'exports', 'module' , 'ace
166
151
  exports.GolangHighlightRules = GolangHighlightRules;
167
152
  });
168
153
 
169
- define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
170
-
171
-
172
- var oop = require("../lib/oop");
173
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
174
-
175
- var DocCommentHighlightRules = function() {
176
-
177
- this.$rules = {
178
- "start" : [ {
179
- token : "comment.doc.tag",
180
- regex : "@[\\w\\d_]+" // TODO: fix email addresses
181
- }, {
182
- token : "comment.doc.tag",
183
- regex : "\\bTODO\\b"
184
- }, {
185
- defaultToken : "comment.doc"
186
- }]
187
- };
188
- };
189
-
190
- oop.inherits(DocCommentHighlightRules, TextHighlightRules);
191
-
192
- DocCommentHighlightRules.getStartRule = function(start) {
193
- return {
194
- token : "comment.doc", // doc comment
195
- regex : "\\/\\*(?=\\*)",
196
- next : start
197
- };
198
- };
199
-
200
- DocCommentHighlightRules.getEndRule = function (start) {
201
- return {
202
- token : "comment.doc", // closing comment
203
- regex : "\\*\\/",
204
- next : start
205
- };
206
- };
207
-
208
-
209
- exports.DocCommentHighlightRules = DocCommentHighlightRules;
210
-
211
- });
212
-
213
- define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
214
-
154
+ define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
155
+ "use strict";
215
156
 
216
157
  var Range = require("../range").Range;
217
158
 
@@ -250,8 +191,8 @@ var MatchingBraceOutdent = function() {};
250
191
  exports.MatchingBraceOutdent = MatchingBraceOutdent;
251
192
  });
252
193
 
253
- define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
254
-
194
+ define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"], function(require, exports, module) {
195
+ "use strict";
255
196
 
256
197
  var oop = require("../../lib/oop");
257
198
  var Behaviour = require("../behaviour").Behaviour;
@@ -263,83 +204,34 @@ var SAFE_INSERT_IN_TOKENS =
263
204
  var SAFE_INSERT_BEFORE_TOKENS =
264
205
  ["text", "paren.rparen", "punctuation.operator", "comment"];
265
206
 
266
-
267
- var autoInsertedBrackets = 0;
268
- var autoInsertedRow = -1;
269
- var autoInsertedLineEnd = "";
270
- var maybeInsertedBrackets = 0;
271
- var maybeInsertedRow = -1;
272
- var maybeInsertedLineStart = "";
273
- var maybeInsertedLineEnd = "";
274
-
275
- var CstyleBehaviour = function () {
276
-
277
- CstyleBehaviour.isSaneInsertion = function(editor, session) {
278
- var cursor = editor.getCursorPosition();
279
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
280
- if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
281
- var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
282
- if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
283
- return false;
284
- }
285
- iterator.stepForward();
286
- return iterator.getCurrentTokenRow() !== cursor.row ||
287
- this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
288
- };
289
-
290
- CstyleBehaviour.$matchTokenType = function(token, types) {
291
- return types.indexOf(token.type || token) > -1;
292
- };
293
-
294
- CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
295
- var cursor = editor.getCursorPosition();
296
- var line = session.doc.getLine(cursor.row);
297
- if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
298
- autoInsertedBrackets = 0;
299
- autoInsertedRow = cursor.row;
300
- autoInsertedLineEnd = bracket + line.substr(cursor.column);
301
- autoInsertedBrackets++;
302
- };
303
-
304
- CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
305
- var cursor = editor.getCursorPosition();
306
- var line = session.doc.getLine(cursor.row);
307
- if (!this.isMaybeInsertedClosing(cursor, line))
308
- maybeInsertedBrackets = 0;
309
- maybeInsertedRow = cursor.row;
310
- maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
311
- maybeInsertedLineEnd = line.substr(cursor.column);
312
- maybeInsertedBrackets++;
313
- };
314
-
315
- CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
316
- return autoInsertedBrackets > 0 &&
317
- cursor.row === autoInsertedRow &&
318
- bracket === autoInsertedLineEnd[0] &&
319
- line.substr(cursor.column) === autoInsertedLineEnd;
320
- };
321
-
322
- CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
323
- return maybeInsertedBrackets > 0 &&
324
- cursor.row === maybeInsertedRow &&
325
- line.substr(cursor.column) === maybeInsertedLineEnd &&
326
- line.substr(0, cursor.column) == maybeInsertedLineStart;
327
- };
328
-
329
- CstyleBehaviour.popAutoInsertedClosing = function() {
330
- autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
331
- autoInsertedBrackets--;
332
- };
333
-
334
- CstyleBehaviour.clearMaybeInsertedClosing = function() {
335
- maybeInsertedBrackets = 0;
336
- maybeInsertedRow = -1;
207
+ var context;
208
+ var contextCache = {}
209
+ var initContext = function(editor) {
210
+ var id = -1;
211
+ if (editor.multiSelect) {
212
+ id = editor.selection.id;
213
+ if (contextCache.rangeCount != editor.multiSelect.rangeCount)
214
+ contextCache = {rangeCount: editor.multiSelect.rangeCount};
215
+ }
216
+ if (contextCache[id])
217
+ return context = contextCache[id];
218
+ context = contextCache[id] = {
219
+ autoInsertedBrackets: 0,
220
+ autoInsertedRow: -1,
221
+ autoInsertedLineEnd: "",
222
+ maybeInsertedBrackets: 0,
223
+ maybeInsertedRow: -1,
224
+ maybeInsertedLineStart: "",
225
+ maybeInsertedLineEnd: ""
337
226
  };
227
+ };
338
228
 
339
- this.add("braces", "insertion", function (state, action, editor, session, text) {
229
+ var CstyleBehaviour = function() {
230
+ this.add("braces", "insertion", function(state, action, editor, session, text) {
340
231
  var cursor = editor.getCursorPosition();
341
232
  var line = session.doc.getLine(cursor.row);
342
233
  if (text == '{') {
234
+ initContext(editor);
343
235
  var selection = editor.getSelectionRange();
344
236
  var selected = session.doc.getTextRange(selection);
345
237
  if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
@@ -363,6 +255,7 @@ var CstyleBehaviour = function () {
363
255
  }
364
256
  }
365
257
  } else if (text == '}') {
258
+ initContext(editor);
366
259
  var rightChar = line.substring(cursor.column, cursor.column + 1);
367
260
  if (rightChar == '}') {
368
261
  var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
@@ -375,9 +268,10 @@ var CstyleBehaviour = function () {
375
268
  }
376
269
  }
377
270
  } else if (text == "\n" || text == "\r\n") {
271
+ initContext(editor);
378
272
  var closing = "";
379
273
  if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
380
- closing = lang.stringRepeat("}", maybeInsertedBrackets);
274
+ closing = lang.stringRepeat("}", context.maybeInsertedBrackets);
381
275
  CstyleBehaviour.clearMaybeInsertedClosing();
382
276
  }
383
277
  var rightChar = line.substring(cursor.column, cursor.column + 1);
@@ -389,6 +283,7 @@ var CstyleBehaviour = function () {
389
283
  } else if (closing) {
390
284
  var next_indent = this.$getIndent(line);
391
285
  } else {
286
+ CstyleBehaviour.clearMaybeInsertedClosing();
392
287
  return;
393
288
  }
394
289
  var indent = next_indent + session.getTabString();
@@ -402,22 +297,24 @@ var CstyleBehaviour = function () {
402
297
  }
403
298
  });
404
299
 
405
- this.add("braces", "deletion", function (state, action, editor, session, range) {
300
+ this.add("braces", "deletion", function(state, action, editor, session, range) {
406
301
  var selected = session.doc.getTextRange(range);
407
302
  if (!range.isMultiLine() && selected == '{') {
303
+ initContext(editor);
408
304
  var line = session.doc.getLine(range.start.row);
409
305
  var rightChar = line.substring(range.end.column, range.end.column + 1);
410
306
  if (rightChar == '}') {
411
307
  range.end.column++;
412
308
  return range;
413
309
  } else {
414
- maybeInsertedBrackets--;
310
+ context.maybeInsertedBrackets--;
415
311
  }
416
312
  }
417
313
  });
418
314
 
419
- this.add("parens", "insertion", function (state, action, editor, session, text) {
315
+ this.add("parens", "insertion", function(state, action, editor, session, text) {
420
316
  if (text == '(') {
317
+ initContext(editor);
421
318
  var selection = editor.getSelectionRange();
422
319
  var selected = session.doc.getTextRange(selection);
423
320
  if (selected !== "" && editor.getWrapBehavioursEnabled()) {
@@ -433,6 +330,7 @@ var CstyleBehaviour = function () {
433
330
  };
434
331
  }
435
332
  } else if (text == ')') {
333
+ initContext(editor);
436
334
  var cursor = editor.getCursorPosition();
437
335
  var line = session.doc.getLine(cursor.row);
438
336
  var rightChar = line.substring(cursor.column, cursor.column + 1);
@@ -449,9 +347,10 @@ var CstyleBehaviour = function () {
449
347
  }
450
348
  });
451
349
 
452
- this.add("parens", "deletion", function (state, action, editor, session, range) {
350
+ this.add("parens", "deletion", function(state, action, editor, session, range) {
453
351
  var selected = session.doc.getTextRange(range);
454
352
  if (!range.isMultiLine() && selected == '(') {
353
+ initContext(editor);
455
354
  var line = session.doc.getLine(range.start.row);
456
355
  var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
457
356
  if (rightChar == ')') {
@@ -461,8 +360,9 @@ var CstyleBehaviour = function () {
461
360
  }
462
361
  });
463
362
 
464
- this.add("brackets", "insertion", function (state, action, editor, session, text) {
363
+ this.add("brackets", "insertion", function(state, action, editor, session, text) {
465
364
  if (text == '[') {
365
+ initContext(editor);
466
366
  var selection = editor.getSelectionRange();
467
367
  var selected = session.doc.getTextRange(selection);
468
368
  if (selected !== "" && editor.getWrapBehavioursEnabled()) {
@@ -478,6 +378,7 @@ var CstyleBehaviour = function () {
478
378
  };
479
379
  }
480
380
  } else if (text == ']') {
381
+ initContext(editor);
481
382
  var cursor = editor.getCursorPosition();
482
383
  var line = session.doc.getLine(cursor.row);
483
384
  var rightChar = line.substring(cursor.column, cursor.column + 1);
@@ -494,9 +395,10 @@ var CstyleBehaviour = function () {
494
395
  }
495
396
  });
496
397
 
497
- this.add("brackets", "deletion", function (state, action, editor, session, range) {
398
+ this.add("brackets", "deletion", function(state, action, editor, session, range) {
498
399
  var selected = session.doc.getTextRange(range);
499
400
  if (!range.isMultiLine() && selected == '[') {
401
+ initContext(editor);
500
402
  var line = session.doc.getLine(range.start.row);
501
403
  var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
502
404
  if (rightChar == ']') {
@@ -506,8 +408,9 @@ var CstyleBehaviour = function () {
506
408
  }
507
409
  });
508
410
 
509
- this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
411
+ this.add("string_dquotes", "insertion", function(state, action, editor, session, text) {
510
412
  if (text == '"' || text == "'") {
413
+ initContext(editor);
511
414
  var quote = text;
512
415
  var selection = editor.getSelectionRange();
513
416
  var selected = session.doc.getTextRange(selection);
@@ -559,9 +462,10 @@ var CstyleBehaviour = function () {
559
462
  }
560
463
  });
561
464
 
562
- this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
465
+ this.add("string_dquotes", "deletion", function(state, action, editor, session, range) {
563
466
  var selected = session.doc.getTextRange(range);
564
467
  if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
468
+ initContext(editor);
565
469
  var line = session.doc.getLine(range.start.row);
566
470
  var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
567
471
  if (rightChar == selected) {
@@ -573,13 +477,80 @@ var CstyleBehaviour = function () {
573
477
 
574
478
  };
575
479
 
480
+
481
+ CstyleBehaviour.isSaneInsertion = function(editor, session) {
482
+ var cursor = editor.getCursorPosition();
483
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
484
+ if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
485
+ var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
486
+ if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
487
+ return false;
488
+ }
489
+ iterator.stepForward();
490
+ return iterator.getCurrentTokenRow() !== cursor.row ||
491
+ this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
492
+ };
493
+
494
+ CstyleBehaviour.$matchTokenType = function(token, types) {
495
+ return types.indexOf(token.type || token) > -1;
496
+ };
497
+
498
+ CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
499
+ var cursor = editor.getCursorPosition();
500
+ var line = session.doc.getLine(cursor.row);
501
+ if (!this.isAutoInsertedClosing(cursor, line, context.autoInsertedLineEnd[0]))
502
+ context.autoInsertedBrackets = 0;
503
+ context.autoInsertedRow = cursor.row;
504
+ context.autoInsertedLineEnd = bracket + line.substr(cursor.column);
505
+ context.autoInsertedBrackets++;
506
+ };
507
+
508
+ CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
509
+ var cursor = editor.getCursorPosition();
510
+ var line = session.doc.getLine(cursor.row);
511
+ if (!this.isMaybeInsertedClosing(cursor, line))
512
+ context.maybeInsertedBrackets = 0;
513
+ context.maybeInsertedRow = cursor.row;
514
+ context.maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
515
+ context.maybeInsertedLineEnd = line.substr(cursor.column);
516
+ context.maybeInsertedBrackets++;
517
+ };
518
+
519
+ CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
520
+ return context.autoInsertedBrackets > 0 &&
521
+ cursor.row === context.autoInsertedRow &&
522
+ bracket === context.autoInsertedLineEnd[0] &&
523
+ line.substr(cursor.column) === context.autoInsertedLineEnd;
524
+ };
525
+
526
+ CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
527
+ return context.maybeInsertedBrackets > 0 &&
528
+ cursor.row === context.maybeInsertedRow &&
529
+ line.substr(cursor.column) === context.maybeInsertedLineEnd &&
530
+ line.substr(0, cursor.column) == context.maybeInsertedLineStart;
531
+ };
532
+
533
+ CstyleBehaviour.popAutoInsertedClosing = function() {
534
+ context.autoInsertedLineEnd = context.autoInsertedLineEnd.substr(1);
535
+ context.autoInsertedBrackets--;
536
+ };
537
+
538
+ CstyleBehaviour.clearMaybeInsertedClosing = function() {
539
+ if (context) {
540
+ context.maybeInsertedBrackets = 0;
541
+ context.maybeInsertedRow = -1;
542
+ }
543
+ };
544
+
545
+
546
+
576
547
  oop.inherits(CstyleBehaviour, Behaviour);
577
548
 
578
549
  exports.CstyleBehaviour = CstyleBehaviour;
579
550
  });
580
551
 
581
- define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
582
-
552
+ define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
553
+ "use strict";
583
554
 
584
555
  var oop = require("../../lib/oop");
585
556
  var Range = require("../../range").Range;
@@ -672,3 +643,59 @@ oop.inherits(FoldMode, BaseFoldMode);
672
643
  }).call(FoldMode.prototype);
673
644
 
674
645
  });
646
+
647
+ define("ace/mode/golang",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/golang_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {
648
+
649
+ var oop = require("../lib/oop");
650
+ var TextMode = require("./text").Mode;
651
+ var GolangHighlightRules = require("./golang_highlight_rules").GolangHighlightRules;
652
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
653
+ var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
654
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
655
+
656
+ var Mode = function() {
657
+ this.HighlightRules = GolangHighlightRules;
658
+ this.$outdent = new MatchingBraceOutdent();
659
+ this.foldingRules = new CStyleFoldMode();
660
+ };
661
+ oop.inherits(Mode, TextMode);
662
+
663
+ (function() {
664
+
665
+ this.lineCommentStart = "//";
666
+ this.blockComment = {start: "/*", end: "*/"};
667
+
668
+ this.getNextLineIndent = function(state, line, tab) {
669
+ var indent = this.$getIndent(line);
670
+
671
+ var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
672
+ var tokens = tokenizedLine.tokens;
673
+ var endState = tokenizedLine.state;
674
+
675
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
676
+ return indent;
677
+ }
678
+
679
+ if (state == "start") {
680
+ var match = line.match(/^.*[\{\(\[]\s*$/);
681
+ if (match) {
682
+ indent += tab;
683
+ }
684
+ }
685
+
686
+ return indent;
687
+ };//end getNextLineIndent
688
+
689
+ this.checkOutdent = function(state, line, input) {
690
+ return this.$outdent.checkOutdent(line, input);
691
+ };
692
+
693
+ this.autoOutdent = function(state, doc, row) {
694
+ this.$outdent.autoOutdent(doc, row);
695
+ };
696
+
697
+ this.$id = "ace/mode/golang";
698
+ }).call(Mode.prototype);
699
+
700
+ exports.Mode = Mode;
701
+ });