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,416 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/mode/scss', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/scss_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/folding/cstyle'], function(require, exports, module) {
32
+
33
+
34
+ var oop = require("../lib/oop");
35
+ var TextMode = require("./text").Mode;
36
+ var Tokenizer = require("../tokenizer").Tokenizer;
37
+ var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
38
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
39
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
40
+
41
+ var Mode = function() {
42
+ this.$tokenizer = new Tokenizer(new ScssHighlightRules().getRules(), "i");
43
+ this.$outdent = new MatchingBraceOutdent();
44
+ this.foldingRules = new CStyleFoldMode();
45
+ };
46
+ oop.inherits(Mode, TextMode);
47
+
48
+ (function() {
49
+
50
+ this.getNextLineIndent = function(state, line, tab) {
51
+ var indent = this.$getIndent(line);
52
+ var tokens = this.$tokenizer.getLineTokens(line, state).tokens;
53
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
54
+ return indent;
55
+ }
56
+
57
+ var match = line.match(/^.*\{\s*$/);
58
+ if (match) {
59
+ indent += tab;
60
+ }
61
+
62
+ return indent;
63
+ };
64
+
65
+ this.checkOutdent = function(state, line, input) {
66
+ return this.$outdent.checkOutdent(line, input);
67
+ };
68
+
69
+ this.autoOutdent = function(state, doc, row) {
70
+ this.$outdent.autoOutdent(doc, row);
71
+ };
72
+
73
+ }).call(Mode.prototype);
74
+
75
+ exports.Mode = Mode;
76
+
77
+ });
78
+
79
+ define('ace/mode/scss_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
80
+
81
+
82
+ var oop = require("../lib/oop");
83
+ var lang = require("../lib/lang");
84
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
85
+
86
+ var ScssHighlightRules = function() {
87
+
88
+ var properties = lang.arrayToMap( (function () {
89
+
90
+ var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
91
+
92
+ var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
93
+ "background-size|binding|border-bottom-colors|border-left-colors|" +
94
+ "border-right-colors|border-top-colors|border-end|border-end-color|" +
95
+ "border-end-style|border-end-width|border-image|border-start|" +
96
+ "border-start-color|border-start-style|border-start-width|box-align|" +
97
+ "box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
98
+ "box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
99
+ "column-rule-width|column-rule-style|column-rule-color|float-edge|" +
100
+ "font-feature-settings|font-language-override|force-broken-image-icon|" +
101
+ "image-region|margin-end|margin-start|opacity|outline|outline-color|" +
102
+ "outline-offset|outline-radius|outline-radius-bottomleft|" +
103
+ "outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
104
+ "outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
105
+ "tab-size|text-blink|text-decoration-color|text-decoration-line|" +
106
+ "text-decoration-style|transform|transform-origin|transition|" +
107
+ "transition-delay|transition-duration|transition-property|" +
108
+ "transition-timing-function|user-focus|user-input|user-modify|user-select|" +
109
+ "window-shadow|border-radius").split("|");
110
+
111
+ var properties = ("azimuth|background-attachment|background-color|background-image|" +
112
+ "background-position|background-repeat|background|border-bottom-color|" +
113
+ "border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
114
+ "border-color|border-left-color|border-left-style|border-left-width|" +
115
+ "border-left|border-right-color|border-right-style|border-right-width|" +
116
+ "border-right|border-spacing|border-style|border-top-color|" +
117
+ "border-top-style|border-top-width|border-top|border-width|border|" +
118
+ "bottom|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
119
+ "counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
120
+ "elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
121
+ "font-stretch|font-style|font-variant|font-weight|font|height|left|" +
122
+ "letter-spacing|line-height|list-style-image|list-style-position|" +
123
+ "list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
124
+ "margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
125
+ "min-width|opacity|orphans|outline-color|" +
126
+ "outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
127
+ "padding-left|padding-right|padding-top|padding|page-break-after|" +
128
+ "page-break-before|page-break-inside|page|pause-after|pause-before|" +
129
+ "pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
130
+ "size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
131
+ "stress|table-layout|text-align|text-decoration|text-indent|" +
132
+ "text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
133
+ "visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
134
+ "z-index").split("|");
135
+ var ret = [];
136
+ for (var i=0, ln=browserPrefix.length; i<ln; i++) {
137
+ Array.prototype.push.apply(
138
+ ret,
139
+ (( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
140
+ );
141
+ }
142
+ Array.prototype.push.apply(ret, prefixProperties);
143
+ Array.prototype.push.apply(ret, properties);
144
+
145
+ return ret;
146
+
147
+ })() );
148
+
149
+
150
+
151
+ var functions = lang.arrayToMap(
152
+ ("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
153
+ "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
154
+ "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
155
+ "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
156
+ "scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")
157
+ );
158
+
159
+ var constants = lang.arrayToMap(
160
+ ("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
161
+ "block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
162
+ "char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
163
+ "decimal-leading-zero|decimal|default|disabled|disc|" +
164
+ "distribute-all-lines|distribute-letter|distribute-space|" +
165
+ "distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
166
+ "hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
167
+ "ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
168
+ "ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
169
+ "inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
170
+ "keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
171
+ "lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
172
+ "medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
173
+ "nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
174
+ "overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
175
+ "ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
176
+ "solid|square|static|strict|super|sw-resize|table-footer-group|" +
177
+ "table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
178
+ "transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
179
+ "vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
180
+ "zero").split("|")
181
+ );
182
+
183
+ var colors = lang.arrayToMap(
184
+ ("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
185
+ "purple|red|silver|teal|white|yellow").split("|")
186
+ );
187
+
188
+ var keywords = lang.arrayToMap(
189
+ ("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
190
+ )
191
+
192
+ var tags = lang.arrayToMap(
193
+ ("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
194
+ "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
195
+ "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
196
+ "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
197
+ "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
198
+ "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
199
+ "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
200
+ "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
201
+ "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
202
+ );
203
+
204
+ var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
205
+
206
+ this.$rules = {
207
+ "start" : [
208
+ {
209
+ token : "comment",
210
+ regex : "\\/\\/.*$"
211
+ },
212
+ {
213
+ token : "comment", // multi line comment
214
+ regex : "\\/\\*",
215
+ next : "comment"
216
+ }, {
217
+ token : "string", // single line
218
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
219
+ }, {
220
+ token : "string", // multi line string start
221
+ regex : '["].*\\\\$',
222
+ next : "qqstring"
223
+ }, {
224
+ token : "string", // single line
225
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
226
+ }, {
227
+ token : "string", // multi line string start
228
+ regex : "['].*\\\\$",
229
+ next : "qstring"
230
+ }, {
231
+ token : "constant.numeric",
232
+ regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
233
+ }, {
234
+ token : "constant.numeric", // hex6 color
235
+ regex : "#[a-f0-9]{6}"
236
+ }, {
237
+ token : "constant.numeric", // hex3 color
238
+ regex : "#[a-f0-9]{3}"
239
+ }, {
240
+ token : "constant.numeric",
241
+ regex : numRe
242
+ }, {
243
+ token : function(value) {
244
+ if (properties.hasOwnProperty(value.toLowerCase()))
245
+ return "support.type";
246
+ if (keywords.hasOwnProperty(value))
247
+ return "keyword";
248
+ else if (constants.hasOwnProperty(value))
249
+ return "constant.language";
250
+ else if (functions.hasOwnProperty(value))
251
+ return "support.function";
252
+ else if (colors.hasOwnProperty(value.toLowerCase()))
253
+ return "support.constant.color";
254
+ else if (tags.hasOwnProperty(value.toLowerCase()))
255
+ return "variable.language";
256
+ else
257
+ return "text";
258
+ },
259
+ regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
260
+ }, {
261
+ token : "variable",
262
+ regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
263
+ }, {
264
+ token: "variable.language",
265
+ regex: "#[a-z0-9-_]+"
266
+ }, {
267
+ token: "variable.language",
268
+ regex: "\\.[a-z0-9-_]+"
269
+ }, {
270
+ token: "variable.language",
271
+ regex: ":[a-z0-9-_]+"
272
+ }, {
273
+ token: "constant",
274
+ regex: "[a-z0-9-_]+"
275
+ }, {
276
+ token : "keyword.operator",
277
+ regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
278
+ }, {
279
+ token : "paren.lparen",
280
+ regex : "[[({]"
281
+ }, {
282
+ token : "paren.rparen",
283
+ regex : "[\\])}]"
284
+ }, {
285
+ token : "text",
286
+ regex : "\\s+"
287
+ }
288
+ ],
289
+ "comment" : [
290
+ {
291
+ token : "comment", // closing comment
292
+ regex : ".*?\\*\\/",
293
+ next : "start"
294
+ }, {
295
+ token : "comment", // comment spanning whole line
296
+ regex : ".+"
297
+ }
298
+ ],
299
+ "qqstring" : [
300
+ {
301
+ token : "string",
302
+ regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
303
+ next : "start"
304
+ }, {
305
+ token : "string",
306
+ regex : '.+'
307
+ }
308
+ ],
309
+ "qstring" : [
310
+ {
311
+ token : "string",
312
+ regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
313
+ next : "start"
314
+ }, {
315
+ token : "string",
316
+ regex : '.+'
317
+ }
318
+ ]
319
+ };
320
+ };
321
+
322
+ oop.inherits(ScssHighlightRules, TextHighlightRules);
323
+
324
+ exports.ScssHighlightRules = ScssHighlightRules;
325
+
326
+ });
327
+
328
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
329
+
330
+
331
+ var Range = require("../range").Range;
332
+
333
+ var MatchingBraceOutdent = function() {};
334
+
335
+ (function() {
336
+
337
+ this.checkOutdent = function(line, input) {
338
+ if (! /^\s+$/.test(line))
339
+ return false;
340
+
341
+ return /^\s*\}/.test(input);
342
+ };
343
+
344
+ this.autoOutdent = function(doc, row) {
345
+ var line = doc.getLine(row);
346
+ var match = line.match(/^(\s*\})/);
347
+
348
+ if (!match) return 0;
349
+
350
+ var column = match[1].length;
351
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
352
+
353
+ if (!openBracePos || openBracePos.row == row) return 0;
354
+
355
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
356
+ doc.replace(new Range(row, 0, row, column-1), indent);
357
+ };
358
+
359
+ this.$getIndent = function(line) {
360
+ var match = line.match(/^(\s+)/);
361
+ if (match) {
362
+ return match[1];
363
+ }
364
+
365
+ return "";
366
+ };
367
+
368
+ }).call(MatchingBraceOutdent.prototype);
369
+
370
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
371
+ });
372
+
373
+ define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
374
+
375
+
376
+ var oop = require("../../lib/oop");
377
+ var Range = require("../../range").Range;
378
+ var BaseFoldMode = require("./fold_mode").FoldMode;
379
+
380
+ var FoldMode = exports.FoldMode = function() {};
381
+ oop.inherits(FoldMode, BaseFoldMode);
382
+
383
+ (function() {
384
+
385
+ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
386
+ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
387
+
388
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
389
+ var line = session.getLine(row);
390
+ var match = line.match(this.foldingStartMarker);
391
+ if (match) {
392
+ var i = match.index;
393
+
394
+ if (match[1])
395
+ return this.openingBracketBlock(session, match[1], row, i);
396
+
397
+ return session.getCommentFoldRange(row, i + match[0].length, 1);
398
+ }
399
+
400
+ if (foldStyle !== "markbeginend")
401
+ return;
402
+
403
+ var match = line.match(this.foldingStopMarker);
404
+ if (match) {
405
+ var i = match.index + match[0].length;
406
+
407
+ if (match[1])
408
+ return this.closingBracketBlock(session, match[1], row, i);
409
+
410
+ return session.getCommentFoldRange(row, i, -1);
411
+ }
412
+ };
413
+
414
+ }).call(FoldMode.prototype);
415
+
416
+ });
@@ -0,0 +1,232 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/mode/sh', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/sh_highlight_rules', 'ace/range'], function(require, exports, module) {
32
+
33
+
34
+ var oop = require("../lib/oop");
35
+ var TextMode = require("./text").Mode;
36
+ var Tokenizer = require("../tokenizer").Tokenizer;
37
+ var ShHighlightRules = require("./sh_highlight_rules").ShHighlightRules;
38
+ var Range = require("../range").Range;
39
+
40
+ var Mode = function() {
41
+ this.$tokenizer = new Tokenizer(new ShHighlightRules().getRules());
42
+ };
43
+ oop.inherits(Mode, TextMode);
44
+
45
+ (function() {
46
+
47
+ this.toggleCommentLines = function(state, doc, startRow, endRow) {
48
+ var outdent = true;
49
+ var re = /^(\s*)#/;
50
+
51
+ for (var i=startRow; i<= endRow; i++) {
52
+ if (!re.test(doc.getLine(i))) {
53
+ outdent = false;
54
+ break;
55
+ }
56
+ }
57
+
58
+ if (outdent) {
59
+ var deleteRange = new Range(0, 0, 0, 0);
60
+ for (var i=startRow; i<= endRow; i++)
61
+ {
62
+ var line = doc.getLine(i);
63
+ var m = line.match(re);
64
+ deleteRange.start.row = i;
65
+ deleteRange.end.row = i;
66
+ deleteRange.end.column = m[0].length;
67
+ doc.replace(deleteRange, m[1]);
68
+ }
69
+ }
70
+ else {
71
+ doc.indentRows(startRow, endRow, "#");
72
+ }
73
+ };
74
+
75
+ this.getNextLineIndent = function(state, line, tab) {
76
+ var indent = this.$getIndent(line);
77
+
78
+ var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
79
+ var tokens = tokenizedLine.tokens;
80
+
81
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
82
+ return indent;
83
+ }
84
+
85
+ if (state == "start") {
86
+ var match = line.match(/^.*[\{\(\[\:]\s*$/);
87
+ if (match) {
88
+ indent += tab;
89
+ }
90
+ }
91
+
92
+ return indent;
93
+ };
94
+
95
+ var outdents = {
96
+ "pass": 1,
97
+ "return": 1,
98
+ "raise": 1,
99
+ "break": 1,
100
+ "continue": 1
101
+ };
102
+
103
+ this.checkOutdent = function(state, line, input) {
104
+ if (input !== "\r\n" && input !== "\r" && input !== "\n")
105
+ return false;
106
+
107
+ var tokens = this.$tokenizer.getLineTokens(line.trim(), state).tokens;
108
+
109
+ if (!tokens)
110
+ return false;
111
+ do {
112
+ var last = tokens.pop();
113
+ } while (last && (last.type == "comment" || (last.type == "text" && last.value.match(/^\s+$/))));
114
+
115
+ if (!last)
116
+ return false;
117
+
118
+ return (last.type == "keyword" && outdents[last.value]);
119
+ };
120
+
121
+ this.autoOutdent = function(state, doc, row) {
122
+
123
+ row += 1;
124
+ var indent = this.$getIndent(doc.getLine(row));
125
+ var tab = doc.getTabString();
126
+ if (indent.slice(-tab.length) == tab)
127
+ doc.remove(new Range(row, indent.length-tab.length, row, indent.length));
128
+ };
129
+
130
+ }).call(Mode.prototype);
131
+
132
+ exports.Mode = Mode;
133
+ });
134
+
135
+ define('ace/mode/sh_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
136
+
137
+
138
+ var oop = require("../lib/oop");
139
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
140
+
141
+ var reservedKeywords = exports.reservedKeywords = (
142
+ '!|{|}|case|do|done|elif|else|'+
143
+ 'esac|fi|for|if|in|then|until|while|'+
144
+ '&|;|export|local|read|typeset|unset|'+
145
+ 'elif|select|set'
146
+ );
147
+
148
+ var languageConstructs = exports.languageConstructs = (
149
+ '[|]|alias|bg|bind|break|builtin|'+
150
+ 'cd|command|compgen|complete|continue|'+
151
+ 'dirs|disown|echo|enable|eval|exec|'+
152
+ 'exit|fc|fg|getopts|hash|help|history|'+
153
+ 'jobs|kill|let|logout|popd|printf|pushd|'+
154
+ 'pwd|return|set|shift|shopt|source|'+
155
+ 'suspend|test|times|trap|type|ulimit|'+
156
+ 'umask|unalias|wait'
157
+ );
158
+
159
+ var ShHighlightRules = function() {
160
+ var keywordMapper = this.createKeywordMapper({
161
+ "keyword": reservedKeywords,
162
+ "support.function.builtin": languageConstructs,
163
+ "invalid.deprecated": "debugger"
164
+ }, "identifier");
165
+
166
+ var integer = "(?:(?:[1-9]\\d*)|(?:0))";
167
+
168
+ var fraction = "(?:\\.\\d+)";
169
+ var intPart = "(?:\\d+)";
170
+ var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
171
+ var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + ")";
172
+ var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
173
+ var fileDescriptor = "(?:&" + intPart + ")";
174
+
175
+ var variableName = "[a-zA-Z][a-zA-Z0-9_]*";
176
+ var variable = "(?:(?:\\$" + variableName + ")|(?:" + variableName + "=))";
177
+
178
+ var builtinVariable = "(?:\\$(?:SHLVL|\\$|\\!|\\?))";
179
+
180
+ var func = "(?:" + variableName + "\\s*\\(\\))";
181
+
182
+ this.$rules = {
183
+ "start" : [ {
184
+ token : "comment",
185
+ regex : "#.*$"
186
+ }, {
187
+ token : "string", // " string
188
+ regex : '"(?:[^\\\\]|\\\\.)*?"'
189
+ }, {
190
+ token : "variable.language",
191
+ regex : builtinVariable
192
+ }, {
193
+ token : "variable",
194
+ regex : variable
195
+ }, {
196
+ token : "support.function",
197
+ regex : func
198
+ }, {
199
+ token : "support.function",
200
+ regex : fileDescriptor
201
+ }, {
202
+ token : "string", // ' string
203
+ regex : "'(?:[^\\\\]|\\\\.)*?'"
204
+ }, {
205
+ token : "constant.numeric", // float
206
+ regex : floatNumber
207
+ }, {
208
+ token : "constant.numeric", // integer
209
+ regex : integer + "\\b"
210
+ }, {
211
+ token : keywordMapper,
212
+ regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
213
+ }, {
214
+ token : "keyword.operator",
215
+ regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!="
216
+ }, {
217
+ token : "paren.lparen",
218
+ regex : "[\\[\\(\\{]"
219
+ }, {
220
+ token : "paren.rparen",
221
+ regex : "[\\]\\)\\}]"
222
+ }, {
223
+ token : "text",
224
+ regex : "\\s+"
225
+ } ]
226
+ };
227
+ };
228
+
229
+ oop.inherits(ShHighlightRules, TextHighlightRules);
230
+
231
+ exports.ShHighlightRules = ShHighlightRules;
232
+ });