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,290 @@
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/python', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/python_highlight_rules', 'ace/mode/folding/pythonic', '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 PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules;
38
+ var PythonFoldMode = require("./folding/pythonic").FoldMode;
39
+ var Range = require("../range").Range;
40
+
41
+ var Mode = function() {
42
+ this.$tokenizer = new Tokenizer(new PythonHighlightRules().getRules());
43
+ this.foldingRules = new PythonFoldMode("\\:");
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(/^.*[\{\(\[\:]\s*$/);
89
+ if (match) {
90
+ indent += tab;
91
+ }
92
+ }
93
+
94
+ return indent;
95
+ };
96
+
97
+ var outdents = {
98
+ "pass": 1,
99
+ "return": 1,
100
+ "raise": 1,
101
+ "break": 1,
102
+ "continue": 1
103
+ };
104
+
105
+ this.checkOutdent = function(state, line, input) {
106
+ if (input !== "\r\n" && input !== "\r" && input !== "\n")
107
+ return false;
108
+
109
+ var tokens = this.$tokenizer.getLineTokens(line.trim(), state).tokens;
110
+
111
+ if (!tokens)
112
+ return false;
113
+ do {
114
+ var last = tokens.pop();
115
+ } while (last && (last.type == "comment" || (last.type == "text" && last.value.match(/^\s+$/))));
116
+
117
+ if (!last)
118
+ return false;
119
+
120
+ return (last.type == "keyword" && outdents[last.value]);
121
+ };
122
+
123
+ this.autoOutdent = function(state, doc, row) {
124
+
125
+ row += 1;
126
+ var indent = this.$getIndent(doc.getLine(row));
127
+ var tab = doc.getTabString();
128
+ if (indent.slice(-tab.length) == tab)
129
+ doc.remove(new Range(row, indent.length-tab.length, row, indent.length));
130
+ };
131
+
132
+ }).call(Mode.prototype);
133
+
134
+ exports.Mode = Mode;
135
+ });
136
+
137
+ define('ace/mode/python_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
138
+
139
+
140
+ var oop = require("../lib/oop");
141
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
142
+
143
+ var PythonHighlightRules = function() {
144
+
145
+ var keywords = (
146
+ "and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
147
+ "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
148
+ "raise|return|try|while|with|yield"
149
+ );
150
+
151
+ var builtinConstants = (
152
+ "True|False|None|NotImplemented|Ellipsis|__debug__"
153
+ );
154
+
155
+ var builtinFunctions = (
156
+ "abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
157
+ "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
158
+ "binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|" +
159
+ "float|list|raw_input|unichr|callable|format|locals|reduce|unicode|" +
160
+ "chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|" +
161
+ "cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|" +
162
+ "__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
163
+ "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern"
164
+ );
165
+ var keywordMapper = this.createKeywordMapper({
166
+ "invalid.deprecated": "debugger",
167
+ "support.function": builtinFunctions,
168
+ "constant.language": builtinConstants,
169
+ "keyword": keywords
170
+ }, "identifier");
171
+
172
+ var strPre = "(?:r|u|ur|R|U|UR|Ur|uR)?";
173
+
174
+ var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
175
+ var octInteger = "(?:0[oO]?[0-7]+)";
176
+ var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
177
+ var binInteger = "(?:0[bB][01]+)";
178
+ var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
179
+
180
+ var exponent = "(?:[eE][+-]?\\d+)";
181
+ var fraction = "(?:\\.\\d+)";
182
+ var intPart = "(?:\\d+)";
183
+ var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))";
184
+ var exponentFloat = "(?:(?:" + pointFloat + "|" + intPart + ")" + exponent + ")";
185
+ var floatNumber = "(?:" + exponentFloat + "|" + pointFloat + ")";
186
+
187
+ this.$rules = {
188
+ "start" : [ {
189
+ token : "comment",
190
+ regex : "#.*$"
191
+ }, {
192
+ token : "string", // """ string
193
+ regex : strPre + '"{3}(?:[^\\\\]|\\\\.)*?"{3}'
194
+ }, {
195
+ token : "string", // multi line """ string start
196
+ regex : strPre + '"{3}.*$',
197
+ next : "qqstring"
198
+ }, {
199
+ token : "string", // " string
200
+ regex : strPre + '"(?:[^\\\\]|\\\\.)*?"'
201
+ }, {
202
+ token : "string", // ''' string
203
+ regex : strPre + "'{3}(?:[^\\\\]|\\\\.)*?'{3}"
204
+ }, {
205
+ token : "string", // multi line ''' string start
206
+ regex : strPre + "'{3}.*$",
207
+ next : "qstring"
208
+ }, {
209
+ token : "string", // ' string
210
+ regex : strPre + "'(?:[^\\\\]|\\\\.)*?'"
211
+ }, {
212
+ token : "constant.numeric", // imaginary
213
+ regex : "(?:" + floatNumber + "|\\d+)[jJ]\\b"
214
+ }, {
215
+ token : "constant.numeric", // float
216
+ regex : floatNumber
217
+ }, {
218
+ token : "constant.numeric", // long integer
219
+ regex : integer + "[lL]\\b"
220
+ }, {
221
+ token : "constant.numeric", // integer
222
+ regex : integer + "\\b"
223
+ }, {
224
+ token : keywordMapper,
225
+ regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
226
+ }, {
227
+ token : "keyword.operator",
228
+ regex : "\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="
229
+ }, {
230
+ token : "paren.lparen",
231
+ regex : "[\\[\\(\\{]"
232
+ }, {
233
+ token : "paren.rparen",
234
+ regex : "[\\]\\)\\}]"
235
+ }, {
236
+ token : "text",
237
+ regex : "\\s+"
238
+ } ],
239
+ "qqstring" : [ {
240
+ token : "string", // multi line """ string end
241
+ regex : '(?:[^\\\\]|\\\\.)*?"{3}',
242
+ next : "start"
243
+ }, {
244
+ token : "string",
245
+ regex : '.+'
246
+ } ],
247
+ "qstring" : [ {
248
+ token : "string", // multi line ''' string end
249
+ regex : "(?:[^\\\\]|\\\\.)*?'{3}",
250
+ next : "start"
251
+ }, {
252
+ token : "string",
253
+ regex : '.+'
254
+ } ]
255
+ };
256
+ };
257
+
258
+ oop.inherits(PythonHighlightRules, TextHighlightRules);
259
+
260
+ exports.PythonHighlightRules = PythonHighlightRules;
261
+ });
262
+
263
+ define('ace/mode/folding/pythonic', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
264
+
265
+
266
+ var oop = require("../../lib/oop");
267
+ var BaseFoldMode = require("./fold_mode").FoldMode;
268
+
269
+ var FoldMode = exports.FoldMode = function(markers) {
270
+ this.foldingStartMarker = new RegExp("([\\[{])(?:\\s*)$|(" + markers + ")(?:\\s*)(?:#.*)?$");
271
+ };
272
+ oop.inherits(FoldMode, BaseFoldMode);
273
+
274
+ (function() {
275
+
276
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
277
+ var line = session.getLine(row);
278
+ var match = line.match(this.foldingStartMarker);
279
+ if (match) {
280
+ if (match[1])
281
+ return this.openingBracketBlock(session, match[1], row, match.index);
282
+ if (match[2])
283
+ return this.indentationBlock(session, row, match.index + match[2].length);
284
+ return this.indentationBlock(session, row);
285
+ }
286
+ }
287
+
288
+ }).call(FoldMode.prototype);
289
+
290
+ });
@@ -0,0 +1,410 @@
1
+ /*
2
+ * r.js
3
+ *
4
+ * Copyright (C) 2009-11 by RStudio, Inc.
5
+ *
6
+ * The Initial Developer of the Original Code is
7
+ * Ajax.org B.V.
8
+ * Portions created by the Initial Developer are Copyright (C) 2010
9
+ * the Initial Developer. All Rights Reserved.
10
+ *
11
+ * This program is licensed to you under the terms of version 3 of the
12
+ * GNU Affero General Public License. This program is distributed WITHOUT
13
+ * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
14
+ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
15
+ * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
16
+ *
17
+ */
18
+ define('ace/mode/r', ['require', 'exports', 'module' , 'ace/range', 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/text_highlight_rules', 'ace/mode/r_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/unicode'], function(require, exports, module) {
19
+
20
+
21
+ var Range = require("../range").Range;
22
+ var oop = require("../lib/oop");
23
+ var TextMode = require("./text").Mode;
24
+ var Tokenizer = require("../tokenizer").Tokenizer;
25
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
26
+ var RHighlightRules = require("./r_highlight_rules").RHighlightRules;
27
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
28
+ var unicode = require("../unicode");
29
+
30
+ var Mode = function()
31
+ {
32
+ this.$tokenizer = new Tokenizer(new RHighlightRules().getRules());
33
+ this.$outdent = new MatchingBraceOutdent();
34
+ };
35
+ oop.inherits(Mode, TextMode);
36
+
37
+ (function()
38
+ {
39
+ this.tokenRe = new RegExp("^["
40
+ + unicode.packages.L
41
+ + unicode.packages.Mn + unicode.packages.Mc
42
+ + unicode.packages.Nd
43
+ + unicode.packages.Pc + "._]+", "g"
44
+ );
45
+
46
+ this.nonTokenRe = new RegExp("^(?:[^"
47
+ + unicode.packages.L
48
+ + unicode.packages.Mn + unicode.packages.Mc
49
+ + unicode.packages.Nd
50
+ + unicode.packages.Pc + "._]|\s])+", "g"
51
+ );
52
+
53
+ this.$complements = {
54
+ "(": ")",
55
+ "[": "]",
56
+ '"': '"',
57
+ "'": "'",
58
+ "{": "}"
59
+ };
60
+ this.$reOpen = /^[(["'{]$/;
61
+ this.$reClose = /^[)\]"'}]$/;
62
+
63
+ this.getNextLineIndent = function(state, line, tab, tabSize, row)
64
+ {
65
+ return this.codeModel.getNextLineIndent(row, line, state, tab, tabSize);
66
+ };
67
+
68
+ this.allowAutoInsert = this.smartAllowAutoInsert;
69
+
70
+ this.checkOutdent = function(state, line, input) {
71
+ if (! /^\s+$/.test(line))
72
+ return false;
73
+
74
+ return /^\s*[\{\}\)]/.test(input);
75
+ };
76
+
77
+ this.getIndentForOpenBrace = function(openBracePos)
78
+ {
79
+ return this.codeModel.getIndentForOpenBrace(openBracePos);
80
+ };
81
+
82
+ this.autoOutdent = function(state, doc, row) {
83
+ if (row == 0)
84
+ return 0;
85
+
86
+ var line = doc.getLine(row);
87
+
88
+ var match = line.match(/^(\s*[\}\)])/);
89
+ if (match)
90
+ {
91
+ var column = match[1].length;
92
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
93
+
94
+ if (!openBracePos || openBracePos.row == row) return 0;
95
+
96
+ var indent = this.codeModel.getIndentForOpenBrace(openBracePos);
97
+ doc.replace(new Range(row, 0, row, column-1), indent);
98
+ }
99
+
100
+ match = line.match(/^(\s*\{)/);
101
+ if (match)
102
+ {
103
+ var column = match[1].length;
104
+ var indent = this.codeModel.getBraceIndent(row-1);
105
+ doc.replace(new Range(row, 0, row, column-1), indent);
106
+ }
107
+ };
108
+
109
+ this.$getIndent = function(line) {
110
+ var match = line.match(/^(\s+)/);
111
+ if (match) {
112
+ return match[1];
113
+ }
114
+
115
+ return "";
116
+ };
117
+
118
+ this.transformAction = function(state, action, editor, session, text) {
119
+ if (action === 'insertion' && text === "\n") {
120
+ var pos = editor.getSelectionRange().start;
121
+ var match = /^((\s*#+')\s*)/.exec(session.doc.getLine(pos.row));
122
+ if (match && editor.getSelectionRange().start.column >= match[2].length) {
123
+ return {text: "\n" + match[1]};
124
+ }
125
+ }
126
+ return false;
127
+ };
128
+ }).call(Mode.prototype);
129
+ exports.Mode = Mode;
130
+ });
131
+ define('ace/mode/r_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules', 'ace/mode/tex_highlight_rules'], function(require, exports, module) {
132
+
133
+ var oop = require("../lib/oop");
134
+ var lang = require("../lib/lang");
135
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
136
+ var TexHighlightRules = require("./tex_highlight_rules").TexHighlightRules;
137
+
138
+ var RHighlightRules = function()
139
+ {
140
+
141
+ var keywords = lang.arrayToMap(
142
+ ("function|if|in|break|next|repeat|else|for|return|switch|while|try|tryCatch|stop|warning|require|library|attach|detach|source|setMethod|setGeneric|setGroupGeneric|setClass")
143
+ .split("|")
144
+ );
145
+
146
+ var buildinConstants = lang.arrayToMap(
147
+ ("NULL|NA|TRUE|FALSE|T|F|Inf|NaN|NA_integer_|NA_real_|NA_character_|" +
148
+ "NA_complex_").split("|")
149
+ );
150
+
151
+ this.$rules = {
152
+ "start" : [
153
+ {
154
+ token : "comment.sectionhead",
155
+ regex : "#+(?!').*(?:----|====|####)\\s*$"
156
+ },
157
+ {
158
+ token : "comment",
159
+ regex : "#+'",
160
+ next : "rd-start"
161
+ },
162
+ {
163
+ token : "comment",
164
+ regex : "#.*$"
165
+ },
166
+ {
167
+ token : "string", // multi line string start
168
+ regex : '["]',
169
+ next : "qqstring"
170
+ },
171
+ {
172
+ token : "string", // multi line string start
173
+ regex : "[']",
174
+ next : "qstring"
175
+ },
176
+ {
177
+ token : "constant.numeric", // hex
178
+ regex : "0[xX][0-9a-fA-F]+[Li]?\\b"
179
+ },
180
+ {
181
+ token : "constant.numeric", // explicit integer
182
+ regex : "\\d+L\\b"
183
+ },
184
+ {
185
+ token : "constant.numeric", // number
186
+ regex : "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b"
187
+ },
188
+ {
189
+ token : "constant.numeric", // number with leading decimal
190
+ regex : "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b"
191
+ },
192
+ {
193
+ token : "constant.language.boolean",
194
+ regex : "(?:TRUE|FALSE|T|F)\\b"
195
+ },
196
+ {
197
+ token : "identifier",
198
+ regex : "`.*?`"
199
+ },
200
+ {
201
+ token : function(value)
202
+ {
203
+ if (keywords[value])
204
+ return "keyword";
205
+ else if (buildinConstants[value])
206
+ return "constant.language";
207
+ else if (value == '...' || value.match(/^\.\.\d+$/))
208
+ return "variable.language";
209
+ else
210
+ return "identifier";
211
+ },
212
+ regex : "[a-zA-Z.][a-zA-Z0-9._]*\\b"
213
+ },
214
+ {
215
+ token : "keyword.operator",
216
+ regex : "%%|>=|<=|==|!=|\\->|<\\-|\\|\\||&&|=|\\+|\\-|\\*|/|\\^|>|<|!|&|\\||~|\\$|:"
217
+ },
218
+ {
219
+ token : "keyword.operator", // infix operators
220
+ regex : "%.*?%"
221
+ },
222
+ {
223
+ token : "paren.keyword.operator",
224
+ regex : "[[({]"
225
+ },
226
+ {
227
+ token : "paren.keyword.operator",
228
+ regex : "[\\])}]"
229
+ },
230
+ {
231
+ token : "text",
232
+ regex : "\\s+"
233
+ }
234
+ ],
235
+ "qqstring" : [
236
+ {
237
+ token : "string",
238
+ regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
239
+ next : "start"
240
+ },
241
+ {
242
+ token : "string",
243
+ regex : '.+'
244
+ }
245
+ ],
246
+ "qstring" : [
247
+ {
248
+ token : "string",
249
+ regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
250
+ next : "start"
251
+ },
252
+ {
253
+ token : "string",
254
+ regex : '.+'
255
+ }
256
+ ]
257
+ };
258
+
259
+ var rdRules = new TexHighlightRules("comment").getRules();
260
+ for (var i = 0; i < rdRules["start"].length; i++) {
261
+ rdRules["start"][i].token += ".virtual-comment";
262
+ }
263
+
264
+ this.addRules(rdRules, "rd-");
265
+ this.$rules["rd-start"].unshift({
266
+ token: "text",
267
+ regex: "^",
268
+ next: "start"
269
+ });
270
+ this.$rules["rd-start"].unshift({
271
+ token : "keyword",
272
+ regex : "@(?!@)[^ ]*"
273
+ });
274
+ this.$rules["rd-start"].unshift({
275
+ token : "comment",
276
+ regex : "@@"
277
+ });
278
+ this.$rules["rd-start"].push({
279
+ token : "comment",
280
+ regex : "[^%\\\\[({\\])}]+"
281
+ });
282
+ };
283
+
284
+ oop.inherits(RHighlightRules, TextHighlightRules);
285
+
286
+ exports.RHighlightRules = RHighlightRules;
287
+ });
288
+ define('ace/mode/tex_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
289
+
290
+
291
+ var oop = require("../lib/oop");
292
+ var lang = require("../lib/lang");
293
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
294
+
295
+ var TexHighlightRules = function(textClass) {
296
+
297
+ if (!textClass)
298
+ textClass = "text";
299
+
300
+ this.$rules = {
301
+ "start" : [
302
+ {
303
+ token : "comment",
304
+ regex : "%.*$"
305
+ }, {
306
+ token : textClass, // non-command
307
+ regex : "\\\\[$&%#\\{\\}]"
308
+ }, {
309
+ token : "keyword", // command
310
+ regex : "\\\\(?:documentclass|usepackage|newcounter|setcounter|addtocounter|value|arabic|stepcounter|newenvironment|renewenvironment|ref|vref|eqref|pageref|label|cite[a-zA-Z]*|tag|begin|end|bibitem)\\b",
311
+ next : "nospell"
312
+ }, {
313
+ token : "keyword", // command
314
+ regex : "\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])"
315
+ }, {
316
+ token : "paren.keyword.operator",
317
+ regex : "[[({]"
318
+ }, {
319
+ token : "paren.keyword.operator",
320
+ regex : "[\\])}]"
321
+ }, {
322
+ token : textClass,
323
+ regex : "\\s+"
324
+ }
325
+ ],
326
+ "nospell" : [
327
+ {
328
+ token : "comment",
329
+ regex : "%.*$",
330
+ next : "start"
331
+ }, {
332
+ token : "nospell." + textClass, // non-command
333
+ regex : "\\\\[$&%#\\{\\}]"
334
+ }, {
335
+ token : "keyword", // command
336
+ regex : "\\\\(?:documentclass|usepackage|newcounter|setcounter|addtocounter|value|arabic|stepcounter|newenvironment|renewenvironment|ref|vref|eqref|pageref|label|cite[a-zA-Z]*|tag|begin|end|bibitem)\\b"
337
+ }, {
338
+ token : "keyword", // command
339
+ regex : "\\\\(?:[a-zA-z0-9]+|[^a-zA-z0-9])",
340
+ next : "start"
341
+ }, {
342
+ token : "paren.keyword.operator",
343
+ regex : "[[({]"
344
+ }, {
345
+ token : "paren.keyword.operator",
346
+ regex : "[\\])]"
347
+ }, {
348
+ token : "paren.keyword.operator",
349
+ regex : "}",
350
+ next : "start"
351
+ }, {
352
+ token : "nospell." + textClass,
353
+ regex : "\\s+"
354
+ }, {
355
+ token : "nospell." + textClass,
356
+ regex : "\\w+"
357
+ }
358
+ ]
359
+ };
360
+ };
361
+
362
+ oop.inherits(TexHighlightRules, TextHighlightRules);
363
+
364
+ exports.TexHighlightRules = TexHighlightRules;
365
+ });
366
+
367
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
368
+
369
+
370
+ var Range = require("../range").Range;
371
+
372
+ var MatchingBraceOutdent = function() {};
373
+
374
+ (function() {
375
+
376
+ this.checkOutdent = function(line, input) {
377
+ if (! /^\s+$/.test(line))
378
+ return false;
379
+
380
+ return /^\s*\}/.test(input);
381
+ };
382
+
383
+ this.autoOutdent = function(doc, row) {
384
+ var line = doc.getLine(row);
385
+ var match = line.match(/^(\s*\})/);
386
+
387
+ if (!match) return 0;
388
+
389
+ var column = match[1].length;
390
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
391
+
392
+ if (!openBracePos || openBracePos.row == row) return 0;
393
+
394
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
395
+ doc.replace(new Range(row, 0, row, column-1), indent);
396
+ };
397
+
398
+ this.$getIndent = function(line) {
399
+ var match = line.match(/^(\s+)/);
400
+ if (match) {
401
+ return match[1];
402
+ }
403
+
404
+ return "";
405
+ };
406
+
407
+ }).call(MatchingBraceOutdent.prototype);
408
+
409
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
410
+ });