gollum 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum might be problematic. Click here for more details.

Files changed (391) hide show
  1. data/gollum.gemspec +100 -19
  2. data/lib/gollum.rb +2 -3
  3. data/lib/gollum/frontend/public/gollum/css/gollum.css +3 -1
  4. data/lib/gollum/frontend/public/gollum/css/template.css +8 -12
  5. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ace.js +64 -60
  6. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor.js +56 -62
  7. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +25 -32
  8. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +56 -63
  9. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +25 -32
  10. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +11 -11
  11. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +59 -53
  12. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +46 -39
  13. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +32 -36
  14. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config.js +62 -47
  15. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config_test.js +71 -0
  16. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +82 -41
  17. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document.js +126 -145
  18. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document_test.js +25 -33
  19. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +484 -467
  20. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +30 -63
  21. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +29 -37
  22. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +27 -35
  23. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +47 -55
  24. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +61 -41
  25. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor.js +506 -517
  26. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +25 -32
  27. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +26 -34
  28. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +25 -32
  29. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +25 -32
  30. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +28 -38
  31. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +9 -14
  32. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +26 -36
  33. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +44 -36
  34. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +45 -52
  35. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +25 -34
  36. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +26 -33
  37. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +230 -165
  38. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +76 -49
  39. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +66 -61
  40. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +36 -43
  41. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +138 -156
  42. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +35 -32
  43. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +18 -18
  44. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +25 -32
  45. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +116 -101
  46. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +117 -83
  47. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +60 -71
  48. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +163 -102
  49. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +60 -41
  50. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +26 -36
  51. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +26 -36
  52. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +24 -1
  53. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +52 -54
  54. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +32 -39
  55. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +25 -32
  56. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +9 -1
  57. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +73 -33
  58. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +10 -3
  59. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +25 -32
  60. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +2 -2
  61. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +55 -58
  62. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/package.json +8 -0
  63. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +144 -0
  64. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +52 -0
  65. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +175 -0
  66. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +124 -0
  67. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +248 -0
  68. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +188 -0
  69. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +41 -0
  70. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +42 -0
  71. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +231 -0
  72. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +732 -0
  73. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +185 -0
  74. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +362 -0
  75. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +529 -0
  76. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +195 -0
  77. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +150 -0
  78. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +139 -0
  79. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +555 -0
  80. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +611 -0
  81. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +79 -0
  82. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +196 -0
  83. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +292 -0
  84. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +698 -0
  85. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +451 -0
  86. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +824 -0
  87. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +1202 -0
  88. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +260 -0
  89. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +311 -0
  90. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +1020 -0
  91. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +238 -0
  92. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +255 -0
  93. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +205 -0
  94. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +104 -0
  95. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +267 -0
  96. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +748 -0
  97. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +181 -0
  98. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +434 -0
  99. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +73 -0
  100. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +931 -0
  101. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +536 -0
  102. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +58 -0
  103. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +195 -0
  104. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +705 -0
  105. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +64 -0
  106. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +260 -0
  107. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap.js +77 -0
  108. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +133 -0
  109. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +64 -0
  110. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +234 -0
  111. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +26 -34
  112. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +195 -55
  113. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +26 -34
  114. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +26 -34
  115. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +31 -31
  116. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +25 -32
  117. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +25 -32
  118. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +25 -33
  119. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +67 -60
  120. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +25 -34
  121. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +112 -130
  122. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +29 -36
  123. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +25 -32
  124. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +22 -7
  125. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +140 -64
  126. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +479 -237
  127. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +321 -230
  128. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +25 -32
  129. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +62 -28
  130. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +39 -20
  131. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +183 -82
  132. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +226 -32
  133. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +25 -32
  134. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +25 -32
  135. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +28 -35
  136. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +25 -32
  137. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +7 -21
  138. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +36 -47
  139. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +202 -697
  140. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +51 -84
  141. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +25 -32
  142. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +25 -32
  143. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +68 -40
  144. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +25 -32
  145. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart.js +62 -0
  146. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +192 -0
  147. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +25 -31
  148. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +27 -33
  149. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +25 -32
  150. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/asciidoc.js +142 -0
  151. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +31 -37
  152. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +26 -33
  153. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +25 -32
  154. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +30 -51
  155. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +25 -32
  156. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +28 -35
  157. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +35 -30
  158. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +25 -32
  159. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +25 -32
  160. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +162 -0
  161. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +163 -0
  162. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/markdown.js +125 -0
  163. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +25 -32
  164. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +25 -32
  165. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +26 -33
  166. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +25 -32
  167. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +25 -32
  168. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +52 -0
  169. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl_highlight_rules.js +81 -0
  170. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +0 -1
  171. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +15 -22
  172. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +28 -36
  173. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml.js +62 -0
  174. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +132 -0
  175. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +20 -25
  176. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +11 -15
  177. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +25 -32
  178. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +32 -38
  179. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +162 -69
  180. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +25 -32
  181. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade.js +58 -0
  182. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +347 -0
  183. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +18 -29
  184. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +28 -51
  185. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +4838 -0
  186. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +98 -180
  187. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +26 -33
  188. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +25 -32
  189. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +163 -64
  190. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +38 -40
  191. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +26 -33
  192. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +26 -34
  193. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +25 -32
  194. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +25 -32
  195. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +56 -0
  196. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +85 -0
  197. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +3 -2
  198. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +1 -1
  199. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +25 -33
  200. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +25 -33
  201. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +25 -32
  202. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +146 -161
  203. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +25 -32
  204. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +60 -0
  205. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +127 -0
  206. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +116 -56
  207. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +75 -101
  208. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +16 -0
  209. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules.js +49 -0
  210. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +99 -0
  211. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +62 -0
  212. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +75 -0
  213. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +35 -41
  214. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +29 -37
  215. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +100 -0
  216. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +25 -32
  217. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +25 -32
  218. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +62 -0
  219. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +343 -0
  220. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +25 -32
  221. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +39 -53
  222. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +25 -32
  223. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +39 -52
  224. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +33 -24
  225. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +55 -51
  226. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +57 -36
  227. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +53 -153
  228. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +31 -21
  229. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +28 -36
  230. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +44 -61
  231. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +25 -32
  232. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r.js +135 -0
  233. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +190 -0
  234. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +36 -0
  235. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +99 -0
  236. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +67 -0
  237. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +49 -0
  238. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +27 -33
  239. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +102 -90
  240. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +29 -37
  241. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +25 -33
  242. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +32 -54
  243. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +18 -32
  244. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +25 -32
  245. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +25 -32
  246. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +28 -35
  247. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +48 -64
  248. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +28 -18
  249. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +41 -36
  250. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +62 -0
  251. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +175 -0
  252. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +25 -32
  253. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +26 -33
  254. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +110 -0
  255. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +180 -0
  256. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex.js +48 -0
  257. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +107 -0
  258. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +26 -36
  259. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +57 -46
  260. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +25 -32
  261. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +25 -32
  262. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +26 -33
  263. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +68 -0
  264. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +98 -0
  265. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +25 -32
  266. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +27 -34
  267. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +183 -78
  268. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +25 -32
  269. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +30 -38
  270. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +32 -37
  271. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/JSONParseTreeHandler.js +92 -0
  272. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +32954 -42497
  273. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +316 -0
  274. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +31 -44
  275. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +48 -57
  276. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +30 -18
  277. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +48 -40
  278. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/model/editor.js +26 -34
  279. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +126 -40
  280. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +35 -43
  281. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +28 -35
  282. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +78 -39
  283. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +26 -34
  284. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +39 -36
  285. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +26 -34
  286. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +234 -103
  287. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +26 -34
  288. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +30 -39
  289. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +27 -35
  290. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range.js +190 -201
  291. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list.js +25 -32
  292. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +25 -32
  293. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_test.js +25 -32
  294. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +31 -49
  295. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +27 -34
  296. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +52 -55
  297. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search.js +91 -105
  298. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +31 -34
  299. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_test.js +47 -37
  300. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection.js +138 -153
  301. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +25 -32
  302. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/split.js +67 -105
  303. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all.js +25 -32
  304. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +3 -2
  305. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/assertions.js +25 -32
  306. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +25 -32
  307. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +30 -34
  308. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +217 -0
  309. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.js +33 -0
  310. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +37 -38
  311. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +27 -34
  312. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +53 -47
  313. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +28 -35
  314. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +54 -48
  315. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +28 -35
  316. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +58 -59
  317. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +28 -35
  318. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +33 -33
  319. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +26 -33
  320. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +52 -64
  321. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +28 -35
  322. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +33 -36
  323. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +26 -33
  324. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +29 -25
  325. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +26 -33
  326. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +14 -21
  327. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.js +26 -33
  328. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +48 -60
  329. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +28 -35
  330. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +52 -57
  331. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +28 -35
  332. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +53 -71
  333. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +28 -35
  334. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +54 -77
  335. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +28 -35
  336. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +60 -70
  337. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +28 -35
  338. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +55 -72
  339. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +28 -35
  340. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +55 -64
  341. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +28 -35
  342. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +48 -66
  343. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +28 -35
  344. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +49 -61
  345. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +28 -35
  346. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +38 -44
  347. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +26 -33
  348. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +59 -87
  349. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +28 -35
  350. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +59 -87
  351. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +28 -35
  352. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +59 -90
  353. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +28 -35
  354. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +59 -87
  355. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +28 -35
  356. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +57 -85
  357. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +28 -35
  358. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +54 -78
  359. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +28 -35
  360. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +45 -68
  361. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +28 -35
  362. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +111 -0
  363. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +39 -0
  364. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +37 -50
  365. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +26 -33
  366. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +40 -41
  367. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +205 -0
  368. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +48 -55
  369. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +254 -277
  370. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +25 -32
  371. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +22 -4
  372. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +97 -56
  373. data/lib/gollum/frontend/public/gollum/livepreview/licenses/ace/LICENSE.txt +24 -476
  374. data/lib/gollum/frontend/public/gollum/livepreview/licenses/licenses.txt +2 -2
  375. data/lib/gollum/frontend/views/page.rb +3 -2
  376. metadata +102 -21
  377. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Position.js +0 -59
  378. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/StringLexer.js +0 -1686
  379. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XMLLexer.js +0 -2993
  380. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTLexer.js +0 -69
  381. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTParser.js +0 -63
  382. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryLexer.js +0 -10363
  383. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQuerySemanticHighlighter.js +0 -165
  384. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/antlr3-all.js +0 -6177
  385. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery.js +0 -55
  386. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/definitions.js +0 -696
  387. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/lexer.js +0 -598
  388. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/options.js +0 -61
  389. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/parser.js +0 -2072
  390. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jshint.js +0 -4469
  391. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jslint.js +0 -6396
@@ -0,0 +1,1202 @@
1
+ [
2
+ {
3
+ "state": "start",
4
+ "data": [
5
+ [ "text", "Ace (Ajax.org Cloud9 Editor)" ]
6
+ ]
7
+ },
8
+ {
9
+ "state": "start",
10
+ "data": [
11
+ [ "markup.heading.1", "============================" ]
12
+ ]
13
+ },
14
+ {
15
+ "state": "start",
16
+ "data": []
17
+ },
18
+ {
19
+ "state": "start",
20
+ "data": [
21
+ [ "text", "Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application. Ace is developed as the primary editor for [" ],
22
+ [ "string", "Cloud9 IDE" ],
23
+ [ "text", "](" ],
24
+ [ "markup.underline", "http://www.cloud9ide.com/" ],
25
+ [ "text", ") and the successor of the Mozilla Skywriter (Bespin) Project." ]
26
+ ]
27
+ },
28
+ {
29
+ "state": "start",
30
+ "data": []
31
+ },
32
+ {
33
+ "state": "start",
34
+ "data": [
35
+ [ "text", "Features" ]
36
+ ]
37
+ },
38
+ {
39
+ "state": "start",
40
+ "data": [
41
+ [ "markup.heading.2", "--------" ]
42
+ ]
43
+ },
44
+ {
45
+ "state": "start",
46
+ "data": []
47
+ },
48
+ {
49
+ "state": "listblock",
50
+ "data": [
51
+ [ "markup.list", "* " ],
52
+ [ "markup.list", "Syntax highlighting" ]
53
+ ]
54
+ },
55
+ {
56
+ "state": "listblock",
57
+ "data": [
58
+ [ "markup.list", "* Automatic indent and outdent" ]
59
+ ]
60
+ },
61
+ {
62
+ "state": "listblock",
63
+ "data": [
64
+ [ "markup.list", "* An optional command line" ]
65
+ ]
66
+ },
67
+ {
68
+ "state": "listblock",
69
+ "data": [
70
+ [ "markup.list", "* Handles huge documents (100,000 lines and more are no problem)" ]
71
+ ]
72
+ },
73
+ {
74
+ "state": "listblock",
75
+ "data": [
76
+ [ "markup.list", "* Fully customizable key bindings including VI and Emacs modes" ]
77
+ ]
78
+ },
79
+ {
80
+ "state": "listblock",
81
+ "data": [
82
+ [ "markup.list", "* Themes (TextMate themes can be imported)" ]
83
+ ]
84
+ },
85
+ {
86
+ "state": "listblock",
87
+ "data": [
88
+ [ "markup.list", "* Search and replace with regular expressions" ]
89
+ ]
90
+ },
91
+ {
92
+ "state": "listblock",
93
+ "data": [
94
+ [ "markup.list", "* Highlight matching parentheses" ]
95
+ ]
96
+ },
97
+ {
98
+ "state": "listblock",
99
+ "data": [
100
+ [ "markup.list", "* Toggle between soft tabs and real tabs" ]
101
+ ]
102
+ },
103
+ {
104
+ "state": "listblock",
105
+ "data": [
106
+ [ "markup.list", "* Displays hidden characters" ]
107
+ ]
108
+ },
109
+ {
110
+ "state": "listblock",
111
+ "data": [
112
+ [ "markup.list", "* Drag and drop text using the mouse" ]
113
+ ]
114
+ },
115
+ {
116
+ "state": "listblock",
117
+ "data": [
118
+ [ "markup.list", "* Line wrapping" ]
119
+ ]
120
+ },
121
+ {
122
+ "state": "listblock",
123
+ "data": [
124
+ [ "markup.list", "* Unstructured / user code folding" ]
125
+ ]
126
+ },
127
+ {
128
+ "state": "listblock",
129
+ "data": [
130
+ [ "markup.list", "* Live syntax checker (currently JavaScript/CoffeeScript)" ]
131
+ ]
132
+ },
133
+ {
134
+ "state": "start",
135
+ "data": []
136
+ },
137
+ {
138
+ "state": "start",
139
+ "data": [
140
+ [ "text", "Take Ace for a spin!" ]
141
+ ]
142
+ },
143
+ {
144
+ "state": "start",
145
+ "data": [
146
+ [ "markup.heading.2", "--------------------" ]
147
+ ]
148
+ },
149
+ {
150
+ "state": "start",
151
+ "data": []
152
+ },
153
+ {
154
+ "state": "start",
155
+ "data": [
156
+ [ "text", "Check out the Ace live [" ],
157
+ [ "string", "demo" ],
158
+ [ "text", "](" ],
159
+ [ "markup.underline", "http://ajaxorg.github.com/ace/" ],
160
+ [ "text", ") or get a [" ],
161
+ [ "string", "Cloud9 IDE account" ],
162
+ [ "text", "](" ],
163
+ [ "markup.underline", "http://run.cloud9ide.com" ],
164
+ [ "text", ") to experience Ace while editing one of your own GitHub projects." ]
165
+ ]
166
+ },
167
+ {
168
+ "state": "start",
169
+ "data": []
170
+ },
171
+ {
172
+ "state": "start",
173
+ "data": [
174
+ [ "text", "If you want, you can use Ace as a textarea replacement thanks to the [" ],
175
+ [ "string", "Ace Bookmarklet" ],
176
+ [ "text", "](" ],
177
+ [ "markup.underline", "http://ajaxorg.github.com/ace/build/textarea/editor.html" ],
178
+ [ "text", ")." ]
179
+ ]
180
+ },
181
+ {
182
+ "state": "start",
183
+ "data": []
184
+ },
185
+ {
186
+ "state": "start",
187
+ "data": [
188
+ [ "text", "History" ]
189
+ ]
190
+ },
191
+ {
192
+ "state": "start",
193
+ "data": [
194
+ [ "markup.heading.2", "-------" ]
195
+ ]
196
+ },
197
+ {
198
+ "state": "start",
199
+ "data": []
200
+ },
201
+ {
202
+ "state": "start",
203
+ "data": [
204
+ [ "text", "Previously known as “Bespin” and “Skywriter” it’s now known as Ace (Ajax.org Cloud9 Editor)! Bespin and Ace started as two independent projects, both aiming to build a no-compromise code editor component for the web. Bespin started as part of Mozilla Labs and was based on the canvas tag, while Ace is the Editor component of the Cloud9 IDE and is using the DOM for rendering. After the release of Ace at JSConf.eu 2010 in Berlin the Skywriter team decided to merge Ace with a simplified version of Skywriter's plugin system and some of Skywriter's extensibility points. All these changes have been merged back to Ace. Both Ajax.org and Mozilla are actively developing and maintaining Ace." ]
205
+ ]
206
+ },
207
+ {
208
+ "state": "start",
209
+ "data": []
210
+ },
211
+ {
212
+ "state": "start",
213
+ "data": [
214
+ [ "text", "Getting the code" ]
215
+ ]
216
+ },
217
+ {
218
+ "state": "start",
219
+ "data": [
220
+ [ "markup.heading.2", "----------------" ]
221
+ ]
222
+ },
223
+ {
224
+ "state": "start",
225
+ "data": []
226
+ },
227
+ {
228
+ "state": "start",
229
+ "data": [
230
+ [ "text", "Ace is a community project. We actively encourage and support contributions. The Ace source code is hosted on GitHub. It is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings!" ]
231
+ ]
232
+ },
233
+ {
234
+ "state": "start",
235
+ "data": []
236
+ },
237
+ {
238
+ "state": "githubblock",
239
+ "data": [
240
+ [ "support.function", "```bash" ]
241
+ ]
242
+ },
243
+ {
244
+ "state": "githubblock",
245
+ "data": [
246
+ [ "support.function", " git clone git://github.com/ajaxorg/ace.git" ]
247
+ ]
248
+ },
249
+ {
250
+ "state": "githubblock",
251
+ "data": [
252
+ [ "support.function", " cd ace" ]
253
+ ]
254
+ },
255
+ {
256
+ "state": "githubblock",
257
+ "data": [
258
+ [ "support.function", " git submodule update --init --recursive" ]
259
+ ]
260
+ },
261
+ {
262
+ "state": "start",
263
+ "data": [
264
+ [ "support.function", "```" ]
265
+ ]
266
+ },
267
+ {
268
+ "state": "start",
269
+ "data": []
270
+ },
271
+ {
272
+ "state": "start",
273
+ "data": [
274
+ [ "text", "Embedding Ace" ]
275
+ ]
276
+ },
277
+ {
278
+ "state": "start",
279
+ "data": [
280
+ [ "markup.heading.2", "-------------" ]
281
+ ]
282
+ },
283
+ {
284
+ "state": "start",
285
+ "data": []
286
+ },
287
+ {
288
+ "state": "start",
289
+ "data": [
290
+ [ "text", "Ace can be easily embedded into any existing web page. The Ace git repository ships with a pre-packaged version of Ace inside of the " ],
291
+ [ "support.function", "`" ],
292
+ [ "support.function", "build" ],
293
+ [ "support.function", "`" ],
294
+ [ "text", " directory. The same packaged files are also available as a separate [" ],
295
+ [ "string", "download" ],
296
+ [ "text", "](" ],
297
+ [ "markup.underline", "https://github.com/ajaxorg/ace/downloads" ],
298
+ [ "text", "). Simply copy the contents of the " ],
299
+ [ "support.function", "`" ],
300
+ [ "support.function", "src" ],
301
+ [ "support.function", "`" ],
302
+ [ "text", " subdirectory somewhere into your project and take a look at the included demos of how to use Ace." ]
303
+ ]
304
+ },
305
+ {
306
+ "state": "start",
307
+ "data": []
308
+ },
309
+ {
310
+ "state": "start",
311
+ "data": [
312
+ [ "text", "The easiest version is simply:" ]
313
+ ]
314
+ },
315
+ {
316
+ "state": "start",
317
+ "data": []
318
+ },
319
+ {
320
+ "state": "html-start",
321
+ "data": [
322
+ [ "support.function", "```html" ]
323
+ ]
324
+ },
325
+ {
326
+ "state": "html-start",
327
+ "data": [
328
+ [ "text", " " ],
329
+ [ "meta.tag", "<" ],
330
+ [ "meta.tag.tag-name", "div" ],
331
+ [ "text", " " ],
332
+ [ "entity.other.attribute-name", "id" ],
333
+ [ "keyword.operator", "=" ],
334
+ [ "string", "\"editor\"" ],
335
+ [ "meta.tag", ">" ],
336
+ [ "text", "some text" ],
337
+ [ "meta.tag", "</" ],
338
+ [ "meta.tag.tag-name", "div" ],
339
+ [ "meta.tag", ">" ]
340
+ ]
341
+ },
342
+ {
343
+ "state": "html-start",
344
+ "data": [
345
+ [ "text", " " ],
346
+ [ "meta.tag", "<" ],
347
+ [ "meta.tag.tag-name.script", "script" ],
348
+ [ "text", " " ],
349
+ [ "entity.other.attribute-name", "src" ],
350
+ [ "keyword.operator", "=" ],
351
+ [ "string", "\"src/ace.js\"" ],
352
+ [ "text", " " ],
353
+ [ "entity.other.attribute-name", "type" ],
354
+ [ "keyword.operator", "=" ],
355
+ [ "string", "\"text/javascript\"" ],
356
+ [ "text", " " ],
357
+ [ "entity.other.attribute-name", "charset" ],
358
+ [ "keyword.operator", "=" ],
359
+ [ "string", "\"utf-8\"" ],
360
+ [ "meta.tag", ">" ],
361
+ [ "meta.tag", "</" ],
362
+ [ "meta.tag.tag-name.script", "script" ],
363
+ [ "meta.tag", ">" ]
364
+ ]
365
+ },
366
+ {
367
+ "state": "html-js-start",
368
+ "data": [
369
+ [ "text", " " ],
370
+ [ "meta.tag", "<" ],
371
+ [ "meta.tag.tag-name.script", "script" ],
372
+ [ "meta.tag", ">" ]
373
+ ]
374
+ },
375
+ {
376
+ "state": "html-js-regex_allowed",
377
+ "data": [
378
+ [ "text", " " ],
379
+ [ "storage.type", "window" ],
380
+ [ "punctuation.operator", "." ],
381
+ [ "entity.name.function", "onload" ],
382
+ [ "text", " " ],
383
+ [ "keyword.operator", "=" ],
384
+ [ "text", " " ],
385
+ [ "storage.type", "function" ],
386
+ [ "paren.lparen", "(" ],
387
+ [ "paren.rparen", ")" ],
388
+ [ "text", " " ],
389
+ [ "paren.lparen", "{" ]
390
+ ]
391
+ },
392
+ {
393
+ "state": "html-js-regex_allowed",
394
+ "data": [
395
+ [ "text", " " ],
396
+ [ "storage.type", "var" ],
397
+ [ "text", " " ],
398
+ [ "identifier", "editor" ],
399
+ [ "text", " " ],
400
+ [ "keyword.operator", "=" ],
401
+ [ "text", " " ],
402
+ [ "identifier", "ace" ],
403
+ [ "punctuation.operator", "." ],
404
+ [ "identifier", "edit" ],
405
+ [ "paren.lparen", "(" ],
406
+ [ "string", "\"editor\"" ],
407
+ [ "paren.rparen", ")" ],
408
+ [ "punctuation.operator", ";" ]
409
+ ]
410
+ },
411
+ {
412
+ "state": "html-js-regex_allowed",
413
+ "data": [
414
+ [ "text", " " ],
415
+ [ "paren.rparen", "}" ],
416
+ [ "punctuation.operator", ";" ]
417
+ ]
418
+ },
419
+ {
420
+ "state": "html-start",
421
+ "data": [
422
+ [ "text", " " ],
423
+ [ "meta.tag", "</" ],
424
+ [ "meta.tag.tag-name.script", "script" ],
425
+ [ "meta.tag", ">" ]
426
+ ]
427
+ },
428
+ {
429
+ "state": "start",
430
+ "data": [
431
+ [ "support.function", "```" ]
432
+ ]
433
+ },
434
+ {
435
+ "state": "start",
436
+ "data": []
437
+ },
438
+ {
439
+ "state": "start",
440
+ "data": [
441
+ [ "text", "With \"editor\" being the id of the DOM element, which should be converted to an editor. Note that this element must be explicitly sized and positioned " ],
442
+ [ "support.function", "`" ],
443
+ [ "support.function", "absolute" ],
444
+ [ "support.function", "`" ],
445
+ [ "text", " or " ],
446
+ [ "support.function", "`" ],
447
+ [ "support.function", "relative" ],
448
+ [ "support.function", "`" ],
449
+ [ "text", " for Ace to work. e.g." ]
450
+ ]
451
+ },
452
+ {
453
+ "state": "start",
454
+ "data": []
455
+ },
456
+ {
457
+ "state": "css-start",
458
+ "data": [
459
+ [ "support.function", "```css" ]
460
+ ]
461
+ },
462
+ {
463
+ "state": "css-ruleset",
464
+ "data": [
465
+ [ "text", " " ],
466
+ [ "keyword", "#editor" ],
467
+ [ "text", " " ],
468
+ [ "paren.lparen", "{" ]
469
+ ]
470
+ },
471
+ {
472
+ "state": "css-ruleset",
473
+ "data": [
474
+ [ "text", " " ],
475
+ [ "support.type", "position" ],
476
+ [ "text", ": " ],
477
+ [ "support.constant", "absolute" ],
478
+ [ "text", ";" ]
479
+ ]
480
+ },
481
+ {
482
+ "state": "css-ruleset",
483
+ "data": [
484
+ [ "text", " " ],
485
+ [ "support.type", "width" ],
486
+ [ "text", ": " ],
487
+ [ "constant.numeric", "500" ],
488
+ [ "keyword", "px" ],
489
+ [ "text", ";" ]
490
+ ]
491
+ },
492
+ {
493
+ "state": "css-ruleset",
494
+ "data": [
495
+ [ "text", " " ],
496
+ [ "support.type", "height" ],
497
+ [ "text", ": " ],
498
+ [ "constant.numeric", "400" ],
499
+ [ "keyword", "px" ],
500
+ [ "text", ";" ]
501
+ ]
502
+ },
503
+ {
504
+ "state": "css-start",
505
+ "data": [
506
+ [ "text", " " ],
507
+ [ "paren.rparen", "}" ]
508
+ ]
509
+ },
510
+ {
511
+ "state": "start",
512
+ "data": [
513
+ [ "support.function", "```" ]
514
+ ]
515
+ },
516
+ {
517
+ "state": "start",
518
+ "data": []
519
+ },
520
+ {
521
+ "state": "start",
522
+ "data": [
523
+ [ "text", "To change the theme simply include the Theme's JavaScript file" ]
524
+ ]
525
+ },
526
+ {
527
+ "state": "start",
528
+ "data": []
529
+ },
530
+ {
531
+ "state": "html-start",
532
+ "data": [
533
+ [ "support.function", "```html" ]
534
+ ]
535
+ },
536
+ {
537
+ "state": "html-start",
538
+ "data": [
539
+ [ "text", " " ],
540
+ [ "meta.tag", "<" ],
541
+ [ "meta.tag.tag-name.script", "script" ],
542
+ [ "text", " " ],
543
+ [ "entity.other.attribute-name", "src" ],
544
+ [ "keyword.operator", "=" ],
545
+ [ "string", "\"src/theme-twilight.js\"" ],
546
+ [ "text", " " ],
547
+ [ "entity.other.attribute-name", "type" ],
548
+ [ "keyword.operator", "=" ],
549
+ [ "string", "\"text/javascript\"" ],
550
+ [ "text", " " ],
551
+ [ "entity.other.attribute-name", "charset" ],
552
+ [ "keyword.operator", "=" ],
553
+ [ "string", "\"utf-8\"" ],
554
+ [ "meta.tag", ">" ],
555
+ [ "meta.tag", "</" ],
556
+ [ "meta.tag.tag-name.script", "script" ],
557
+ [ "meta.tag", ">" ]
558
+ ]
559
+ },
560
+ {
561
+ "state": "start",
562
+ "data": [
563
+ [ "support.function", "```" ]
564
+ ]
565
+ },
566
+ {
567
+ "state": "start",
568
+ "data": []
569
+ },
570
+ {
571
+ "state": "start",
572
+ "data": [
573
+ [ "text", "and configure the editor to use the theme:" ]
574
+ ]
575
+ },
576
+ {
577
+ "state": "start",
578
+ "data": []
579
+ },
580
+ {
581
+ "state": "js-start",
582
+ "data": [
583
+ [ "support.function", "```javascript" ]
584
+ ]
585
+ },
586
+ {
587
+ "state": "js-regex_allowed",
588
+ "data": [
589
+ [ "text", " " ],
590
+ [ "identifier", "editor" ],
591
+ [ "punctuation.operator", "." ],
592
+ [ "identifier", "setTheme" ],
593
+ [ "paren.lparen", "(" ],
594
+ [ "string", "\"ace/theme/twilight\"" ],
595
+ [ "paren.rparen", ")" ],
596
+ [ "punctuation.operator", ";" ]
597
+ ]
598
+ },
599
+ {
600
+ "state": "start",
601
+ "data": [
602
+ [ "support.function", "```" ]
603
+ ]
604
+ },
605
+ {
606
+ "state": "start",
607
+ "data": []
608
+ },
609
+ {
610
+ "state": "start",
611
+ "data": [
612
+ [ "text", "By default the editor only supports plain text mode; many other languages are available as separate modules. After including the mode's JavaScript file:" ]
613
+ ]
614
+ },
615
+ {
616
+ "state": "start",
617
+ "data": []
618
+ },
619
+ {
620
+ "state": "html-start",
621
+ "data": [
622
+ [ "support.function", "```html" ]
623
+ ]
624
+ },
625
+ {
626
+ "state": "html-start",
627
+ "data": [
628
+ [ "text", " " ],
629
+ [ "meta.tag", "<" ],
630
+ [ "meta.tag.tag-name.script", "script" ],
631
+ [ "text", " " ],
632
+ [ "entity.other.attribute-name", "src" ],
633
+ [ "keyword.operator", "=" ],
634
+ [ "string", "\"src/mode-javascript.js\"" ],
635
+ [ "text", " " ],
636
+ [ "entity.other.attribute-name", "type" ],
637
+ [ "keyword.operator", "=" ],
638
+ [ "string", "\"text/javascript\"" ],
639
+ [ "text", " " ],
640
+ [ "entity.other.attribute-name", "charset" ],
641
+ [ "keyword.operator", "=" ],
642
+ [ "string", "\"utf-8\"" ],
643
+ [ "meta.tag", ">" ],
644
+ [ "meta.tag", "</" ],
645
+ [ "meta.tag.tag-name.script", "script" ],
646
+ [ "meta.tag", ">" ]
647
+ ]
648
+ },
649
+ {
650
+ "state": "start",
651
+ "data": [
652
+ [ "support.function", "```" ]
653
+ ]
654
+ },
655
+ {
656
+ "state": "start",
657
+ "data": []
658
+ },
659
+ {
660
+ "state": "start",
661
+ "data": [
662
+ [ "text", "Then the mode can be used like this:" ]
663
+ ]
664
+ },
665
+ {
666
+ "state": "start",
667
+ "data": []
668
+ },
669
+ {
670
+ "state": "js-start",
671
+ "data": [
672
+ [ "support.function", "```javascript" ]
673
+ ]
674
+ },
675
+ {
676
+ "state": "js-regex_allowed",
677
+ "data": [
678
+ [ "text", " " ],
679
+ [ "storage.type", "var" ],
680
+ [ "text", " " ],
681
+ [ "identifier", "JavaScriptMode" ],
682
+ [ "text", " " ],
683
+ [ "keyword.operator", "=" ],
684
+ [ "text", " " ],
685
+ [ "identifier", "require" ],
686
+ [ "paren.lparen", "(" ],
687
+ [ "string", "\"ace/mode/javascript\"" ],
688
+ [ "paren.rparen", ")" ],
689
+ [ "punctuation.operator", "." ],
690
+ [ "identifier", "Mode" ],
691
+ [ "punctuation.operator", ";" ]
692
+ ]
693
+ },
694
+ {
695
+ "state": "js-regex_allowed",
696
+ "data": [
697
+ [ "text", " " ],
698
+ [ "identifier", "editor" ],
699
+ [ "punctuation.operator", "." ],
700
+ [ "identifier", "getSession" ],
701
+ [ "paren.lparen", "(" ],
702
+ [ "paren.rparen", ")" ],
703
+ [ "punctuation.operator", "." ],
704
+ [ "identifier", "setMode" ],
705
+ [ "paren.lparen", "(" ],
706
+ [ "keyword", "new" ],
707
+ [ "text", " " ],
708
+ [ "identifier", "JavaScriptMode" ],
709
+ [ "paren.lparen", "(" ],
710
+ [ "paren.rparen", ")" ],
711
+ [ "paren.rparen", ")" ],
712
+ [ "punctuation.operator", ";" ]
713
+ ]
714
+ },
715
+ {
716
+ "state": "start",
717
+ "data": [
718
+ [ "support.function", "```" ]
719
+ ]
720
+ },
721
+ {
722
+ "state": "start",
723
+ "data": []
724
+ },
725
+ {
726
+ "state": "start",
727
+ "data": [
728
+ [ "text", "Documentation" ]
729
+ ]
730
+ },
731
+ {
732
+ "state": "start",
733
+ "data": [
734
+ [ "markup.heading.2", "-------------" ]
735
+ ]
736
+ },
737
+ {
738
+ "state": "start",
739
+ "data": []
740
+ },
741
+ {
742
+ "state": "start",
743
+ "data": [
744
+ [ "text", "You find a lot more sample code in the [" ],
745
+ [ "string", "demo app" ],
746
+ [ "text", "](" ],
747
+ [ "markup.underline", "https://github.com/ajaxorg/ace/blob/master/demo/demo.js" ],
748
+ [ "text", ")." ]
749
+ ]
750
+ },
751
+ {
752
+ "state": "start",
753
+ "data": []
754
+ },
755
+ {
756
+ "state": "start",
757
+ "data": [
758
+ [ "text", "There is also some documentation on the [" ],
759
+ [ "string", "wiki page" ],
760
+ [ "text", "](" ],
761
+ [ "markup.underline", "https://github.com/ajaxorg/ace/wiki" ],
762
+ [ "text", ")." ]
763
+ ]
764
+ },
765
+ {
766
+ "state": "start",
767
+ "data": []
768
+ },
769
+ {
770
+ "state": "start",
771
+ "data": [
772
+ [ "text", "If you still need help, feel free to drop a mail on the [" ],
773
+ [ "string", "ace mailing list" ],
774
+ [ "text", "](" ],
775
+ [ "markup.underline", "http://groups.google.com/group/ace-discuss" ],
776
+ [ "text", ")." ]
777
+ ]
778
+ },
779
+ {
780
+ "state": "start",
781
+ "data": []
782
+ },
783
+ {
784
+ "state": "start",
785
+ "data": [
786
+ [ "text", "Running Ace" ]
787
+ ]
788
+ },
789
+ {
790
+ "state": "start",
791
+ "data": [
792
+ [ "markup.heading.2", "-----------" ]
793
+ ]
794
+ },
795
+ {
796
+ "state": "start",
797
+ "data": []
798
+ },
799
+ {
800
+ "state": "start",
801
+ "data": [
802
+ [ "text", "After the checkout Ace works out of the box. No build step is required. Open 'editor.html' in any browser except Google Chrome. Google Chrome doesn't allow XMLHTTPRequests from files loaded from disc (i.e. with a file:/// URL). To open Ace in Chrome simply start the bundled mini HTTP server:" ]
803
+ ]
804
+ },
805
+ {
806
+ "state": "start",
807
+ "data": []
808
+ },
809
+ {
810
+ "state": "githubblock",
811
+ "data": [
812
+ [ "support.function", "```bash" ]
813
+ ]
814
+ },
815
+ {
816
+ "state": "githubblock",
817
+ "data": [
818
+ [ "support.function", " ./static.py" ]
819
+ ]
820
+ },
821
+ {
822
+ "state": "start",
823
+ "data": [
824
+ [ "support.function", "```" ]
825
+ ]
826
+ },
827
+ {
828
+ "state": "start",
829
+ "data": []
830
+ },
831
+ {
832
+ "state": "start",
833
+ "data": [
834
+ [ "text", "Or using Node.JS" ]
835
+ ]
836
+ },
837
+ {
838
+ "state": "start",
839
+ "data": []
840
+ },
841
+ {
842
+ "state": "githubblock",
843
+ "data": [
844
+ [ "support.function", "```bash" ]
845
+ ]
846
+ },
847
+ {
848
+ "state": "githubblock",
849
+ "data": [
850
+ [ "support.function", " ./static.js" ]
851
+ ]
852
+ },
853
+ {
854
+ "state": "start",
855
+ "data": [
856
+ [ "support.function", "```" ]
857
+ ]
858
+ },
859
+ {
860
+ "state": "start",
861
+ "data": []
862
+ },
863
+ {
864
+ "state": "start",
865
+ "data": [
866
+ [ "text", "The editor can then be opened at http://localhost:8888/index.html." ]
867
+ ]
868
+ },
869
+ {
870
+ "state": "start",
871
+ "data": []
872
+ },
873
+ {
874
+ "state": "start",
875
+ "data": [
876
+ [ "text", "Package Ace" ]
877
+ ]
878
+ },
879
+ {
880
+ "state": "start",
881
+ "data": [
882
+ [ "markup.heading.2", "-----------" ]
883
+ ]
884
+ },
885
+ {
886
+ "state": "start",
887
+ "data": []
888
+ },
889
+ {
890
+ "state": "start",
891
+ "data": [
892
+ [ "text", "To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. Before you can build you need to make sure that the submodules are up to date." ]
893
+ ]
894
+ },
895
+ {
896
+ "state": "start",
897
+ "data": []
898
+ },
899
+ {
900
+ "state": "githubblock",
901
+ "data": [
902
+ [ "support.function", "```bash" ]
903
+ ]
904
+ },
905
+ {
906
+ "state": "githubblock",
907
+ "data": [
908
+ [ "support.function", " git submodule update --init --recursive" ]
909
+ ]
910
+ },
911
+ {
912
+ "state": "start",
913
+ "data": [
914
+ [ "support.function", "```" ]
915
+ ]
916
+ },
917
+ {
918
+ "state": "start",
919
+ "data": []
920
+ },
921
+ {
922
+ "state": "start",
923
+ "data": [
924
+ [ "text", "Afterwards Ace can be built by calling" ]
925
+ ]
926
+ },
927
+ {
928
+ "state": "start",
929
+ "data": []
930
+ },
931
+ {
932
+ "state": "githubblock",
933
+ "data": [
934
+ [ "support.function", "```bash" ]
935
+ ]
936
+ },
937
+ {
938
+ "state": "githubblock",
939
+ "data": [
940
+ [ "support.function", " ./Makefile.dryice.js normal" ]
941
+ ]
942
+ },
943
+ {
944
+ "state": "start",
945
+ "data": [
946
+ [ "support.function", "```" ]
947
+ ]
948
+ },
949
+ {
950
+ "state": "start",
951
+ "data": []
952
+ },
953
+ {
954
+ "state": "start",
955
+ "data": [
956
+ [ "text", "The packaged Ace will be put in the 'build' folder." ]
957
+ ]
958
+ },
959
+ {
960
+ "state": "start",
961
+ "data": []
962
+ },
963
+ {
964
+ "state": "start",
965
+ "data": [
966
+ [ "text", "To build the bookmarklet version execute" ]
967
+ ]
968
+ },
969
+ {
970
+ "state": "start",
971
+ "data": []
972
+ },
973
+ {
974
+ "state": "githubblock",
975
+ "data": [
976
+ [ "support.function", "```bash" ]
977
+ ]
978
+ },
979
+ {
980
+ "state": "githubblock",
981
+ "data": [
982
+ [ "support.function", " ./Makefile.dryice.js bm" ]
983
+ ]
984
+ },
985
+ {
986
+ "state": "start",
987
+ "data": [
988
+ [ "support.function", "```" ]
989
+ ]
990
+ },
991
+ {
992
+ "state": "start",
993
+ "data": []
994
+ },
995
+ {
996
+ "state": "start",
997
+ "data": [
998
+ [ "text", "Running the Unit Tests" ]
999
+ ]
1000
+ },
1001
+ {
1002
+ "state": "start",
1003
+ "data": [
1004
+ [ "markup.heading.2", "----------------------" ]
1005
+ ]
1006
+ },
1007
+ {
1008
+ "state": "start",
1009
+ "data": []
1010
+ },
1011
+ {
1012
+ "state": "start",
1013
+ "data": [
1014
+ [ "text", "The Ace unit tests run on node.js. Before the first run a couple of node modules have to be installed. The easiest way to do this is by using the node package manager (npm). In the Ace base directory simply call" ]
1015
+ ]
1016
+ },
1017
+ {
1018
+ "state": "start",
1019
+ "data": []
1020
+ },
1021
+ {
1022
+ "state": "githubblock",
1023
+ "data": [
1024
+ [ "support.function", "```bash" ]
1025
+ ]
1026
+ },
1027
+ {
1028
+ "state": "githubblock",
1029
+ "data": [
1030
+ [ "support.function", " npm link ." ]
1031
+ ]
1032
+ },
1033
+ {
1034
+ "state": "start",
1035
+ "data": [
1036
+ [ "support.function", "```" ]
1037
+ ]
1038
+ },
1039
+ {
1040
+ "state": "start",
1041
+ "data": []
1042
+ },
1043
+ {
1044
+ "state": "start",
1045
+ "data": [
1046
+ [ "text", "To run the tests call:" ]
1047
+ ]
1048
+ },
1049
+ {
1050
+ "state": "start",
1051
+ "data": []
1052
+ },
1053
+ {
1054
+ "state": "githubblock",
1055
+ "data": [
1056
+ [ "support.function", "```bash" ]
1057
+ ]
1058
+ },
1059
+ {
1060
+ "state": "githubblock",
1061
+ "data": [
1062
+ [ "support.function", " node lib/ace/test/all.js" ]
1063
+ ]
1064
+ },
1065
+ {
1066
+ "state": "start",
1067
+ "data": [
1068
+ [ "support.function", "```" ]
1069
+ ]
1070
+ },
1071
+ {
1072
+ "state": "start",
1073
+ "data": []
1074
+ },
1075
+ {
1076
+ "state": "start",
1077
+ "data": [
1078
+ [ "text", "You can also run the tests in your browser by serving:" ]
1079
+ ]
1080
+ },
1081
+ {
1082
+ "state": "start",
1083
+ "data": []
1084
+ },
1085
+ {
1086
+ "state": "start",
1087
+ "data": [
1088
+ [ "support.function", " http://localhost:8888/lib/ace/test/tests.html" ]
1089
+ ]
1090
+ },
1091
+ {
1092
+ "state": "start",
1093
+ "data": []
1094
+ },
1095
+ {
1096
+ "state": "start",
1097
+ "data": [
1098
+ [ "text", "This makes debugging failing tests way more easier." ]
1099
+ ]
1100
+ },
1101
+ {
1102
+ "state": "start",
1103
+ "data": []
1104
+ },
1105
+ {
1106
+ "state": "start",
1107
+ "data": [
1108
+ [ "text", "Contributing" ]
1109
+ ]
1110
+ },
1111
+ {
1112
+ "state": "start",
1113
+ "data": [
1114
+ [ "markup.heading.2", "------------" ]
1115
+ ]
1116
+ },
1117
+ {
1118
+ "state": "start",
1119
+ "data": []
1120
+ },
1121
+ {
1122
+ "state": "start",
1123
+ "data": [
1124
+ [ "text", "Ace wouldn't be what it is without contributions! Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. To protect the interests of the Ace contributors and users we require contributors to sign a Contributors License Agreement (CLA) before we pull the changes into the main repository. Our CLA is the simplest of agreements, requiring that the contributions you make to an ajax.org project are only those you're allowed to make. This helps us significantly reduce future legal risk for everyone involved. It is easy, helps everyone, takes ten minutes, and only needs to be completed once. There are two versions of the agreement:" ]
1125
+ ]
1126
+ },
1127
+ {
1128
+ "state": "start",
1129
+ "data": []
1130
+ },
1131
+ {
1132
+ "state": "listblock",
1133
+ "data": [
1134
+ [ "markup.list", "1. " ],
1135
+ [ "markup.list", "[The Individual CLA](https://github.com/ajaxorg/ace/raw/master/doc/Contributor_License_Agreement-v2.pdf): use this version if you're working on an ajax.org in your spare time, or can clearly claim ownership of copyright in what you'll be submitting." ]
1136
+ ]
1137
+ },
1138
+ {
1139
+ "state": "listblock",
1140
+ "data": [
1141
+ [ "markup.list", "2. [The Corporate CLA](https://github.com/ajaxorg/ace/raw/master/doc/Corporate_Contributor_License_Agreement-v2.pdf): have your corporate lawyer review and submit this if your company is going to be contributing to ajax.org projects" ]
1142
+ ]
1143
+ },
1144
+ {
1145
+ "state": "start",
1146
+ "data": []
1147
+ },
1148
+ {
1149
+ "state": "start",
1150
+ "data": [
1151
+ [ "text", "If you want to contribute to an ajax.org project please print the CLA and fill it out and sign it. Then either send it by snail mail or fax to us or send it back scanned (or as a photo) by email." ]
1152
+ ]
1153
+ },
1154
+ {
1155
+ "state": "start",
1156
+ "data": []
1157
+ },
1158
+ {
1159
+ "state": "start",
1160
+ "data": [
1161
+ [ "text", "Email: fabian.jakobs@web.de" ]
1162
+ ]
1163
+ },
1164
+ {
1165
+ "state": "start",
1166
+ "data": []
1167
+ },
1168
+ {
1169
+ "state": "start",
1170
+ "data": [
1171
+ [ "text", "Fax: +31 (0) 206388953" ]
1172
+ ]
1173
+ },
1174
+ {
1175
+ "state": "start",
1176
+ "data": []
1177
+ },
1178
+ {
1179
+ "state": "start",
1180
+ "data": [
1181
+ [ "text", "Address: Ajax.org B.V." ]
1182
+ ]
1183
+ },
1184
+ {
1185
+ "state": "start",
1186
+ "data": [
1187
+ [ "text", " Keizersgracht 241" ]
1188
+ ]
1189
+ },
1190
+ {
1191
+ "state": "start",
1192
+ "data": [
1193
+ [ "text", " 1016 EA, Amsterdam" ]
1194
+ ]
1195
+ },
1196
+ {
1197
+ "state": "start",
1198
+ "data": [
1199
+ [ "text", " the Netherlands" ]
1200
+ ]
1201
+ }
1202
+ ]