jquery-ace-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. data/lib/jquery-ace-rails/version.rb +1 -1
  2. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ace.js +0 -0
  3. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-static_highlight.js +0 -0
  4. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-textarea.js +0 -0
  5. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-emacs.js +0 -0
  6. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-vim.js +0 -0
  7. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-abap.js +0 -0
  8. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-asciidoc.js +0 -0
  9. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c9search.js +0 -0
  10. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c_cpp.js +0 -0
  11. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-clojure.js +0 -0
  12. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coffee.js +0 -0
  13. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coldfusion.js +0 -0
  14. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-csharp.js +0 -0
  15. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-css.js +0 -0
  16. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dart.js +0 -0
  17. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-diff.js +0 -0
  18. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dot.js +0 -0
  19. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-glsl.js +0 -0
  20. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-golang.js +0 -0
  21. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-groovy.js +0 -0
  22. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haml.js +0 -0
  23. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haxe.js +0 -0
  24. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-html.js +0 -0
  25. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jade.js +0 -0
  26. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-java.js +0 -0
  27. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-javascript.js +0 -0
  28. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-json.js +0 -0
  29. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsp.js +0 -0
  30. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsx.js +0 -0
  31. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-latex.js +0 -0
  32. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-less.js +0 -0
  33. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-liquid.js +0 -0
  34. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lisp.js +0 -0
  35. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lua.js +0 -0
  36. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-luapage.js +0 -0
  37. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lucene.js +0 -0
  38. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-makefile.js +0 -0
  39. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-markdown.js +0 -0
  40. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-objectivec.js +0 -0
  41. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ocaml.js +0 -0
  42. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-perl.js +0 -0
  43. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-pgsql.js +0 -0
  44. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-php.js +0 -0
  45. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-powershell.js +0 -0
  46. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-python.js +0 -0
  47. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-r.js +0 -0
  48. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rdoc.js +0 -0
  49. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rhtml.js +0 -0
  50. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ruby.js +0 -0
  51. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scad.js +0 -0
  52. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scala.js +0 -0
  53. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scss.js +0 -0
  54. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sh.js +0 -0
  55. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sql.js +0 -0
  56. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-stylus.js +0 -0
  57. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-svg.js +0 -0
  58. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tcl.js +0 -0
  59. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tex.js +0 -0
  60. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-text.js +0 -0
  61. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-textile.js +0 -0
  62. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-typescript.js +0 -0
  63. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xml.js +0 -0
  64. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xquery.js +0 -0
  65. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-yaml.js +0 -0
  66. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-ambiance.js +0 -0
  67. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chaos.js +0 -0
  68. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chrome.js +0 -0
  69. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds.js +0 -0
  70. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds_midnight.js +0 -0
  71. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-cobalt.js +0 -0
  72. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-crimson_editor.js +0 -0
  73. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dawn.js +0 -0
  74. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dreamweaver.js +0 -0
  75. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-eclipse.js +0 -0
  76. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-github.js +0 -0
  77. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-idle_fingers.js +0 -0
  78. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-kr.js +0 -0
  79. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore.js +0 -0
  80. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore_soft.js +0 -0
  81. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-mono_industrial.js +0 -0
  82. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-monokai.js +0 -0
  83. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-pastel_on_dark.js +0 -0
  84. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_dark.js +0 -0
  85. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_light.js +0 -0
  86. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-textmate.js +0 -0
  87. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow.js +0 -0
  88. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night.js +0 -0
  89. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_blue.js +0 -0
  90. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_bright.js +0 -0
  91. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_eighties.js +0 -0
  92. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-twilight.js +0 -0
  93. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-vibrant_ink.js +0 -0
  94. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-xcode.js +0 -0
  95. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-coffee.js +0 -0
  96. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-css.js +0 -0
  97. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-javascript.js +0 -0
  98. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-json.js +0 -0
  99. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-xquery.js +0 -0
  100. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.coffee → jquery-ace.coffee} +1 -1
  101. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.js → jquery-ace.js} +1 -1
  102. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.min.js → jquery-ace.min.js} +1 -1
  103. data/vendor/assets/javascripts/{jquery-ace/vendor → jquery}/jquery-1.8.3.min.js +0 -0
  104. metadata +104 -202
  105. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ace.js +0 -14262
  106. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-static_highlight.js +0 -96
  107. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-textarea.js +0 -591
  108. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-emacs.js +0 -364
  109. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-vim.js +0 -1646
  110. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-abap.js +0 -259
  111. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-asciidoc.js +0 -372
  112. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c9search.js +0 -187
  113. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c_cpp.js +0 -765
  114. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-clojure.js +0 -325
  115. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coffee.js +0 -520
  116. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coldfusion.js +0 -1725
  117. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-csharp.js +0 -605
  118. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-css.js +0 -680
  119. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dart.js +0 -279
  120. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-diff.js +0 -163
  121. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dot.js +0 -348
  122. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-glsl.js +0 -838
  123. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-golang.js +0 -660
  124. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-groovy.js +0 -1082
  125. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haml.js +0 -440
  126. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haxe.js +0 -610
  127. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-html.js +0 -1850
  128. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jade.js +0 -2035
  129. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-java.js +0 -1041
  130. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-javascript.js +0 -921
  131. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-json.js +0 -574
  132. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsp.js +0 -1371
  133. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsx.js +0 -635
  134. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-latex.js +0 -217
  135. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-less.js +0 -394
  136. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-liquid.js +0 -921
  137. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lisp.js +0 -142
  138. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lua.js +0 -609
  139. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-luapage.js +0 -2463
  140. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lucene.js +0 -64
  141. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-makefile.js +0 -314
  142. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-markdown.js +0 -2228
  143. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-objectivec.js +0 -655
  144. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ocaml.js +0 -448
  145. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-perl.js +0 -319
  146. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-pgsql.js +0 -928
  147. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-php.js +0 -2299
  148. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-powershell.js +0 -611
  149. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-python.js +0 -290
  150. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-r.js +0 -410
  151. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rdoc.js +0 -189
  152. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rhtml.js +0 -2138
  153. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ruby.js +0 -410
  154. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scad.js +0 -698
  155. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scala.js +0 -1070
  156. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scss.js +0 -416
  157. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sh.js +0 -232
  158. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sql.js +0 -145
  159. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-stylus.js +0 -474
  160. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-svg.js +0 -1490
  161. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tcl.js +0 -342
  162. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tex.js +0 -171
  163. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-text.js +0 -0
  164. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-textile.js +0 -175
  165. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-typescript.js +0 -1011
  166. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xml.js +0 -792
  167. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xquery.js +0 -676
  168. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-yaml.js +0 -298
  169. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-ambiance.js +0 -202
  170. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chaos.js +0 -167
  171. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chrome.js +0 -161
  172. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds.js +0 -135
  173. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds_midnight.js +0 -136
  174. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-cobalt.js +0 -150
  175. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-crimson_editor.js +0 -154
  176. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dawn.js +0 -146
  177. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dreamweaver.js +0 -173
  178. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-eclipse.js +0 -122
  179. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-github.js +0 -136
  180. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-idle_fingers.js +0 -136
  181. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-kr.js +0 -143
  182. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore.js +0 -135
  183. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore_soft.js +0 -136
  184. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-mono_industrial.js +0 -148
  185. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-monokai.js +0 -140
  186. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-pastel_on_dark.js +0 -148
  187. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_dark.js +0 -128
  188. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_light.js +0 -131
  189. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-textmate.js +0 -163
  190. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow.js +0 -147
  191. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night.js +0 -147
  192. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_blue.js +0 -145
  193. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_bright.js +0 -147
  194. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_eighties.js +0 -144
  195. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-twilight.js +0 -147
  196. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-vibrant_ink.js +0 -131
  197. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-xcode.js +0 -125
  198. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-coffee.js +0 -6985
  199. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-css.js +0 -7741
  200. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-javascript.js +0 -6387
  201. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-json.js +0 -2228
  202. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-xquery.js +0 -21719
@@ -1,660 +0,0 @@
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
- });