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