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,325 @@
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/clojure', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/clojure_highlight_rules', 'ace/mode/matching_parens_outdent', '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 ClojureHighlightRules = require("./clojure_highlight_rules").ClojureHighlightRules;
38
+ var MatchingParensOutdent = require("./matching_parens_outdent").MatchingParensOutdent;
39
+ var Range = require("../range").Range;
40
+
41
+ var Mode = function() {
42
+ this.$tokenizer = new Tokenizer(new ClojureHighlightRules().getRules());
43
+ this.$outdent = new MatchingParensOutdent();
44
+ };
45
+ oop.inherits(Mode, TextMode);
46
+
47
+ (function() {
48
+
49
+ this.toggleCommentLines = function(state, doc, startRow, endRow) {
50
+ var outdent = true;
51
+ var re = /^(\s*)#/;
52
+
53
+ for (var i=startRow; i<= endRow; i++) {
54
+ if (!re.test(doc.getLine(i))) {
55
+ outdent = false;
56
+ break;
57
+ }
58
+ }
59
+
60
+ if (outdent) {
61
+ var deleteRange = new Range(0, 0, 0, 0);
62
+ for (var i=startRow; i<= endRow; i++)
63
+ {
64
+ var line = doc.getLine(i);
65
+ var m = line.match(re);
66
+ deleteRange.start.row = i;
67
+ deleteRange.end.row = i;
68
+ deleteRange.end.column = m[0].length;
69
+ doc.replace(deleteRange, m[1]);
70
+ }
71
+ }
72
+ else {
73
+ doc.indentRows(startRow, endRow, ";");
74
+ }
75
+ };
76
+
77
+ this.getNextLineIndent = function(state, line, tab) {
78
+ var indent = this.$getIndent(line);
79
+
80
+ var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
81
+ var tokens = tokenizedLine.tokens;
82
+
83
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
84
+ return indent;
85
+ }
86
+
87
+ if (state == "start") {
88
+ var match = line.match(/[\(\[]/);
89
+ if (match) {
90
+ indent += " ";
91
+ }
92
+ match = line.match(/[\)]/);
93
+ if (match) {
94
+ indent = "";
95
+ }
96
+ }
97
+
98
+ return indent;
99
+ };
100
+
101
+ this.checkOutdent = function(state, line, input) {
102
+ return this.$outdent.checkOutdent(line, input);
103
+ };
104
+
105
+ this.autoOutdent = function(state, doc, row) {
106
+ this.$outdent.autoOutdent(doc, row);
107
+ };
108
+
109
+ }).call(Mode.prototype);
110
+
111
+ exports.Mode = Mode;
112
+ });
113
+
114
+ define('ace/mode/clojure_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
115
+
116
+
117
+ var oop = require("../lib/oop");
118
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
119
+
120
+
121
+
122
+ var ClojureHighlightRules = function() {
123
+
124
+ var builtinFunctions = (
125
+ '* *1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* ' +
126
+ '*command-line-args* *compile-files* *compile-path* *e *err* *file* ' +
127
+ '*flush-on-newline* *in* *macro-meta* *math-context* *ns* *out* ' +
128
+ '*print-dup* *print-length* *print-level* *print-meta* *print-readably* ' +
129
+ '*read-eval* *source-path* *use-context-classloader* ' +
130
+ '*warn-on-reflection* + - -> ->> .. / < <= = ' +
131
+ '== > &gt; >= &gt;= accessor aclone ' +
132
+ 'add-classpath add-watch agent agent-errors aget alength alias all-ns ' +
133
+ 'alter alter-meta! alter-var-root amap ancestors and apply areduce ' +
134
+ 'array-map aset aset-boolean aset-byte aset-char aset-double aset-float ' +
135
+ 'aset-int aset-long aset-short assert assoc assoc! assoc-in associative? ' +
136
+ 'atom await await-for await1 bases bean bigdec bigint binding bit-and ' +
137
+ 'bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left ' +
138
+ 'bit-shift-right bit-test bit-xor boolean boolean-array booleans ' +
139
+ 'bound-fn bound-fn* butlast byte byte-array bytes cast char char-array ' +
140
+ 'char-escape-string char-name-string char? chars chunk chunk-append ' +
141
+ 'chunk-buffer chunk-cons chunk-first chunk-next chunk-rest chunked-seq? ' +
142
+ 'class class? clear-agent-errors clojure-version coll? comment commute ' +
143
+ 'comp comparator compare compare-and-set! compile complement concat cond ' +
144
+ 'condp conj conj! cons constantly construct-proxy contains? count ' +
145
+ 'counted? create-ns create-struct cycle dec decimal? declare definline ' +
146
+ 'defmacro defmethod defmulti defn defn- defonce defstruct delay delay? ' +
147
+ 'deliver deref derive descendants destructure disj disj! dissoc dissoc! ' +
148
+ 'distinct distinct? doall doc dorun doseq dosync dotimes doto double ' +
149
+ 'double-array doubles drop drop-last drop-while empty empty? ensure ' +
150
+ 'enumeration-seq eval even? every? false? ffirst file-seq filter find ' +
151
+ 'find-doc find-ns find-var first float float-array float? floats flush ' +
152
+ 'fn fn? fnext for force format future future-call future-cancel ' +
153
+ 'future-cancelled? future-done? future? gen-class gen-interface gensym ' +
154
+ 'get get-in get-method get-proxy-class get-thread-bindings get-validator ' +
155
+ 'hash hash-map hash-set identical? identity if-let if-not ifn? import ' +
156
+ 'in-ns inc init-proxy instance? int int-array integer? interleave intern ' +
157
+ 'interpose into into-array ints io! isa? iterate iterator-seq juxt key ' +
158
+ 'keys keyword keyword? last lazy-cat lazy-seq let letfn line-seq list ' +
159
+ 'list* list? load load-file load-reader load-string loaded-libs locking ' +
160
+ 'long long-array longs loop macroexpand macroexpand-1 make-array ' +
161
+ 'make-hierarchy map map? mapcat max max-key memfn memoize merge ' +
162
+ 'merge-with meta method-sig methods min min-key mod name namespace neg? ' +
163
+ 'newline next nfirst nil? nnext not not-any? not-empty not-every? not= ' +
164
+ 'ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ' +
165
+ 'ns-refers ns-resolve ns-unalias ns-unmap nth nthnext num number? odd? ' +
166
+ 'or parents partial partition pcalls peek persistent! pmap pop pop! ' +
167
+ 'pop-thread-bindings pos? pr pr-str prefer-method prefers ' +
168
+ 'primitives-classnames print print-ctor print-doc print-dup print-method ' +
169
+ 'print-namespace-doc print-simple print-special-doc print-str printf ' +
170
+ 'println println-str prn prn-str promise proxy proxy-call-with-super ' +
171
+ 'proxy-mappings proxy-name proxy-super push-thread-bindings pvalues quot ' +
172
+ 'rand rand-int range ratio? rational? rationalize re-find re-groups ' +
173
+ 're-matcher re-matches re-pattern re-seq read read-line read-string ' +
174
+ 'reduce ref ref-history-count ref-max-history ref-min-history ref-set ' +
175
+ 'refer refer-clojure release-pending-sends rem remove remove-method ' +
176
+ 'remove-ns remove-watch repeat repeatedly replace replicate require ' +
177
+ 'reset! reset-meta! resolve rest resultset-seq reverse reversible? rseq ' +
178
+ 'rsubseq second select-keys send send-off seq seq? seque sequence ' +
179
+ 'sequential? set set-validator! set? short short-array shorts ' +
180
+ 'shutdown-agents slurp some sort sort-by sorted-map sorted-map-by ' +
181
+ 'sorted-set sorted-set-by sorted? special-form-anchor special-symbol? ' +
182
+ 'split-at split-with str stream? string? struct struct-map subs subseq ' +
183
+ 'subvec supers swap! symbol symbol? sync syntax-symbol-anchor take ' +
184
+ 'take-last take-nth take-while test the-ns time to-array to-array-2d ' +
185
+ 'trampoline transient tree-seq true? type unchecked-add unchecked-dec ' +
186
+ 'unchecked-divide unchecked-inc unchecked-multiply unchecked-negate ' +
187
+ 'unchecked-remainder unchecked-subtract underive unquote ' +
188
+ 'unquote-splicing update-in update-proxy use val vals var-get var-set ' +
189
+ 'var? vary-meta vec vector vector? when when-first when-let when-not ' +
190
+ 'while with-bindings with-bindings* with-in-str with-loading-context ' +
191
+ 'with-local-vars with-meta with-open with-out-str with-precision xml-seq ' +
192
+ 'zero? zipmap'
193
+ );
194
+
195
+ var keywords = ('throw try var ' +
196
+ 'def do fn if let loop monitor-enter monitor-exit new quote recur set!'
197
+ );
198
+
199
+ var buildinConstants = ("true false nil");
200
+
201
+ var keywordMapper = this.createKeywordMapper({
202
+ "keyword": keywords,
203
+ "constant.language": buildinConstants,
204
+ "support.function": builtinFunctions
205
+ }, "identifier", false, " ");
206
+
207
+ this.$rules = {
208
+ "start" : [
209
+ {
210
+ token : "comment",
211
+ regex : ";.*$"
212
+ }, {
213
+ token : "keyword", //parens
214
+ regex : "[\\(|\\)]"
215
+ }, {
216
+ token : "keyword", //lists
217
+ regex : "[\\'\\(]"
218
+ }, {
219
+ token : "keyword", //vectors
220
+ regex : "[\\[|\\]]"
221
+ }, {
222
+ token : "keyword", //sets and maps
223
+ regex : "[\\{|\\}|\\#\\{|\\#\\}]"
224
+ }, {
225
+ token : "keyword", // ampersands
226
+ regex : '[\\&]'
227
+ }, {
228
+ token : "keyword", // metadata
229
+ regex : '[\\#\\^\\{]'
230
+ }, {
231
+ token : "keyword", // anonymous fn syntactic sugar
232
+ regex : '[\\%]'
233
+ }, {
234
+ token : "keyword", // deref reader macro
235
+ regex : '[@]'
236
+ }, {
237
+ token : "constant.numeric", // hex
238
+ regex : "0[xX][0-9a-fA-F]+\\b"
239
+ }, {
240
+ token : "constant.numeric", // float
241
+ regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
242
+ }, {
243
+ token : "constant.language",
244
+ regex : '[!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+||=|!=|<=|>=|<>|<|>|!|&&]'
245
+ }, {
246
+ token : keywordMapper,
247
+ regex : "[a-zA-Z_$][a-zA-Z0-9_$\\-]*\\b"
248
+ }, {
249
+ token : "string", // single line
250
+ regex : '"',
251
+ next: "string"
252
+ }, {
253
+ token : "string", // symbol
254
+ regex : /:[\w*+!\-_?:\/]+/
255
+ }, {
256
+ token : "string.regexp", //Regular Expressions
257
+ regex : '/#"(?:\\.|(?:\\\")|[^\""\n])*"/g'
258
+ }
259
+
260
+ ],
261
+ "string" : [
262
+ {
263
+ token : "constant.language.escape",
264
+ regex : "\\\\.|\\\\$"
265
+ }, {
266
+ token : "string",
267
+ regex : '[^"\\\\]+'
268
+ }, {
269
+ token : "string",
270
+ regex : '"',
271
+ next : "start"
272
+ }
273
+ ]
274
+ };
275
+ };
276
+
277
+ oop.inherits(ClojureHighlightRules, TextHighlightRules);
278
+
279
+ exports.ClojureHighlightRules = ClojureHighlightRules;
280
+ });
281
+
282
+ define('ace/mode/matching_parens_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
283
+
284
+
285
+ var Range = require("../range").Range;
286
+
287
+ var MatchingParensOutdent = function() {};
288
+
289
+ (function() {
290
+
291
+ this.checkOutdent = function(line, input) {
292
+ if (! /^\s+$/.test(line))
293
+ return false;
294
+
295
+ return /^\s*\)/.test(input);
296
+ };
297
+
298
+ this.autoOutdent = function(doc, row) {
299
+ var line = doc.getLine(row);
300
+ var match = line.match(/^(\s*\))/);
301
+
302
+ if (!match) return 0;
303
+
304
+ var column = match[1].length;
305
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
306
+
307
+ if (!openBracePos || openBracePos.row == row) return 0;
308
+
309
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
310
+ doc.replace(new Range(row, 0, row, column-1), indent);
311
+ };
312
+
313
+ this.$getIndent = function(line) {
314
+ var match = line.match(/^(\s+)/);
315
+ if (match) {
316
+ return match[1];
317
+ }
318
+
319
+ return "";
320
+ };
321
+
322
+ }).call(MatchingParensOutdent.prototype);
323
+
324
+ exports.MatchingParensOutdent = MatchingParensOutdent;
325
+ });
@@ -0,0 +1,520 @@
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/coffee', ['require', 'exports', 'module' , 'ace/tokenizer', 'ace/mode/coffee_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/folding/coffee', 'ace/range', 'ace/mode/text', 'ace/worker/worker_client', 'ace/lib/oop'], function(require, exports, module) {
32
+
33
+
34
+ var Tokenizer = require("../tokenizer").Tokenizer;
35
+ var Rules = require("./coffee_highlight_rules").CoffeeHighlightRules;
36
+ var Outdent = require("./matching_brace_outdent").MatchingBraceOutdent;
37
+ var FoldMode = require("./folding/coffee").FoldMode;
38
+ var Range = require("../range").Range;
39
+ var TextMode = require("./text").Mode;
40
+ var WorkerClient = require("../worker/worker_client").WorkerClient;
41
+ var oop = require("../lib/oop");
42
+
43
+ function Mode() {
44
+ this.$tokenizer = new Tokenizer(new Rules().getRules());
45
+ this.$outdent = new Outdent();
46
+ this.foldingRules = new FoldMode();
47
+ }
48
+
49
+ oop.inherits(Mode, TextMode);
50
+
51
+ (function() {
52
+
53
+ var indenter = /(?:[({[=:]|[-=]>|\b(?:else|switch|try|catch(?:\s*[$A-Za-z_\x7f-\uffff][$\w\x7f-\uffff]*)?|finally))\s*$/;
54
+ var commentLine = /^(\s*)#/;
55
+ var hereComment = /^\s*###(?!#)/;
56
+ var indentation = /^\s*/;
57
+
58
+ this.getNextLineIndent = function(state, line, tab) {
59
+ var indent = this.$getIndent(line);
60
+ var tokens = this.$tokenizer.getLineTokens(line, state).tokens;
61
+
62
+ if (!(tokens.length && tokens[tokens.length - 1].type === 'comment') &&
63
+ state === 'start' && indenter.test(line))
64
+ indent += tab;
65
+ return indent;
66
+ };
67
+
68
+ this.toggleCommentLines = function(state, doc, startRow, endRow){
69
+ console.log("toggle");
70
+ var range = new Range(0, 0, 0, 0);
71
+ for (var i = startRow; i <= endRow; ++i) {
72
+ var line = doc.getLine(i);
73
+ if (hereComment.test(line))
74
+ continue;
75
+
76
+ if (commentLine.test(line))
77
+ line = line.replace(commentLine, '$1');
78
+ else
79
+ line = line.replace(indentation, '$&#');
80
+
81
+ range.end.row = range.start.row = i;
82
+ range.end.column = line.length + 1;
83
+ doc.replace(range, line);
84
+ }
85
+ };
86
+
87
+ this.checkOutdent = function(state, line, input) {
88
+ return this.$outdent.checkOutdent(line, input);
89
+ };
90
+
91
+ this.autoOutdent = function(state, doc, row) {
92
+ this.$outdent.autoOutdent(doc, row);
93
+ };
94
+
95
+ this.createWorker = function(session) {
96
+ var worker = new WorkerClient(["ace"], "ace/mode/coffee_worker", "Worker");
97
+ worker.attachToDocument(session.getDocument());
98
+
99
+ worker.on("error", function(e) {
100
+ session.setAnnotations([e.data]);
101
+ });
102
+
103
+ worker.on("ok", function(e) {
104
+ session.clearAnnotations();
105
+ });
106
+
107
+ return worker;
108
+ };
109
+
110
+ }).call(Mode.prototype);
111
+
112
+ exports.Mode = Mode;
113
+
114
+ });
115
+
116
+ define('ace/mode/coffee_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
117
+
118
+
119
+ var oop = require("../lib/oop");
120
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
121
+
122
+ oop.inherits(CoffeeHighlightRules, TextHighlightRules);
123
+
124
+ function CoffeeHighlightRules() {
125
+ var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
126
+ var stringfill = {
127
+ token : "string",
128
+ regex : ".+"
129
+ };
130
+
131
+ var keywords = (
132
+ "this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
133
+ "catch|class|in|instanceof|is|isnt|if|else|extends|for|forown|" +
134
+ "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
135
+ "or|on|unless|until|and|yes"
136
+ );
137
+
138
+ var langConstant = (
139
+ "true|false|null|undefined|NaN|Infinity"
140
+ );
141
+
142
+ var illegal = (
143
+ "case|const|default|function|var|void|with|enum|export|implements|" +
144
+ "interface|let|package|private|protected|public|static|yield|" +
145
+ "__hasProp|slice|bind|indexOf"
146
+ );
147
+
148
+ var supportClass = (
149
+ "Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" +
150
+ "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
151
+ "SyntaxError|TypeError|URIError|" +
152
+ "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
153
+ "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray"
154
+ );
155
+
156
+ var supportFunction = (
157
+ "Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" +
158
+ "encodeURIComponent|decodeURI|decodeURIComponent|String|"
159
+ );
160
+
161
+ var variableLanguage = (
162
+ "window|arguments|prototype|document"
163
+ );
164
+
165
+ var keywordMapper = this.createKeywordMapper({
166
+ "keyword": keywords,
167
+ "constant.language": langConstant,
168
+ "invalid.illegal": illegal,
169
+ "language.support.class": supportClass,
170
+ "language.support.function": supportFunction,
171
+ "variable.language": variableLanguage
172
+ }, "identifier");
173
+
174
+ var functionRules = {
175
+ "({args})->": {
176
+ token: ["paren.lparen", "text", "paren.lparen", "text", "variable.parameter", "text", "paren.rparen", "text", "paren.rparen", "text", "storage.type"],
177
+ regex: "(\\()(\\s*)(\\{)(\\s*)([$@A-Za-z_\\x7f-\\uffff][$@\\w\\s,\\x7f-\\uffff]*)(\\s*)(\\})(\\s*)(\\))(\\s*)([\\-=]>)"
178
+ },
179
+ "({})->": {
180
+ token: ["paren.lparen", "text", "paren.lparen", "text", "paren.rparen", "text", "paren.rparen", "text", "storage.type"],
181
+ regex: "(\\()(\\s*)(\\{)(\\s*)(\\})(\\s*)(\\))(\\s*)([\\-=]>)"
182
+ },
183
+ "(args)->": {
184
+ token: ["paren.lparen", "text", "variable.parameter", "text", "paren.rparen", "text", "storage.type"],
185
+ regex: "(\\()(\\s*)([$@A-Za-z_\\x7f-\\uffff][\\s\\x21-\\uffff]*)(\\s*)(\\))(\\s*)([\\-=]>)"
186
+ },
187
+ "()->": {
188
+ token: ["paren.lparen", "text", "paren.rparen", "text", "storage.type"],
189
+ regex: "(\\()(\\s*)(\\))(\\s*)([\\-=]>)"
190
+ }
191
+ };
192
+
193
+ this.$rules = {
194
+ start : [
195
+ {
196
+ token : "constant.numeric",
197
+ regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
198
+ }, {
199
+ token : "string",
200
+ regex : "'''",
201
+ next : "qdoc"
202
+ }, {
203
+ token : "string",
204
+ regex : '"""',
205
+ next : "qqdoc"
206
+ }, {
207
+ token : "string",
208
+ regex : "'",
209
+ next : "qstring"
210
+ }, {
211
+ token : "string",
212
+ regex : '"',
213
+ next : "qqstring"
214
+ }, {
215
+ token : "string",
216
+ regex : "`",
217
+ next : "js"
218
+ }, {
219
+ token : "string.regex",
220
+ regex : "///",
221
+ next : "heregex"
222
+ }, {
223
+ token : "string.regex",
224
+ regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
225
+ }, {
226
+ token : "comment",
227
+ regex : "###(?!#)",
228
+ next : "comment"
229
+ }, {
230
+ token : "comment",
231
+ regex : "#.*"
232
+ }, {
233
+ token : [
234
+ "punctuation.operator", "identifier"
235
+ ],
236
+ regex : "(\\.)(" + illegal + ")"
237
+ }, {
238
+ token : "punctuation.operator",
239
+ regex : "\\."
240
+ }, {
241
+ token : [
242
+ "keyword", "text", "language.support.class", "text", "keyword", "text", "language.support.class"
243
+ ],
244
+ regex : "(class)(\\s+)(" + identifier + ")(\\s+)(extends)(\\s+)(" + identifier + ")"
245
+ }, {
246
+ token : [
247
+ "keyword", "text", "language.support.class"
248
+ ],
249
+ regex : "(class)(\\s+)(" + identifier + ")"
250
+ }, {
251
+ token : [
252
+ "entity.name.function", "text", "keyword.operator", "text"
253
+ ].concat(functionRules["({args})->"].token),
254
+ regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["({args})->"].regex
255
+ }, {
256
+ token : [
257
+ "entity.name.function", "text", "punctuation.operator", "text"
258
+ ].concat(functionRules["({args})->"].token),
259
+ regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["({args})->"].regex
260
+ }, {
261
+ token : [
262
+ "entity.name.function", "text", "keyword.operator", "text"
263
+ ].concat(functionRules["({})->"].token),
264
+ regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["({})->"].regex
265
+ }, {
266
+ token : [
267
+ "entity.name.function", "text", "punctuation.operator", "text"
268
+ ].concat(functionRules["({})->"].token),
269
+ regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["({})->"].regex
270
+ }, {
271
+ token : [
272
+ "entity.name.function", "text", "keyword.operator", "text"
273
+ ].concat(functionRules["(args)->"].token),
274
+ regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["(args)->"].regex
275
+ }, {
276
+ token : [
277
+ "entity.name.function", "text", "punctuation.operator", "text"
278
+ ].concat(functionRules["(args)->"].token),
279
+ regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["(args)->"].regex
280
+ }, {
281
+ token : [
282
+ "entity.name.function", "text", "keyword.operator", "text"
283
+ ].concat(functionRules["()->"].token),
284
+ regex : "(" + identifier + ")(\\s*)(=)(\\s*)" + functionRules["()->"].regex
285
+ }, {
286
+ token : [
287
+ "entity.name.function", "text", "punctuation.operator", "text"
288
+ ].concat(functionRules["()->"].token),
289
+ regex : "(" + identifier + ")(\\s*)(:)(\\s*)" + functionRules["()->"].regex
290
+ }, {
291
+ token : [
292
+ "entity.name.function", "text", "keyword.operator", "text", "storage.type"
293
+ ],
294
+ regex : "(" + identifier + ")(\\s*)(=)(\\s*)([\\-=]>)"
295
+ }, {
296
+ token : [
297
+ "entity.name.function", "text", "punctuation.operator", "text", "storage.type"
298
+ ],
299
+ regex : "(" + identifier + ")(\\s*)(:)(\\s*)([\\-=]>)"
300
+ },
301
+ functionRules["({args})->"],
302
+ functionRules["({})->"],
303
+ functionRules["(args)->"],
304
+ functionRules["()->"]
305
+ , {
306
+ token : "identifier",
307
+ regex : "(?:(?:\\.|::)\\s*)" + identifier
308
+ }, {
309
+ token : "variable",
310
+ regex : "@(?:" + identifier + ")?"
311
+ }, {
312
+ token: keywordMapper,
313
+ regex : identifier
314
+ }, {
315
+ token : "punctuation.operator",
316
+ regex : "\\?|\\:|\\,|\\."
317
+ }, {
318
+ token : "storage.type",
319
+ regex : "[\\-=]>"
320
+ }, {
321
+ token : "keyword.operator",
322
+ regex : "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"
323
+ }, {
324
+ token : "paren.lparen",
325
+ regex : "[({[]"
326
+ }, {
327
+ token : "paren.rparen",
328
+ regex : "[\\]})]"
329
+ }, {
330
+ token : "text",
331
+ regex : "\\s+"
332
+ }],
333
+
334
+ qdoc : [{
335
+ token : "string",
336
+ regex : ".*?'''",
337
+ next : "start"
338
+ }, stringfill],
339
+
340
+ qqdoc : [{
341
+ token : "string",
342
+ regex : '.*?"""',
343
+ next : "start"
344
+ }, stringfill],
345
+
346
+ qstring : [{
347
+ token : "string",
348
+ regex : "[^\\\\']*(?:\\\\.[^\\\\']*)*'",
349
+ next : "start"
350
+ }, stringfill],
351
+
352
+ qqstring : [{
353
+ token : "string",
354
+ regex : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
355
+ next : "start"
356
+ }, stringfill],
357
+
358
+ js : [{
359
+ token : "string",
360
+ regex : "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",
361
+ next : "start"
362
+ }, stringfill],
363
+
364
+ heregex : [{
365
+ token : "string.regex",
366
+ regex : '.*?///[imgy]{0,4}',
367
+ next : "start"
368
+ }, {
369
+ token : "comment.regex",
370
+ regex : "\\s+(?:#.*)?"
371
+ }, {
372
+ token : "string.regex",
373
+ regex : "\\S+"
374
+ }],
375
+
376
+ comment : [{
377
+ token : "comment",
378
+ regex : '.*?###',
379
+ next : "start"
380
+ }, {
381
+ token : "comment",
382
+ regex : ".+"
383
+ }]
384
+ };
385
+ }
386
+
387
+ exports.CoffeeHighlightRules = CoffeeHighlightRules;
388
+ });
389
+
390
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
391
+
392
+
393
+ var Range = require("../range").Range;
394
+
395
+ var MatchingBraceOutdent = function() {};
396
+
397
+ (function() {
398
+
399
+ this.checkOutdent = function(line, input) {
400
+ if (! /^\s+$/.test(line))
401
+ return false;
402
+
403
+ return /^\s*\}/.test(input);
404
+ };
405
+
406
+ this.autoOutdent = function(doc, row) {
407
+ var line = doc.getLine(row);
408
+ var match = line.match(/^(\s*\})/);
409
+
410
+ if (!match) return 0;
411
+
412
+ var column = match[1].length;
413
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
414
+
415
+ if (!openBracePos || openBracePos.row == row) return 0;
416
+
417
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
418
+ doc.replace(new Range(row, 0, row, column-1), indent);
419
+ };
420
+
421
+ this.$getIndent = function(line) {
422
+ var match = line.match(/^(\s+)/);
423
+ if (match) {
424
+ return match[1];
425
+ }
426
+
427
+ return "";
428
+ };
429
+
430
+ }).call(MatchingBraceOutdent.prototype);
431
+
432
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
433
+ });
434
+
435
+ define('ace/mode/folding/coffee', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range'], function(require, exports, module) {
436
+
437
+
438
+ var oop = require("../../lib/oop");
439
+ var BaseFoldMode = require("./fold_mode").FoldMode;
440
+ var Range = require("../../range").Range;
441
+
442
+ var FoldMode = exports.FoldMode = function() {};
443
+ oop.inherits(FoldMode, BaseFoldMode);
444
+
445
+ (function() {
446
+
447
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
448
+ var range = this.indentationBlock(session, row);
449
+ if (range)
450
+ return range;
451
+
452
+ var re = /\S/;
453
+ var line = session.getLine(row);
454
+ var startLevel = line.search(re);
455
+ if (startLevel == -1 || line[startLevel] != "#")
456
+ return;
457
+
458
+ var startColumn = line.length;
459
+ var maxRow = session.getLength();
460
+ var startRow = row;
461
+ var endRow = row;
462
+
463
+ while (++row < maxRow) {
464
+ line = session.getLine(row);
465
+ var level = line.search(re);
466
+
467
+ if (level == -1)
468
+ continue;
469
+
470
+ if (line[level] != "#")
471
+ break;
472
+
473
+ endRow = row;
474
+ }
475
+
476
+ if (endRow > startRow) {
477
+ var endColumn = session.getLine(endRow).length;
478
+ return new Range(startRow, startColumn, endRow, endColumn);
479
+ }
480
+ };
481
+ this.getFoldWidget = function(session, foldStyle, row) {
482
+ var line = session.getLine(row);
483
+ var indent = line.search(/\S/);
484
+ var next = session.getLine(row + 1);
485
+ var prev = session.getLine(row - 1);
486
+ var prevIndent = prev.search(/\S/);
487
+ var nextIndent = next.search(/\S/);
488
+
489
+ if (indent == -1) {
490
+ session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
491
+ return "";
492
+ }
493
+ if (prevIndent == -1) {
494
+ if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
495
+ session.foldWidgets[row - 1] = "";
496
+ session.foldWidgets[row + 1] = "";
497
+ return "start";
498
+ }
499
+ } else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
500
+ if (session.getLine(row - 2).search(/\S/) == -1) {
501
+ session.foldWidgets[row - 1] = "start";
502
+ session.foldWidgets[row + 1] = "";
503
+ return "";
504
+ }
505
+ }
506
+
507
+ if (prevIndent!= -1 && prevIndent < indent)
508
+ session.foldWidgets[row - 1] = "start";
509
+ else
510
+ session.foldWidgets[row - 1] = "";
511
+
512
+ if (indent < nextIndent)
513
+ return "start";
514
+ else
515
+ return "";
516
+ };
517
+
518
+ }).call(FoldMode.prototype);
519
+
520
+ });