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,611 +0,0 @@
1
- define('ace/mode/powershell', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/powershell_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
2
-
3
-
4
- var oop = require("../lib/oop");
5
- var TextMode = require("./text").Mode;
6
- var Tokenizer = require("../tokenizer").Tokenizer;
7
- var PowershellHighlightRules = require("./powershell_highlight_rules").PowershellHighlightRules;
8
- var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
9
- var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
10
- var CStyleFoldMode = require("./folding/cstyle").FoldMode;
11
-
12
- var Mode = function() {
13
- this.$tokenizer = new Tokenizer(new PowershellHighlightRules().getRules());
14
- this.$outdent = new MatchingBraceOutdent();
15
- this.$behaviour = new CstyleBehaviour();
16
- this.foldingRules = new CStyleFoldMode();
17
- };
18
- oop.inherits(Mode, TextMode);
19
-
20
- (function() {
21
-
22
- this.getNextLineIndent = function(state, line, tab) {
23
- var indent = this.$getIndent(line);
24
-
25
- var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
26
- var tokens = tokenizedLine.tokens;
27
-
28
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
29
- return indent;
30
- }
31
-
32
- if (state == "start") {
33
- var match = line.match(/^.*[\{\(\[]\s*$/);
34
- if (match) {
35
- indent += tab;
36
- }
37
- }
38
-
39
- return indent;
40
- };
41
-
42
- this.checkOutdent = function(state, line, input) {
43
- return this.$outdent.checkOutdent(line, input);
44
- };
45
-
46
- this.autoOutdent = function(state, doc, row) {
47
- this.$outdent.autoOutdent(doc, row);
48
- };
49
-
50
-
51
- this.createWorker = function(session) {
52
- return null;
53
- };
54
-
55
- }).call(Mode.prototype);
56
-
57
- exports.Mode = Mode;
58
- });
59
- define('ace/mode/powershell_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
60
-
61
-
62
- var oop = require("../lib/oop");
63
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
64
-
65
- var PowershellHighlightRules = function() {
66
-
67
- var keywords = (
68
- "function|if|else|elseif|switch|while|default|for|do|until|break|continue|" +
69
- "foreach|return|filter|in|trap|throw|param|begin|process|end"
70
- );
71
-
72
- var builtinFunctions = (
73
- "Get-Alias|Import-Alias|New-Alias|Set-Alias|Get-AuthenticodeSignature|Set-AuthenticodeSignature|" +
74
- "Set-Location|Get-ChildItem|Clear-Item|Get-Command|Measure-Command|Trace-Command|" +
75
- "Add-Computer|Checkpoint-Computer|Remove-Computer|Restart-Computer|Restore-Computer|Stop-Computer|" +
76
- "Reset-ComputerMachinePassword|Test-ComputerSecureChannel|Add-Content|Get-Content|Set-Content|Clear-Content|" +
77
- "Get-Command|Invoke-Command|Enable-ComputerRestore|Disable-ComputerRestore|Get-ComputerRestorePoint|Test-Connection|" +
78
- "ConvertFrom-CSV|ConvertTo-CSV|ConvertTo-Html|ConvertTo-Xml|ConvertFrom-SecureString|ConvertTo-SecureString|" +
79
- "Copy-Item|Export-Counter|Get-Counter|Import-Counter|Get-Credential|Get-Culture|" +
80
- "Get-ChildItem|Get-Date|Set-Date|Remove-Item|Compare-Object|Get-Event|" +
81
- "Get-WinEvent|New-Event|Remove-Event|Unregister-Event|Wait-Event|Clear-EventLog|" +
82
- "Get-Eventlog|Limit-EventLog|New-Eventlog|Remove-EventLog|Show-EventLog|Write-EventLog|" +
83
- "Get-EventSubscriber|Register-EngineEvent|Register-ObjectEvent|Register-WmiEvent|Get-ExecutionPolicy|Set-ExecutionPolicy|" +
84
- "Export-Alias|Export-Clixml|Export-Console|Export-Csv|ForEach-Object|Format-Custom|" +
85
- "Format-List|Format-Table|Format-Wide|Export-FormatData|Get-FormatData|Get-Item|" +
86
- "Get-ChildItem|Get-Help|Add-History|Clear-History|Get-History|Invoke-History|" +
87
- "Get-Host|Read-Host|Write-Host|Get-HotFix|Import-Clixml|Import-Csv|" +
88
- "Invoke-Command|Invoke-Expression|Get-Item|Invoke-Item|New-Item|Remove-Item|" +
89
- "Set-Item|Clear-ItemProperty|Copy-ItemProperty|Get-ItemProperty|Move-ItemProperty|New-ItemProperty|" +
90
- "Remove-ItemProperty|Rename-ItemProperty|Set-ItemProperty|Get-Job|Receive-Job|Remove-Job|" +
91
- "Start-Job|Stop-Job|Wait-Job|Stop-Process|Update-List|Get-Location|" +
92
- "Pop-Location|Push-Location|Set-Location|Send-MailMessage|Add-Member|Get-Member|" +
93
- "Move-Item|Compare-Object|Group-Object|Measure-Object|New-Object|Select-Object|" +
94
- "Sort-Object|Where-Object|Out-Default|Out-File|Out-GridView|Out-Host|" +
95
- "Out-Null|Out-Printer|Out-String|Convert-Path|Join-Path|Resolve-Path|" +
96
- "Split-Path|Test-Path|Get-Pfxcertificate|Pop-Location|Push-Location|Get-Process|" +
97
- "Start-Process|Stop-Process|Wait-Process|Enable-PSBreakpoint|Disable-PSBreakpoint|Get-PSBreakpoint|" +
98
- "Set-PSBreakpoint|Remove-PSBreakpoint|Get-PSDrive|New-PSDrive|Remove-PSDrive|Get-PSProvider|" +
99
- "Set-PSdebug|Enter-PSSession|Exit-PSSession|Export-PSSession|Get-PSSession|Import-PSSession|" +
100
- "New-PSSession|Remove-PSSession|Disable-PSSessionConfiguration|Enable-PSSessionConfiguration|Get-PSSessionConfiguration|Register-PSSessionConfiguration|" +
101
- "Set-PSSessionConfiguration|Unregister-PSSessionConfiguration|New-PSSessionOption|Add-PsSnapIn|Get-PsSnapin|Remove-PSSnapin|" +
102
- "Get-Random|Read-Host|Remove-Item|Rename-Item|Rename-ItemProperty|Select-Object|" +
103
- "Select-XML|Send-MailMessage|Get-Service|New-Service|Restart-Service|Resume-Service|" +
104
- "Set-Service|Start-Service|Stop-Service|Suspend-Service|Sort-Object|Start-Sleep|" +
105
- "ConvertFrom-StringData|Select-String|Tee-Object|New-Timespan|Trace-Command|Get-Tracesource|" +
106
- "Set-Tracesource|Start-Transaction|Complete-Transaction|Get-Transaction|Use-Transaction|Undo-Transaction|" +
107
- "Start-Transcript|Stop-Transcript|Add-Type|Update-TypeData|Get-Uiculture|Get-Unique|" +
108
- "Update-Formatdata|Update-Typedata|Clear-Variable|Get-Variable|New-Variable|Remove-Variable|" +
109
- "Set-Variable|New-WebServiceProxy|Where-Object|Write-Debug|Write-Error|Write-Host|" +
110
- "Write-Output|Write-Progress|Write-Verbose|Write-Warning|Set-WmiInstance|Invoke-WmiMethod|" +
111
- "Get-WmiObject|Remove-WmiObject|Connect-WSMan|Disconnect-WSMan|Test-WSMan|Invoke-WSManAction|" +
112
- "Disable-WSManCredSSP|Enable-WSManCredSSP|Get-WSManCredSSP|New-WSManInstance|Get-WSManInstance|Set-WSManInstance|" +
113
- "Remove-WSManInstance|Set-WSManQuickConfig|New-WSManSessionOption"
114
- );
115
-
116
- var keywordMapper = this.createKeywordMapper({
117
- "support.function": builtinFunctions,
118
- "keyword": keywords
119
- }, "identifier");
120
-
121
- var binaryOperatorsRe = "eq|ne|ge|gt|lt|le|like|notlike|match|notmatch|replace|contains|notcontains|" +
122
- "ieq|ine|ige|igt|ile|ilt|ilike|inotlike|imatch|inotmatch|ireplace|icontains|inotcontains|" +
123
- "is|isnot|as|" +
124
- "and|or|band|bor|not";
125
-
126
- this.$rules = {
127
- "start" : [
128
- {
129
- token : "comment",
130
- regex : "#.*$"
131
- }, {
132
- token : "comment.start",
133
- regex : "<#",
134
- next : "comment"
135
- }, {
136
- token : "string", // single line
137
- regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
138
- }, {
139
- token : "string", // single line
140
- regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
141
- }, {
142
- token : "constant.numeric", // hex
143
- regex : "0[xX][0-9a-fA-F]+\\b"
144
- }, {
145
- token : "constant.numeric", // float
146
- regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
147
- }, {
148
- token : "constant.language.boolean",
149
- regex : "[$](?:[Tt]rue|[Ff]alse)\\b"
150
- }, {
151
- token : "constant.language",
152
- regex : "[$][Nn]ull\\b"
153
- }, {
154
- token : "variable.instance",
155
- regex : "[$][a-zA-Z][a-zA-Z0-9_]*\\b"
156
- }, {
157
- token : keywordMapper,
158
- regex : "[a-zA-Z_$][a-zA-Z0-9_$\\-]*\\b"
159
- }, {
160
- token : "keyword.operator",
161
- regex : "\\-(?:" + binaryOperatorsRe + ")"
162
- }, {
163
- token : "keyword.operator",
164
- regex : "&|\\*|\\+|\\-|\\=|\\+=|\\-="
165
- }, {
166
- token : "lparen",
167
- regex : "[[({]"
168
- }, {
169
- token : "rparen",
170
- regex : "[\\])}]"
171
- }, {
172
- token : "text",
173
- regex : "\\s+"
174
- }
175
- ],
176
- "comment" : [
177
- {
178
- token : "comment.end",
179
- regex : "#>",
180
- next : "start"
181
- }, {
182
- token : "doc.comment.tag",
183
- regex : "^\\.\\w+"
184
- }, {
185
- token : "comment",
186
- regex : "\\w+"
187
- }, {
188
- token : "comment",
189
- regex : "."
190
- }
191
- ]
192
- };
193
- };
194
-
195
- oop.inherits(PowershellHighlightRules, TextHighlightRules);
196
-
197
- exports.PowershellHighlightRules = PowershellHighlightRules;
198
- });
199
-
200
- define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
201
-
202
-
203
- var Range = require("../range").Range;
204
-
205
- var MatchingBraceOutdent = function() {};
206
-
207
- (function() {
208
-
209
- this.checkOutdent = function(line, input) {
210
- if (! /^\s+$/.test(line))
211
- return false;
212
-
213
- return /^\s*\}/.test(input);
214
- };
215
-
216
- this.autoOutdent = function(doc, row) {
217
- var line = doc.getLine(row);
218
- var match = line.match(/^(\s*\})/);
219
-
220
- if (!match) return 0;
221
-
222
- var column = match[1].length;
223
- var openBracePos = doc.findMatchingBracket({row: row, column: column});
224
-
225
- if (!openBracePos || openBracePos.row == row) return 0;
226
-
227
- var indent = this.$getIndent(doc.getLine(openBracePos.row));
228
- doc.replace(new Range(row, 0, row, column-1), indent);
229
- };
230
-
231
- this.$getIndent = function(line) {
232
- var match = line.match(/^(\s+)/);
233
- if (match) {
234
- return match[1];
235
- }
236
-
237
- return "";
238
- };
239
-
240
- }).call(MatchingBraceOutdent.prototype);
241
-
242
- exports.MatchingBraceOutdent = MatchingBraceOutdent;
243
- });
244
-
245
- define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
246
-
247
-
248
- var oop = require("../../lib/oop");
249
- var Behaviour = require("../behaviour").Behaviour;
250
- var TokenIterator = require("../../token_iterator").TokenIterator;
251
- var lang = require("../../lib/lang");
252
-
253
- var SAFE_INSERT_IN_TOKENS =
254
- ["text", "paren.rparen", "punctuation.operator"];
255
- var SAFE_INSERT_BEFORE_TOKENS =
256
- ["text", "paren.rparen", "punctuation.operator", "comment"];
257
-
258
-
259
- var autoInsertedBrackets = 0;
260
- var autoInsertedRow = -1;
261
- var autoInsertedLineEnd = "";
262
- var maybeInsertedBrackets = 0;
263
- var maybeInsertedRow = -1;
264
- var maybeInsertedLineStart = "";
265
- var maybeInsertedLineEnd = "";
266
-
267
- var CstyleBehaviour = function () {
268
-
269
- CstyleBehaviour.isSaneInsertion = function(editor, session) {
270
- var cursor = editor.getCursorPosition();
271
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
272
- if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
273
- var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
274
- if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
275
- return false;
276
- }
277
- iterator.stepForward();
278
- return iterator.getCurrentTokenRow() !== cursor.row ||
279
- this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
280
- };
281
-
282
- CstyleBehaviour.$matchTokenType = function(token, types) {
283
- return types.indexOf(token.type || token) > -1;
284
- };
285
-
286
- CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
287
- var cursor = editor.getCursorPosition();
288
- var line = session.doc.getLine(cursor.row);
289
- if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
290
- autoInsertedBrackets = 0;
291
- autoInsertedRow = cursor.row;
292
- autoInsertedLineEnd = bracket + line.substr(cursor.column);
293
- autoInsertedBrackets++;
294
- };
295
-
296
- CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
297
- var cursor = editor.getCursorPosition();
298
- var line = session.doc.getLine(cursor.row);
299
- if (!this.isMaybeInsertedClosing(cursor, line))
300
- maybeInsertedBrackets = 0;
301
- maybeInsertedRow = cursor.row;
302
- maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
303
- maybeInsertedLineEnd = line.substr(cursor.column);
304
- maybeInsertedBrackets++;
305
- };
306
-
307
- CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
308
- return autoInsertedBrackets > 0 &&
309
- cursor.row === autoInsertedRow &&
310
- bracket === autoInsertedLineEnd[0] &&
311
- line.substr(cursor.column) === autoInsertedLineEnd;
312
- };
313
-
314
- CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
315
- return maybeInsertedBrackets > 0 &&
316
- cursor.row === maybeInsertedRow &&
317
- line.substr(cursor.column) === maybeInsertedLineEnd &&
318
- line.substr(0, cursor.column) == maybeInsertedLineStart;
319
- };
320
-
321
- CstyleBehaviour.popAutoInsertedClosing = function() {
322
- autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
323
- autoInsertedBrackets--;
324
- };
325
-
326
- CstyleBehaviour.clearMaybeInsertedClosing = function() {
327
- maybeInsertedBrackets = 0;
328
- maybeInsertedRow = -1;
329
- };
330
-
331
- this.add("braces", "insertion", function (state, action, editor, session, text) {
332
- var cursor = editor.getCursorPosition();
333
- var line = session.doc.getLine(cursor.row);
334
- if (text == '{') {
335
- var selection = editor.getSelectionRange();
336
- var selected = session.doc.getTextRange(selection);
337
- if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
338
- return {
339
- text: '{' + selected + '}',
340
- selection: false
341
- };
342
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
343
- if (/[\]\}\)]/.test(line[cursor.column])) {
344
- CstyleBehaviour.recordAutoInsert(editor, session, "}");
345
- return {
346
- text: '{}',
347
- selection: [1, 1]
348
- };
349
- } else {
350
- CstyleBehaviour.recordMaybeInsert(editor, session, "{");
351
- return {
352
- text: '{',
353
- selection: [1, 1]
354
- };
355
- }
356
- }
357
- } else if (text == '}') {
358
- var rightChar = line.substring(cursor.column, cursor.column + 1);
359
- if (rightChar == '}') {
360
- var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
361
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
362
- CstyleBehaviour.popAutoInsertedClosing();
363
- return {
364
- text: '',
365
- selection: [1, 1]
366
- };
367
- }
368
- }
369
- } else if (text == "\n" || text == "\r\n") {
370
- var closing = "";
371
- if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
372
- closing = lang.stringRepeat("}", maybeInsertedBrackets);
373
- CstyleBehaviour.clearMaybeInsertedClosing();
374
- }
375
- var rightChar = line.substring(cursor.column, cursor.column + 1);
376
- if (rightChar == '}' || closing !== "") {
377
- var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
378
- if (!openBracePos)
379
- return null;
380
-
381
- var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString());
382
- var next_indent = this.$getIndent(line);
383
-
384
- return {
385
- text: '\n' + indent + '\n' + next_indent + closing,
386
- selection: [1, indent.length, 1, indent.length]
387
- };
388
- }
389
- }
390
- });
391
-
392
- this.add("braces", "deletion", function (state, action, editor, session, range) {
393
- var selected = session.doc.getTextRange(range);
394
- if (!range.isMultiLine() && selected == '{') {
395
- var line = session.doc.getLine(range.start.row);
396
- var rightChar = line.substring(range.end.column, range.end.column + 1);
397
- if (rightChar == '}') {
398
- range.end.column++;
399
- return range;
400
- } else {
401
- maybeInsertedBrackets--;
402
- }
403
- }
404
- });
405
-
406
- this.add("parens", "insertion", function (state, action, editor, session, text) {
407
- if (text == '(') {
408
- var selection = editor.getSelectionRange();
409
- var selected = session.doc.getTextRange(selection);
410
- if (selected !== "" && editor.getWrapBehavioursEnabled()) {
411
- return {
412
- text: '(' + selected + ')',
413
- selection: false
414
- };
415
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
416
- CstyleBehaviour.recordAutoInsert(editor, session, ")");
417
- return {
418
- text: '()',
419
- selection: [1, 1]
420
- };
421
- }
422
- } else if (text == ')') {
423
- var cursor = editor.getCursorPosition();
424
- var line = session.doc.getLine(cursor.row);
425
- var rightChar = line.substring(cursor.column, cursor.column + 1);
426
- if (rightChar == ')') {
427
- var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
428
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
429
- CstyleBehaviour.popAutoInsertedClosing();
430
- return {
431
- text: '',
432
- selection: [1, 1]
433
- };
434
- }
435
- }
436
- }
437
- });
438
-
439
- this.add("parens", "deletion", function (state, action, editor, session, range) {
440
- var selected = session.doc.getTextRange(range);
441
- if (!range.isMultiLine() && selected == '(') {
442
- var line = session.doc.getLine(range.start.row);
443
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
444
- if (rightChar == ')') {
445
- range.end.column++;
446
- return range;
447
- }
448
- }
449
- });
450
-
451
- this.add("brackets", "insertion", function (state, action, editor, session, text) {
452
- if (text == '[') {
453
- var selection = editor.getSelectionRange();
454
- var selected = session.doc.getTextRange(selection);
455
- if (selected !== "" && editor.getWrapBehavioursEnabled()) {
456
- return {
457
- text: '[' + selected + ']',
458
- selection: false
459
- };
460
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
461
- CstyleBehaviour.recordAutoInsert(editor, session, "]");
462
- return {
463
- text: '[]',
464
- selection: [1, 1]
465
- };
466
- }
467
- } else if (text == ']') {
468
- var cursor = editor.getCursorPosition();
469
- var line = session.doc.getLine(cursor.row);
470
- var rightChar = line.substring(cursor.column, cursor.column + 1);
471
- if (rightChar == ']') {
472
- var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
473
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
474
- CstyleBehaviour.popAutoInsertedClosing();
475
- return {
476
- text: '',
477
- selection: [1, 1]
478
- };
479
- }
480
- }
481
- }
482
- });
483
-
484
- this.add("brackets", "deletion", function (state, action, editor, session, range) {
485
- var selected = session.doc.getTextRange(range);
486
- if (!range.isMultiLine() && selected == '[') {
487
- var line = session.doc.getLine(range.start.row);
488
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
489
- if (rightChar == ']') {
490
- range.end.column++;
491
- return range;
492
- }
493
- }
494
- });
495
-
496
- this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
497
- if (text == '"' || text == "'") {
498
- var quote = text;
499
- var selection = editor.getSelectionRange();
500
- var selected = session.doc.getTextRange(selection);
501
- if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
502
- return {
503
- text: quote + selected + quote,
504
- selection: false
505
- };
506
- } else {
507
- var cursor = editor.getCursorPosition();
508
- var line = session.doc.getLine(cursor.row);
509
- var leftChar = line.substring(cursor.column-1, cursor.column);
510
- if (leftChar == '\\') {
511
- return null;
512
- }
513
- var tokens = session.getTokens(selection.start.row);
514
- var col = 0, token;
515
- var quotepos = -1; // Track whether we're inside an open quote.
516
-
517
- for (var x = 0; x < tokens.length; x++) {
518
- token = tokens[x];
519
- if (token.type == "string") {
520
- quotepos = -1;
521
- } else if (quotepos < 0) {
522
- quotepos = token.value.indexOf(quote);
523
- }
524
- if ((token.value.length + col) > selection.start.column) {
525
- break;
526
- }
527
- col += tokens[x].value.length;
528
- }
529
- 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)))) {
530
- if (!CstyleBehaviour.isSaneInsertion(editor, session))
531
- return;
532
- return {
533
- text: quote + quote,
534
- selection: [1,1]
535
- };
536
- } else if (token && token.type === "string") {
537
- var rightChar = line.substring(cursor.column, cursor.column + 1);
538
- if (rightChar == quote) {
539
- return {
540
- text: '',
541
- selection: [1, 1]
542
- };
543
- }
544
- }
545
- }
546
- }
547
- });
548
-
549
- this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
550
- var selected = session.doc.getTextRange(range);
551
- if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
552
- var line = session.doc.getLine(range.start.row);
553
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
554
- if (rightChar == '"') {
555
- range.end.column++;
556
- return range;
557
- }
558
- }
559
- });
560
-
561
- };
562
-
563
- oop.inherits(CstyleBehaviour, Behaviour);
564
-
565
- exports.CstyleBehaviour = CstyleBehaviour;
566
- });
567
-
568
- define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
569
-
570
-
571
- var oop = require("../../lib/oop");
572
- var Range = require("../../range").Range;
573
- var BaseFoldMode = require("./fold_mode").FoldMode;
574
-
575
- var FoldMode = exports.FoldMode = function() {};
576
- oop.inherits(FoldMode, BaseFoldMode);
577
-
578
- (function() {
579
-
580
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
581
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
582
-
583
- this.getFoldWidgetRange = function(session, foldStyle, row) {
584
- var line = session.getLine(row);
585
- var match = line.match(this.foldingStartMarker);
586
- if (match) {
587
- var i = match.index;
588
-
589
- if (match[1])
590
- return this.openingBracketBlock(session, match[1], row, i);
591
-
592
- return session.getCommentFoldRange(row, i + match[0].length, 1);
593
- }
594
-
595
- if (foldStyle !== "markbeginend")
596
- return;
597
-
598
- var match = line.match(this.foldingStopMarker);
599
- if (match) {
600
- var i = match.index + match[0].length;
601
-
602
- if (match[1])
603
- return this.closingBracketBlock(session, match[1], row, i);
604
-
605
- return session.getCommentFoldRange(row, i, -1);
606
- }
607
- };
608
-
609
- }).call(FoldMode.prototype);
610
-
611
- });