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,279 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2012, 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
+ *
30
+ * Contributor(s):
31
+ *
32
+ *
33
+ *
34
+ * ***** END LICENSE BLOCK ***** */
35
+
36
+ define('ace/mode/dart', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/dart_highlight_rules', 'ace/mode/folding/cstyle'], function(require, exports, module) {
37
+
38
+
39
+ var oop = require("../lib/oop");
40
+ var TextMode = require("./text").Mode;
41
+ var Tokenizer = require("../tokenizer").Tokenizer;
42
+ var DartHighlightRules = require("./dart_highlight_rules").DartHighlightRules;
43
+ var CStyleFoldMode = require("./folding/cstyle").FoldMode;
44
+
45
+ var Mode = function() {
46
+ var highlighter = new DartHighlightRules();
47
+ this.foldingRules = new CStyleFoldMode();
48
+
49
+ this.$tokenizer = new Tokenizer(highlighter.getRules());
50
+ };
51
+ oop.inherits(Mode, TextMode);
52
+
53
+ (function() {
54
+ }).call(Mode.prototype);
55
+
56
+ exports.Mode = Mode;
57
+ });
58
+
59
+
60
+ define('ace/mode/dart_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
61
+
62
+
63
+ var oop = require("../lib/oop");
64
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
65
+
66
+ var DartHighlightRules = function() {
67
+
68
+ var constantLanguage = "true|false|null";
69
+ var variableLanguage = "this|super";
70
+ var keywordControl = "try|catch|finally|throw|break|case|continue|default|do|else|for|if|in|return|switch|while|new";
71
+ var keywordDeclaration = "abstract|class|extends|external|factory|implements|interface|get|native|operator|set|typedef";
72
+ var storageModifier = "static|final|const";
73
+ var storageType = "void|bool|num|int|double|Dynamic|var|String";
74
+
75
+ var keywordMapper = this.createKeywordMapper({
76
+ "constant.language.dart": constantLanguage,
77
+ "variable.language.dart": variableLanguage,
78
+ "keyword.control.dart": keywordControl,
79
+ "keyword.declaration.dart": keywordDeclaration,
80
+ "storage.modifier.dart": storageModifier,
81
+ "storage.type.primitive.dart": storageType
82
+ }, "identifier");
83
+
84
+ var stringfill = {
85
+ token : "string",
86
+ regex : ".+"
87
+ };
88
+
89
+ this.$rules =
90
+ {
91
+ "start": [
92
+ {
93
+ "token" : "comment",
94
+ "regex" : /\/\/.*$/
95
+ },
96
+ {
97
+ "token" : "comment", // multi line comment
98
+ "regex" : /\/\*/,
99
+ "next" : "comment"
100
+ },
101
+ {
102
+ "token": ["meta.preprocessor.script.dart"],
103
+ "regex": "^(#!.*)$"
104
+ },
105
+ {
106
+ "token": [ "keyword.other.import.dart", "meta.declaration.dart"],
107
+ "regex": "#(?:\\b)(?:library|import|source|resource)(?:\\b)"
108
+ },
109
+ {
110
+ "token" : ["keyword.other.import.dart", "text"],
111
+ "regex" : "(?:\\b)(prefix)(\\s*:)"
112
+ },
113
+ {
114
+ "regex": "\\bas\\b",
115
+ "token": "keyword.cast.dart"
116
+ },
117
+ {
118
+ "regex": "\\?|:",
119
+ "token": "keyword.control.ternary.dart"
120
+ },
121
+ {
122
+ "regex": "(?:\\b)(is\\!?)(?:\\b)",
123
+ "token": ["keyword.operator.dart"]
124
+ },
125
+ {
126
+ "regex": "(<<|>>>?|~|\\^|\\||&)",
127
+ "token": ["keyword.operator.bitwise.dart"]
128
+ },
129
+ {
130
+ "regex": "((?:&|\\^|\\||<<|>>>?)=)",
131
+ "token": ["keyword.operator.assignment.bitwise.dart"]
132
+ },
133
+ {
134
+ "regex": "(===?|!==?|<=?|>=?)",
135
+ "token": ["keyword.operator.comparison.dart"]
136
+ },
137
+ {
138
+ "regex": "((?:[+*/%-]|\\~)=)",
139
+ "token": ["keyword.operator.assignment.arithmetic.dart"]
140
+ },
141
+ {
142
+ "regex": "=",
143
+ "token": "keyword.operator.assignment.dart"
144
+ },
145
+ {
146
+ "token" : "string",
147
+ "regex" : "'''",
148
+ "next" : "qdoc"
149
+ },
150
+ {
151
+ "token" : "string",
152
+ "regex" : '"""',
153
+ "next" : "qqdoc"
154
+ },
155
+ {
156
+ "token" : "string",
157
+ "regex" : "'",
158
+ "next" : "qstring"
159
+ },
160
+ {
161
+ "token" : "string",
162
+ "regex" : '"',
163
+ "next" : "qqstring"
164
+ },
165
+ {
166
+ "regex": "(\\-\\-|\\+\\+)",
167
+ "token": ["keyword.operator.increment-decrement.dart"]
168
+ },
169
+ {
170
+ "regex": "(\\-|\\+|\\*|\\/|\\~\\/|%)",
171
+ "token": ["keyword.operator.arithmetic.dart"]
172
+ },
173
+ {
174
+ "regex": "(!|&&|\\|\\|)",
175
+ "token": ["keyword.operator.logical.dart"]
176
+ },
177
+ {
178
+ "token" : "constant.numeric", // hex
179
+ "regex" : "0[xX][0-9a-fA-F]+\\b"
180
+ },
181
+ {
182
+ "token" : "constant.numeric", // float
183
+ "regex" : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
184
+ },
185
+ {
186
+ "token" : keywordMapper,
187
+ "regex" : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
188
+ }
189
+ ],
190
+ "comment" : [
191
+ {
192
+ token : "comment", // closing comment
193
+ regex : ".*?\\*\\/",
194
+ next : "start"
195
+ }, {
196
+ token : "comment", // comment spanning whole line
197
+ regex : ".+"
198
+ }
199
+ ],
200
+ "qdoc" : [
201
+ {
202
+ "token" : "string",
203
+ "regex" : ".*?'''",
204
+ "next" : "start"
205
+ }, stringfill],
206
+
207
+ "qqdoc" : [
208
+ {
209
+ "token" : "string",
210
+ "regex" : '.*?"""',
211
+ "next" : "start"
212
+ }, stringfill],
213
+
214
+ "qstring" : [
215
+ {
216
+ "token" : "string",
217
+ "regex" : "[^\\\\']*(?:\\\\.[^\\\\']*)*'",
218
+ "next" : "start"
219
+ }, stringfill],
220
+
221
+ "qqstring" : [
222
+ {
223
+ "token" : "string",
224
+ "regex" : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
225
+ "next" : "start"
226
+ }, stringfill]
227
+ }
228
+
229
+ };
230
+
231
+ oop.inherits(DartHighlightRules, TextHighlightRules);
232
+
233
+ exports.DartHighlightRules = DartHighlightRules;
234
+ });
235
+
236
+ define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
237
+
238
+
239
+ var oop = require("../../lib/oop");
240
+ var Range = require("../../range").Range;
241
+ var BaseFoldMode = require("./fold_mode").FoldMode;
242
+
243
+ var FoldMode = exports.FoldMode = function() {};
244
+ oop.inherits(FoldMode, BaseFoldMode);
245
+
246
+ (function() {
247
+
248
+ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
249
+ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
250
+
251
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
252
+ var line = session.getLine(row);
253
+ var match = line.match(this.foldingStartMarker);
254
+ if (match) {
255
+ var i = match.index;
256
+
257
+ if (match[1])
258
+ return this.openingBracketBlock(session, match[1], row, i);
259
+
260
+ return session.getCommentFoldRange(row, i + match[0].length, 1);
261
+ }
262
+
263
+ if (foldStyle !== "markbeginend")
264
+ return;
265
+
266
+ var match = line.match(this.foldingStopMarker);
267
+ if (match) {
268
+ var i = match.index + match[0].length;
269
+
270
+ if (match[1])
271
+ return this.closingBracketBlock(session, match[1], row, i);
272
+
273
+ return session.getCommentFoldRange(row, i, -1);
274
+ }
275
+ };
276
+
277
+ }).call(FoldMode.prototype);
278
+
279
+ });
@@ -0,0 +1,163 @@
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/diff', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/diff_highlight_rules', 'ace/mode/folding/diff'], 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 HighlightRules = require("./diff_highlight_rules").DiffHighlightRules;
38
+ var FoldMode = require("./folding/diff").FoldMode;
39
+
40
+ var Mode = function() {
41
+ this.$tokenizer = new Tokenizer(new HighlightRules().getRules(), "i");
42
+ this.foldingRules = new FoldMode(["diff", "index", "\\+{3}", "@@|\\*{5}"], "i");
43
+ };
44
+ oop.inherits(Mode, TextMode);
45
+
46
+ (function() {
47
+
48
+ }).call(Mode.prototype);
49
+
50
+ exports.Mode = Mode;
51
+
52
+ });
53
+
54
+ define('ace/mode/diff_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
55
+
56
+
57
+ var oop = require("../lib/oop");
58
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
59
+
60
+ var DiffHighlightRules = function() {
61
+
62
+ this.$rules = {
63
+ "start" : [{
64
+ "regex": "^(?:\\*{15}|={67}|-{3}|\\+{3})$",
65
+ "token": "punctuation.definition.separator.diff",
66
+ "name": "keyword"
67
+ }, { //diff.range.unified
68
+ "regex": "^(@@)(\\s*.+?\\s*)(@@)(.*)$",
69
+ "token": [
70
+ "constant",
71
+ "constant.numeric",
72
+ "constant",
73
+ "comment.doc.tag"
74
+ ]
75
+ }, { //diff.range.normal
76
+ "regex": "^(\\d+)([,\\d]+)(a|d|c)(\\d+)([,\\d]+)(.*)$",
77
+ "token": [
78
+ "constant.numeric",
79
+ "punctuation.definition.range.diff",
80
+ "constant.function",
81
+ "constant.numeric",
82
+ "punctuation.definition.range.diff",
83
+ "invalid"
84
+ ],
85
+ "name": "meta."
86
+ }, {
87
+ "regex": "^(?:(\\-{3}|\\+{3}|\\*{3})( .+))$",
88
+ "token": [
89
+ "constant.numeric",
90
+ "meta.tag"
91
+ ]
92
+ }, { // added
93
+ "regex": "^([!+>])(.*?)(\\s*)$",
94
+ "token": [
95
+ "support.constant",
96
+ "text",
97
+ "invalid"
98
+ ]
99
+ }, { // removed
100
+ "regex": "^([<\\-])(.*?)(\\s*)$",
101
+ "token": [
102
+ "support.function",
103
+ "string",
104
+ "invalid"
105
+ ]
106
+ }, {
107
+ "regex": "^(diff)(\\s+--\\w+)?(.+?)( .+)?$",
108
+ "token": ["variable", "variable", "keyword", "variable"]
109
+ }, {
110
+ "regex": "^Index.+$",
111
+ "token": "variable"
112
+ }, {
113
+ "regex": "^(.*?)(\\s*)$",
114
+ "token": ["invisible", "invalid"]
115
+ }
116
+ ]
117
+ };
118
+ };
119
+
120
+ oop.inherits(DiffHighlightRules, TextHighlightRules);
121
+
122
+ exports.DiffHighlightRules = DiffHighlightRules;
123
+ });
124
+
125
+ define('ace/mode/folding/diff', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/folding/fold_mode', 'ace/range'], function(require, exports, module) {
126
+
127
+
128
+ var oop = require("../../lib/oop");
129
+ var BaseFoldMode = require("./fold_mode").FoldMode;
130
+ var Range = require("../../range").Range;
131
+
132
+ var FoldMode = exports.FoldMode = function(levels, flag) {
133
+ this.regExpList = levels;
134
+ this.flag = flag;
135
+ this.foldingStartMarker = RegExp("^(" + levels.join("|") + ")", this.flag);
136
+ };
137
+ oop.inherits(FoldMode, BaseFoldMode);
138
+
139
+ (function() {
140
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
141
+ var line = session.getLine(row);
142
+ var start = {row: row, column: line.length};
143
+
144
+ var regList = this.regExpList;
145
+ for (var i = 1; i <= regList.length; i++) {
146
+ var re = RegExp("^(" + regList.slice(0, i).join("|") + ")", this.flag);
147
+ if (re.test(line))
148
+ break;
149
+ }
150
+
151
+ for (var l = session.getLength(); ++row < l; ) {
152
+ line = session.getLine(row);
153
+ if (re.test(line))
154
+ break;
155
+ }
156
+ if (row == start.row + 1)
157
+ return;
158
+ return Range.fromPoints(start, {row: row - 1, column: line.length});
159
+ };
160
+
161
+ }).call(FoldMode.prototype);
162
+
163
+ });
@@ -0,0 +1,348 @@
1
+ define('ace/mode/dot', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/matching_brace_outdent', 'ace/mode/dot_highlight_rules', 'ace/mode/folding/cstyle'], function(require, exports, module) {
2
+
3
+
4
+ var oop = require("../lib/oop");
5
+ var TextMode = require("./text").Mode;
6
+ var Tokenizer = require("../tokenizer").Tokenizer;
7
+ var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
8
+ var DotHighlightRules = require("./dot_highlight_rules").DotHighlightRules;
9
+ var DotFoldMode = require("./folding/cstyle").FoldMode;
10
+
11
+ var Mode = function() {
12
+ var highlighter = new DotHighlightRules();
13
+ this.$outdent = new MatchingBraceOutdent();
14
+ this.foldingRules = new DotFoldMode();
15
+ this.$tokenizer = new Tokenizer(highlighter.getRules());
16
+ };
17
+ oop.inherits(Mode, TextMode);
18
+
19
+ (function() {
20
+
21
+ this.toggleCommentLines = function(state, doc, startRow, endRow) {
22
+ var outdent = true;
23
+ var re = /^(\s*)\/\//;
24
+
25
+ for (var i=startRow; i<= endRow; i++) {
26
+ if (!re.test(doc.getLine(i))) {
27
+ outdent = false;
28
+ break;
29
+ }
30
+ }
31
+
32
+ if (outdent) {
33
+ var deleteRange = new Range(0, 0, 0, 0);
34
+ for (var i=startRow; i<= endRow; i++)
35
+ {
36
+ var line = doc.getLine(i);
37
+ var m = line.match(re);
38
+ deleteRange.start.row = i;
39
+ deleteRange.end.row = i;
40
+ deleteRange.end.column = m[0].length;
41
+ doc.replace(deleteRange, m[1]);
42
+ }
43
+ }
44
+ else {
45
+ doc.indentRows(startRow, endRow, "//");
46
+ }
47
+ };
48
+
49
+ this.getNextLineIndent = function(state, line, tab) {
50
+ var indent = this.$getIndent(line);
51
+
52
+ var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
53
+ var tokens = tokenizedLine.tokens;
54
+ var endState = tokenizedLine.state;
55
+
56
+ if (tokens.length && tokens[tokens.length-1].type == "comment") {
57
+ return indent;
58
+ }
59
+
60
+ if (state == "start") {
61
+ var match = line.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);
62
+ if (match) {
63
+ indent += tab;
64
+ }
65
+ }
66
+
67
+ return indent;
68
+ };
69
+
70
+ this.checkOutdent = function(state, line, input) {
71
+ return this.$outdent.checkOutdent(line, input);
72
+ };
73
+
74
+ this.autoOutdent = function(state, doc, row) {
75
+ this.$outdent.autoOutdent(doc, row);
76
+ };
77
+
78
+ }).call(Mode.prototype);
79
+
80
+ exports.Mode = Mode;
81
+ });
82
+
83
+ define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
84
+
85
+
86
+ var Range = require("../range").Range;
87
+
88
+ var MatchingBraceOutdent = function() {};
89
+
90
+ (function() {
91
+
92
+ this.checkOutdent = function(line, input) {
93
+ if (! /^\s+$/.test(line))
94
+ return false;
95
+
96
+ return /^\s*\}/.test(input);
97
+ };
98
+
99
+ this.autoOutdent = function(doc, row) {
100
+ var line = doc.getLine(row);
101
+ var match = line.match(/^(\s*\})/);
102
+
103
+ if (!match) return 0;
104
+
105
+ var column = match[1].length;
106
+ var openBracePos = doc.findMatchingBracket({row: row, column: column});
107
+
108
+ if (!openBracePos || openBracePos.row == row) return 0;
109
+
110
+ var indent = this.$getIndent(doc.getLine(openBracePos.row));
111
+ doc.replace(new Range(row, 0, row, column-1), indent);
112
+ };
113
+
114
+ this.$getIndent = function(line) {
115
+ var match = line.match(/^(\s+)/);
116
+ if (match) {
117
+ return match[1];
118
+ }
119
+
120
+ return "";
121
+ };
122
+
123
+ }).call(MatchingBraceOutdent.prototype);
124
+
125
+ exports.MatchingBraceOutdent = MatchingBraceOutdent;
126
+ });
127
+ define('ace/mode/dot_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules', 'ace/mode/doc_comment_highlight_rules'], function(require, exports, module) {
128
+
129
+
130
+ var oop = require("../lib/oop");
131
+ var lang = require("../lib/lang");
132
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
133
+ var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
134
+
135
+ var DotHighlightRules = function() {
136
+
137
+ var keywords = lang.arrayToMap(
138
+ ("strict|node|edge|graph|digraph|subgraph").split("|")
139
+ );
140
+
141
+ var attributes = lang.arrayToMap(
142
+ ("damping|k|url|area|arrowhead|arrowsize|arrowtail|aspect|bb|bgcolor|center|charset|clusterrank|color|colorscheme|comment|compound|concentrate|constraint|decorate|defaultdist|dim|dimen|dir|diredgeconstraints|distortion|dpi|edgeurl|edgehref|edgetarget|edgetooltip|epsilon|esep|fillcolor|fixedsize|fontcolor|fontname|fontnames|fontpath|fontsize|forcelabels|gradientangle|group|headurl|head_lp|headclip|headhref|headlabel|headport|headtarget|headtooltip|height|href|id|image|imagepath|imagescale|label|labelurl|label_scheme|labelangle|labeldistance|labelfloat|labelfontcolor|labelfontname|labelfontsize|labelhref|labeljust|labelloc|labeltarget|labeltooltip|landscape|layer|layerlistsep|layers|layerselect|layersep|layout|len|levels|levelsgap|lhead|lheight|lp|ltail|lwidth|margin|maxiter|mclimit|mindist|minlen|mode|model|mosek|nodesep|nojustify|normalize|nslimit|nslimit1|ordering|orientation|outputorder|overlap|overlap_scaling|pack|packmode|pad|page|pagedir|pencolor|penwidth|peripheries|pin|pos|quadtree|quantum|rank|rankdir|ranksep|ratio|rects|regular|remincross|repulsiveforce|resolution|root|rotate|rotation|samehead|sametail|samplepoints|scale|searchsize|sep|shape|shapefile|showboxes|sides|size|skew|smoothing|sortv|splines|start|style|stylesheet|tailurl|tail_lp|tailclip|tailhref|taillabel|tailport|tailtarget|tailtooltip|target|tooltip|truecolor|vertices|viewport|voro_margin|weight|width|xlabel|xlp|z").split("|")
143
+ );
144
+
145
+ this.$rules = {
146
+ "start" : [
147
+ {
148
+ token : "comment",
149
+ regex : /\/\/.*$/
150
+ }, {
151
+ token : "comment",
152
+ regex : /#.*$/
153
+ }, {
154
+ token : "comment", // multi line comment
155
+ merge : true,
156
+ regex : /\/\*/,
157
+ next : "comment"
158
+ }, {
159
+ token : "string",
160
+ regex : "'(?=.)",
161
+ next : "qstring"
162
+ }, {
163
+ token : "string",
164
+ regex : '"(?=.)',
165
+ next : "qqstring"
166
+ }, {
167
+ token : "constant.numeric",
168
+ regex : /[+\-]?\d+(?:(?:\.\d*)?(?:[eE][+\-]?\d+)?)?\b/
169
+ }, {
170
+ token : "keyword.operator",
171
+ regex : /\+|=|\->/
172
+ }, {
173
+ token : "punctuation.operator",
174
+ regex : /,|;/
175
+ }, {
176
+ token : "paren.lparen",
177
+ regex : /[\[{]/
178
+ }, {
179
+ token : "paren.rparen",
180
+ regex : /[\]}]/
181
+ }, {
182
+ token: "comment",
183
+ regex: /^#!.*$/
184
+ }, {
185
+ token: function(value) {
186
+ if (keywords.hasOwnProperty(value.toLowerCase())) {
187
+ return "keyword";
188
+ }
189
+ else if (attributes.hasOwnProperty(value.toLowerCase())) {
190
+ return "variable";
191
+ }
192
+ else {
193
+ return "text";
194
+ }
195
+ },
196
+ regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
197
+ }
198
+ ],
199
+ "comment" : [
200
+ {
201
+ token : "comment", // closing comment
202
+ regex : ".*?\\*\\/",
203
+ merge : true,
204
+ next : "start"
205
+ }, {
206
+ token : "comment", // comment spanning whole line
207
+ merge : true,
208
+ regex : ".+"
209
+ }
210
+ ],
211
+ "qqstring" : [
212
+ {
213
+ token : "string",
214
+ regex : '[^"\\\\]+',
215
+ merge : true
216
+ }, {
217
+ token : "string",
218
+ regex : "\\\\$",
219
+ next : "qqstring",
220
+ merge : true
221
+ }, {
222
+ token : "string",
223
+ regex : '"|$',
224
+ next : "start",
225
+ merge : true
226
+ }
227
+ ],
228
+ "qstring" : [
229
+ {
230
+ token : "string",
231
+ regex : "[^'\\\\]+",
232
+ merge : true
233
+ }, {
234
+ token : "string",
235
+ regex : "\\\\$",
236
+ next : "qstring",
237
+ merge : true
238
+ }, {
239
+ token : "string",
240
+ regex : "'|$",
241
+ next : "start",
242
+ merge : true
243
+ }
244
+ ]
245
+ };
246
+ };
247
+
248
+ oop.inherits(DotHighlightRules, TextHighlightRules);
249
+
250
+ exports.DotHighlightRules = DotHighlightRules;
251
+
252
+ });
253
+
254
+ define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
255
+
256
+
257
+ var oop = require("../lib/oop");
258
+ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
259
+
260
+ var DocCommentHighlightRules = function() {
261
+
262
+ this.$rules = {
263
+ "start" : [ {
264
+ token : "comment.doc.tag",
265
+ regex : "@[\\w\\d_]+" // TODO: fix email addresses
266
+ }, {
267
+ token : "comment.doc",
268
+ regex : "\\s+"
269
+ }, {
270
+ token : "comment.doc",
271
+ regex : "TODO"
272
+ }, {
273
+ token : "comment.doc",
274
+ regex : "[^@\\*]+"
275
+ }, {
276
+ token : "comment.doc",
277
+ regex : "."
278
+ }]
279
+ };
280
+ };
281
+
282
+ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
283
+
284
+ DocCommentHighlightRules.getStartRule = function(start) {
285
+ return {
286
+ token : "comment.doc", // doc comment
287
+ regex : "\\/\\*(?=\\*)",
288
+ next : start
289
+ };
290
+ };
291
+
292
+ DocCommentHighlightRules.getEndRule = function (start) {
293
+ return {
294
+ token : "comment.doc", // closing comment
295
+ regex : "\\*\\/",
296
+ next : start
297
+ };
298
+ };
299
+
300
+
301
+ exports.DocCommentHighlightRules = DocCommentHighlightRules;
302
+
303
+ });
304
+
305
+ define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
306
+
307
+
308
+ var oop = require("../../lib/oop");
309
+ var Range = require("../../range").Range;
310
+ var BaseFoldMode = require("./fold_mode").FoldMode;
311
+
312
+ var FoldMode = exports.FoldMode = function() {};
313
+ oop.inherits(FoldMode, BaseFoldMode);
314
+
315
+ (function() {
316
+
317
+ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
318
+ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
319
+
320
+ this.getFoldWidgetRange = function(session, foldStyle, row) {
321
+ var line = session.getLine(row);
322
+ var match = line.match(this.foldingStartMarker);
323
+ if (match) {
324
+ var i = match.index;
325
+
326
+ if (match[1])
327
+ return this.openingBracketBlock(session, match[1], row, i);
328
+
329
+ return session.getCommentFoldRange(row, i + match[0].length, 1);
330
+ }
331
+
332
+ if (foldStyle !== "markbeginend")
333
+ return;
334
+
335
+ var match = line.match(this.foldingStopMarker);
336
+ if (match) {
337
+ var i = match.index + match[0].length;
338
+
339
+ if (match[1])
340
+ return this.closingBracketBlock(session, match[1], row, i);
341
+
342
+ return session.getCommentFoldRange(row, i, -1);
343
+ }
344
+ };
345
+
346
+ }).call(FoldMode.prototype);
347
+
348
+ });