jquery-ace-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. data/lib/jquery-ace-rails/version.rb +1 -1
  2. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ace.js +0 -0
  3. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-static_highlight.js +0 -0
  4. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/ext-textarea.js +0 -0
  5. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-emacs.js +0 -0
  6. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/keybinding-vim.js +0 -0
  7. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-abap.js +0 -0
  8. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-asciidoc.js +0 -0
  9. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c9search.js +0 -0
  10. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-c_cpp.js +0 -0
  11. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-clojure.js +0 -0
  12. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coffee.js +0 -0
  13. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-coldfusion.js +0 -0
  14. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-csharp.js +0 -0
  15. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-css.js +0 -0
  16. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dart.js +0 -0
  17. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-diff.js +0 -0
  18. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-dot.js +0 -0
  19. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-glsl.js +0 -0
  20. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-golang.js +0 -0
  21. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-groovy.js +0 -0
  22. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haml.js +0 -0
  23. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-haxe.js +0 -0
  24. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-html.js +0 -0
  25. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jade.js +0 -0
  26. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-java.js +0 -0
  27. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-javascript.js +0 -0
  28. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-json.js +0 -0
  29. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsp.js +0 -0
  30. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-jsx.js +0 -0
  31. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-latex.js +0 -0
  32. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-less.js +0 -0
  33. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-liquid.js +0 -0
  34. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lisp.js +0 -0
  35. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lua.js +0 -0
  36. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-luapage.js +0 -0
  37. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-lucene.js +0 -0
  38. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-makefile.js +0 -0
  39. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-markdown.js +0 -0
  40. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-objectivec.js +0 -0
  41. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ocaml.js +0 -0
  42. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-perl.js +0 -0
  43. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-pgsql.js +0 -0
  44. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-php.js +0 -0
  45. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-powershell.js +0 -0
  46. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-python.js +0 -0
  47. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-r.js +0 -0
  48. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rdoc.js +0 -0
  49. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-rhtml.js +0 -0
  50. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-ruby.js +0 -0
  51. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scad.js +0 -0
  52. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scala.js +0 -0
  53. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-scss.js +0 -0
  54. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sh.js +0 -0
  55. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-sql.js +0 -0
  56. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-stylus.js +0 -0
  57. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-svg.js +0 -0
  58. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tcl.js +0 -0
  59. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-tex.js +0 -0
  60. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-text.js +0 -0
  61. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-textile.js +0 -0
  62. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-typescript.js +0 -0
  63. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xml.js +0 -0
  64. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-xquery.js +0 -0
  65. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/mode-yaml.js +0 -0
  66. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-ambiance.js +0 -0
  67. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chaos.js +0 -0
  68. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-chrome.js +0 -0
  69. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds.js +0 -0
  70. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-clouds_midnight.js +0 -0
  71. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-cobalt.js +0 -0
  72. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-crimson_editor.js +0 -0
  73. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dawn.js +0 -0
  74. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-dreamweaver.js +0 -0
  75. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-eclipse.js +0 -0
  76. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-github.js +0 -0
  77. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-idle_fingers.js +0 -0
  78. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-kr.js +0 -0
  79. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore.js +0 -0
  80. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-merbivore_soft.js +0 -0
  81. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-mono_industrial.js +0 -0
  82. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-monokai.js +0 -0
  83. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-pastel_on_dark.js +0 -0
  84. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_dark.js +0 -0
  85. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-solarized_light.js +0 -0
  86. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-textmate.js +0 -0
  87. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow.js +0 -0
  88. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night.js +0 -0
  89. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_blue.js +0 -0
  90. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_bright.js +0 -0
  91. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-tomorrow_night_eighties.js +0 -0
  92. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-twilight.js +0 -0
  93. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-vibrant_ink.js +0 -0
  94. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/theme-xcode.js +0 -0
  95. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-coffee.js +0 -0
  96. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-css.js +0 -0
  97. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-javascript.js +0 -0
  98. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-json.js +0 -0
  99. data/vendor/assets/javascripts/{jquery-ace/vendor/ace-build/src-min-noconflict → ace}/worker-xquery.js +0 -0
  100. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.coffee → jquery-ace.coffee} +1 -1
  101. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.js → jquery-ace.js} +1 -1
  102. data/vendor/assets/javascripts/{jquery-ace/jquery-ace.min.js → jquery-ace.min.js} +1 -1
  103. data/vendor/assets/javascripts/{jquery-ace/vendor → jquery}/jquery-1.8.3.min.js +0 -0
  104. metadata +104 -202
  105. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ace.js +0 -14262
  106. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-static_highlight.js +0 -96
  107. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/ext-textarea.js +0 -591
  108. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-emacs.js +0 -364
  109. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/keybinding-vim.js +0 -1646
  110. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-abap.js +0 -259
  111. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-asciidoc.js +0 -372
  112. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c9search.js +0 -187
  113. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-c_cpp.js +0 -765
  114. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-clojure.js +0 -325
  115. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coffee.js +0 -520
  116. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-coldfusion.js +0 -1725
  117. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-csharp.js +0 -605
  118. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-css.js +0 -680
  119. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dart.js +0 -279
  120. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-diff.js +0 -163
  121. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-dot.js +0 -348
  122. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-glsl.js +0 -838
  123. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-golang.js +0 -660
  124. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-groovy.js +0 -1082
  125. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haml.js +0 -440
  126. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-haxe.js +0 -610
  127. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-html.js +0 -1850
  128. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jade.js +0 -2035
  129. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-java.js +0 -1041
  130. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-javascript.js +0 -921
  131. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-json.js +0 -574
  132. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsp.js +0 -1371
  133. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-jsx.js +0 -635
  134. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-latex.js +0 -217
  135. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-less.js +0 -394
  136. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-liquid.js +0 -921
  137. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lisp.js +0 -142
  138. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lua.js +0 -609
  139. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-luapage.js +0 -2463
  140. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-lucene.js +0 -64
  141. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-makefile.js +0 -314
  142. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-markdown.js +0 -2228
  143. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-objectivec.js +0 -655
  144. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ocaml.js +0 -448
  145. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-perl.js +0 -319
  146. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-pgsql.js +0 -928
  147. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-php.js +0 -2299
  148. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-powershell.js +0 -611
  149. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-python.js +0 -290
  150. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-r.js +0 -410
  151. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rdoc.js +0 -189
  152. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-rhtml.js +0 -2138
  153. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-ruby.js +0 -410
  154. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scad.js +0 -698
  155. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scala.js +0 -1070
  156. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-scss.js +0 -416
  157. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sh.js +0 -232
  158. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-sql.js +0 -145
  159. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-stylus.js +0 -474
  160. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-svg.js +0 -1490
  161. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tcl.js +0 -342
  162. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-tex.js +0 -171
  163. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-text.js +0 -0
  164. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-textile.js +0 -175
  165. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-typescript.js +0 -1011
  166. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xml.js +0 -792
  167. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-xquery.js +0 -676
  168. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/mode-yaml.js +0 -298
  169. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-ambiance.js +0 -202
  170. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chaos.js +0 -167
  171. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-chrome.js +0 -161
  172. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds.js +0 -135
  173. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-clouds_midnight.js +0 -136
  174. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-cobalt.js +0 -150
  175. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-crimson_editor.js +0 -154
  176. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dawn.js +0 -146
  177. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-dreamweaver.js +0 -173
  178. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-eclipse.js +0 -122
  179. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-github.js +0 -136
  180. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-idle_fingers.js +0 -136
  181. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-kr.js +0 -143
  182. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore.js +0 -135
  183. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-merbivore_soft.js +0 -136
  184. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-mono_industrial.js +0 -148
  185. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-monokai.js +0 -140
  186. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-pastel_on_dark.js +0 -148
  187. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_dark.js +0 -128
  188. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-solarized_light.js +0 -131
  189. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-textmate.js +0 -163
  190. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow.js +0 -147
  191. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night.js +0 -147
  192. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_blue.js +0 -145
  193. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_bright.js +0 -147
  194. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-tomorrow_night_eighties.js +0 -144
  195. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-twilight.js +0 -147
  196. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-vibrant_ink.js +0 -131
  197. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/theme-xcode.js +0 -125
  198. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-coffee.js +0 -6985
  199. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-css.js +0 -7741
  200. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-javascript.js +0 -6387
  201. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-json.js +0 -2228
  202. data/vendor/assets/javascripts/jquery-ace/vendor/ace-build/src/worker-xquery.js +0 -21719
@@ -1,921 +0,0 @@
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/javascript', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/javascript_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/worker/worker_client', '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 JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
38
- var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
39
- var Range = require("../range").Range;
40
- var WorkerClient = require("../worker/worker_client").WorkerClient;
41
- var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
42
- var CStyleFoldMode = require("./folding/cstyle").FoldMode;
43
-
44
- var Mode = function() {
45
- this.$tokenizer = new Tokenizer(new JavaScriptHighlightRules().getRules());
46
- this.$outdent = new MatchingBraceOutdent();
47
- this.$behaviour = new CstyleBehaviour();
48
- this.foldingRules = new CStyleFoldMode();
49
- };
50
- oop.inherits(Mode, TextMode);
51
-
52
- (function() {
53
-
54
-
55
- this.toggleCommentLines = function(state, doc, startRow, endRow) {
56
- var outdent = true;
57
- var re = /^(\s*)\/\//;
58
-
59
- for (var i=startRow; i<= endRow; i++) {
60
- if (!re.test(doc.getLine(i))) {
61
- outdent = false;
62
- break;
63
- }
64
- }
65
-
66
- if (outdent) {
67
- var deleteRange = new Range(0, 0, 0, 0);
68
- for (var i=startRow; i<= endRow; i++)
69
- {
70
- var line = doc.getLine(i);
71
- var m = line.match(re);
72
- deleteRange.start.row = i;
73
- deleteRange.end.row = i;
74
- deleteRange.end.column = m[0].length;
75
- doc.replace(deleteRange, m[1]);
76
- }
77
- }
78
- else {
79
- doc.indentRows(startRow, endRow, "//");
80
- }
81
- };
82
-
83
- this.getNextLineIndent = function(state, line, tab) {
84
- var indent = this.$getIndent(line);
85
-
86
- var tokenizedLine = this.$tokenizer.getLineTokens(line, state);
87
- var tokens = tokenizedLine.tokens;
88
- var endState = tokenizedLine.state;
89
-
90
- if (tokens.length && tokens[tokens.length-1].type == "comment") {
91
- return indent;
92
- }
93
-
94
- if (state == "start" || state == "regex_allowed") {
95
- var match = line.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/);
96
- if (match) {
97
- indent += tab;
98
- }
99
- } else if (state == "doc-start") {
100
- if (endState == "start" || state == "regex_allowed") {
101
- return "";
102
- }
103
- var match = line.match(/^\s*(\/?)\*/);
104
- if (match) {
105
- if (match[1]) {
106
- indent += " ";
107
- }
108
- indent += "* ";
109
- }
110
- }
111
-
112
- return indent;
113
- };
114
-
115
- this.checkOutdent = function(state, line, input) {
116
- return this.$outdent.checkOutdent(line, input);
117
- };
118
-
119
- this.autoOutdent = function(state, doc, row) {
120
- this.$outdent.autoOutdent(doc, row);
121
- };
122
-
123
- this.createWorker = function(session) {
124
- var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
125
- worker.attachToDocument(session.getDocument());
126
-
127
- worker.on("jslint", function(results) {
128
- session.setAnnotations(results.data);
129
- });
130
-
131
- worker.on("terminate", function() {
132
- session.clearAnnotations();
133
- });
134
-
135
- return worker;
136
- };
137
-
138
- }).call(Mode.prototype);
139
-
140
- exports.Mode = Mode;
141
- });
142
-
143
- define('ace/mode/javascript_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
144
-
145
-
146
- var oop = require("../lib/oop");
147
- var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
148
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
149
-
150
- var JavaScriptHighlightRules = function() {
151
- var keywordMapper = this.createKeywordMapper({
152
- "variable.language":
153
- "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
154
- "Namespace|QName|XML|XMLList|" + // E4X
155
- "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
156
- "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
157
- "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
158
- "SyntaxError|TypeError|URIError|" +
159
- "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
160
- "isNaN|parseFloat|parseInt|" +
161
- "JSON|Math|" + // Other
162
- "this|arguments|prototype|window|document" , // Pseudo
163
- "keyword":
164
- "const|yield|import|get|set|" +
165
- "break|case|catch|continue|default|delete|do|else|finally|for|function|" +
166
- "if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
167
- "__parent__|__count__|escape|unescape|with|__proto__|" +
168
- "class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
169
- "storage.type":
170
- "const|let|var|function",
171
- "constant.language":
172
- "null|Infinity|NaN|undefined",
173
- "support.function":
174
- "alert"
175
- }, "identifier");
176
- var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
177
- var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
178
-
179
- var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
180
- "u[0-9a-fA-F]{4}|" + // unicode
181
- "[0-2][0-7]{0,2}|" + // oct
182
- "3[0-6][0-7]?|" + // oct
183
- "37[0-7]?|" + // oct
184
- "[4-7][0-7]?|" + //oct
185
- ".)";
186
-
187
- this.$rules = {
188
- "start" : [
189
- {
190
- token : "comment",
191
- regex : /\/\/.*$/
192
- },
193
- DocCommentHighlightRules.getStartRule("doc-start"),
194
- {
195
- token : "comment", // multi line comment
196
- regex : /\/\*/,
197
- next : "comment"
198
- }, {
199
- token : "string",
200
- regex : "'(?=.)",
201
- next : "qstring"
202
- }, {
203
- token : "string",
204
- regex : '"(?=.)',
205
- next : "qqstring"
206
- }, {
207
- token : "constant.numeric", // hex
208
- regex : /0[xX][0-9a-fA-F]+\b/
209
- }, {
210
- token : "constant.numeric", // float
211
- regex : /[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
212
- }, {
213
- token : [
214
- "storage.type", "punctuation.operator", "support.function",
215
- "punctuation.operator", "entity.name.function", "text","keyword.operator"
216
- ],
217
- regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
218
- next: "function_arguments"
219
- }, {
220
- token : [
221
- "storage.type", "punctuation.operator", "entity.name.function", "text",
222
- "keyword.operator", "text", "storage.type", "text", "paren.lparen"
223
- ],
224
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
225
- next: "function_arguments"
226
- }, {
227
- token : [
228
- "entity.name.function", "text", "keyword.operator", "text", "storage.type",
229
- "text", "paren.lparen"
230
- ],
231
- regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
232
- next: "function_arguments"
233
- }, {
234
- token : [
235
- "storage.type", "punctuation.operator", "entity.name.function", "text",
236
- "keyword.operator", "text",
237
- "storage.type", "text", "entity.name.function", "text", "paren.lparen"
238
- ],
239
- regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
240
- next: "function_arguments"
241
- }, {
242
- token : [
243
- "storage.type", "text", "entity.name.function", "text", "paren.lparen"
244
- ],
245
- regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
246
- next: "function_arguments"
247
- }, {
248
- token : [
249
- "entity.name.function", "text", "punctuation.operator",
250
- "text", "storage.type", "text", "paren.lparen"
251
- ],
252
- regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
253
- next: "function_arguments"
254
- }, {
255
- token : [
256
- "text", "text", "storage.type", "text", "paren.lparen"
257
- ],
258
- regex : "(:)(\\s*)(function)(\\s*)(\\()",
259
- next: "function_arguments"
260
- }, {
261
- token : "constant.language.boolean",
262
- regex : /(?:true|false)\b/
263
- }, {
264
- token : "keyword",
265
- regex : "(?:" + kwBeforeRe + ")\\b",
266
- next : "regex_allowed"
267
- }, {
268
- token : ["punctuation.operator", "support.function"],
269
- regex : /(\.)(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:opzzzz|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
270
- }, {
271
- token : ["punctuation.operator", "support.function.dom"],
272
- regex : /(\.)(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
273
- }, {
274
- token : ["punctuation.operator", "support.constant"],
275
- regex : /(\.)(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
276
- }, {
277
- token : ["storage.type", "punctuation.operator", "support.function.firebug"],
278
- regex : /(console)(\.)(warn|info|log|error|time|timeEnd|assert)\b/
279
- }, {
280
- token : keywordMapper,
281
- regex : identifierRe
282
- }, {
283
- token : "keyword.operator",
284
- regex : /--|\+\+|[!$%&*+\-~]|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=/,
285
- next : "regex_allowed"
286
- }, {
287
- token : "punctuation.operator",
288
- regex : /\?|\:|\,|\;|\./,
289
- next : "regex_allowed"
290
- }, {
291
- token : "paren.lparen",
292
- regex : /[\[({]/,
293
- next : "regex_allowed"
294
- }, {
295
- token : "paren.rparen",
296
- regex : /[\])}]/
297
- }, {
298
- token : "keyword.operator",
299
- regex : /\/=?/,
300
- next : "regex_allowed"
301
- }, {
302
- token: "comment",
303
- regex: /^#!.*$/
304
- }, {
305
- token : "text",
306
- regex : /\s+/
307
- }
308
- ],
309
- "regex_allowed": [
310
- DocCommentHighlightRules.getStartRule("doc-start"),
311
- {
312
- token : "comment", // multi line comment
313
- regex : "\\/\\*",
314
- next : "comment_regex_allowed"
315
- }, {
316
- token : "comment",
317
- regex : "\\/\\/.*$"
318
- }, {
319
- token: "string.regexp",
320
- regex: "\\/",
321
- next: "regex",
322
- }, {
323
- token : "text",
324
- regex : "\\s+"
325
- }, {
326
- token: "empty",
327
- regex: "",
328
- next: "start"
329
- }
330
- ],
331
- "regex": [
332
- {
333
- token: "regexp.keyword.operator",
334
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
335
- }, {
336
- token: "string.regexp",
337
- regex: "/\\w*",
338
- next: "start",
339
- }, {
340
- token : "invalid",
341
- regex: /\{\d+,?(?:\d+)?}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
342
- }, {
343
- token : "constant.language.escape",
344
- regex: /\(\?[:=!]|\)|{\d+,?(?:\d+)?}|{,\d+}|[+*]\?|[(|)$^+*?]/
345
- }, {
346
- token: "string.regexp",
347
- regex: /{|[^{\[\/\\(|)$^+*?]+/,
348
- }, {
349
- token: "constant.language.escape",
350
- regex: /\[\^?/,
351
- next: "regex_character_class",
352
- }, {
353
- token: "empty",
354
- regex: "",
355
- next: "start"
356
- }
357
- ],
358
- "regex_character_class": [
359
- {
360
- token: "regexp.keyword.operator",
361
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
362
- }, {
363
- token: "constant.language.escape",
364
- regex: "]",
365
- next: "regex",
366
- }, {
367
- token: "constant.language.escape",
368
- regex: "-"
369
- }, {
370
- token: "string.regexp.charachterclass",
371
- regex: /[^\]\-\\]+/,
372
- }, {
373
- token: "empty",
374
- regex: "",
375
- next: "start"
376
- }
377
- ],
378
- "function_arguments": [
379
- {
380
- token: "variable.parameter",
381
- regex: identifierRe
382
- }, {
383
- token: "punctuation.operator",
384
- regex: "[, ]+",
385
- }, {
386
- token: "punctuation.operator",
387
- regex: "$",
388
- }, {
389
- token: "empty",
390
- regex: "",
391
- next: "start"
392
- }
393
- ],
394
- "comment_regex_allowed" : [
395
- {
396
- token : "comment", // closing comment
397
- regex : ".*?\\*\\/",
398
- next : "regex_allowed"
399
- }, {
400
- token : "comment", // comment spanning whole line
401
- regex : ".+"
402
- }
403
- ],
404
- "comment" : [
405
- {
406
- token : "comment", // closing comment
407
- regex : ".*?\\*\\/",
408
- next : "start"
409
- }, {
410
- token : "comment", // comment spanning whole line
411
- regex : ".+"
412
- }
413
- ],
414
- "qqstring" : [
415
- {
416
- token : "constant.language.escape",
417
- regex : escapedRe
418
- }, {
419
- token : "string",
420
- regex : "\\\\$",
421
- next : "qqstring",
422
- }, {
423
- token : "string",
424
- regex : '"|$',
425
- next : "start",
426
- }, {
427
- token : "string",
428
- regex : '.|\\w+|\\s+',
429
- }
430
- ],
431
- "qstring" : [
432
- {
433
- token : "constant.language.escape",
434
- regex : escapedRe
435
- }, {
436
- token : "string",
437
- regex : "\\\\$",
438
- next : "qstring",
439
- }, {
440
- token : "string",
441
- regex : "'|$",
442
- next : "start",
443
- }, {
444
- token : "string",
445
- regex : '.|\\w+|\\s+',
446
- }
447
- ]
448
- };
449
-
450
- this.embedRules(DocCommentHighlightRules, "doc-",
451
- [ DocCommentHighlightRules.getEndRule("start") ]);
452
- };
453
-
454
- oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
455
-
456
- exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
457
- });
458
-
459
- define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
460
-
461
-
462
- var oop = require("../lib/oop");
463
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
464
-
465
- var DocCommentHighlightRules = function() {
466
-
467
- this.$rules = {
468
- "start" : [ {
469
- token : "comment.doc.tag",
470
- regex : "@[\\w\\d_]+" // TODO: fix email addresses
471
- }, {
472
- token : "comment.doc",
473
- regex : "\\s+"
474
- }, {
475
- token : "comment.doc",
476
- regex : "TODO"
477
- }, {
478
- token : "comment.doc",
479
- regex : "[^@\\*]+"
480
- }, {
481
- token : "comment.doc",
482
- regex : "."
483
- }]
484
- };
485
- };
486
-
487
- oop.inherits(DocCommentHighlightRules, TextHighlightRules);
488
-
489
- DocCommentHighlightRules.getStartRule = function(start) {
490
- return {
491
- token : "comment.doc", // doc comment
492
- regex : "\\/\\*(?=\\*)",
493
- next : start
494
- };
495
- };
496
-
497
- DocCommentHighlightRules.getEndRule = function (start) {
498
- return {
499
- token : "comment.doc", // closing comment
500
- regex : "\\*\\/",
501
- next : start
502
- };
503
- };
504
-
505
-
506
- exports.DocCommentHighlightRules = DocCommentHighlightRules;
507
-
508
- });
509
-
510
- define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) {
511
-
512
-
513
- var Range = require("../range").Range;
514
-
515
- var MatchingBraceOutdent = function() {};
516
-
517
- (function() {
518
-
519
- this.checkOutdent = function(line, input) {
520
- if (! /^\s+$/.test(line))
521
- return false;
522
-
523
- return /^\s*\}/.test(input);
524
- };
525
-
526
- this.autoOutdent = function(doc, row) {
527
- var line = doc.getLine(row);
528
- var match = line.match(/^(\s*\})/);
529
-
530
- if (!match) return 0;
531
-
532
- var column = match[1].length;
533
- var openBracePos = doc.findMatchingBracket({row: row, column: column});
534
-
535
- if (!openBracePos || openBracePos.row == row) return 0;
536
-
537
- var indent = this.$getIndent(doc.getLine(openBracePos.row));
538
- doc.replace(new Range(row, 0, row, column-1), indent);
539
- };
540
-
541
- this.$getIndent = function(line) {
542
- var match = line.match(/^(\s+)/);
543
- if (match) {
544
- return match[1];
545
- }
546
-
547
- return "";
548
- };
549
-
550
- }).call(MatchingBraceOutdent.prototype);
551
-
552
- exports.MatchingBraceOutdent = MatchingBraceOutdent;
553
- });
554
-
555
- define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) {
556
-
557
-
558
- var oop = require("../../lib/oop");
559
- var Behaviour = require("../behaviour").Behaviour;
560
- var TokenIterator = require("../../token_iterator").TokenIterator;
561
- var lang = require("../../lib/lang");
562
-
563
- var SAFE_INSERT_IN_TOKENS =
564
- ["text", "paren.rparen", "punctuation.operator"];
565
- var SAFE_INSERT_BEFORE_TOKENS =
566
- ["text", "paren.rparen", "punctuation.operator", "comment"];
567
-
568
-
569
- var autoInsertedBrackets = 0;
570
- var autoInsertedRow = -1;
571
- var autoInsertedLineEnd = "";
572
- var maybeInsertedBrackets = 0;
573
- var maybeInsertedRow = -1;
574
- var maybeInsertedLineStart = "";
575
- var maybeInsertedLineEnd = "";
576
-
577
- var CstyleBehaviour = function () {
578
-
579
- CstyleBehaviour.isSaneInsertion = function(editor, session) {
580
- var cursor = editor.getCursorPosition();
581
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
582
- if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
583
- var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
584
- if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
585
- return false;
586
- }
587
- iterator.stepForward();
588
- return iterator.getCurrentTokenRow() !== cursor.row ||
589
- this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
590
- };
591
-
592
- CstyleBehaviour.$matchTokenType = function(token, types) {
593
- return types.indexOf(token.type || token) > -1;
594
- };
595
-
596
- CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
597
- var cursor = editor.getCursorPosition();
598
- var line = session.doc.getLine(cursor.row);
599
- if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0]))
600
- autoInsertedBrackets = 0;
601
- autoInsertedRow = cursor.row;
602
- autoInsertedLineEnd = bracket + line.substr(cursor.column);
603
- autoInsertedBrackets++;
604
- };
605
-
606
- CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
607
- var cursor = editor.getCursorPosition();
608
- var line = session.doc.getLine(cursor.row);
609
- if (!this.isMaybeInsertedClosing(cursor, line))
610
- maybeInsertedBrackets = 0;
611
- maybeInsertedRow = cursor.row;
612
- maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
613
- maybeInsertedLineEnd = line.substr(cursor.column);
614
- maybeInsertedBrackets++;
615
- };
616
-
617
- CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
618
- return autoInsertedBrackets > 0 &&
619
- cursor.row === autoInsertedRow &&
620
- bracket === autoInsertedLineEnd[0] &&
621
- line.substr(cursor.column) === autoInsertedLineEnd;
622
- };
623
-
624
- CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
625
- return maybeInsertedBrackets > 0 &&
626
- cursor.row === maybeInsertedRow &&
627
- line.substr(cursor.column) === maybeInsertedLineEnd &&
628
- line.substr(0, cursor.column) == maybeInsertedLineStart;
629
- };
630
-
631
- CstyleBehaviour.popAutoInsertedClosing = function() {
632
- autoInsertedLineEnd = autoInsertedLineEnd.substr(1);
633
- autoInsertedBrackets--;
634
- };
635
-
636
- CstyleBehaviour.clearMaybeInsertedClosing = function() {
637
- maybeInsertedBrackets = 0;
638
- maybeInsertedRow = -1;
639
- };
640
-
641
- this.add("braces", "insertion", function (state, action, editor, session, text) {
642
- var cursor = editor.getCursorPosition();
643
- var line = session.doc.getLine(cursor.row);
644
- if (text == '{') {
645
- var selection = editor.getSelectionRange();
646
- var selected = session.doc.getTextRange(selection);
647
- if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
648
- return {
649
- text: '{' + selected + '}',
650
- selection: false
651
- };
652
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
653
- if (/[\]\}\)]/.test(line[cursor.column])) {
654
- CstyleBehaviour.recordAutoInsert(editor, session, "}");
655
- return {
656
- text: '{}',
657
- selection: [1, 1]
658
- };
659
- } else {
660
- CstyleBehaviour.recordMaybeInsert(editor, session, "{");
661
- return {
662
- text: '{',
663
- selection: [1, 1]
664
- };
665
- }
666
- }
667
- } else if (text == '}') {
668
- var rightChar = line.substring(cursor.column, cursor.column + 1);
669
- if (rightChar == '}') {
670
- var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
671
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
672
- CstyleBehaviour.popAutoInsertedClosing();
673
- return {
674
- text: '',
675
- selection: [1, 1]
676
- };
677
- }
678
- }
679
- } else if (text == "\n" || text == "\r\n") {
680
- var closing = "";
681
- if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
682
- closing = lang.stringRepeat("}", maybeInsertedBrackets);
683
- CstyleBehaviour.clearMaybeInsertedClosing();
684
- }
685
- var rightChar = line.substring(cursor.column, cursor.column + 1);
686
- if (rightChar == '}' || closing !== "") {
687
- var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}');
688
- if (!openBracePos)
689
- return null;
690
-
691
- var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString());
692
- var next_indent = this.$getIndent(line);
693
-
694
- return {
695
- text: '\n' + indent + '\n' + next_indent + closing,
696
- selection: [1, indent.length, 1, indent.length]
697
- };
698
- }
699
- }
700
- });
701
-
702
- this.add("braces", "deletion", function (state, action, editor, session, range) {
703
- var selected = session.doc.getTextRange(range);
704
- if (!range.isMultiLine() && selected == '{') {
705
- var line = session.doc.getLine(range.start.row);
706
- var rightChar = line.substring(range.end.column, range.end.column + 1);
707
- if (rightChar == '}') {
708
- range.end.column++;
709
- return range;
710
- } else {
711
- maybeInsertedBrackets--;
712
- }
713
- }
714
- });
715
-
716
- this.add("parens", "insertion", function (state, action, editor, session, text) {
717
- if (text == '(') {
718
- var selection = editor.getSelectionRange();
719
- var selected = session.doc.getTextRange(selection);
720
- if (selected !== "" && editor.getWrapBehavioursEnabled()) {
721
- return {
722
- text: '(' + selected + ')',
723
- selection: false
724
- };
725
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
726
- CstyleBehaviour.recordAutoInsert(editor, session, ")");
727
- return {
728
- text: '()',
729
- selection: [1, 1]
730
- };
731
- }
732
- } else if (text == ')') {
733
- var cursor = editor.getCursorPosition();
734
- var line = session.doc.getLine(cursor.row);
735
- var rightChar = line.substring(cursor.column, cursor.column + 1);
736
- if (rightChar == ')') {
737
- var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
738
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
739
- CstyleBehaviour.popAutoInsertedClosing();
740
- return {
741
- text: '',
742
- selection: [1, 1]
743
- };
744
- }
745
- }
746
- }
747
- });
748
-
749
- this.add("parens", "deletion", function (state, action, editor, session, range) {
750
- var selected = session.doc.getTextRange(range);
751
- if (!range.isMultiLine() && selected == '(') {
752
- var line = session.doc.getLine(range.start.row);
753
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
754
- if (rightChar == ')') {
755
- range.end.column++;
756
- return range;
757
- }
758
- }
759
- });
760
-
761
- this.add("brackets", "insertion", function (state, action, editor, session, text) {
762
- if (text == '[') {
763
- var selection = editor.getSelectionRange();
764
- var selected = session.doc.getTextRange(selection);
765
- if (selected !== "" && editor.getWrapBehavioursEnabled()) {
766
- return {
767
- text: '[' + selected + ']',
768
- selection: false
769
- };
770
- } else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
771
- CstyleBehaviour.recordAutoInsert(editor, session, "]");
772
- return {
773
- text: '[]',
774
- selection: [1, 1]
775
- };
776
- }
777
- } else if (text == ']') {
778
- var cursor = editor.getCursorPosition();
779
- var line = session.doc.getLine(cursor.row);
780
- var rightChar = line.substring(cursor.column, cursor.column + 1);
781
- if (rightChar == ']') {
782
- var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
783
- if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
784
- CstyleBehaviour.popAutoInsertedClosing();
785
- return {
786
- text: '',
787
- selection: [1, 1]
788
- };
789
- }
790
- }
791
- }
792
- });
793
-
794
- this.add("brackets", "deletion", function (state, action, editor, session, range) {
795
- var selected = session.doc.getTextRange(range);
796
- if (!range.isMultiLine() && selected == '[') {
797
- var line = session.doc.getLine(range.start.row);
798
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
799
- if (rightChar == ']') {
800
- range.end.column++;
801
- return range;
802
- }
803
- }
804
- });
805
-
806
- this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
807
- if (text == '"' || text == "'") {
808
- var quote = text;
809
- var selection = editor.getSelectionRange();
810
- var selected = session.doc.getTextRange(selection);
811
- if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
812
- return {
813
- text: quote + selected + quote,
814
- selection: false
815
- };
816
- } else {
817
- var cursor = editor.getCursorPosition();
818
- var line = session.doc.getLine(cursor.row);
819
- var leftChar = line.substring(cursor.column-1, cursor.column);
820
- if (leftChar == '\\') {
821
- return null;
822
- }
823
- var tokens = session.getTokens(selection.start.row);
824
- var col = 0, token;
825
- var quotepos = -1; // Track whether we're inside an open quote.
826
-
827
- for (var x = 0; x < tokens.length; x++) {
828
- token = tokens[x];
829
- if (token.type == "string") {
830
- quotepos = -1;
831
- } else if (quotepos < 0) {
832
- quotepos = token.value.indexOf(quote);
833
- }
834
- if ((token.value.length + col) > selection.start.column) {
835
- break;
836
- }
837
- col += tokens[x].value.length;
838
- }
839
- 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)))) {
840
- if (!CstyleBehaviour.isSaneInsertion(editor, session))
841
- return;
842
- return {
843
- text: quote + quote,
844
- selection: [1,1]
845
- };
846
- } else if (token && token.type === "string") {
847
- var rightChar = line.substring(cursor.column, cursor.column + 1);
848
- if (rightChar == quote) {
849
- return {
850
- text: '',
851
- selection: [1, 1]
852
- };
853
- }
854
- }
855
- }
856
- }
857
- });
858
-
859
- this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
860
- var selected = session.doc.getTextRange(range);
861
- if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
862
- var line = session.doc.getLine(range.start.row);
863
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
864
- if (rightChar == '"') {
865
- range.end.column++;
866
- return range;
867
- }
868
- }
869
- });
870
-
871
- };
872
-
873
- oop.inherits(CstyleBehaviour, Behaviour);
874
-
875
- exports.CstyleBehaviour = CstyleBehaviour;
876
- });
877
-
878
- define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) {
879
-
880
-
881
- var oop = require("../../lib/oop");
882
- var Range = require("../../range").Range;
883
- var BaseFoldMode = require("./fold_mode").FoldMode;
884
-
885
- var FoldMode = exports.FoldMode = function() {};
886
- oop.inherits(FoldMode, BaseFoldMode);
887
-
888
- (function() {
889
-
890
- this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
891
- this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
892
-
893
- this.getFoldWidgetRange = function(session, foldStyle, row) {
894
- var line = session.getLine(row);
895
- var match = line.match(this.foldingStartMarker);
896
- if (match) {
897
- var i = match.index;
898
-
899
- if (match[1])
900
- return this.openingBracketBlock(session, match[1], row, i);
901
-
902
- return session.getCommentFoldRange(row, i + match[0].length, 1);
903
- }
904
-
905
- if (foldStyle !== "markbeginend")
906
- return;
907
-
908
- var match = line.match(this.foldingStopMarker);
909
- if (match) {
910
- var i = match.index + match[0].length;
911
-
912
- if (match[1])
913
- return this.closingBracketBlock(session, match[1], row, i);
914
-
915
- return session.getCommentFoldRange(row, i, -1);
916
- }
917
- };
918
-
919
- }).call(FoldMode.prototype);
920
-
921
- });