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,187 @@
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/c9search', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/c9search_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/folding/c9search'], 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 C9SearchHighlightRules = require("./c9search_highlight_rules").C9SearchHighlightRules;
38
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
39
+ var C9StyleFoldMode = require("./folding/c9search").FoldMode;
40
+
41
+ var Mode = function() {
42
+ this.$tokenizer = new Tokenizer(new C9SearchHighlightRules().getRules(), "i");
43
+ this.$outdent = new MatchingBraceOutdent();
44
+ this.foldingRules = new C9StyleFoldMode();
45
+ };
46
+ oop.inherits(Mode, TextMode);
47
+
48
+ (function() {
49
+
50
+ this.getNextLineIndent = function(state, line, tab) {
51
+ var indent = this.$getIndent(line);
52
+ return indent;
53
+ };
54
+
55
+ this.checkOutdent = function(state, line, input) {
56
+ return this.$outdent.checkOutdent(line, input);
57
+ };
58
+
59
+ this.autoOutdent = function(state, doc, row) {
60
+ this.$outdent.autoOutdent(doc, row);
61
+ };
62
+
63
+ }).call(Mode.prototype);
64
+
65
+ exports.Mode = Mode;
66
+
67
+ });
68
+
69
+ define('ace/mode/c9search_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
70
+
71
+
72
+ var oop = require("../lib/oop");
73
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
74
+
75
+ var C9SearchHighlightRules = function() {
76
+ this.$rules = {
77
+ "start" : [
78
+ {
79
+ token : ["c9searchresults.constant.numeric", "c9searchresults.text", "c9searchresults.text"],
80
+ regex : "(^\\s+[0-9]+)(:\\s*)(.+)"
81
+ },
82
+ {
83
+ token : ["string", "text"], // single line
84
+ regex : "(.+)(:$)"
85
+ }
86
+ ]
87
+ };
88
+ };
89
+
90
+ oop.inherits(C9SearchHighlightRules, TextHighlightRules);
91
+
92
+ exports.C9SearchHighlightRules = C9SearchHighlightRules;
93
+
94
+ });
95
+
96
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
97
+
98
+
99
+ var Range = require("../range").Range;
100
+
101
+ var MatchingBraceOutdent = function() {};
102
+
103
+ (function() {
104
+
105
+ this.checkOutdent = function(line, input) {
106
+ if (! /^\s+$/.test(line))
107
+ return false;
108
+
109
+ return /^\s*\}/.test(input);
110
+ };
111
+
112
+ this.autoOutdent = function(doc, row) {
113
+ var line = doc.getLine(row);
114
+ var match = line.match(/^(\s*\})/);
115
+
116
+ if (!match) return 0;
117
+
118
+ var column = match[1].length;
119
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
120
+
121
+ if (!openBracePos || openBracePos.row == row) return 0;
122
+
123
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
124
+ doc.replace(new Range(row, 0, row, column-1), indent);
125
+ };
126
+
127
+ this.$getIndent = function(line) {
128
+ var match = line.match(/^(\s+)/);
129
+ if (match) {
130
+ return match[1];
131
+ }
132
+
133
+ return "";
134
+ };
135
+
136
+ }).call(MatchingBraceOutdent.prototype);
137
+
138
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
139
+ });
140
+
141
+
142
+ define('ace/mode/folding/c9search', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
143
+
144
+
145
+ var oop = require("../../lib/oop");
146
+ var Range = require("../../range").Range;
147
+ var BaseFoldMode = require("./fold_mode").FoldMode;
148
+
149
+ var FoldMode = exports.FoldMode = function() {};
150
+ oop.inherits(FoldMode, BaseFoldMode);
151
+
152
+ (function() {
153
+
154
+ this.foldingStartMarker = /^(\S.*\:|Searching for.*)$/;
155
+ this.foldingStopMarker = /^(\s+|Found.*)$/;
156
+
157
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
158
+ var lines = session.doc.getAllLines(row);
159
+ var line = lines[row];
160
+ var level1 = /^(Found.*|Searching for.*)$/;
161
+ var level2 = /^(\S.*\:|\s*)$/;
162
+ var re = level1.test(line) ? level1 : level2;
163
+
164
+ if (this.foldingStartMarker.test(line)) {
165
+ for (var i = row + 1, l = session.getLength(); i < l; i++) {
166
+ if (re.test(lines[i]))
167
+ break;
168
+ }
169
+
170
+ return new Range(row, line.length, i, 0);
171
+ }
172
+
173
+ if (this.foldingStopMarker.test(line)) {
174
+ for (var i = row - 1; i >= 0; i--) {
175
+ line = lines[i];
176
+ if (re.test(line))
177
+ break;
178
+ }
179
+
180
+ return new Range(i, line.length, row, 0);
181
+ }
182
+ };
183
+
184
+ }).call(FoldMode.prototype);
185
+
186
+ });
187
+
@@ -0,0 +1,765 @@
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/c_cpp', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/c_cpp_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
32
+
33
+
34
+ var oop = require("../lib/oop");
35
+ var TextMode = require("./text").Mode;
36
+ var Tokenizer = require("../tokenizer").Tokenizer;
37
+ var c_cppHighlightRules = require("./c_cpp_highlight_rules").c_cppHighlightRules;
38
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
39
+ var Range = require("../range").Range;
40
+ var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
41
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
42
+
43
+ var Mode = function() {
44
+ this.$tokenizer = new Tokenizer(new c_cppHighlightRules().getRules());
45
+ this.$outdent = new MatchingBraceOutdent();
46
+ this.$behaviour = new CstyleBehaviour();
47
+ this.foldingRules = new CStyleFoldMode();
48
+ };
49
+ oop.inherits(Mode, TextMode);
50
+
51
+ (function() {
52
+
53
+ this.toggleCommentLines = function(state, doc, startRow, endRow) {
54
+ var outdent = true;
55
+ var re = /^(\s*)\/\//;
56
+
57
+ for (var i=startRow; i<= endRow; i++) {
58
+ if (!re.test(doc.getLine(i))) {
59
+ outdent = false;
60
+ break;
61
+ }
62
+ }
63
+
64
+ if (outdent) {
65
+ var deleteRange = new Range(0, 0, 0, 0);
66
+ for (var i=startRow; i<= endRow; i++)
67
+ {
68
+ var line = doc.getLine(i);
69
+ var m = line.match(re);
70
+ deleteRange.start.row = i;
71
+ deleteRange.end.row = i;
72
+ deleteRange.end.column = m[0].length;
73
+ doc.replace(deleteRange, m[1]);
74
+ }
75
+ }
76
+ else {
77
+ doc.indentRows(startRow, endRow, "//");
78
+ }
79
+ };
80
+
81
+ this.getNextLineIndent = function(state, line, tab) {
82
+ var indent = this.$getIndent(line);
83
+
84
+ var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
85
+ var tokens = tokenizedLine.tokens;
86
+ var endState = tokenizedLine.state;
87
+
88
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
89
+ return indent;
90
+ }
91
+
92
+ if (state == "start") {
93
+ var match = line.match(/^.*[\{\(\[]\s*$/);
94
+ if (match) {
95
+ indent += tab;
96
+ }
97
+ } else if (state == "doc-start") {
98
+ if (endState == "start") {
99
+ return "";
100
+ }
101
+ var match = line.match(/^\s*(\/?)\*/);
102
+ if (match) {
103
+ if (match[1]) {
104
+ indent += " ";
105
+ }
106
+ indent += "* ";
107
+ }
108
+ }
109
+
110
+ return indent;
111
+ };
112
+
113
+ this.checkOutdent = function(state, line, input) {
114
+ return this.$outdent.checkOutdent(line, input);
115
+ };
116
+
117
+ this.autoOutdent = function(state, doc, row) {
118
+ this.$outdent.autoOutdent(doc, row);
119
+ };
120
+
121
+ }).call(Mode.prototype);
122
+
123
+ exports.Mode = Mode;
124
+ });
125
+ define('ace/mode/c_cpp_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
126
+
127
+
128
+ var oop = require("../lib/oop");
129
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
130
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
131
+ var cFunctions = exports.cFunctions = "\\s*\\bhypot(?:f|l)?|s(?:scanf|ystem|nprintf|ca(?:nf|lb(?:n(?:f|l)?|ln(?:f|l)?))|i(?:n(?:h(?:f|l)?|f|l)?|gn(?:al|bit))|tr(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(?:jmp|vbuf|locale|buf)|qrt(?:f|l)?|w(?:scanf|printf)|rand)|n(?:e(?:arbyint(?:f|l)?|xt(?:toward(?:f|l)?|after(?:f|l)?))|an(?:f|l)?)|c(?:s(?:in(?:h(?:f|l)?|f|l)?|qrt(?:f|l)?)|cos(?:h(?:f)?|f|l)?|imag(?:f|l)?|t(?:ime|an(?:h(?:f|l)?|f|l)?)|o(?:s(?:h(?:f|l)?|f|l)?|nj(?:f|l)?|pysign(?:f|l)?)|p(?:ow(?:f|l)?|roj(?:f|l)?)|e(?:il(?:f|l)?|xp(?:f|l)?)|l(?:o(?:ck|g(?:f|l)?)|earerr)|a(?:sin(?:h(?:f|l)?|f|l)?|cos(?:h(?:f|l)?|f|l)?|tan(?:h(?:f|l)?|f|l)?|lloc|rg(?:f|l)?|bs(?:f|l)?)|real(?:f|l)?|brt(?:f|l)?)|t(?:ime|o(?:upper|lower)|an(?:h(?:f|l)?|f|l)?|runc(?:f|l)?|gamma(?:f|l)?|mp(?:nam|file))|i(?:s(?:space|n(?:ormal|an)|cntrl|inf|digit|u(?:nordered|pper)|p(?:unct|rint)|finite|w(?:space|c(?:ntrl|type)|digit|upper|p(?:unct|rint)|lower|al(?:num|pha)|graph|xdigit|blank)|l(?:ower|ess(?:equal|greater)?)|al(?:num|pha)|gr(?:eater(?:equal)?|aph)|xdigit|blank)|logb(?:f|l)?|max(?:div|abs))|di(?:v|fftime)|_Exit|unget(?:c|wc)|p(?:ow(?:f|l)?|ut(?:s|c(?:har)?|wc(?:har)?)|error|rintf)|e(?:rf(?:c(?:f|l)?|f|l)?|x(?:it|p(?:2(?:f|l)?|f|l|m1(?:f|l)?)?))|v(?:s(?:scanf|nprintf|canf|printf|w(?:scanf|printf))|printf|f(?:scanf|printf|w(?:scanf|printf))|w(?:scanf|printf)|a_(?:start|copy|end|arg))|qsort|f(?:s(?:canf|e(?:tpos|ek))|close|tell|open|dim(?:f|l)?|p(?:classify|ut(?:s|c|w(?:s|c))|rintf)|e(?:holdexcept|set(?:e(?:nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(?:aiseexcept|ror)|get(?:e(?:nv|xceptflag)|round))|flush|w(?:scanf|ide|printf|rite)|loor(?:f|l)?|abs(?:f|l)?|get(?:s|c|pos|w(?:s|c))|re(?:open|e|ad|xp(?:f|l)?)|m(?:in(?:f|l)?|od(?:f|l)?|a(?:f|l|x(?:f|l)?)?))|l(?:d(?:iv|exp(?:f|l)?)|o(?:ngjmp|cal(?:time|econv)|g(?:1(?:p(?:f|l)?|0(?:f|l)?)|2(?:f|l)?|f|l|b(?:f|l)?)?)|abs|l(?:div|abs|r(?:int(?:f|l)?|ound(?:f|l)?))|r(?:int(?:f|l)?|ound(?:f|l)?)|gamma(?:f|l)?)|w(?:scanf|c(?:s(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?|mbs)|pbrk|ftime|len|r(?:chr|tombs)|xfrm)|to(?:b|mb)|rtomb)|printf|mem(?:set|c(?:hr|py|mp)|move))|a(?:s(?:sert|ctime|in(?:h(?:f|l)?|f|l)?)|cos(?:h(?:f|l)?|f|l)?|t(?:o(?:i|f|l(?:l)?)|exit|an(?:h(?:f|l)?|2(?:f|l)?|f|l)?)|b(?:s|ort))|g(?:et(?:s|c(?:har)?|env|wc(?:har)?)|mtime)|r(?:int(?:f|l)?|ound(?:f|l)?|e(?:name|alloc|wind|m(?:ove|quo(?:f|l)?|ainder(?:f|l)?))|a(?:nd|ise))|b(?:search|towc)|m(?:odf(?:f|l)?|em(?:set|c(?:hr|py|mp)|move)|ktime|alloc|b(?:s(?:init|towcs|rtowcs)|towc|len|r(?:towc|len)))\\b"
132
+
133
+ var c_cppHighlightRules = function() {
134
+
135
+ var keywordControls = (
136
+ "break|case|continue|default|do|else|for|goto|if|_Pragma|" +
137
+ "return|switch|while|catch|operator|try|throw|using"
138
+ );
139
+
140
+ var storageType = (
141
+ "asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|" +
142
+ "_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void|" +
143
+ "class|wchar_t|template"
144
+ );
145
+
146
+ var storageModifiers = (
147
+ "const|extern|register|restrict|static|volatile|inline|private:|" +
148
+ "protected:|public:|friend|explicit|virtual|export|mutable|typename"
149
+ );
150
+
151
+ var keywordOperators = (
152
+ "and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq" +
153
+ "const_cast|dynamic_cast|reinterpret_cast|static_cast|sizeof|namespace"
154
+ );
155
+
156
+ var builtinConstants = (
157
+ "NULL|true|false|TRUE|FALSE"
158
+ );
159
+
160
+ var keywordMapper = this.$keywords = this.createKeywordMapper({
161
+ "keyword.control" : keywordControls,
162
+ "storage.type" : storageType,
163
+ "storage.modifier" : storageModifiers,
164
+ "keyword.operator" : keywordOperators,
165
+ "variable.language": "this",
166
+ "constant.language": builtinConstants
167
+ }, "identifier");
168
+
169
+ var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\d\\$_\u00a1-\uffff]*\\b";
170
+
171
+ this.$rules = {
172
+ "start" : [
173
+ {
174
+ token : "comment",
175
+ regex : "\\/\\/.*$"
176
+ },
177
+ DocCommentHighlightRules.getStartRule("doc-start"),
178
+ {
179
+ token : "comment", // multi line comment
180
+ regex : "\\/\\*",
181
+ next : "comment"
182
+ }, {
183
+ token : "string", // single line
184
+ regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
185
+ }, {
186
+ token : "string", // multi line string start
187
+ regex : '["].*\\\\$',
188
+ next : "qqstring"
189
+ }, {
190
+ token : "string", // single line
191
+ regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
192
+ }, {
193
+ token : "string", // multi line string start
194
+ regex : "['].*\\\\$",
195
+ next : "qstring"
196
+ }, {
197
+ token : "constant.numeric", // hex
198
+ regex : "0[xX][0-9a-fA-F]+\\b"
199
+ }, {
200
+ token : "constant.numeric", // float
201
+ regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
202
+ }, {
203
+ token : "keyword", // pre-compiler directives
204
+ regex : "(?:#include|#import|#pragma|#line|#define|#undef|#if|#ifdef|#else|#elif|#ifndef)\\b",
205
+ next : "directive"
206
+ }, {
207
+ token : "keyword", // special case pre-compiler directive
208
+ regex : "(?:#endif)\\b"
209
+ }, {
210
+ token : "support.function.C99.c",
211
+ regex : cFunctions
212
+ }, {
213
+ token : keywordMapper,
214
+ regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
215
+ }, {
216
+ token : "keyword.operator",
217
+ regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|new|delete|typeof|void)"
218
+ }, {
219
+ token : "punctuation.operator",
220
+ regex : "\\?|\\:|\\,|\\;|\\."
221
+ }, {
222
+ token : "paren.lparen",
223
+ regex : "[[({]"
224
+ }, {
225
+ token : "paren.rparen",
226
+ regex : "[\\])}]"
227
+ }, {
228
+ token : "text",
229
+ regex : "\\s+"
230
+ }
231
+ ],
232
+ "comment" : [
233
+ {
234
+ token : "comment", // closing comment
235
+ regex : ".*?\\*\\/",
236
+ next : "start"
237
+ }, {
238
+ token : "comment", // comment spanning whole line
239
+ regex : ".+"
240
+ }
241
+ ],
242
+ "qqstring" : [
243
+ {
244
+ token : "string",
245
+ regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
246
+ next : "start"
247
+ }, {
248
+ token : "string",
249
+ regex : '.+'
250
+ }
251
+ ],
252
+ "qstring" : [
253
+ {
254
+ token : "string",
255
+ regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
256
+ next : "start"
257
+ }, {
258
+ token : "string",
259
+ regex : '.+'
260
+ }
261
+ ],
262
+ "directive" : [
263
+ {
264
+ token : "constant.other.multiline",
265
+ regex : /\\/
266
+ },
267
+ {
268
+ token : "constant.other",
269
+ regex : "\\s*<.+?>",
270
+ next : "start"
271
+ },
272
+ {
273
+ token : "constant.other", // single line
274
+ regex : '\\s*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]',
275
+ next : "start"
276
+ },
277
+ {
278
+ token : "constant.other", // single line
279
+ regex : "\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']",
280
+ next : "start"
281
+ },
282
+ {
283
+ token : "constant.other.multiline",
284
+ regex : /.*\\/
285
+ },
286
+ {
287
+ token : "constant.other",
288
+ regex : /[^\\\/]+/,
289
+ next : "start"
290
+ }
291
+ ]
292
+ };
293
+
294
+ this.embedRules(DocCommentHighlightRules, "doc-",
295
+ [ DocCommentHighlightRules.getEndRule("start") ]);
296
+ };
297
+
298
+ oop.inherits(c_cppHighlightRules, TextHighlightRules);
299
+
300
+ exports.c_cppHighlightRules = c_cppHighlightRules;
301
+ });
302
+
303
+ define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
304
+
305
+
306
+ var oop = require("../lib/oop");
307
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
308
+
309
+ var DocCommentHighlightRules = function() {
310
+
311
+ this.$rules = {
312
+ "start" : [ {
313
+ token : "comment.doc.tag",
314
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
315
+ }, {
316
+ token : "comment.doc",
317
+ regex : "\\s+"
318
+ }, {
319
+ token : "comment.doc",
320
+ regex : "TODO"
321
+ }, {
322
+ token : "comment.doc",
323
+ regex : "[^@\\*]+"
324
+ }, {
325
+ token : "comment.doc",
326
+ regex : "."
327
+ }]
328
+ };
329
+ };
330
+
331
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
332
+
333
+ DocCommentHighlightRules.getStartRule = function(start) {
334
+ return {
335
+ token : "comment.doc", // doc comment
336
+ regex : "\\/\\*(?=\\*)",
337
+ next : start
338
+ };
339
+ };
340
+
341
+ DocCommentHighlightRules.getEndRule = function (start) {
342
+ return {
343
+ token : "comment.doc", // closing comment
344
+ regex : "\\*\\/",
345
+ next : start
346
+ };
347
+ };
348
+
349
+
350
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
351
+
352
+ });
353
+
354
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
355
+
356
+
357
+ var Range = require("../range").Range;
358
+
359
+ var MatchingBraceOutdent = function() {};
360
+
361
+ (function() {
362
+
363
+ this.checkOutdent = function(line, input) {
364
+ if (! /^\s+$/.test(line))
365
+ return false;
366
+
367
+ return /^\s*\}/.test(input);
368
+ };
369
+
370
+ this.autoOutdent = function(doc, row) {
371
+ var line = doc.getLine(row);
372
+ var match = line.match(/^(\s*\})/);
373
+
374
+ if (!match) return 0;
375
+
376
+ var column = match[1].length;
377
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
378
+
379
+ if (!openBracePos || openBracePos.row == row) return 0;
380
+
381
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
382
+ doc.replace(new Range(row, 0, row, column-1), indent);
383
+ };
384
+
385
+ this.$getIndent = function(line) {
386
+ var match = line.match(/^(\s+)/);
387
+ if (match) {
388
+ return match[1];
389
+ }
390
+
391
+ return "";
392
+ };
393
+
394
+ }).call(MatchingBraceOutdent.prototype);
395
+
396
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
397
+ });
398
+
399
+ define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
400
+
401
+
402
+ var oop = require("../../lib/oop");
403
+ var Behaviour = require("../behaviour").Behaviour;
404
+ var TokenIterator = require("../../token_iterator").TokenIterator;
405
+ var lang = require("../../lib/lang");
406
+
407
+ var SAFE_INSERT_IN_TOKENS =
408
+ ["text", "paren.rparen", "punctuation.operator"];
409
+ var SAFE_INSERT_BEFORE_TOKENS =
410
+ ["text", "paren.rparen", "punctuation.operator", "comment"];
411
+
412
+
413
+ var autoInsertedBrackets = 0;
414
+ var autoInsertedRow = -1;
415
+ var autoInsertedLineEnd = "";
416
+ var maybeInsertedBrackets = 0;
417
+ var maybeInsertedRow = -1;
418
+ var maybeInsertedLineStart = "";
419
+ var maybeInsertedLineEnd = "";
420
+
421
+ var CstyleBehaviour = function () {
422
+
423
+ CstyleBehaviour.isSaneInsertion = function(editor, session) {
424
+ var cursor = editor.getCursorPosition();
425
+ var iterator = new TokenIterator(session, cursor.row, cursor.column);
426
+ if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
427
+ var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
428
+ if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
429
+ return false;
430
+ }
431
+ iterator.stepForward();
432
+ return iterator.getCurrentTokenRow() !== cursor.row ||
433
+ this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
434
+ };
435
+
436
+ CstyleBehaviour.$matchTokenType = function(token, types) {
437
+ return types.indexOf(token.type || token) > -1;
438
+ };
439
+
440
+ CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
441
+ var cursor = editor.getCursorPosition();
442
+ var line = session.doc.getLine(cursor.row);
443
+ if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
444
+ autoInsertedBrackets = 0;
445
+ autoInsertedRow = cursor.row;
446
+ autoInsertedLineEnd = bracket + line.substr(cursor.column);
447
+ autoInsertedBrackets++;
448
+ };
449
+
450
+ CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
451
+ var cursor = editor.getCursorPosition();
452
+ var line = session.doc.getLine(cursor.row);
453
+ if (!this.isMaybeInsertedClosing(cursor, line))
454
+ maybeInsertedBrackets = 0;
455
+ maybeInsertedRow = cursor.row;
456
+ maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
457
+ maybeInsertedLineEnd = line.substr(cursor.column);
458
+ maybeInsertedBrackets++;
459
+ };
460
+
461
+ CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
462
+ return autoInsertedBrackets > 0 &&
463
+ cursor.row === autoInsertedRow &&
464
+ bracket === autoInsertedLineEnd[0] &&
465
+ line.substr(cursor.column) === autoInsertedLineEnd;
466
+ };
467
+
468
+ CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
469
+ return maybeInsertedBrackets > 0 &&
470
+ cursor.row === maybeInsertedRow &&
471
+ line.substr(cursor.column) === maybeInsertedLineEnd &&
472
+ line.substr(0, cursor.column) == maybeInsertedLineStart;
473
+ };
474
+
475
+ CstyleBehaviour.popAutoInsertedClosing = function() {
476
+ autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
477
+ autoInsertedBrackets--;
478
+ };
479
+
480
+ CstyleBehaviour.clearMaybeInsertedClosing = function() {
481
+ maybeInsertedBrackets = 0;
482
+ maybeInsertedRow = -1;
483
+ };
484
+
485
+ this.add("braces", "insertion", function (state, action, editor, session, text) {
486
+ var cursor = editor.getCursorPosition();
487
+ var line = session.doc.getLine(cursor.row);
488
+ if (text == '{') {
489
+ var selection = editor.getSelectionRange();
490
+ var selected = session.doc.getTextRange(selection);
491
+ if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
492
+ return {
493
+ text: '{' + selected + '}',
494
+ selection: false
495
+ };
496
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
497
+ if (/[\]\}\)]/.test(line[cursor.column])) {
498
+ CstyleBehaviour.recordAutoInsert(editor, session, "}");
499
+ return {
500
+ text: '{}',
501
+ selection: [1, 1]
502
+ };
503
+ } else {
504
+ CstyleBehaviour.recordMaybeInsert(editor, session, "{");
505
+ return {
506
+ text: '{',
507
+ selection: [1, 1]
508
+ };
509
+ }
510
+ }
511
+ } else if (text == '}') {
512
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
513
+ if (rightChar == '}') {
514
+ var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
515
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
516
+ CstyleBehaviour.popAutoInsertedClosing();
517
+ return {
518
+ text: '',
519
+ selection: [1, 1]
520
+ };
521
+ }
522
+ }
523
+ } else if (text == "\n" || text == "\r\n") {
524
+ var closing = "";
525
+ if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
526
+ closing = lang.stringRepeat("}", maybeInsertedBrackets);
527
+ CstyleBehaviour.clearMaybeInsertedClosing();
528
+ }
529
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
530
+ if (rightChar == '}' || closing !== "") {
531
+ var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
532
+ if (!openBracePos)
533
+ return null;
534
+
535
+ var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString());
536
+ var next_indent = this.$getIndent(line);
537
+
538
+ return {
539
+ text: '\n' + indent + '\n' + next_indent + closing,
540
+ selection: [1, indent.length, 1, indent.length]
541
+ };
542
+ }
543
+ }
544
+ });
545
+
546
+ this.add("braces", "deletion", function (state, action, editor, session, range) {
547
+ var selected = session.doc.getTextRange(range);
548
+ if (!range.isMultiLine() && selected == '{') {
549
+ var line = session.doc.getLine(range.start.row);
550
+ var rightChar = line.substring(range.end.column, range.end.column + 1);
551
+ if (rightChar == '}') {
552
+ range.end.column++;
553
+ return range;
554
+ } else {
555
+ maybeInsertedBrackets--;
556
+ }
557
+ }
558
+ });
559
+
560
+ this.add("parens", "insertion", function (state, action, editor, session, text) {
561
+ if (text == '(') {
562
+ var selection = editor.getSelectionRange();
563
+ var selected = session.doc.getTextRange(selection);
564
+ if (selected !== "" && editor.getWrapBehavioursEnabled()) {
565
+ return {
566
+ text: '(' + selected + ')',
567
+ selection: false
568
+ };
569
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
570
+ CstyleBehaviour.recordAutoInsert(editor, session, ")");
571
+ return {
572
+ text: '()',
573
+ selection: [1, 1]
574
+ };
575
+ }
576
+ } else if (text == ')') {
577
+ var cursor = editor.getCursorPosition();
578
+ var line = session.doc.getLine(cursor.row);
579
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
580
+ if (rightChar == ')') {
581
+ var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
582
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
583
+ CstyleBehaviour.popAutoInsertedClosing();
584
+ return {
585
+ text: '',
586
+ selection: [1, 1]
587
+ };
588
+ }
589
+ }
590
+ }
591
+ });
592
+
593
+ this.add("parens", "deletion", function (state, action, editor, session, range) {
594
+ var selected = session.doc.getTextRange(range);
595
+ if (!range.isMultiLine() && selected == '(') {
596
+ var line = session.doc.getLine(range.start.row);
597
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
598
+ if (rightChar == ')') {
599
+ range.end.column++;
600
+ return range;
601
+ }
602
+ }
603
+ });
604
+
605
+ this.add("brackets", "insertion", function (state, action, editor, session, text) {
606
+ if (text == '[') {
607
+ var selection = editor.getSelectionRange();
608
+ var selected = session.doc.getTextRange(selection);
609
+ if (selected !== "" && editor.getWrapBehavioursEnabled()) {
610
+ return {
611
+ text: '[' + selected + ']',
612
+ selection: false
613
+ };
614
+ } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
615
+ CstyleBehaviour.recordAutoInsert(editor, session, "]");
616
+ return {
617
+ text: '[]',
618
+ selection: [1, 1]
619
+ };
620
+ }
621
+ } else if (text == ']') {
622
+ var cursor = editor.getCursorPosition();
623
+ var line = session.doc.getLine(cursor.row);
624
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
625
+ if (rightChar == ']') {
626
+ var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
627
+ if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
628
+ CstyleBehaviour.popAutoInsertedClosing();
629
+ return {
630
+ text: '',
631
+ selection: [1, 1]
632
+ };
633
+ }
634
+ }
635
+ }
636
+ });
637
+
638
+ this.add("brackets", "deletion", function (state, action, editor, session, range) {
639
+ var selected = session.doc.getTextRange(range);
640
+ if (!range.isMultiLine() && selected == '[') {
641
+ var line = session.doc.getLine(range.start.row);
642
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
643
+ if (rightChar == ']') {
644
+ range.end.column++;
645
+ return range;
646
+ }
647
+ }
648
+ });
649
+
650
+ this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
651
+ if (text == '"' || text == "'") {
652
+ var quote = text;
653
+ var selection = editor.getSelectionRange();
654
+ var selected = session.doc.getTextRange(selection);
655
+ if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
656
+ return {
657
+ text: quote + selected + quote,
658
+ selection: false
659
+ };
660
+ } else {
661
+ var cursor = editor.getCursorPosition();
662
+ var line = session.doc.getLine(cursor.row);
663
+ var leftChar = line.substring(cursor.column-1, cursor.column);
664
+ if (leftChar == '\\') {
665
+ return null;
666
+ }
667
+ var tokens = session.getTokens(selection.start.row);
668
+ var col = 0, token;
669
+ var quotepos = -1; // Track whether we're inside an open quote.
670
+
671
+ for (var x = 0; x < tokens.length; x++) {
672
+ token = tokens[x];
673
+ if (token.type == "string") {
674
+ quotepos = -1;
675
+ } else if (quotepos < 0) {
676
+ quotepos = token.value.indexOf(quote);
677
+ }
678
+ if ((token.value.length + col) > selection.start.column) {
679
+ break;
680
+ }
681
+ col += tokens[x].value.length;
682
+ }
683
+ if (!token || (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf(quote) === token.value.length-1)))) {
684
+ if (!CstyleBehaviour.isSaneInsertion(editor, session))
685
+ return;
686
+ return {
687
+ text: quote + quote,
688
+ selection: [1,1]
689
+ };
690
+ } else if (token && token.type === "string") {
691
+ var rightChar = line.substring(cursor.column, cursor.column + 1);
692
+ if (rightChar == quote) {
693
+ return {
694
+ text: '',
695
+ selection: [1, 1]
696
+ };
697
+ }
698
+ }
699
+ }
700
+ }
701
+ });
702
+
703
+ this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
704
+ var selected = session.doc.getTextRange(range);
705
+ if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
706
+ var line = session.doc.getLine(range.start.row);
707
+ var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
708
+ if (rightChar == '"') {
709
+ range.end.column++;
710
+ return range;
711
+ }
712
+ }
713
+ });
714
+
715
+ };
716
+
717
+ oop.inherits(CstyleBehaviour, Behaviour);
718
+
719
+ exports.CstyleBehaviour = CstyleBehaviour;
720
+ });
721
+
722
+ define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
723
+
724
+
725
+ var oop = require("../../lib/oop");
726
+ var Range = require("../../range").Range;
727
+ var BaseFoldMode = require("./fold_mode").FoldMode;
728
+
729
+ var FoldMode = exports.FoldMode = function() {};
730
+ oop.inherits(FoldMode, BaseFoldMode);
731
+
732
+ (function() {
733
+
734
+ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
735
+ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
736
+
737
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
738
+ var line = session.getLine(row);
739
+ var match = line.match(this.foldingStartMarker);
740
+ if (match) {
741
+ var i = match.index;
742
+
743
+ if (match[1])
744
+ return this.openingBracketBlock(session, match[1], row, i);
745
+
746
+ return session.getCommentFoldRange(row, i + match[0].length, 1);
747
+ }
748
+
749
+ if (foldStyle !== "markbeginend")
750
+ return;
751
+
752
+ var match = line.match(this.foldingStopMarker);
753
+ if (match) {
754
+ var i = match.index + match[0].length;
755
+
756
+ if (match[1])
757
+ return this.closingBracketBlock(session, match[1], row, i);
758
+
759
+ return session.getCommentFoldRange(row, i, -1);
760
+ }
761
+ };
762
+
763
+ }).call(FoldMode.prototype);
764
+
765
+ });