gollum 3.1.2 → 3.1.3
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.
- checksums.yaml +13 -5
- data/README.md +4 -5
- data/gollum.gemspec +560 -28
- data/lib/gollum.rb +1 -1
- data/lib/gollum/app.rb +16 -10
- data/lib/gollum/public/gollum/javascript/editor/gollum.editor.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ace.js +33 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/anchor.js +77 -80
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +46 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete.js +497 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/popup.js +341 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/text_completer.js +78 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/autocomplete/util.js +74 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +28 -32
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +17 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +312 -58
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/incremental_search_commands.js +232 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +17 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/commands/occur_commands.js +110 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/config.js +70 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/config_test.js +67 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +123 -69
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/document.js +118 -71
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +507 -392
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +4 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +37 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +30 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +210 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +82 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor.js +1006 -465
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +36 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/beautify.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/beautify/php_rules.js +366 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/chromevox.js +980 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/elastic_tabstops_lite.js +319 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/emmet.js +434 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/error_marker.js +214 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/keybinding_menu.js +86 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/language_tools.js +226 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/linking.js +78 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/add_editor_menu_options.js +109 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/element_generator.js +148 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/generate_settings_menu.js +264 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/get_editor_keyboard_shortcuts.js +91 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/get_set_functions.js +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/overlay_page.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/menu_tools/settings_menu.css +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/modelist.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/old_ie.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/old_ie_test.js +77 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/searchbox.css +153 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/searchbox.js +308 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/settings_menu.js +76 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/spellcheck.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{keyboard/vim/registers.js → ext/split.js} +8 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static.css +18 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +128 -26
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +56 -36
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/statusbar.js +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +112 -117
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/themelist.js +100 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/whitespace.js +213 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/ext/whitespace_test.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/incremental_search.js +317 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/incremental_search_test.js +213 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +369 -92
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs_test.js +151 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +109 -41
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +35 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding_test.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +1 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/textarea.js +82 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +337 -208
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +5987 -120
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim_test.js +3866 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +48 -25
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/font_metrics.js +176 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +110 -44
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +29 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +69 -150
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +11 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/app_config.js +157 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +33 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +284 -304
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +147 -95
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +64 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +35 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +30 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +21 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +12 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +8 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/line_widgets.js +297 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/Readme.md +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/highlight_rules_test.js +210 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_asciidoc.txt +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_coffee.txt +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_curly.txt +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_html.txt +10 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +34 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_livescript.txt +1 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_lucene.txt +16 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_markdown.txt +22 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_php.txt +24 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_ruby.txt +34 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_xml.txt +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_abap.json +189 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_abc.json +2207 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_actionscript.json +263 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ada.json +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_asciidoc.json +422 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_assembly_x86.json +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_autohotkey.json +261 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_batchfile.json +70 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +131 -175
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +190 -124
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_cirru.json +267 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +162 -248
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_cobol.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +545 -188
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +26 -41
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +31 -42
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +148 -231
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_curly.json +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_d.json +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_dart.json +368 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +262 -732
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_dot.json +2254 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_eiffel.json +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ejs.json +296 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_elixir.json +196 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_elm.json +198 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_erlang.json +166 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_forth.json +219 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ftl.json +341 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gcode.json +296 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gherkin.json +142 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_gitignore.json +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +127 -185
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +256 -362
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +410 -529
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haml.json +174 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_handlebars.json +81 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haskell.json +156 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +143 -195
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +63 -150
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html_ruby.json +257 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ini.json +23 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_io.json +49 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jack.json +1786 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jade.json +188 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +95 -139
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +593 -555
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +412 -611
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsoniq.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsp.json +435 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +51 -79
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_julia.json +111 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +127 -196
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +204 -292
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +551 -698
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lisp.json +248 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_livescript.json +6 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_logiql.json +190 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lsl.json +503 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +348 -451
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +633 -824
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lucene.json +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +114 -1202
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mask.json +302 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_matlab.json +90 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mel.json +257 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mushcode.json +790 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_mysql.json +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_nix.json +360 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_objectivec.json +793 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +200 -260
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pascal.json +297 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +227 -311
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +889 -1020
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +171 -238
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +184 -255
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_prolog.json +245 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_properties.json +68 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_protobuf.json +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +152 -205
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_r.json +235 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rdoc.json +441 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rhtml.json +106 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +242 -104
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_rust.json +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sass.json +229 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +194 -267
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +542 -748
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scheme.json +216 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +123 -181
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +334 -434
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sjs.json +276 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_smarty.json +98 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_snippets.json +159 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_soy_template.json +286 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_space.json +322 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +54 -73
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_stylus.json +271 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +684 -931
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +385 -536
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tex.json +130 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +29 -58
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +113 -195
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_toml.json +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_twig.json +288 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_typescript.json +559 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vala.json +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vbscript.json +205 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_velocity.json +285 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_verilog.json +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_vhdl.json +271 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +43 -705
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +44 -64
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +150 -260
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abap.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +7 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abc.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/abc_highlight_rules.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/actionscript.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/actionscript_highlight_rules.js +141 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ada.js +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ada_highlight_rules.js +93 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/apache_conf.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/apache_conf_highlight_rules.js +231 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/applescript.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/applescript_highlight_rules.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +11 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/assembly_x86.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/assembly_x86_highlight_rules.js +114 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/autohotkey.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/autohotkey_highlight_rules.js +107 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/batchfile.js +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/batchfile_highlight_rules.js +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/behaviour_test.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/css.js +108 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +164 -137
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +4 -48
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +141 -44
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +76 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +127 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +7 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +60 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cirru.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cirru_highlight_rules.js +125 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +62 -46
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +4 -21
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cobol.js +53 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/cobol_highlight_rules.js +100 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +28 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +13 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +160 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +228 -108
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +778 -670
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +377 -347
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +33 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +275 -135
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +5 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +72 -167
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +12 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +11 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +5 -84
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/csharp.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +13 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +7 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +2325 -1216
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +72 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +11 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/curly.js +63 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/curly_highlight_rules.js +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/d.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/d_highlight_rules.js +334 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dart.js +8 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +70 -76
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +24 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/django.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +12 -19
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dockerfile.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dockerfile_highlight_rules.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dot.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/dot_highlight_rules.js +126 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/eiffel.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/eiffel_highlight_rules.js +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ejs.js +109 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elixir.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elixir_highlight_rules.js +433 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elm.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/elm_highlight_rules.js +162 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/erlang.js +57 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/erlang_highlight_rules.js +876 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +12 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/csharp.js +137 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +118 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +24 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +2 -33
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +30 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/ini.js +80 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +9 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +4 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +2 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/velocity.js +120 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +110 -87
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/forth.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/forth_highlight_rules.js +164 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ftl.js +49 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ftl_highlight_rules.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gcode.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gcode_highlight_rules.js +94 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gherkin.js +80 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gherkin_highlight_rules.js +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gitignore.js +20 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/gitignore_highlight_rules.js +31 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +6 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +42 -67
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +25 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/groovy.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +0 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haml.js +5 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +43 -43
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/handlebars.js +29 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/handlebars_highlight_rules.js +72 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haskell.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haskell_highlight_rules.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +0 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +42 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html/saxparser.js +10430 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_completions.js +305 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +43 -85
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_ruby.js +59 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_ruby_highlight_rules.js +84 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{lib/browser_focus.js → mode/html_worker.js} +48 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ini.js +53 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ini_highlight_rules.js +112 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/io.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/io_highlight_rules.js +120 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jack.js +79 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jack_highlight_rules.js +142 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jade.js +4 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +94 -100
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/java.js +2 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +0 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +15 -40
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +10824 -4816
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +113 -97
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +61 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +5 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +11 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/js_regex_highlight_rules.js +94 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +3 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +6 -35
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +12 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsoniq.js +203 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +2 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +36 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsx.js +26 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/jsx_highlight_rules.js +113 -115
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/julia.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/julia_highlight_rules.js +170 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +5 -37
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +44 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +8 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +4 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +15 -89
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +25 -28
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/livescript.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql_highlight_rules.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/logiql_test.js +98 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lsl.js +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lsl_highlight_rules.js +123 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +27 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua/luaparse.js +1989 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +55 -272
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lua_worker.js +70 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/luapage.js +6 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/luapage_highlight_rules.js +21 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +5 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +6 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +22 -22
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +12 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +130 -89
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mask.js +84 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mask_highlight_rules.js +309 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matlab.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/matlab_highlight_rules.js +262 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mel.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mel_highlight_rules.js +133 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mushcode.js +116 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mushcode_highlight_rules.js +569 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mysql.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/mysql_highlight_rules.js +122 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/nix.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/nix_highlight_rules.js +119 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +4 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +137 -149
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +4 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +0 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pascal.js +67 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pascal_highlight_rules.js +127 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +10 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +17 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +23 -51
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +334 -302
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +59 -38
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php/php.js +5031 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +72 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_test.js +65 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/php_worker.js +77 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/plain_text.js +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{keyboard/vim/maps/aliases.js → mode/plain_text_test.js} +21 -59
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/powershell.js +7 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +0 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/{xquery/JSONParseTreeHandler.js → praat.js} +45 -53
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/praat_highlight_rules.js +262 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/prolog.js +62 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/prolog_highlight_rules.js +238 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/properties.js +48 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/properties_highlight_rules.js +86 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/protobuf.js +63 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/protobuf_highlight_rules.js +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +5 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +50 -24
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/r.js +37 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +29 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +36 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +27 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +31 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +31 -14
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +26 -36
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +153 -33
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/{css_highlight_rules_test.js → ruby_test.js} +24 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rust.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/rust_highlight_rules.js +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sass.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sass_highlight_rules.js +79 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +5 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +0 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scala.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scheme.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scheme_highlight_rules.js +123 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +9 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +7 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +10 -31
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +85 -11
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sjs.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sjs_highlight_rules.js +233 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/smarty.js +51 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/smarty_highlight_rules.js +139 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/snippets.js +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/soy_template.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/soy_template_highlight_rules.js +356 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/space.js +21 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/space_highlight_rules.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +3 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +6 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +5 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +32 -42
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +3 -5
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +3 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +4 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +5 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tex.js +30 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +27 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +266 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +129 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +3 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/toml.js +56 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/toml_highlight_rules.js +103 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/twig.js +81 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/twig_highlight_rules.js +166 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +2 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +16 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vala.js +105 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vala_highlight_rules.js +457 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vbscript.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vbscript_highlight_rules.js +246 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/velocity.js +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/velocity_highlight_rules.js +177 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/verilog.js +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/verilog_highlight_rules.js +101 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vhdl.js +52 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/vhdl_highlight_rules.js +115 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +25 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/dom-parser.js +260 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/dom.js +1138 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml/sax.js +592 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +185 -45
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_worker.js +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +107 -88
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Readme.md +1 -6
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/jsoniq_lexer.js +4453 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xqlint.js +78911 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery_lexer.js +4422 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +66 -29
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +5 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +2 -13
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +50 -28
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +70 -137
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop_handler.js +428 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +6 -23
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +6 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +83 -39
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/{mode/liquid_highlight_rules_test.js → mouse/mouse_handler_test.js} +27 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +94 -38
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +192 -115
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +124 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/occur.js +193 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/occur_test.js +154 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +9 -4
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +2 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range.js +81 -102
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_list.js +38 -21
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +20 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/range_test.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +9 -8
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/requirejs/text_build.js +60 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +163 -32
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search.js +38 -19
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +1 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/search_test.js +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/selection.js +167 -83
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +22 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets.js +949 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_.snippets +240 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_all_modes.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/_all_modes.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abap.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abap.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/abc.snippets +31 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/actionscript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/actionscript.snippets +157 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ada.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ada.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/all_modes.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/all_modes.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache.snippets +35 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache_conf.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/apache_conf.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/applescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/applescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/asciidoc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/asciidoc.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/assembly_x86.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/assembly_x86.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autohotkey.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autohotkey.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/autoit.snippets +66 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/batchfile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/batchfile.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c.snippets +235 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c9search.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c9search.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c_cpp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/c_cpp.snippets +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/chef.snippets +204 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cirru.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cirru.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/clojure.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/clojure.snippets +90 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets +58 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cobol.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cobol.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coffee.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coffee.snippets +95 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coldfusion.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/coldfusion.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cs.snippets +374 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/csharp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/csharp.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/css.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/css.snippets +967 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/curly.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/curly.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/d.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/d.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dart.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dart.snippets +83 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/diff.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/diff.snippets +11 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/django.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/django.snippets +108 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dockerfile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dockerfile.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dot.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dot.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dummy.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/dummy_syntax.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eiffel.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eiffel.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ejs.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ejs.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elixir.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elixir.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elm.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/elm.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/erlang.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/erlang.snippets +160 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/eruby.snippets +113 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/falcon.snippets +71 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/forth.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/forth.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ftl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ftl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gcode.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gcode.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gherkin.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gherkin.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gitignore.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/gitignore.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/glsl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/glsl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/go.snippets +201 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/golang.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/golang.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/groovy.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/groovy.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haml.snippets +20 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/handlebars.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/handlebars.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haskell.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haskell.snippets +82 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haxe.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/haxe.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html.snippets +828 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html_ruby.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/html_ruby.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/htmldjango.snippets +136 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/htmltornado.snippets +55 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ini.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ini.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/io.js +69 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/io.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jack.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jack.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jade.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jade.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/java.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/java.snippets +240 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript-jquery.snippets +589 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/javascript.snippets +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/json.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/json.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsoniq.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsoniq.snippets +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsp.snippets +99 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsx.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/jsx.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/julia.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/julia.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/latex.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/latex.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ledger.snippets +5 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/less.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/less.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/liquid.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/liquid.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lisp.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lisp.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/livescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/livescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/logiql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/logiql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lsl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lsl.snippets +1066 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lua.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lua.snippets +21 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/luapage.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/luapage.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lucene.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/lucene.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/makefile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/makefile.snippets +4 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mako.snippets +54 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/markdown.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/markdown.snippets +88 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/matlab.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/matlab.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mel.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mel.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode_high_rules.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mushcode_high_rules.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mysql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/mysql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/nix.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/nix.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objc.snippets +247 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objectivec.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/objectivec.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ocaml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ocaml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pascal.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pascal.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/perl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/perl.snippets +347 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pgsql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/pgsql.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/php.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/php.snippets +377 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/plain_text.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/plain_text.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/powershell.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/powershell.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/praat.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/praat.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/prolog.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/prolog.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/properties.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/properties.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/protobuf.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/protobuf.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/python.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/python.snippets +158 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/r.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/r.snippets +121 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rdoc.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rdoc.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rhtml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rhtml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rst.snippets +22 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ruby.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/ruby.snippets +928 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rust.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/rust.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sass.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sass.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scad.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scad.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scala.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scala.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scheme.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scheme.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scss.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/scss.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sh.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sh.snippets +83 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sjs.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sjs.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/smarty.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/smarty.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/snippets.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/snippets.snippets +9 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/soy_template.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/soy_template.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/space.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/space.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sql.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/sql.snippets +26 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/stylus.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/stylus.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/svg.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/svg.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tcl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tcl.snippets +92 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tex.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tex.snippets +191 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/text.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/text.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/textile.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/textile.snippets +30 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/tmsnippet.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/toml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/toml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/twig.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/twig.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/typescript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/typescript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vala.js +195 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vala.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vbscript.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vbscript.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/velocity.js +8 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/velocity.snippets +28 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/verilog.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/verilog.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vhdl.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/vhdl.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xquery.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xquery.snippets +61 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/xslt.snippets +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/yaml.js +7 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/yaml.snippets +0 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets_test.js +131 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/split.js +3 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +20 -7
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js +2 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +8 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +6 -2
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chaos.css +154 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chaos.js +33 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +3 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +16 -26
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +2 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +10 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +9 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +16 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +3 -10
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +5 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/katzenmilch.css +140 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/katzenmilch.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +9 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kuroir.css +67 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/kuroir.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +5 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +14 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +4 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +8 -20
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +6 -18
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/terminal.css +132 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/terminal.js +39 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +5 -9
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +4 -15
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +5 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +6 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +21 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +10 -17
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +6 -16
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +4 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +4 -12
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +1 -1
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +4 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +246 -78
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +71 -93
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tokenizer_test.js +97 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/tooltip.js +138 -0
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +63 -30
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +788 -403
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/mirror.js +9 -3
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +92 -55
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +90 -52
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_test.js +125 -0
- data/lib/gollum/public/gollum/livepreview/js/livepreview.js +18 -12
- data/lib/gollum/public/gollum/livepreview/readme.md +1 -1
- data/lib/gollum/templates/layout.mustache +1 -1
- data/lib/gollum/{public/gollum/livepreview/index.html → templates/livepreview.mustache} +23 -1
- data/lib/gollum/views/livepreview.rb +13 -0
- metadata +569 -37
- data/lib/gollum/editing_auth.rb +0 -34
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +0 -561
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +0 -593
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +0 -196
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +0 -134
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +0 -144
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +0 -266
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +0 -186
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +0 -218
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +0 -99
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +0 -100
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +0 -108
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +0 -208
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +0 -112
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +0 -32982
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +0 -316
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +0 -145
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +0 -98
- data/lib/gollum/public/gollum/livepreview/js/ace/lib/ace/worker/worker_sourcemint.js +0 -73
@@ -81,15 +81,16 @@ module.exports = {
|
|
81
81
|
this.textLayer.$renderLine(stringBuilder, 0, true);
|
82
82
|
assert.equal(
|
83
83
|
stringBuilder.join(""),
|
84
|
-
"<span class='ace_cjk ace_invisible' style='width:20px'>" + this.textLayer.SPACE_CHAR + "</span>"
|
85
|
-
+ "<span class='ace_invisible'>\xB6</span>"
|
84
|
+
"<span class='ace_cjk ace_invisible ace_invisible_space' style='width:20px'>" + this.textLayer.SPACE_CHAR + "</span>"
|
85
|
+
+ "<span class='ace_invisible ace_invisible_eol'>\xB6</span>"
|
86
86
|
);
|
87
87
|
},
|
88
|
-
|
89
|
-
"test rendering of indent guides" : function() {
|
88
|
+
|
89
|
+
"test rendering of indent guides" : function() {
|
90
90
|
var textLayer = this.textLayer
|
91
|
-
var EOL = "<span class='ace_invisible'>" + textLayer.EOL_CHAR + "</span>";
|
92
|
-
var SPACE = function(i) {return Array(i+1).join("
|
91
|
+
var EOL = "<span class='ace_invisible ace_invisible_eol'>" + textLayer.EOL_CHAR + "</span>";
|
92
|
+
var SPACE = function(i) {return Array(i+1).join("\xa0")}
|
93
|
+
var DOT = function(i) {return Array(i+1).join(textLayer.SPACE_CHAR)}
|
93
94
|
var TAB = function(i) {return textLayer.TAB_CHAR + SPACE(i-1)}
|
94
95
|
function testRender(results) {
|
95
96
|
for (var i = results.length; i--; ) {
|
@@ -107,13 +108,13 @@ module.exports = {
|
|
107
108
|
]);
|
108
109
|
this.textLayer.setShowInvisibles(true);
|
109
110
|
testRender([
|
110
|
-
"<span class='ace_indent-guide ace_invisible'>" +
|
111
|
-
"<span class='ace_indent-guide ace_invisible'>" + TAB(4) + "</span><span class='ace_invisible'>" + TAB(4) + "</span><span class='ace_identifier'>f</span>" + EOL,
|
111
|
+
"<span class='ace_indent-guide ace_invisible ace_invisible_space'>" + DOT(4) + "</span><span class='ace_invisible ace_invisible_space'>" + DOT(2) + "</span>" + EOL,
|
112
|
+
"<span class='ace_indent-guide ace_invisible ace_invisible_tab'>" + TAB(4) + "</span><span class='ace_invisible ace_invisible_tab'>" + TAB(4) + "</span><span class='ace_identifier'>f</span>" + EOL,
|
112
113
|
]);
|
113
114
|
this.textLayer.setDisplayIndentGuides(false);
|
114
115
|
testRender([
|
115
|
-
|
116
|
-
"<span class='ace_invisible'>" + TAB(4) + "</span><span class='ace_invisible'>" + TAB(4) + "</span><span class='ace_identifier'>f</span>" + EOL
|
116
|
+
"<span class='ace_invisible ace_invisible_space'>" + DOT(6) + "</span>" + EOL,
|
117
|
+
"<span class='ace_invisible ace_invisible_tab'>" + TAB(4) + "</span><span class='ace_invisible ace_invisible_tab'>" + TAB(4) + "</span><span class='ace_identifier'>f</span>" + EOL
|
117
118
|
]);
|
118
119
|
}
|
119
120
|
};
|
@@ -0,0 +1,157 @@
|
|
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(function(require, exports, module) {
|
32
|
+
"no use strict";
|
33
|
+
|
34
|
+
var oop = require("./oop");
|
35
|
+
var EventEmitter = require("./event_emitter").EventEmitter;
|
36
|
+
|
37
|
+
var optionsProvider = {
|
38
|
+
setOptions: function(optList) {
|
39
|
+
Object.keys(optList).forEach(function(key) {
|
40
|
+
this.setOption(key, optList[key]);
|
41
|
+
}, this);
|
42
|
+
},
|
43
|
+
getOptions: function(optionNames) {
|
44
|
+
var result = {};
|
45
|
+
if (!optionNames) {
|
46
|
+
optionNames = Object.keys(this.$options);
|
47
|
+
} else if (!Array.isArray(optionNames)) {
|
48
|
+
result = optionNames;
|
49
|
+
optionNames = Object.keys(result);
|
50
|
+
}
|
51
|
+
optionNames.forEach(function(key) {
|
52
|
+
result[key] = this.getOption(key);
|
53
|
+
}, this);
|
54
|
+
return result;
|
55
|
+
},
|
56
|
+
setOption: function(name, value) {
|
57
|
+
if (this["$" + name] === value)
|
58
|
+
return;
|
59
|
+
var opt = this.$options[name];
|
60
|
+
if (!opt) {
|
61
|
+
return warn('misspelled option "' + name + '"');
|
62
|
+
}
|
63
|
+
if (opt.forwardTo)
|
64
|
+
return this[opt.forwardTo] && this[opt.forwardTo].setOption(name, value);
|
65
|
+
|
66
|
+
if (!opt.handlesSet)
|
67
|
+
this["$" + name] = value;
|
68
|
+
if (opt && opt.set)
|
69
|
+
opt.set.call(this, value);
|
70
|
+
},
|
71
|
+
getOption: function(name) {
|
72
|
+
var opt = this.$options[name];
|
73
|
+
if (!opt) {
|
74
|
+
return warn('misspelled option "' + name + '"');
|
75
|
+
}
|
76
|
+
if (opt.forwardTo)
|
77
|
+
return this[opt.forwardTo] && this[opt.forwardTo].getOption(name);
|
78
|
+
return opt && opt.get ? opt.get.call(this) : this["$" + name];
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
82
|
+
function warn(message) {
|
83
|
+
if (typeof console != "undefined" && console.warn)
|
84
|
+
console.warn.apply(console, arguments);
|
85
|
+
}
|
86
|
+
|
87
|
+
function reportError(msg, data) {
|
88
|
+
var e = new Error(msg);
|
89
|
+
e.data = data;
|
90
|
+
if (typeof console == "object" && console.error)
|
91
|
+
console.error(e);
|
92
|
+
setTimeout(function() { throw e; });
|
93
|
+
}
|
94
|
+
|
95
|
+
var AppConfig = function() {
|
96
|
+
this.$defaultOptions = {};
|
97
|
+
};
|
98
|
+
|
99
|
+
(function() {
|
100
|
+
// module loading
|
101
|
+
oop.implement(this, EventEmitter);
|
102
|
+
/*
|
103
|
+
* option {name, value, initialValue, setterName, set, get }
|
104
|
+
*/
|
105
|
+
this.defineOptions = function(obj, path, options) {
|
106
|
+
if (!obj.$options)
|
107
|
+
this.$defaultOptions[path] = obj.$options = {};
|
108
|
+
|
109
|
+
Object.keys(options).forEach(function(key) {
|
110
|
+
var opt = options[key];
|
111
|
+
if (typeof opt == "string")
|
112
|
+
opt = {forwardTo: opt};
|
113
|
+
|
114
|
+
opt.name || (opt.name = key);
|
115
|
+
obj.$options[opt.name] = opt;
|
116
|
+
if ("initialValue" in opt)
|
117
|
+
obj["$" + opt.name] = opt.initialValue;
|
118
|
+
});
|
119
|
+
|
120
|
+
// implement option provider interface
|
121
|
+
oop.implement(obj, optionsProvider);
|
122
|
+
|
123
|
+
return this;
|
124
|
+
};
|
125
|
+
|
126
|
+
this.resetOptions = function(obj) {
|
127
|
+
Object.keys(obj.$options).forEach(function(key) {
|
128
|
+
var opt = obj.$options[key];
|
129
|
+
if ("value" in opt)
|
130
|
+
obj.setOption(key, opt.value);
|
131
|
+
});
|
132
|
+
};
|
133
|
+
|
134
|
+
this.setDefaultValue = function(path, name, value) {
|
135
|
+
var opts = this.$defaultOptions[path] || (this.$defaultOptions[path] = {});
|
136
|
+
if (opts[name]) {
|
137
|
+
if (opts.forwardTo)
|
138
|
+
this.setDefaultValue(opts.forwardTo, name, value);
|
139
|
+
else
|
140
|
+
opts[name].value = value;
|
141
|
+
}
|
142
|
+
};
|
143
|
+
|
144
|
+
this.setDefaultValues = function(path, optionHash) {
|
145
|
+
Object.keys(optionHash).forEach(function(key) {
|
146
|
+
this.setDefaultValue(path, key, optionHash[key]);
|
147
|
+
}, this);
|
148
|
+
};
|
149
|
+
|
150
|
+
this.warn = warn;
|
151
|
+
this.reportError = reportError;
|
152
|
+
|
153
|
+
}).call(AppConfig.prototype);
|
154
|
+
|
155
|
+
exports.AppConfig = AppConfig;
|
156
|
+
|
157
|
+
});
|
@@ -33,23 +33,20 @@ define(function(require, exports, module) {
|
|
33
33
|
|
34
34
|
var XHTML_NS = "http://www.w3.org/1999/xhtml";
|
35
35
|
|
36
|
+
exports.getDocumentHead = function(doc) {
|
37
|
+
if (!doc)
|
38
|
+
doc = document;
|
39
|
+
return doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement;
|
40
|
+
}
|
41
|
+
|
36
42
|
exports.createElement = function(tag, ns) {
|
37
43
|
return document.createElementNS ?
|
38
44
|
document.createElementNS(ns || XHTML_NS, tag) :
|
39
45
|
document.createElement(tag);
|
40
46
|
};
|
41
47
|
|
42
|
-
exports.setText = function(elem, text) {
|
43
|
-
if (elem.innerText !== undefined) {
|
44
|
-
elem.innerText = text;
|
45
|
-
}
|
46
|
-
if (elem.textContent !== undefined) {
|
47
|
-
elem.textContent = text;
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
48
|
exports.hasCssClass = function(el, name) {
|
52
|
-
var classes = el.className.split(/\s+/g);
|
49
|
+
var classes = (el.className || "").split(/\s+/g);
|
53
50
|
return classes.indexOf(name) !== -1;
|
54
51
|
};
|
55
52
|
|
@@ -143,8 +140,7 @@ exports.importCssString = function importCssString(cssText, id, doc) {
|
|
143
140
|
if (id)
|
144
141
|
style.id = id;
|
145
142
|
|
146
|
-
|
147
|
-
head.appendChild(style);
|
143
|
+
exports.getDocumentHead(doc).appendChild(style);
|
148
144
|
}
|
149
145
|
};
|
150
146
|
|
@@ -156,8 +152,7 @@ exports.importCssStylsheet = function(uri, doc) {
|
|
156
152
|
link.rel = 'stylesheet';
|
157
153
|
link.href = uri;
|
158
154
|
|
159
|
-
|
160
|
-
head.appendChild(link);
|
155
|
+
exports.getDocumentHead(doc).appendChild(link);
|
161
156
|
}
|
162
157
|
};
|
163
158
|
|
@@ -177,6 +172,10 @@ exports.getInnerHeight = function(element) {
|
|
177
172
|
);
|
178
173
|
};
|
179
174
|
|
175
|
+
|
176
|
+
if (typeof document == "undefined")
|
177
|
+
return;
|
178
|
+
|
180
179
|
if (window.pageYOffset !== undefined) {
|
181
180
|
exports.getPageScrollTop = function() {
|
182
181
|
return window.pageYOffset;
|
@@ -210,13 +209,13 @@ else
|
|
210
209
|
};
|
211
210
|
|
212
211
|
exports.scrollbarWidth = function(document) {
|
213
|
-
|
214
|
-
var inner = exports.createElement("p");
|
212
|
+
var inner = exports.createElement("ace_inner");
|
215
213
|
inner.style.width = "100%";
|
216
214
|
inner.style.minWidth = "0px";
|
217
215
|
inner.style.height = "200px";
|
216
|
+
inner.style.display = "block";
|
218
217
|
|
219
|
-
var outer = exports.createElement("
|
218
|
+
var outer = exports.createElement("ace_outer");
|
220
219
|
var style = outer.style;
|
221
220
|
|
222
221
|
style.position = "absolute";
|
@@ -225,10 +224,11 @@ exports.scrollbarWidth = function(document) {
|
|
225
224
|
style.width = "200px";
|
226
225
|
style.minWidth = "0px";
|
227
226
|
style.height = "150px";
|
227
|
+
style.display = "block";
|
228
228
|
|
229
229
|
outer.appendChild(inner);
|
230
230
|
|
231
|
-
var body = document.
|
231
|
+
var body = document.documentElement;
|
232
232
|
body.appendChild(outer);
|
233
233
|
|
234
234
|
var noScrollbar = inner.offsetWidth;
|
@@ -258,22 +258,24 @@ exports.setInnerHtml = function(el, innerHtml) {
|
|
258
258
|
return element;
|
259
259
|
};
|
260
260
|
|
261
|
-
|
262
|
-
|
263
|
-
if (document.body && "textContent" in document.body)
|
261
|
+
if ("textContent" in document.documentElement) {
|
262
|
+
exports.setInnerText = function(el, innerText) {
|
264
263
|
el.textContent = innerText;
|
265
|
-
|
266
|
-
el.innerText = innerText;
|
267
|
-
|
268
|
-
};
|
264
|
+
};
|
269
265
|
|
270
|
-
exports.getInnerText = function(el) {
|
271
|
-
var document = el.ownerDocument;
|
272
|
-
if (document.body && "textContent" in document.body)
|
266
|
+
exports.getInnerText = function(el) {
|
273
267
|
return el.textContent;
|
274
|
-
|
275
|
-
|
276
|
-
|
268
|
+
};
|
269
|
+
}
|
270
|
+
else {
|
271
|
+
exports.setInnerText = function(el, innerText) {
|
272
|
+
el.innerText = innerText;
|
273
|
+
};
|
274
|
+
|
275
|
+
exports.getInnerText = function(el) {
|
276
|
+
return el.innerText;
|
277
|
+
};
|
278
|
+
}
|
277
279
|
|
278
280
|
exports.getParentWindow = function(document) {
|
279
281
|
return document.defaultView || document.parentWindow;
|
@@ -1,28 +1,5 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
// -- tlrobinson Tom Robinson Copyright (C) 2009-2010 MIT License (Narwhal Project)
|
4
|
-
// -- dantman Daniel Friesen Copyright (C) 2010 XXX TODO License or CLA
|
5
|
-
// -- fschaefer Florian Schäfer Copyright (C) 2010 MIT License
|
6
|
-
// -- Gozala Irakli Gozalishvili Copyright (C) 2010 MIT License
|
7
|
-
// -- kitcambridge Kit Cambridge Copyright (C) 2011 MIT License
|
8
|
-
// -- kossnocorp Sasha Koss XXX TODO License or CLA
|
9
|
-
// -- bryanforbes Bryan Forbes XXX TODO License or CLA
|
10
|
-
// -- killdream Quildreen Motta Copyright (C) 2011 MIT Licence
|
11
|
-
// -- michaelficarra Michael Ficarra Copyright (C) 2011 3-clause BSD License
|
12
|
-
// -- sharkbrainguy Gerard Paapu Copyright (C) 2011 MIT License
|
13
|
-
// -- bbqsrc Brendan Molloy (C) 2011 Creative Commons Zero (public domain)
|
14
|
-
// -- iwyg XXX TODO License or CLA
|
15
|
-
// -- DomenicDenicola Domenic Denicola Copyright (C) 2011 MIT License
|
16
|
-
// -- xavierm02 Montillet Xavier XXX TODO License or CLA
|
17
|
-
// -- Raynos Raynos XXX TODO License or CLA
|
18
|
-
// -- samsonjs Sami Samhuri Copyright (C) 2010 MIT License
|
19
|
-
// -- rwldrn Rick Waldron Copyright (C) 2011 MIT License
|
20
|
-
// -- lexer Alexey Zakharov XXX TODO License or CLA
|
21
|
-
|
22
|
-
/*!
|
23
|
-
Copyright (c) 2009, 280 North Inc. http://280north.com/
|
24
|
-
MIT License. http://github.com/280north/narwhal/blob/master/README.md
|
25
|
-
*/
|
1
|
+
// https://github.com/kriskowal/es5-shim
|
2
|
+
// Copyright 2009-2012 by contributors, MIT License
|
26
3
|
|
27
4
|
define(function(require, exports, module) {
|
28
5
|
|
@@ -32,12 +9,9 @@ define(function(require, exports, module) {
|
|
32
9
|
*
|
33
10
|
* Annotated ES5: http://es5.github.com/ (specific links below)
|
34
11
|
* ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
|
35
|
-
*
|
36
|
-
* @module
|
12
|
+
* Required reading: http://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/
|
37
13
|
*/
|
38
14
|
|
39
|
-
/*whatsupdoc*/
|
40
|
-
|
41
15
|
//
|
42
16
|
// Function
|
43
17
|
// ========
|
@@ -46,13 +20,16 @@ define(function(require, exports, module) {
|
|
46
20
|
// ES-5 15.3.4.5
|
47
21
|
// http://es5.github.com/#x15.3.4.5
|
48
22
|
|
23
|
+
function Empty() {}
|
24
|
+
|
49
25
|
if (!Function.prototype.bind) {
|
50
26
|
Function.prototype.bind = function bind(that) { // .length is 1
|
51
27
|
// 1. Let Target be the this value.
|
52
28
|
var target = this;
|
53
29
|
// 2. If IsCallable(Target) is false, throw a TypeError exception.
|
54
|
-
if (typeof target != "function")
|
55
|
-
throw new TypeError(
|
30
|
+
if (typeof target != "function") {
|
31
|
+
throw new TypeError("Function.prototype.bind called on incompatible " + target);
|
32
|
+
}
|
56
33
|
// 3. Let A be a new (possibly empty) internal list of all of the
|
57
34
|
// argument values provided after thisArg (arg1, arg2 etc), in order.
|
58
35
|
// XXX slicedArgs will stand in for "A" if used
|
@@ -82,20 +59,17 @@ if (!Function.prototype.bind) {
|
|
82
59
|
// 4. Let args be a new list containing the same values as the
|
83
60
|
// list boundArgs in the same order followed by the same
|
84
61
|
// values as the list ExtraArgs in the same order.
|
85
|
-
// 5. Return the result of calling the [[Construct]] internal
|
62
|
+
// 5. Return the result of calling the [[Construct]] internal
|
86
63
|
// method of target providing args as the arguments.
|
87
64
|
|
88
|
-
var F = function(){};
|
89
|
-
F.prototype = target.prototype;
|
90
|
-
var self = new F;
|
91
|
-
|
92
65
|
var result = target.apply(
|
93
|
-
|
66
|
+
this,
|
94
67
|
args.concat(slice.call(arguments))
|
95
68
|
);
|
96
|
-
if (
|
69
|
+
if (Object(result) === result) {
|
97
70
|
return result;
|
98
|
-
|
71
|
+
}
|
72
|
+
return this;
|
99
73
|
|
100
74
|
} else {
|
101
75
|
// 15.3.4.5.1 [[Call]]
|
@@ -109,11 +83,11 @@ if (!Function.prototype.bind) {
|
|
109
83
|
// property.
|
110
84
|
// 3. Let target be the value of F's [[TargetFunction]] internal
|
111
85
|
// property.
|
112
|
-
// 4. Let args be a new list containing the same values as the
|
113
|
-
// list boundArgs in the same order followed by the same
|
86
|
+
// 4. Let args be a new list containing the same values as the
|
87
|
+
// list boundArgs in the same order followed by the same
|
114
88
|
// values as the list ExtraArgs in the same order.
|
115
|
-
// 5. Return the result of calling the [[Call]] internal method
|
116
|
-
// of target providing boundThis as the this value and
|
89
|
+
// 5. Return the result of calling the [[Call]] internal method
|
90
|
+
// of target providing boundThis as the this value and
|
117
91
|
// providing args as the arguments.
|
118
92
|
|
119
93
|
// equiv: target.call(this, ...boundArgs, ...args)
|
@@ -125,11 +99,17 @@ if (!Function.prototype.bind) {
|
|
125
99
|
}
|
126
100
|
|
127
101
|
};
|
102
|
+
if(target.prototype) {
|
103
|
+
Empty.prototype = target.prototype;
|
104
|
+
bound.prototype = new Empty();
|
105
|
+
// Clean up dangling references.
|
106
|
+
Empty.prototype = null;
|
107
|
+
}
|
128
108
|
// XXX bound.length is never writable, so don't even try
|
129
109
|
//
|
130
110
|
// 15. If the [[Class]] internal property of Target is "Function", then
|
131
111
|
// a. Let L be the length property of Target minus the length of A.
|
132
|
-
// b. Set the length own property of F to either 0 or L, whichever is
|
112
|
+
// b. Set the length own property of F to either 0 or L, whichever is
|
133
113
|
// larger.
|
134
114
|
// 16. Else set the length own property of F to 0.
|
135
115
|
// 17. Set the attributes of the length own property of F to the values
|
@@ -137,20 +117,20 @@ if (!Function.prototype.bind) {
|
|
137
117
|
|
138
118
|
// TODO
|
139
119
|
// 18. Set the [[Extensible]] internal property of F to true.
|
140
|
-
|
120
|
+
|
141
121
|
// TODO
|
142
122
|
// 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
|
143
|
-
// 20. Call the [[DefineOwnProperty]] internal method of F with
|
123
|
+
// 20. Call the [[DefineOwnProperty]] internal method of F with
|
144
124
|
// arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
|
145
|
-
// thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
|
125
|
+
// thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
|
146
126
|
// false.
|
147
|
-
// 21. Call the [[DefineOwnProperty]] internal method of F with
|
148
|
-
// arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
|
127
|
+
// 21. Call the [[DefineOwnProperty]] internal method of F with
|
128
|
+
// arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
|
149
129
|
// [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
|
150
130
|
// and false.
|
151
131
|
|
152
132
|
// TODO
|
153
|
-
// NOTE Function objects created using Function.prototype.bind do not
|
133
|
+
// NOTE Function objects created using Function.prototype.bind do not
|
154
134
|
// have a prototype property or the [[Code]], [[FormalParameters]], and
|
155
135
|
// [[Scope]] internal properties.
|
156
136
|
// XXX can't delete prototype in pure-js.
|
@@ -168,7 +148,8 @@ var call = Function.prototype.call;
|
|
168
148
|
var prototypeOfArray = Array.prototype;
|
169
149
|
var prototypeOfObject = Object.prototype;
|
170
150
|
var slice = prototypeOfArray.slice;
|
171
|
-
|
151
|
+
// Having a toString local variable name breaks in Opera so use _toString.
|
152
|
+
var _toString = call.bind(prototypeOfObject.toString);
|
172
153
|
var owns = call.bind(prototypeOfObject.hasOwnProperty);
|
173
154
|
|
174
155
|
// If JS engine supports accessors creating shortcuts.
|
@@ -189,12 +170,109 @@ if ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__"))) {
|
|
189
170
|
// =====
|
190
171
|
//
|
191
172
|
|
173
|
+
// ES5 15.4.4.12
|
174
|
+
// http://es5.github.com/#x15.4.4.12
|
175
|
+
// Default value for second param
|
176
|
+
// [bugfix, ielt9, old browsers]
|
177
|
+
// IE < 9 bug: [1,2].splice(0).join("") == "" but should be "12"
|
178
|
+
if ([1,2].splice(0).length != 2) {
|
179
|
+
if(function() { // test IE < 9 to splice bug - see issue #138
|
180
|
+
function makeArray(l) {
|
181
|
+
var a = new Array(l+2);
|
182
|
+
a[0] = a[1] = 0;
|
183
|
+
return a;
|
184
|
+
}
|
185
|
+
var array = [], lengthBefore;
|
186
|
+
|
187
|
+
array.splice.apply(array, makeArray(20));
|
188
|
+
array.splice.apply(array, makeArray(26));
|
189
|
+
|
190
|
+
lengthBefore = array.length; //46
|
191
|
+
array.splice(5, 0, "XXX"); // add one element
|
192
|
+
|
193
|
+
lengthBefore + 1 == array.length
|
194
|
+
|
195
|
+
if (lengthBefore + 1 == array.length) {
|
196
|
+
return true;// has right splice implementation without bugs
|
197
|
+
}
|
198
|
+
// else {
|
199
|
+
// IE8 bug
|
200
|
+
// }
|
201
|
+
}()) {//IE 6/7
|
202
|
+
var array_splice = Array.prototype.splice;
|
203
|
+
Array.prototype.splice = function(start, deleteCount) {
|
204
|
+
if (!arguments.length) {
|
205
|
+
return [];
|
206
|
+
} else {
|
207
|
+
return array_splice.apply(this, [
|
208
|
+
start === void 0 ? 0 : start,
|
209
|
+
deleteCount === void 0 ? (this.length - start) : deleteCount
|
210
|
+
].concat(slice.call(arguments, 2)))
|
211
|
+
}
|
212
|
+
};
|
213
|
+
} else {//IE8
|
214
|
+
// taken from http://docs.sencha.com/ext-js/4-1/source/Array2.html
|
215
|
+
Array.prototype.splice = function(pos, removeCount){
|
216
|
+
var length = this.length;
|
217
|
+
if (pos > 0) {
|
218
|
+
if (pos > length)
|
219
|
+
pos = length;
|
220
|
+
} else if (pos == void 0) {
|
221
|
+
pos = 0;
|
222
|
+
} else if (pos < 0) {
|
223
|
+
pos = Math.max(length + pos, 0);
|
224
|
+
}
|
225
|
+
|
226
|
+
if (!(pos+removeCount < length))
|
227
|
+
removeCount = length - pos;
|
228
|
+
|
229
|
+
var removed = this.slice(pos, pos+removeCount);
|
230
|
+
var insert = slice.call(arguments, 2);
|
231
|
+
var add = insert.length;
|
232
|
+
|
233
|
+
// we try to use Array.push when we can for efficiency...
|
234
|
+
if (pos === length) {
|
235
|
+
if (add) {
|
236
|
+
this.push.apply(this, insert);
|
237
|
+
}
|
238
|
+
} else {
|
239
|
+
var remove = Math.min(removeCount, length - pos);
|
240
|
+
var tailOldPos = pos + remove;
|
241
|
+
var tailNewPos = tailOldPos + add - remove;
|
242
|
+
var tailCount = length - tailOldPos;
|
243
|
+
var lengthAfterRemove = length - remove;
|
244
|
+
|
245
|
+
if (tailNewPos < tailOldPos) { // case A
|
246
|
+
for (var i = 0; i < tailCount; ++i) {
|
247
|
+
this[tailNewPos+i] = this[tailOldPos+i];
|
248
|
+
}
|
249
|
+
} else if (tailNewPos > tailOldPos) { // case B
|
250
|
+
for (i = tailCount; i--; ) {
|
251
|
+
this[tailNewPos+i] = this[tailOldPos+i];
|
252
|
+
}
|
253
|
+
} // else, add == remove (nothing to do)
|
254
|
+
|
255
|
+
if (add && pos === lengthAfterRemove) {
|
256
|
+
this.length = lengthAfterRemove; // truncate array
|
257
|
+
this.push.apply(this, insert);
|
258
|
+
} else {
|
259
|
+
this.length = lengthAfterRemove + add; // reserves space
|
260
|
+
for (i = 0; i < add; ++i) {
|
261
|
+
this[pos+i] = insert[i];
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
return removed;
|
266
|
+
};
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
192
270
|
// ES5 15.4.3.2
|
193
271
|
// http://es5.github.com/#x15.4.3.2
|
194
272
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
|
195
273
|
if (!Array.isArray) {
|
196
274
|
Array.isArray = function isArray(obj) {
|
197
|
-
return
|
275
|
+
return _toString(obj) == "[object Array]";
|
198
276
|
};
|
199
277
|
}
|
200
278
|
|
@@ -213,25 +291,34 @@ if (!Array.isArray) {
|
|
213
291
|
// ES5 15.4.4.18
|
214
292
|
// http://es5.github.com/#x15.4.4.18
|
215
293
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/forEach
|
294
|
+
|
295
|
+
// Check failure of by-index access of string characters (IE < 9)
|
296
|
+
// and failure of `0 in boxedString` (Rhino)
|
297
|
+
var boxedString = Object("a"),
|
298
|
+
splitString = boxedString[0] != "a" || !(0 in boxedString);
|
299
|
+
|
216
300
|
if (!Array.prototype.forEach) {
|
217
301
|
Array.prototype.forEach = function forEach(fun /*, thisp*/) {
|
218
|
-
var
|
302
|
+
var object = toObject(this),
|
303
|
+
self = splitString && _toString(this) == "[object String]" ?
|
304
|
+
this.split("") :
|
305
|
+
object,
|
219
306
|
thisp = arguments[1],
|
220
|
-
i =
|
307
|
+
i = -1,
|
221
308
|
length = self.length >>> 0;
|
222
309
|
|
223
310
|
// If no callback function or if callback is not a callable function
|
224
|
-
if (
|
311
|
+
if (_toString(fun) != "[object Function]") {
|
225
312
|
throw new TypeError(); // TODO message
|
226
313
|
}
|
227
314
|
|
228
|
-
while (i < length) {
|
315
|
+
while (++i < length) {
|
229
316
|
if (i in self) {
|
230
317
|
// Invoke the callback function with call, passing arguments:
|
231
|
-
// context, property value, property key, thisArg object
|
232
|
-
|
318
|
+
// context, property value, property key, thisArg object
|
319
|
+
// context
|
320
|
+
fun.call(thisp, self[i], i, object);
|
233
321
|
}
|
234
|
-
i++;
|
235
322
|
}
|
236
323
|
};
|
237
324
|
}
|
@@ -241,19 +328,22 @@ if (!Array.prototype.forEach) {
|
|
241
328
|
// https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map
|
242
329
|
if (!Array.prototype.map) {
|
243
330
|
Array.prototype.map = function map(fun /*, thisp*/) {
|
244
|
-
var
|
331
|
+
var object = toObject(this),
|
332
|
+
self = splitString && _toString(this) == "[object String]" ?
|
333
|
+
this.split("") :
|
334
|
+
object,
|
245
335
|
length = self.length >>> 0,
|
246
336
|
result = Array(length),
|
247
337
|
thisp = arguments[1];
|
248
338
|
|
249
339
|
// If no callback function or if callback is not a callable function
|
250
|
-
if (
|
251
|
-
throw new TypeError(
|
340
|
+
if (_toString(fun) != "[object Function]") {
|
341
|
+
throw new TypeError(fun + " is not a function");
|
252
342
|
}
|
253
343
|
|
254
344
|
for (var i = 0; i < length; i++) {
|
255
345
|
if (i in self)
|
256
|
-
result[i] = fun.call(thisp, self[i], i,
|
346
|
+
result[i] = fun.call(thisp, self[i], i, object);
|
257
347
|
}
|
258
348
|
return result;
|
259
349
|
};
|
@@ -264,19 +354,27 @@ if (!Array.prototype.map) {
|
|
264
354
|
// https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter
|
265
355
|
if (!Array.prototype.filter) {
|
266
356
|
Array.prototype.filter = function filter(fun /*, thisp */) {
|
267
|
-
var
|
357
|
+
var object = toObject(this),
|
358
|
+
self = splitString && _toString(this) == "[object String]" ?
|
359
|
+
this.split("") :
|
360
|
+
object,
|
268
361
|
length = self.length >>> 0,
|
269
362
|
result = [],
|
363
|
+
value,
|
270
364
|
thisp = arguments[1];
|
271
365
|
|
272
366
|
// If no callback function or if callback is not a callable function
|
273
|
-
if (
|
274
|
-
throw new TypeError(
|
367
|
+
if (_toString(fun) != "[object Function]") {
|
368
|
+
throw new TypeError(fun + " is not a function");
|
275
369
|
}
|
276
370
|
|
277
371
|
for (var i = 0; i < length; i++) {
|
278
|
-
if (i in self
|
279
|
-
|
372
|
+
if (i in self) {
|
373
|
+
value = self[i];
|
374
|
+
if (fun.call(thisp, value, i, object)) {
|
375
|
+
result.push(value);
|
376
|
+
}
|
377
|
+
}
|
280
378
|
}
|
281
379
|
return result;
|
282
380
|
};
|
@@ -287,18 +385,22 @@ if (!Array.prototype.filter) {
|
|
287
385
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every
|
288
386
|
if (!Array.prototype.every) {
|
289
387
|
Array.prototype.every = function every(fun /*, thisp */) {
|
290
|
-
var
|
388
|
+
var object = toObject(this),
|
389
|
+
self = splitString && _toString(this) == "[object String]" ?
|
390
|
+
this.split("") :
|
391
|
+
object,
|
291
392
|
length = self.length >>> 0,
|
292
393
|
thisp = arguments[1];
|
293
394
|
|
294
395
|
// If no callback function or if callback is not a callable function
|
295
|
-
if (
|
296
|
-
throw new TypeError(
|
396
|
+
if (_toString(fun) != "[object Function]") {
|
397
|
+
throw new TypeError(fun + " is not a function");
|
297
398
|
}
|
298
399
|
|
299
400
|
for (var i = 0; i < length; i++) {
|
300
|
-
if (i in self && !fun.call(thisp, self[i], i,
|
401
|
+
if (i in self && !fun.call(thisp, self[i], i, object)) {
|
301
402
|
return false;
|
403
|
+
}
|
302
404
|
}
|
303
405
|
return true;
|
304
406
|
};
|
@@ -309,18 +411,22 @@ if (!Array.prototype.every) {
|
|
309
411
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
|
310
412
|
if (!Array.prototype.some) {
|
311
413
|
Array.prototype.some = function some(fun /*, thisp */) {
|
312
|
-
var
|
414
|
+
var object = toObject(this),
|
415
|
+
self = splitString && _toString(this) == "[object String]" ?
|
416
|
+
this.split("") :
|
417
|
+
object,
|
313
418
|
length = self.length >>> 0,
|
314
419
|
thisp = arguments[1];
|
315
420
|
|
316
421
|
// If no callback function or if callback is not a callable function
|
317
|
-
if (
|
318
|
-
throw new TypeError(
|
422
|
+
if (_toString(fun) != "[object Function]") {
|
423
|
+
throw new TypeError(fun + " is not a function");
|
319
424
|
}
|
320
425
|
|
321
426
|
for (var i = 0; i < length; i++) {
|
322
|
-
if (i in self && fun.call(thisp, self[i], i,
|
427
|
+
if (i in self && fun.call(thisp, self[i], i, object)) {
|
323
428
|
return true;
|
429
|
+
}
|
324
430
|
}
|
325
431
|
return false;
|
326
432
|
};
|
@@ -331,17 +437,21 @@ if (!Array.prototype.some) {
|
|
331
437
|
// https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce
|
332
438
|
if (!Array.prototype.reduce) {
|
333
439
|
Array.prototype.reduce = function reduce(fun /*, initial*/) {
|
334
|
-
var
|
440
|
+
var object = toObject(this),
|
441
|
+
self = splitString && _toString(this) == "[object String]" ?
|
442
|
+
this.split("") :
|
443
|
+
object,
|
335
444
|
length = self.length >>> 0;
|
336
445
|
|
337
446
|
// If no callback function or if callback is not a callable function
|
338
|
-
if (
|
339
|
-
throw new TypeError(
|
447
|
+
if (_toString(fun) != "[object Function]") {
|
448
|
+
throw new TypeError(fun + " is not a function");
|
340
449
|
}
|
341
450
|
|
342
451
|
// no value to return if no initial value and an empty array
|
343
|
-
if (!length && arguments.length == 1)
|
344
|
-
throw new TypeError(
|
452
|
+
if (!length && arguments.length == 1) {
|
453
|
+
throw new TypeError("reduce of empty array with no initial value");
|
454
|
+
}
|
345
455
|
|
346
456
|
var i = 0;
|
347
457
|
var result;
|
@@ -355,14 +465,16 @@ if (!Array.prototype.reduce) {
|
|
355
465
|
}
|
356
466
|
|
357
467
|
// if array contains no values, no initial value to return
|
358
|
-
if (++i >= length)
|
359
|
-
throw new TypeError(
|
468
|
+
if (++i >= length) {
|
469
|
+
throw new TypeError("reduce of empty array with no initial value");
|
470
|
+
}
|
360
471
|
} while (true);
|
361
472
|
}
|
362
473
|
|
363
474
|
for (; i < length; i++) {
|
364
|
-
if (i in self)
|
365
|
-
result = fun.call(void 0, result, self[i], i,
|
475
|
+
if (i in self) {
|
476
|
+
result = fun.call(void 0, result, self[i], i, object);
|
477
|
+
}
|
366
478
|
}
|
367
479
|
|
368
480
|
return result;
|
@@ -374,17 +486,21 @@ if (!Array.prototype.reduce) {
|
|
374
486
|
// https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduceRight
|
375
487
|
if (!Array.prototype.reduceRight) {
|
376
488
|
Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
|
377
|
-
var
|
489
|
+
var object = toObject(this),
|
490
|
+
self = splitString && _toString(this) == "[object String]" ?
|
491
|
+
this.split("") :
|
492
|
+
object,
|
378
493
|
length = self.length >>> 0;
|
379
494
|
|
380
495
|
// If no callback function or if callback is not a callable function
|
381
|
-
if (
|
382
|
-
throw new TypeError(
|
496
|
+
if (_toString(fun) != "[object Function]") {
|
497
|
+
throw new TypeError(fun + " is not a function");
|
383
498
|
}
|
384
499
|
|
385
500
|
// no value to return if no initial value, empty array
|
386
|
-
if (!length && arguments.length == 1)
|
387
|
-
throw new TypeError(
|
501
|
+
if (!length && arguments.length == 1) {
|
502
|
+
throw new TypeError("reduceRight of empty array with no initial value");
|
503
|
+
}
|
388
504
|
|
389
505
|
var result, i = length - 1;
|
390
506
|
if (arguments.length >= 2) {
|
@@ -397,14 +513,16 @@ if (!Array.prototype.reduceRight) {
|
|
397
513
|
}
|
398
514
|
|
399
515
|
// if array contains no values, no initial value to return
|
400
|
-
if (--i < 0)
|
401
|
-
throw new TypeError(
|
516
|
+
if (--i < 0) {
|
517
|
+
throw new TypeError("reduceRight of empty array with no initial value");
|
518
|
+
}
|
402
519
|
} while (true);
|
403
520
|
}
|
404
521
|
|
405
522
|
do {
|
406
|
-
if (i in this)
|
407
|
-
result = fun.call(void 0, result, self[i], i,
|
523
|
+
if (i in this) {
|
524
|
+
result = fun.call(void 0, result, self[i], i, object);
|
525
|
+
}
|
408
526
|
} while (i--);
|
409
527
|
|
410
528
|
return result;
|
@@ -414,17 +532,21 @@ if (!Array.prototype.reduceRight) {
|
|
414
532
|
// ES5 15.4.4.14
|
415
533
|
// http://es5.github.com/#x15.4.4.14
|
416
534
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
|
417
|
-
if (!Array.prototype.indexOf) {
|
535
|
+
if (!Array.prototype.indexOf || ([0, 1].indexOf(1, 2) != -1)) {
|
418
536
|
Array.prototype.indexOf = function indexOf(sought /*, fromIndex */ ) {
|
419
|
-
var self =
|
537
|
+
var self = splitString && _toString(this) == "[object String]" ?
|
538
|
+
this.split("") :
|
539
|
+
toObject(this),
|
420
540
|
length = self.length >>> 0;
|
421
541
|
|
422
|
-
if (!length)
|
542
|
+
if (!length) {
|
423
543
|
return -1;
|
544
|
+
}
|
424
545
|
|
425
546
|
var i = 0;
|
426
|
-
if (arguments.length > 1)
|
547
|
+
if (arguments.length > 1) {
|
427
548
|
i = toInteger(arguments[1]);
|
549
|
+
}
|
428
550
|
|
429
551
|
// handle negative indices
|
430
552
|
i = i >= 0 ? i : Math.max(0, length + i);
|
@@ -440,21 +562,26 @@ if (!Array.prototype.indexOf) {
|
|
440
562
|
// ES5 15.4.4.15
|
441
563
|
// http://es5.github.com/#x15.4.4.15
|
442
564
|
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf
|
443
|
-
if (!Array.prototype.lastIndexOf) {
|
565
|
+
if (!Array.prototype.lastIndexOf || ([0, 1].lastIndexOf(0, -3) != -1)) {
|
444
566
|
Array.prototype.lastIndexOf = function lastIndexOf(sought /*, fromIndex */) {
|
445
|
-
var self =
|
567
|
+
var self = splitString && _toString(this) == "[object String]" ?
|
568
|
+
this.split("") :
|
569
|
+
toObject(this),
|
446
570
|
length = self.length >>> 0;
|
447
571
|
|
448
|
-
if (!length)
|
572
|
+
if (!length) {
|
449
573
|
return -1;
|
574
|
+
}
|
450
575
|
var i = length - 1;
|
451
|
-
if (arguments.length > 1)
|
576
|
+
if (arguments.length > 1) {
|
452
577
|
i = Math.min(i, toInteger(arguments[1]));
|
578
|
+
}
|
453
579
|
// handle negative indices
|
454
580
|
i = i >= 0 ? i : length - Math.abs(i);
|
455
581
|
for (; i >= 0; i--) {
|
456
|
-
if (i in self && sought === self[i])
|
582
|
+
if (i in self && sought === self[i]) {
|
457
583
|
return i;
|
584
|
+
}
|
458
585
|
}
|
459
586
|
return -1;
|
460
587
|
};
|
@@ -803,13 +930,18 @@ if (!Object.keys) {
|
|
803
930
|
],
|
804
931
|
dontEnumsLength = dontEnums.length;
|
805
932
|
|
806
|
-
for (var key in {"toString": null})
|
933
|
+
for (var key in {"toString": null}) {
|
807
934
|
hasDontEnumBug = false;
|
935
|
+
}
|
808
936
|
|
809
937
|
Object.keys = function keys(object) {
|
810
938
|
|
811
|
-
if (
|
939
|
+
if (
|
940
|
+
(typeof object != "object" && typeof object != "function") ||
|
941
|
+
object === null
|
942
|
+
) {
|
812
943
|
throw new TypeError("Object.keys called on a non-object");
|
944
|
+
}
|
813
945
|
|
814
946
|
var keys = [];
|
815
947
|
for (var name in object) {
|
@@ -826,49 +958,16 @@ if (!Object.keys) {
|
|
826
958
|
}
|
827
959
|
}
|
828
960
|
}
|
829
|
-
|
830
961
|
return keys;
|
831
962
|
};
|
832
963
|
|
833
964
|
}
|
834
965
|
|
835
966
|
//
|
836
|
-
// Date
|
967
|
+
// most of es5-shim Date section is removed since ace doesn't need it, it is too intrusive and it causes problems for users
|
837
968
|
// ====
|
838
969
|
//
|
839
970
|
|
840
|
-
// ES5 15.9.5.43
|
841
|
-
// http://es5.github.com/#x15.9.5.43
|
842
|
-
// This function returns a String value represent the instance in time
|
843
|
-
// represented by this Date object. The format of the String is the Date Time
|
844
|
-
// string format defined in 15.9.1.15. All fields are present in the String.
|
845
|
-
// The time zone is always UTC, denoted by the suffix Z. If the time value of
|
846
|
-
// this object is not a finite Number a RangeError exception is thrown.
|
847
|
-
if (!Date.prototype.toISOString || (new Date(-62198755200000).toISOString().indexOf('-000001') === -1)) {
|
848
|
-
Date.prototype.toISOString = function toISOString() {
|
849
|
-
var result, length, value, year;
|
850
|
-
if (!isFinite(this))
|
851
|
-
throw new RangeError;
|
852
|
-
|
853
|
-
// the date time string format is specified in 15.9.1.15.
|
854
|
-
result = [this.getUTCMonth() + 1, this.getUTCDate(),
|
855
|
-
this.getUTCHours(), this.getUTCMinutes(), this.getUTCSeconds()];
|
856
|
-
year = this.getUTCFullYear();
|
857
|
-
year = (year < 0 ? '-' : (year > 9999 ? '+' : '')) + ('00000' + Math.abs(year)).slice(0 <= year && year <= 9999 ? -4 : -6);
|
858
|
-
|
859
|
-
length = result.length;
|
860
|
-
while (length--) {
|
861
|
-
value = result[length];
|
862
|
-
// pad months, days, hours, minutes, and seconds to have two digits.
|
863
|
-
if (value < 10)
|
864
|
-
result[length] = "0" + value;
|
865
|
-
}
|
866
|
-
// pad milliseconds to have three digits.
|
867
|
-
return year + "-" + result.slice(0, 2).join("-") + "T" + result.slice(2).join(":") + "." +
|
868
|
-
("000" + this.getUTCMilliseconds()).slice(-3) + "Z";
|
869
|
-
}
|
870
|
-
}
|
871
|
-
|
872
971
|
// ES5 15.9.4.4
|
873
972
|
// http://es5.github.com/#x15.9.4.4
|
874
973
|
if (!Date.now) {
|
@@ -877,155 +976,6 @@ if (!Date.now) {
|
|
877
976
|
};
|
878
977
|
}
|
879
978
|
|
880
|
-
// ES5 15.9.5.44
|
881
|
-
// http://es5.github.com/#x15.9.5.44
|
882
|
-
// This function provides a String representation of a Date object for use by
|
883
|
-
// JSON.stringify (15.12.3).
|
884
|
-
if (!Date.prototype.toJSON) {
|
885
|
-
Date.prototype.toJSON = function toJSON(key) {
|
886
|
-
// When the toJSON method is called with argument key, the following
|
887
|
-
// steps are taken:
|
888
|
-
|
889
|
-
// 1. Let O be the result of calling ToObject, giving it the this
|
890
|
-
// value as its argument.
|
891
|
-
// 2. Let tv be ToPrimitive(O, hint Number).
|
892
|
-
// 3. If tv is a Number and is not finite, return null.
|
893
|
-
// XXX
|
894
|
-
// 4. Let toISO be the result of calling the [[Get]] internal method of
|
895
|
-
// O with argument "toISOString".
|
896
|
-
// 5. If IsCallable(toISO) is false, throw a TypeError exception.
|
897
|
-
if (typeof this.toISOString != "function")
|
898
|
-
throw new TypeError(); // TODO message
|
899
|
-
// 6. Return the result of calling the [[Call]] internal method of
|
900
|
-
// toISO with O as the this value and an empty argument list.
|
901
|
-
return this.toISOString();
|
902
|
-
|
903
|
-
// NOTE 1 The argument is ignored.
|
904
|
-
|
905
|
-
// NOTE 2 The toJSON function is intentionally generic; it does not
|
906
|
-
// require that its this value be a Date object. Therefore, it can be
|
907
|
-
// transferred to other kinds of objects for use as a method. However,
|
908
|
-
// it does require that any such object have a toISOString method. An
|
909
|
-
// object is free to use the argument key to filter its
|
910
|
-
// stringification.
|
911
|
-
};
|
912
|
-
}
|
913
|
-
|
914
|
-
// ES5 15.9.4.2
|
915
|
-
// http://es5.github.com/#x15.9.4.2
|
916
|
-
// based on work shared by Daniel Friesen (dantman)
|
917
|
-
// http://gist.github.com/303249
|
918
|
-
if (Date.parse("+275760-09-13T00:00:00.000Z") !== 8.64e15) {
|
919
|
-
// XXX global assignment won't work in embeddings that use
|
920
|
-
// an alternate object for the context.
|
921
|
-
Date = (function(NativeDate) {
|
922
|
-
|
923
|
-
// Date.length === 7
|
924
|
-
var Date = function Date(Y, M, D, h, m, s, ms) {
|
925
|
-
var length = arguments.length;
|
926
|
-
if (this instanceof NativeDate) {
|
927
|
-
var date = length == 1 && String(Y) === Y ? // isString(Y)
|
928
|
-
// We explicitly pass it through parse:
|
929
|
-
new NativeDate(Date.parse(Y)) :
|
930
|
-
// We have to manually make calls depending on argument
|
931
|
-
// length here
|
932
|
-
length >= 7 ? new NativeDate(Y, M, D, h, m, s, ms) :
|
933
|
-
length >= 6 ? new NativeDate(Y, M, D, h, m, s) :
|
934
|
-
length >= 5 ? new NativeDate(Y, M, D, h, m) :
|
935
|
-
length >= 4 ? new NativeDate(Y, M, D, h) :
|
936
|
-
length >= 3 ? new NativeDate(Y, M, D) :
|
937
|
-
length >= 2 ? new NativeDate(Y, M) :
|
938
|
-
length >= 1 ? new NativeDate(Y) :
|
939
|
-
new NativeDate();
|
940
|
-
// Prevent mixups with unfixed Date object
|
941
|
-
date.constructor = Date;
|
942
|
-
return date;
|
943
|
-
}
|
944
|
-
return NativeDate.apply(this, arguments);
|
945
|
-
};
|
946
|
-
|
947
|
-
// 15.9.1.15 Date Time String Format.
|
948
|
-
var isoDateExpression = new RegExp("^" +
|
949
|
-
"(\\d{4}|[\+\-]\\d{6})" + // four-digit year capture or sign + 6-digit extended year
|
950
|
-
"(?:-(\\d{2})" + // optional month capture
|
951
|
-
"(?:-(\\d{2})" + // optional day capture
|
952
|
-
"(?:" + // capture hours:minutes:seconds.milliseconds
|
953
|
-
"T(\\d{2})" + // hours capture
|
954
|
-
":(\\d{2})" + // minutes capture
|
955
|
-
"(?:" + // optional :seconds.milliseconds
|
956
|
-
":(\\d{2})" + // seconds capture
|
957
|
-
"(?:\\.(\\d{3}))?" + // milliseconds capture
|
958
|
-
")?" +
|
959
|
-
"(?:" + // capture UTC offset component
|
960
|
-
"Z|" + // UTC capture
|
961
|
-
"(?:" + // offset specifier +/-hours:minutes
|
962
|
-
"([-+])" + // sign capture
|
963
|
-
"(\\d{2})" + // hours offset capture
|
964
|
-
":(\\d{2})" + // minutes offset capture
|
965
|
-
")" +
|
966
|
-
")?)?)?)?" +
|
967
|
-
"$");
|
968
|
-
|
969
|
-
// Copy any custom methods a 3rd party library may have added
|
970
|
-
for (var key in NativeDate)
|
971
|
-
Date[key] = NativeDate[key];
|
972
|
-
|
973
|
-
// Copy "native" methods explicitly; they may be non-enumerable
|
974
|
-
Date.now = NativeDate.now;
|
975
|
-
Date.UTC = NativeDate.UTC;
|
976
|
-
Date.prototype = NativeDate.prototype;
|
977
|
-
Date.prototype.constructor = Date;
|
978
|
-
|
979
|
-
// Upgrade Date.parse to handle simplified ISO 8601 strings
|
980
|
-
Date.parse = function parse(string) {
|
981
|
-
var match = isoDateExpression.exec(string);
|
982
|
-
if (match) {
|
983
|
-
match.shift(); // kill match[0], the full match
|
984
|
-
// parse months, days, hours, minutes, seconds, and milliseconds
|
985
|
-
for (var i = 1; i < 7; i++) {
|
986
|
-
// provide default values if necessary
|
987
|
-
match[i] = +(match[i] || (i < 3 ? 1 : 0));
|
988
|
-
// match[1] is the month. Months are 0-11 in JavaScript
|
989
|
-
// `Date` objects, but 1-12 in ISO notation, so we
|
990
|
-
// decrement.
|
991
|
-
if (i == 1)
|
992
|
-
match[i]--;
|
993
|
-
}
|
994
|
-
|
995
|
-
// parse the UTC offset component
|
996
|
-
var minuteOffset = +match.pop(), hourOffset = +match.pop(), sign = match.pop();
|
997
|
-
|
998
|
-
// compute the explicit time zone offset if specified
|
999
|
-
var offset = 0;
|
1000
|
-
if (sign) {
|
1001
|
-
// detect invalid offsets and return early
|
1002
|
-
if (hourOffset > 23 || minuteOffset > 59)
|
1003
|
-
return NaN;
|
1004
|
-
|
1005
|
-
// express the provided time zone offset in minutes. The offset is
|
1006
|
-
// negative for time zones west of UTC; positive otherwise.
|
1007
|
-
offset = (hourOffset * 60 + minuteOffset) * 6e4 * (sign == "+" ? -1 : 1);
|
1008
|
-
}
|
1009
|
-
|
1010
|
-
// Date.UTC for years between 0 and 99 converts year to 1900 + year
|
1011
|
-
// The Gregorian calendar has a 400-year cycle, so
|
1012
|
-
// to Date.UTC(year + 400, .... ) - 12622780800000 == Date.UTC(year, ...),
|
1013
|
-
// where 12622780800000 - number of milliseconds in Gregorian calendar 400 years
|
1014
|
-
var year = +match[0];
|
1015
|
-
if (0 <= year && year <= 99) {
|
1016
|
-
match[0] = year + 400;
|
1017
|
-
return NativeDate.UTC.apply(this, match) + offset - 12622780800000;
|
1018
|
-
}
|
1019
|
-
|
1020
|
-
// compute a new UTC date value, accounting for the optional offset
|
1021
|
-
return NativeDate.UTC.apply(this, match) + offset;
|
1022
|
-
}
|
1023
|
-
return NativeDate.parse.apply(this, arguments);
|
1024
|
-
};
|
1025
|
-
|
1026
|
-
return Date;
|
1027
|
-
})(Date);
|
1028
|
-
}
|
1029
979
|
|
1030
980
|
//
|
1031
981
|
// String
|
@@ -1056,27 +1006,57 @@ if (!String.prototype.trim || ws.trim()) {
|
|
1056
1006
|
// ES5 9.4
|
1057
1007
|
// http://es5.github.com/#x9.4
|
1058
1008
|
// http://jsperf.com/to-integer
|
1059
|
-
|
1009
|
+
|
1010
|
+
function toInteger(n) {
|
1060
1011
|
n = +n;
|
1061
|
-
if (n !== n) // isNaN
|
1012
|
+
if (n !== n) { // isNaN
|
1062
1013
|
n = 0;
|
1063
|
-
else if (n !== 0 && n !== (1/0) && n !== -(1/0))
|
1014
|
+
} else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
|
1064
1015
|
n = (n > 0 || -1) * Math.floor(Math.abs(n));
|
1016
|
+
}
|
1065
1017
|
return n;
|
1066
|
-
}
|
1018
|
+
}
|
1067
1019
|
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1020
|
+
function isPrimitive(input) {
|
1021
|
+
var type = typeof input;
|
1022
|
+
return (
|
1023
|
+
input === null ||
|
1024
|
+
type === "undefined" ||
|
1025
|
+
type === "boolean" ||
|
1026
|
+
type === "number" ||
|
1027
|
+
type === "string"
|
1028
|
+
);
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
function toPrimitive(input) {
|
1032
|
+
var val, valueOf, toString;
|
1033
|
+
if (isPrimitive(input)) {
|
1034
|
+
return input;
|
1035
|
+
}
|
1036
|
+
valueOf = input.valueOf;
|
1037
|
+
if (typeof valueOf === "function") {
|
1038
|
+
val = valueOf.call(input);
|
1039
|
+
if (isPrimitive(val)) {
|
1040
|
+
return val;
|
1074
1041
|
}
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1042
|
+
}
|
1043
|
+
toString = input.toString;
|
1044
|
+
if (typeof toString === "function") {
|
1045
|
+
val = toString.call(input);
|
1046
|
+
if (isPrimitive(val)) {
|
1047
|
+
return val;
|
1079
1048
|
}
|
1080
|
-
|
1081
|
-
|
1049
|
+
}
|
1050
|
+
throw new TypeError();
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
// ES5 9.9
|
1054
|
+
// http://es5.github.com/#x9.9
|
1055
|
+
var toObject = function (o) {
|
1056
|
+
if (o == null) { // this matches both null and undefined
|
1057
|
+
throw new TypeError("can't convert "+o+" to object");
|
1058
|
+
}
|
1059
|
+
return Object(o);
|
1060
|
+
};
|
1061
|
+
|
1082
1062
|
});
|