jquery-ace-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. data/README.md +36 -0
  2. data/lib/jquery-ace-rails.rb +5 -0
  3. data/lib/jquery-ace-rails/engine.rb +4 -0
  4. data/lib/jquery-ace-rails/version.rb +3 -0
  5. data/vendor/assets/javascripts/jquery-ace/jquery-ace.coffee +126 -0
  6. data/vendor/assets/javascripts/jquery-ace/jquery-ace.js +195 -0
  7. data/vendor/assets/javascripts/jquery-ace/jquery-ace.min.js +1 -0
  8. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ace.js +11 -0
  9. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ext-static_highlight.js +1 -0
  10. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/ext-textarea.js +1 -0
  11. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/keybinding-emacs.js +1 -0
  12. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/keybinding-vim.js +1 -0
  13. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-abap.js +1 -0
  14. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-asciidoc.js +1 -0
  15. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-c9search.js +1 -0
  16. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-c_cpp.js +1 -0
  17. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-clojure.js +1 -0
  18. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-coffee.js +1 -0
  19. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-coldfusion.js +1 -0
  20. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-csharp.js +1 -0
  21. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-css.js +1 -0
  22. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-dart.js +1 -0
  23. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-diff.js +1 -0
  24. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-dot.js +1 -0
  25. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-glsl.js +1 -0
  26. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-golang.js +1 -0
  27. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-groovy.js +1 -0
  28. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-haml.js +1 -0
  29. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-haxe.js +1 -0
  30. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-html.js +1 -0
  31. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jade.js +1 -0
  32. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-java.js +1 -0
  33. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-javascript.js +1 -0
  34. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-json.js +1 -0
  35. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jsp.js +1 -0
  36. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-jsx.js +1 -0
  37. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-latex.js +1 -0
  38. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-less.js +1 -0
  39. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-liquid.js +1 -0
  40. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lisp.js +1 -0
  41. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lua.js +1 -0
  42. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-luapage.js +1 -0
  43. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-lucene.js +1 -0
  44. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-makefile.js +1 -0
  45. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-markdown.js +1 -0
  46. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-objectivec.js +1 -0
  47. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-ocaml.js +1 -0
  48. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-perl.js +1 -0
  49. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-pgsql.js +1 -0
  50. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-php.js +1 -0
  51. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-powershell.js +1 -0
  52. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-python.js +1 -0
  53. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-r.js +1 -0
  54. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-rdoc.js +1 -0
  55. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-rhtml.js +1 -0
  56. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-ruby.js +1 -0
  57. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scad.js +1 -0
  58. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scala.js +1 -0
  59. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-scss.js +1 -0
  60. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-sh.js +1 -0
  61. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-sql.js +1 -0
  62. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-stylus.js +1 -0
  63. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-svg.js +1 -0
  64. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-tcl.js +1 -0
  65. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-tex.js +1 -0
  66. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-text.js +0 -0
  67. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-textile.js +1 -0
  68. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-typescript.js +1 -0
  69. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-xml.js +1 -0
  70. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-xquery.js +1 -0
  71. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/mode-yaml.js +1 -0
  72. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-ambiance.js +1 -0
  73. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-chaos.js +1 -0
  74. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-chrome.js +1 -0
  75. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-clouds.js +1 -0
  76. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-clouds_midnight.js +1 -0
  77. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-cobalt.js +1 -0
  78. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-crimson_editor.js +1 -0
  79. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-dawn.js +1 -0
  80. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-dreamweaver.js +1 -0
  81. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-eclipse.js +1 -0
  82. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-github.js +1 -0
  83. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-idle_fingers.js +1 -0
  84. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-kr.js +1 -0
  85. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-merbivore.js +1 -0
  86. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-merbivore_soft.js +1 -0
  87. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-mono_industrial.js +1 -0
  88. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-monokai.js +1 -0
  89. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-pastel_on_dark.js +1 -0
  90. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-solarized_dark.js +1 -0
  91. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-solarized_light.js +1 -0
  92. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-textmate.js +1 -0
  93. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow.js +1 -0
  94. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night.js +1 -0
  95. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_blue.js +1 -0
  96. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_bright.js +1 -0
  97. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-tomorrow_night_eighties.js +1 -0
  98. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-twilight.js +1 -0
  99. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-vibrant_ink.js +1 -0
  100. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/theme-xcode.js +1 -0
  101. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-coffee.js +1 -0
  102. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-css.js +1 -0
  103. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-javascript.js +1 -0
  104. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-json.js +1 -0
  105. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src-min-noconflict/worker-xquery.js +1 -0
  106. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ace.js +14262 -0
  107. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-static_highlight.js +96 -0
  108. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-textarea.js +591 -0
  109. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-emacs.js +364 -0
  110. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-vim.js +1646 -0
  111. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-abap.js +259 -0
  112. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-asciidoc.js +372 -0
  113. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c9search.js +187 -0
  114. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c_cpp.js +765 -0
  115. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-clojure.js +325 -0
  116. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coffee.js +520 -0
  117. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coldfusion.js +1725 -0
  118. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-csharp.js +605 -0
  119. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-css.js +680 -0
  120. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dart.js +279 -0
  121. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-diff.js +163 -0
  122. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dot.js +348 -0
  123. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-glsl.js +838 -0
  124. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-golang.js +660 -0
  125. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-groovy.js +1082 -0
  126. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haml.js +440 -0
  127. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haxe.js +610 -0
  128. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-html.js +1850 -0
  129. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jade.js +2035 -0
  130. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-java.js +1041 -0
  131. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-javascript.js +921 -0
  132. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-json.js +574 -0
  133. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsp.js +1371 -0
  134. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsx.js +635 -0
  135. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-latex.js +217 -0
  136. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-less.js +394 -0
  137. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-liquid.js +921 -0
  138. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lisp.js +142 -0
  139. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lua.js +609 -0
  140. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-luapage.js +2463 -0
  141. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lucene.js +64 -0
  142. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-makefile.js +314 -0
  143. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-markdown.js +2228 -0
  144. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-objectivec.js +655 -0
  145. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ocaml.js +448 -0
  146. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-perl.js +319 -0
  147. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-pgsql.js +928 -0
  148. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-php.js +2299 -0
  149. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-powershell.js +611 -0
  150. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-python.js +290 -0
  151. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-r.js +410 -0
  152. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rdoc.js +189 -0
  153. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rhtml.js +2138 -0
  154. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ruby.js +410 -0
  155. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scad.js +698 -0
  156. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scala.js +1070 -0
  157. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scss.js +416 -0
  158. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sh.js +232 -0
  159. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sql.js +145 -0
  160. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-stylus.js +474 -0
  161. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-svg.js +1490 -0
  162. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tcl.js +342 -0
  163. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tex.js +171 -0
  164. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-text.js +0 -0
  165. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-textile.js +175 -0
  166. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-typescript.js +1011 -0
  167. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xml.js +792 -0
  168. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xquery.js +676 -0
  169. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-yaml.js +298 -0
  170. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-ambiance.js +202 -0
  171. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chaos.js +167 -0
  172. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chrome.js +161 -0
  173. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds.js +135 -0
  174. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds_midnight.js +136 -0
  175. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-cobalt.js +150 -0
  176. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-crimson_editor.js +154 -0
  177. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dawn.js +146 -0
  178. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dreamweaver.js +173 -0
  179. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-eclipse.js +122 -0
  180. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-github.js +136 -0
  181. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-idle_fingers.js +136 -0
  182. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-kr.js +143 -0
  183. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore.js +135 -0
  184. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore_soft.js +136 -0
  185. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-mono_industrial.js +148 -0
  186. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-monokai.js +140 -0
  187. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-pastel_on_dark.js +148 -0
  188. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_dark.js +128 -0
  189. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_light.js +131 -0
  190. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-textmate.js +163 -0
  191. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow.js +147 -0
  192. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night.js +147 -0
  193. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_blue.js +145 -0
  194. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_bright.js +147 -0
  195. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_eighties.js +144 -0
  196. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-twilight.js +147 -0
  197. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-vibrant_ink.js +131 -0
  198. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-xcode.js +125 -0
  199. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-coffee.js +6985 -0
  200. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-css.js +7741 -0
  201. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-javascript.js +6387 -0
  202. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-json.js +2228 -0
  203. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-xquery.js +21719 -0
  204. data/vendor/assets/javascripts/jquery-ace/vendor/jquery-1.8.3.min.js +2 -0
  205. metadata +249 -0
@@ -0,0 +1,660 @@
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) {
2
+
3
+ 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.$tokenizer = new Tokenizer(new GolangHighlightRules().getRules());
13
+ this.$outdent = new MatchingBraceOutdent();
14
+ this.foldingRules = new CStyleFoldMode();
15
+ };
16
+ oop.inherits(Mode, TextMode);
17
+
18
+ (function() {
19
+
20
+ this.toggleCommentLines = function(state, doc, startRow, endRow) {
21
+ var outdent = true;
22
+ var re = /^(\s*)\/\//;
23
+
24
+ for (var i=startRow; i<= endRow; i++) {
25
+ if (!re.test(doc.getLine(i))) {
26
+ outdent = false;
27
+ break;
28
+ }
29
+ }
30
+
31
+ if (outdent) {
32
+ var deleteRange = new Range(0, 0, 0, 0);
33
+ for (var i=startRow; i<= endRow; i++)
34
+ {
35
+ var line = doc.getLine(i);
36
+ var m = line.match(re);
37
+ deleteRange.start.row = i;
38
+ deleteRange.end.row = i;
39
+ deleteRange.end.column = m[0].length;
40
+ doc.replace(deleteRange, m[1]);
41
+ }
42
+ }
43
+ else {
44
+ doc.indentRows(startRow, endRow, "//");
45
+ }
46
+ };
47
+
48
+ this.getNextLineIndent = function(state, line, tab) {
49
+ var indent = this.$getIndent(line);
50
+
51
+ var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
52
+ var tokens = tokenizedLine.tokens;
53
+ var endState = tokenizedLine.state;
54
+
55
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
56
+ return indent;
57
+ }
58
+
59
+ if (state == "start") {
60
+ var match = line.match(/^.*[\{\(\[]\s*$/);
61
+ if (match) {
62
+ indent += tab;
63
+ }
64
+ }
65
+
66
+ return indent;
67
+ };//end getNextLineIndent
68
+
69
+ this.checkOutdent = function(state, line, input) {
70
+ return this.$outdent.checkOutdent(line, input);
71
+ };
72
+
73
+ this.autoOutdent = function(state, doc, row) {
74
+ this.$outdent.autoOutdent(doc, row);
75
+ };
76
+
77
+ }).call(Mode.prototype);
78
+
79
+ exports.Mode = Mode;
80
+ });
81
+ 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) {
82
+ var oop = require("../lib/oop");
83
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
84
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
85
+
86
+ var GolangHighlightRules = function() {
87
+ var keywords = (
88
+ "true|else|false|break|case|return|goto|if|const|" +
89
+ "continue|struct|default|switch|for|" +
90
+ "func|import|package|chan|defer|fallthrough|go|interface|map|range" +
91
+ "select|type|var"
92
+ );
93
+ var buildinConstants = ("nil|true|false|iota");
94
+
95
+ var keywordMapper = this.createKeywordMapper({
96
+ "variable.language": "this",
97
+ "keyword": keywords,
98
+ "constant.language": buildinConstants
99
+ }, "identifier");
100
+
101
+ this.$rules = {
102
+ "start" : [
103
+ {
104
+ token : "comment",
105
+ regex : "\\/\\/.*$"
106
+ },
107
+ DocCommentHighlightRules.getStartRule("doc-start"),
108
+ {
109
+ token : "comment", // multi line comment
110
+ regex : "\\/\\*",
111
+ next : "comment"
112
+ }, {
113
+ token : "string", // single line
114
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
115
+ }, {
116
+ token : "string", // multi line string start
117
+ regex : '["].*\\\\$',
118
+ next : "qqstring"
119
+ }, {
120
+ token : "string", // single line
121
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
122
+ }, {
123
+ token : "string", // multi line string start
124
+ regex : "['].*\\\\$",
125
+ next : "qstring"
126
+ }, {
127
+ token : "constant.numeric", // hex
128
+ regex : "0[xX][0-9a-fA-F]+\\b"
129
+ }, {
130
+ token : "constant.numeric", // float
131
+ regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
132
+ }, {
133
+ token : "constant", // <CONSTANT>
134
+ regex : "<[a-zA-Z0-9.]+>"
135
+ }, {
136
+ token : "keyword", // pre-compiler directivs
137
+ regex : "(?:#include|#pragma|#line|#define|#undef|#ifdef|#else|#elif|#endif|#ifndef)"
138
+ }, {
139
+ token : keywordMapper,
140
+ regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
141
+ }, {
142
+ token : "keyword.operator",
143
+ regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|new|delete|typeof|void)"
144
+ }, {
145
+ token : "punctuation.operator",
146
+ regex : "\\?|\\:|\\,|\\;|\\."
147
+ }, {
148
+ token : "paren.lparen",
149
+ regex : "[[({]"
150
+ }, {
151
+ token : "paren.rparen",
152
+ regex : "[\\])}]"
153
+ }, {
154
+ token : "text",
155
+ regex : "\\s+"
156
+ }
157
+ ],
158
+ "comment" : [
159
+ {
160
+ token : "comment", // closing comment
161
+ regex : ".*?\\*\\/",
162
+ next : "start"
163
+ }, {
164
+ token : "comment", // comment spanning whole line
165
+ regex : ".+"
166
+ }
167
+ ],
168
+ "qqstring" : [
169
+ {
170
+ token : "string",
171
+ regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
172
+ next : "start"
173
+ }, {
174
+ token : "string",
175
+ regex : '.+'
176
+ }
177
+ ],
178
+ "qstring" : [
179
+ {
180
+ token : "string",
181
+ regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
182
+ next : "start"
183
+ }, {
184
+ token : "string",
185
+ regex : '.+'
186
+ }
187
+ ]
188
+ };
189
+
190
+ this.embedRules(DocCommentHighlightRules, "doc-",
191
+ [ DocCommentHighlightRules.getEndRule("start") ]);
192
+ }
193
+ oop.inherits(GolangHighlightRules, TextHighlightRules);
194
+
195
+ exports.GolangHighlightRules = GolangHighlightRules;
196
+ });
197
+
198
+ define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
199
+
200
+
201
+ var oop = require("../lib/oop");
202
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
203
+
204
+ var DocCommentHighlightRules = function() {
205
+
206
+ this.$rules = {
207
+ "start" : [ {
208
+ token : "comment.doc.tag",
209
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
210
+ }, {
211
+ token : "comment.doc",
212
+ regex : "\\s+"
213
+ }, {
214
+ token : "comment.doc",
215
+ regex : "TODO"
216
+ }, {
217
+ token : "comment.doc",
218
+ regex : "[^@\\*]+"
219
+ }, {
220
+ token : "comment.doc",
221
+ regex : "."
222
+ }]
223
+ };
224
+ };
225
+
226
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
227
+
228
+ DocCommentHighlightRules.getStartRule = function(start) {
229
+ return {
230
+ token : "comment.doc", // doc comment
231
+ regex : "\\/\\*(?=\\*)",
232
+ next : start
233
+ };
234
+ };
235
+
236
+ DocCommentHighlightRules.getEndRule = function (start) {
237
+ return {
238
+ token : "comment.doc", // closing comment
239
+ regex : "\\*\\/",
240
+ next : start
241
+ };
242
+ };
243
+
244
+
245
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
246
+
247
+ });
248
+
249
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
250
+
251
+
252
+ var Range = require("../range").Range;
253
+
254
+ var MatchingBraceOutdent = function() {};
255
+
256
+ (function() {
257
+
258
+ this.checkOutdent = function(line, input) {
259
+ if (! /^\s+$/.test(line))
260
+ return false;
261
+
262
+ return /^\s*\}/.test(input);
263
+ };
264
+
265
+ this.autoOutdent = function(doc, row) {
266
+ var line = doc.getLine(row);
267
+ var match = line.match(/^(\s*\})/);
268
+
269
+ if (!match) return 0;
270
+
271
+ var column = match[1].length;
272
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
273
+
274
+ if (!openBracePos || openBracePos.row == row) return 0;
275
+
276
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
277
+ doc.replace(new Range(row, 0, row, column-1), indent);
278
+ };
279
+
280
+ this.$getIndent = function(line) {
281
+ var match = line.match(/^(\s+)/);
282
+ if (match) {
283
+ return match[1];
284
+ }
285
+
286
+ return "";
287
+ };
288
+
289
+ }).call(MatchingBraceOutdent.prototype);
290
+
291
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
292
+ });
293
+
294
+ define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
295
+
296
+
297
+ var oop = require("../../lib/oop");
298
+ var Behaviour = require("../behaviour").Behaviour;
299
+ var TokenIterator = require("../../token_iterator").TokenIterator;
300
+ var lang = require("../../lib/lang");
301
+
302
+ var SAFE_INSERT_IN_TOKENS =
303
+ ["text", "paren.rparen", "punctuation.operator"];
304
+ var SAFE_INSERT_BEFORE_TOKENS =
305
+ ["text", "paren.rparen", "punctuation.operator", "comment"];
306
+
307
+
308
+ var autoInsertedBrackets = 0;
309
+ var autoInsertedRow = -1;
310
+ var autoInsertedLineEnd = "";
311
+ var maybeInsertedBrackets = 0;
312
+ var maybeInsertedRow = -1;
313
+ var maybeInsertedLineStart = "";
314
+ var maybeInsertedLineEnd = "";
315
+
316
+ var CstyleBehaviour = function () {
317
+
318
+ CstyleBehaviour.isSaneInsertion = function(editor, session) {
319
+ var cursor = editor.getCursorPosition();
320
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
321
+ if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
322
+ var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
323
+ if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
324
+ return false;
325
+ }
326
+ iterator.stepForward();
327
+ return iterator.getCurrentTokenRow() !== cursor.row ||
328
+ this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
329
+ };
330
+
331
+ CstyleBehaviour.$matchTokenType = function(token, types) {
332
+ return types.indexOf(token.type || token) > -1;
333
+ };
334
+
335
+ CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
336
+ var cursor = editor.getCursorPosition();
337
+ var line = session.doc.getLine(cursor.row);
338
+ if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
339
+ autoInsertedBrackets = 0;
340
+ autoInsertedRow = cursor.row;
341
+ autoInsertedLineEnd = bracket + line.substr(cursor.column);
342
+ autoInsertedBrackets++;
343
+ };
344
+
345
+ CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
346
+ var cursor = editor.getCursorPosition();
347
+ var line = session.doc.getLine(cursor.row);
348
+ if (!this.isMaybeInsertedClosing(cursor, line))
349
+ maybeInsertedBrackets = 0;
350
+ maybeInsertedRow = cursor.row;
351
+ maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
352
+ maybeInsertedLineEnd = line.substr(cursor.column);
353
+ maybeInsertedBrackets++;
354
+ };
355
+
356
+ CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
357
+ return autoInsertedBrackets > 0 &&
358
+ cursor.row === autoInsertedRow &&
359
+ bracket === autoInsertedLineEnd[0] &&
360
+ line.substr(cursor.column) === autoInsertedLineEnd;
361
+ };
362
+
363
+ CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
364
+ return maybeInsertedBrackets > 0 &&
365
+ cursor.row === maybeInsertedRow &&
366
+ line.substr(cursor.column) === maybeInsertedLineEnd &&
367
+ line.substr(0, cursor.column) == maybeInsertedLineStart;
368
+ };
369
+
370
+ CstyleBehaviour.popAutoInsertedClosing = function() {
371
+ autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
372
+ autoInsertedBrackets--;
373
+ };
374
+
375
+ CstyleBehaviour.clearMaybeInsertedClosing = function() {
376
+ maybeInsertedBrackets = 0;
377
+ maybeInsertedRow = -1;
378
+ };
379
+
380
+ this.add("braces", "insertion", function (state, action, editor, session, text) {
381
+ var cursor = editor.getCursorPosition();
382
+ var line = session.doc.getLine(cursor.row);
383
+ if (text == '{') {
384
+ var selection = editor.getSelectionRange();
385
+ var selected = session.doc.getTextRange(selection);
386
+ if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
387
+ return {
388
+ text: '{' + selected + '}',
389
+ selection: false
390
+ };
391
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
392
+ if (/[\]\}\)]/.test(line[cursor.column])) {
393
+ CstyleBehaviour.recordAutoInsert(editor, session, "}");
394
+ return {
395
+ text: '{}',
396
+ selection: [1, 1]
397
+ };
398
+ } else {
399
+ CstyleBehaviour.recordMaybeInsert(editor, session, "{");
400
+ return {
401
+ text: '{',
402
+ selection: [1, 1]
403
+ };
404
+ }
405
+ }
406
+ } else if (text == '}') {
407
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
408
+ if (rightChar == '}') {
409
+ var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
410
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
411
+ CstyleBehaviour.popAutoInsertedClosing();
412
+ return {
413
+ text: '',
414
+ selection: [1, 1]
415
+ };
416
+ }
417
+ }
418
+ } else if (text == "\n" || text == "\r\n") {
419
+ var closing = "";
420
+ if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
421
+ closing = lang.stringRepeat("}", maybeInsertedBrackets);
422
+ CstyleBehaviour.clearMaybeInsertedClosing();
423
+ }
424
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
425
+ if (rightChar == '}' || closing !== "") {
426
+ var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
427
+ if (!openBracePos)
428
+ return null;
429
+
430
+ var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString());
431
+ var next_indent = this.$getIndent(line);
432
+
433
+ return {
434
+ text: '\n' + indent + '\n' + next_indent + closing,
435
+ selection: [1, indent.length, 1, indent.length]
436
+ };
437
+ }
438
+ }
439
+ });
440
+
441
+ this.add("braces", "deletion", function (state, action, editor, session, range) {
442
+ var selected = session.doc.getTextRange(range);
443
+ if (!range.isMultiLine() && selected == '{') {
444
+ var line = session.doc.getLine(range.start.row);
445
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
446
+ if (rightChar == '}') {
447
+ range.end.column++;
448
+ return range;
449
+ } else {
450
+ maybeInsertedBrackets--;
451
+ }
452
+ }
453
+ });
454
+
455
+ this.add("parens", "insertion", function (state, action, editor, session, text) {
456
+ if (text == '(') {
457
+ var selection = editor.getSelectionRange();
458
+ var selected = session.doc.getTextRange(selection);
459
+ if (selected !== "" && editor.getWrapBehavioursEnabled()) {
460
+ return {
461
+ text: '(' + selected + ')',
462
+ selection: false
463
+ };
464
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
465
+ CstyleBehaviour.recordAutoInsert(editor, session, ")");
466
+ return {
467
+ text: '()',
468
+ selection: [1, 1]
469
+ };
470
+ }
471
+ } else if (text == ')') {
472
+ var cursor = editor.getCursorPosition();
473
+ var line = session.doc.getLine(cursor.row);
474
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
475
+ if (rightChar == ')') {
476
+ var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
477
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
478
+ CstyleBehaviour.popAutoInsertedClosing();
479
+ return {
480
+ text: '',
481
+ selection: [1, 1]
482
+ };
483
+ }
484
+ }
485
+ }
486
+ });
487
+
488
+ this.add("parens", "deletion", function (state, action, editor, session, range) {
489
+ var selected = session.doc.getTextRange(range);
490
+ if (!range.isMultiLine() && selected == '(') {
491
+ var line = session.doc.getLine(range.start.row);
492
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
493
+ if (rightChar == ')') {
494
+ range.end.column++;
495
+ return range;
496
+ }
497
+ }
498
+ });
499
+
500
+ this.add("brackets", "insertion", function (state, action, editor, session, text) {
501
+ if (text == '[') {
502
+ var selection = editor.getSelectionRange();
503
+ var selected = session.doc.getTextRange(selection);
504
+ if (selected !== "" && editor.getWrapBehavioursEnabled()) {
505
+ return {
506
+ text: '[' + selected + ']',
507
+ selection: false
508
+ };
509
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
510
+ CstyleBehaviour.recordAutoInsert(editor, session, "]");
511
+ return {
512
+ text: '[]',
513
+ selection: [1, 1]
514
+ };
515
+ }
516
+ } else if (text == ']') {
517
+ var cursor = editor.getCursorPosition();
518
+ var line = session.doc.getLine(cursor.row);
519
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
520
+ if (rightChar == ']') {
521
+ var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
522
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
523
+ CstyleBehaviour.popAutoInsertedClosing();
524
+ return {
525
+ text: '',
526
+ selection: [1, 1]
527
+ };
528
+ }
529
+ }
530
+ }
531
+ });
532
+
533
+ this.add("brackets", "deletion", function (state, action, editor, session, range) {
534
+ var selected = session.doc.getTextRange(range);
535
+ if (!range.isMultiLine() && selected == '[') {
536
+ var line = session.doc.getLine(range.start.row);
537
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
538
+ if (rightChar == ']') {
539
+ range.end.column++;
540
+ return range;
541
+ }
542
+ }
543
+ });
544
+
545
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
546
+ if (text == '"' || text == "'") {
547
+ var quote = text;
548
+ var selection = editor.getSelectionRange();
549
+ var selected = session.doc.getTextRange(selection);
550
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
551
+ return {
552
+ text: quote + selected + quote,
553
+ selection: false
554
+ };
555
+ } else {
556
+ var cursor = editor.getCursorPosition();
557
+ var line = session.doc.getLine(cursor.row);
558
+ var leftChar = line.substring(cursor.column-1, cursor.column);
559
+ if (leftChar == '\\') {
560
+ return null;
561
+ }
562
+ var tokens = session.getTokens(selection.start.row);
563
+ var col = 0, token;
564
+ var quotepos = -1; // Track whether we're inside an open quote.
565
+
566
+ for (var x = 0; x < tokens.length; x++) {
567
+ token = tokens[x];
568
+ if (token.type == "string") {
569
+ quotepos = -1;
570
+ } else if (quotepos < 0) {
571
+ quotepos = token.value.indexOf(quote);
572
+ }
573
+ if ((token.value.length + col) > selection.start.column) {
574
+ break;
575
+ }
576
+ col += tokens[x].value.length;
577
+ }
578
+ if (!token || (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf(quote) === token.value.length-1)))) {
579
+ if (!CstyleBehaviour.isSaneInsertion(editor, session))
580
+ return;
581
+ return {
582
+ text: quote + quote,
583
+ selection: [1,1]
584
+ };
585
+ } else if (token && token.type === "string") {
586
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
587
+ if (rightChar == quote) {
588
+ return {
589
+ text: '',
590
+ selection: [1, 1]
591
+ };
592
+ }
593
+ }
594
+ }
595
+ }
596
+ });
597
+
598
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
599
+ var selected = session.doc.getTextRange(range);
600
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
601
+ var line = session.doc.getLine(range.start.row);
602
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
603
+ if (rightChar == '"') {
604
+ range.end.column++;
605
+ return range;
606
+ }
607
+ }
608
+ });
609
+
610
+ };
611
+
612
+ oop.inherits(CstyleBehaviour, Behaviour);
613
+
614
+ exports.CstyleBehaviour = CstyleBehaviour;
615
+ });
616
+
617
+ define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
618
+
619
+
620
+ var oop = require("../../lib/oop");
621
+ var Range = require("../../range").Range;
622
+ var BaseFoldMode = require("./fold_mode").FoldMode;
623
+
624
+ var FoldMode = exports.FoldMode = function() {};
625
+ oop.inherits(FoldMode, BaseFoldMode);
626
+
627
+ (function() {
628
+
629
+ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
630
+ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
631
+
632
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
633
+ var line = session.getLine(row);
634
+ var match = line.match(this.foldingStartMarker);
635
+ if (match) {
636
+ var i = match.index;
637
+
638
+ if (match[1])
639
+ return this.openingBracketBlock(session, match[1], row, i);
640
+
641
+ return session.getCommentFoldRange(row, i + match[0].length, 1);
642
+ }
643
+
644
+ if (foldStyle !== "markbeginend")
645
+ return;
646
+
647
+ var match = line.match(this.foldingStopMarker);
648
+ if (match) {
649
+ var i = match.index + match[0].length;
650
+
651
+ if (match[1])
652
+ return this.closingBracketBlock(session, match[1], row, i);
653
+
654
+ return session.getCommentFoldRange(row, i, -1);
655
+ }
656
+ };
657
+
658
+ }).call(FoldMode.prototype);
659
+
660
+ });