gollum 2.4.4 → 2.4.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum might be problematic. Click here for more details.
- data/gollum.gemspec +100 -19
- data/lib/gollum.rb +2 -3
- data/lib/gollum/frontend/public/gollum/css/gollum.css +3 -1
- data/lib/gollum/frontend/public/gollum/css/template.css +8 -12
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ace.js +64 -60
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor.js +56 -62
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +56 -63
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +11 -11
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +59 -53
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +46 -39
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +32 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config.js +62 -47
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config_test.js +71 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +82 -41
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document.js +126 -145
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document_test.js +25 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +484 -467
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +30 -63
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +29 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +27 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +47 -55
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +61 -41
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor.js +506 -517
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +28 -38
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +9 -14
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +26 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +44 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +45 -52
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +25 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +230 -165
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +76 -49
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +66 -61
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +36 -43
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +138 -156
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +35 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +18 -18
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +116 -101
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +117 -83
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +60 -71
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +163 -102
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +60 -41
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +26 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +26 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +24 -1
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +52 -54
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +32 -39
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +9 -1
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +73 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +10 -3
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +2 -2
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +55 -58
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/package.json +8 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/test_highlight_rules.js +144 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/text_javascript.txt +52 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c9search.json +175 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_c_cpp.json +124 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_clojure.json +248 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coffee.json +188 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_coldfusion.json +41 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_csharp.json +42 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_css.json +231 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_diff.json +732 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json +185 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_golang.json +362 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_groovy.json +529 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_haxe.json +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_html.json +150 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_java.json +139 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_javascript.json +555 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_json.json +611 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_jsx.json +79 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_latex.json +196 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_less.json +292 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_liquid.json +698 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_lua.json +451 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_luapage.json +824 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_markdown.json +1202 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ocaml.json +260 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_perl.json +311 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_pgsql.json +1020 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_php.json +238 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_powershell.json +255 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json +205 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json +104 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scad.json +267 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scala.json +748 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_scss.json +181 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sh.json +434 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_sql.json +73 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_svg.json +931 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_tcl.json +536 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_text.json +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_textile.json +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xml.json +705 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_xquery.json +64 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_yaml.json +260 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap.js +77 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/abap_highlight_rules.js +133 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc.js +64 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/asciidoc_highlight_rules.js +234 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +195 -55
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +31 -31
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +25 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +67 -60
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +25 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +112 -130
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +29 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +22 -7
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +140 -64
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +479 -237
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +321 -230
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +62 -28
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +39 -20
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +183 -82
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +226 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +7 -21
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +36 -47
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +202 -697
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +51 -84
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +68 -40
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/dart_highlight_rules.js +192 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +25 -31
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +27 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/asciidoc.js +142 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +31 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +30 -51
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +35 -30
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/latex.js +162 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/lua.js +163 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/markdown.js +125 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl.js +52 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/glsl_highlight_rules.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +0 -1
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +15 -22
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +28 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haml_highlight_rules.js +132 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +20 -25
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +11 -15
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +32 -38
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +162 -69
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jade_highlight_rules.js +347 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +18 -29
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +28 -51
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript/jshint.js +4838 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +98 -180
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +163 -64
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +38 -40
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp.js +56 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsp_highlight_rules.js +85 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +3 -2
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +1 -1
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +25 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +25 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +146 -161
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp.js +60 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lisp_highlight_rules.js +127 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +116 -56
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +75 -101
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene.js +16 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules.js +49 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lucene_highlight_rules_test.js +99 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/makefile_highlight_rules.js +75 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +35 -41
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +29 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules_test.js +100 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/objectivec_highlight_rules.js +343 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +39 -53
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +39 -52
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +33 -24
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +55 -51
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +57 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +53 -153
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +31 -21
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +28 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +44 -61
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r.js +135 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/r_highlight_rules.js +190 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc.js +36 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rdoc_highlight_rules.js +99 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml.js +67 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/rhtml_highlight_rules.js +49 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +27 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +102 -90
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +29 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +25 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +32 -54
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +18 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +48 -64
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +28 -18
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +41 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/stylus_highlight_rules.js +175 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl.js +110 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tcl_highlight_rules.js +180 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex.js +48 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/tex_highlight_rules.js +107 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +26 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +57 -46
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript.js +68 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/typescript_highlight_rules.js +98 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +27 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +183 -78
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +30 -38
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +32 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/JSONParseTreeHandler.js +92 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +32954 -42497
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/visitors/SyntaxHighlighter.js +316 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +31 -44
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +48 -57
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +30 -18
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +48 -40
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/model/editor.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +126 -40
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +35 -43
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +78 -39
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +39 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +234 -103
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +26 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +30 -39
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +27 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range.js +190 -201
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +31 -49
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +27 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +52 -55
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search.js +91 -105
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +31 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_test.js +47 -37
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection.js +138 -153
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/split.js +67 -105
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +3 -2
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/assertions.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +30 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.css +217 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/ambiance.js +33 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +37 -38
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +27 -34
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +53 -47
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +54 -48
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +58 -59
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +33 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +52 -64
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +33 -36
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +29 -25
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +14 -21
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +48 -60
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +52 -57
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +53 -71
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +54 -77
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +60 -70
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +55 -72
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +55 -64
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +48 -66
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +49 -61
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +38 -44
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +59 -87
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +59 -87
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +59 -90
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +59 -87
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +57 -85
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +54 -78
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +45 -68
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +28 -35
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.css +111 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/xcode.js +39 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +37 -50
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +26 -33
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +40 -41
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer_dev.js +205 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +48 -55
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +254 -277
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +25 -32
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +22 -4
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +97 -56
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/ace/LICENSE.txt +24 -476
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/licenses.txt +2 -2
- data/lib/gollum/frontend/views/page.rb +3 -2
- metadata +102 -21
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Position.js +0 -59
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/StringLexer.js +0 -1686
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XMLLexer.js +0 -2993
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTLexer.js +0 -69
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTParser.js +0 -63
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryLexer.js +0 -10363
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQuerySemanticHighlighter.js +0 -165
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/antlr3-all.js +0 -6177
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery.js +0 -55
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/definitions.js +0 -696
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/lexer.js +0 -598
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/options.js +0 -61
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/parser.js +0 -2072
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jshint.js +0 -4469
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jslint.js +0 -6396
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
* Copyright (c)
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2009-2012 Jeremy Ashkenas
|
3
3
|
*
|
4
4
|
* Permission is hereby granted, free of charge, to any person
|
5
5
|
* obtaining a copy of this software and associated documentation
|
@@ -24,9 +24,9 @@
|
|
24
24
|
*/
|
25
25
|
|
26
26
|
define(function(require, exports, module) {
|
27
|
-
// Generated by CoffeeScript 1.
|
27
|
+
// Generated by CoffeeScript 1.3.3
|
28
28
|
|
29
|
-
var extend, flatten;
|
29
|
+
var extend, flatten, _ref;
|
30
30
|
|
31
31
|
exports.starts = function(string, literal, start) {
|
32
32
|
return literal === string.substr(start, literal.length);
|
@@ -43,7 +43,9 @@ define(function(require, exports, module) {
|
|
43
43
|
_results = [];
|
44
44
|
for (_i = 0, _len = array.length; _i < _len; _i++) {
|
45
45
|
item = array[_i];
|
46
|
-
if (item)
|
46
|
+
if (item) {
|
47
|
+
_results.push(item);
|
48
|
+
}
|
47
49
|
}
|
48
50
|
return _results;
|
49
51
|
};
|
@@ -51,7 +53,9 @@ define(function(require, exports, module) {
|
|
51
53
|
exports.count = function(string, substr) {
|
52
54
|
var num, pos;
|
53
55
|
num = pos = 0;
|
54
|
-
if (!substr.length)
|
56
|
+
if (!substr.length) {
|
57
|
+
return 1 / 0;
|
58
|
+
}
|
55
59
|
while (pos = 1 + string.indexOf(substr, pos)) {
|
56
60
|
num++;
|
57
61
|
}
|
@@ -96,5 +100,16 @@ define(function(require, exports, module) {
|
|
96
100
|
return array[array.length - (back || 0) - 1];
|
97
101
|
};
|
98
102
|
|
103
|
+
exports.some = (_ref = Array.prototype.some) != null ? _ref : function(fn) {
|
104
|
+
var e, _i, _len;
|
105
|
+
for (_i = 0, _len = this.length; _i < _len; _i++) {
|
106
|
+
e = this[_i];
|
107
|
+
if (fn(e)) {
|
108
|
+
return true;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
return false;
|
112
|
+
};
|
113
|
+
|
99
114
|
|
100
|
-
});
|
115
|
+
});
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
* Copyright (c)
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2009-2012 Jeremy Ashkenas
|
3
3
|
*
|
4
4
|
* Permission is hereby granted, free of charge, to any person
|
5
5
|
* obtaining a copy of this software and associated documentation
|
@@ -24,7 +24,7 @@
|
|
24
24
|
*/
|
25
25
|
|
26
26
|
define(function(require, exports, module) {
|
27
|
-
// Generated by CoffeeScript 1.
|
27
|
+
// Generated by CoffeeScript 1.3.3
|
28
28
|
|
29
29
|
var BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTILINER, MULTI_DENT, NOT_REGEX, NOT_SPACED_REGEX, NUMBER, OPERATOR, REGEX, RELATION, RESERVED, Rewriter, SHIFT, SIMPLESTR, STRICT_PROSCRIBED, TRAILING_SPACES, UNARY, WHITESPACE, compact, count, key, last, starts, _ref, _ref1,
|
30
30
|
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
@@ -35,14 +35,16 @@ define(function(require, exports, module) {
|
|
35
35
|
|
36
36
|
exports.Lexer = Lexer = (function() {
|
37
37
|
|
38
|
-
Lexer.name = 'Lexer';
|
39
|
-
|
40
38
|
function Lexer() {}
|
41
39
|
|
42
40
|
Lexer.prototype.tokenize = function(code, opts) {
|
43
41
|
var i, tag;
|
44
|
-
if (opts == null)
|
45
|
-
|
42
|
+
if (opts == null) {
|
43
|
+
opts = {};
|
44
|
+
}
|
45
|
+
if (WHITESPACE.test(code)) {
|
46
|
+
code = "\n" + code;
|
47
|
+
}
|
46
48
|
code = code.replace(/\r/g, '').replace(TRAILING_SPACES, '');
|
47
49
|
this.code = code;
|
48
50
|
this.line = opts.line || 0;
|
@@ -57,14 +59,20 @@ define(function(require, exports, module) {
|
|
57
59
|
i += this.identifierToken() || this.commentToken() || this.whitespaceToken() || this.lineToken() || this.heredocToken() || this.stringToken() || this.numberToken() || this.regexToken() || this.jsToken() || this.literalToken();
|
58
60
|
}
|
59
61
|
this.closeIndentation();
|
60
|
-
if (tag = this.ends.pop())
|
61
|
-
|
62
|
+
if (tag = this.ends.pop()) {
|
63
|
+
this.error("missing " + tag);
|
64
|
+
}
|
65
|
+
if (opts.rewrite === false) {
|
66
|
+
return this.tokens;
|
67
|
+
}
|
62
68
|
return (new Rewriter).rewrite(this.tokens);
|
63
69
|
};
|
64
70
|
|
65
71
|
Lexer.prototype.identifierToken = function() {
|
66
72
|
var colon, forcedIdentifier, id, input, match, prev, tag, _ref2, _ref3;
|
67
|
-
if (!(match = IDENTIFIER.exec(this.chunk)))
|
73
|
+
if (!(match = IDENTIFIER.exec(this.chunk))) {
|
74
|
+
return 0;
|
75
|
+
}
|
68
76
|
input = match[0], id = match[1], colon = match[2];
|
69
77
|
if (id === 'own' && this.tag() === 'FOR') {
|
70
78
|
this.token('OWN', id);
|
@@ -105,7 +113,9 @@ define(function(require, exports, module) {
|
|
105
113
|
}
|
106
114
|
}
|
107
115
|
if (!forcedIdentifier) {
|
108
|
-
if (__indexOf.call(COFFEE_ALIASES, id) >= 0)
|
116
|
+
if (__indexOf.call(COFFEE_ALIASES, id) >= 0) {
|
117
|
+
id = COFFEE_ALIAS_MAP[id];
|
118
|
+
}
|
109
119
|
tag = (function() {
|
110
120
|
switch (id) {
|
111
121
|
case '!':
|
@@ -118,8 +128,6 @@ define(function(require, exports, module) {
|
|
118
128
|
return 'LOGIC';
|
119
129
|
case 'true':
|
120
130
|
case 'false':
|
121
|
-
case 'null':
|
122
|
-
case 'undefined':
|
123
131
|
return 'BOOL';
|
124
132
|
case 'break':
|
125
133
|
case 'continue':
|
@@ -130,29 +138,33 @@ define(function(require, exports, module) {
|
|
130
138
|
})();
|
131
139
|
}
|
132
140
|
this.token(tag, id);
|
133
|
-
if (colon)
|
141
|
+
if (colon) {
|
142
|
+
this.token(':', ':');
|
143
|
+
}
|
134
144
|
return input.length;
|
135
145
|
};
|
136
146
|
|
137
147
|
Lexer.prototype.numberToken = function() {
|
138
148
|
var binaryLiteral, lexedLength, match, number, octalLiteral;
|
139
|
-
if (!(match = NUMBER.exec(this.chunk)))
|
149
|
+
if (!(match = NUMBER.exec(this.chunk))) {
|
150
|
+
return 0;
|
151
|
+
}
|
140
152
|
number = match[0];
|
141
|
-
if (
|
142
|
-
this.error("exponential notation '" + number + "' must be indicated with a lowercase 'e'");
|
143
|
-
} else if (/[BOX]/.test(number)) {
|
153
|
+
if (/^0[BOX]/.test(number)) {
|
144
154
|
this.error("radix prefix '" + number + "' must be lowercase");
|
145
|
-
} else if (
|
155
|
+
} else if (/E/.test(number) && !/^0x/.test(number)) {
|
156
|
+
this.error("exponential notation '" + number + "' must be indicated with a lowercase 'e'");
|
157
|
+
} else if (/^0\d*[89]/.test(number)) {
|
146
158
|
this.error("decimal literal '" + number + "' must not be prefixed with '0'");
|
147
|
-
} else if (/^0
|
159
|
+
} else if (/^0\d+/.test(number)) {
|
148
160
|
this.error("octal literal '" + number + "' must be prefixed with '0o'");
|
149
161
|
}
|
150
162
|
lexedLength = number.length;
|
151
|
-
if (octalLiteral =
|
152
|
-
number = (parseInt(octalLiteral[1], 8)).toString();
|
163
|
+
if (octalLiteral = /^0o([0-7]+)/.exec(number)) {
|
164
|
+
number = '0x' + (parseInt(octalLiteral[1], 8)).toString(16);
|
153
165
|
}
|
154
|
-
if (binaryLiteral =
|
155
|
-
number = (parseInt(binaryLiteral[1], 2)).toString();
|
166
|
+
if (binaryLiteral = /^0b([01]+)/.exec(number)) {
|
167
|
+
number = '0x' + (parseInt(binaryLiteral[1], 2)).toString(16);
|
156
168
|
}
|
157
169
|
this.token('NUMBER', number);
|
158
170
|
return lexedLength;
|
@@ -162,11 +174,15 @@ define(function(require, exports, module) {
|
|
162
174
|
var match, octalEsc, string;
|
163
175
|
switch (this.chunk.charAt(0)) {
|
164
176
|
case "'":
|
165
|
-
if (!(match = SIMPLESTR.exec(this.chunk)))
|
177
|
+
if (!(match = SIMPLESTR.exec(this.chunk))) {
|
178
|
+
return 0;
|
179
|
+
}
|
166
180
|
this.token('STRING', (string = match[0]).replace(MULTILINER, '\\\n'));
|
167
181
|
break;
|
168
182
|
case '"':
|
169
|
-
if (!(string = this.balancedString(this.chunk, '"')))
|
183
|
+
if (!(string = this.balancedString(this.chunk, '"'))) {
|
184
|
+
return 0;
|
185
|
+
}
|
170
186
|
if (0 < string.indexOf('#{', 1)) {
|
171
187
|
this.interpolateString(string.slice(1, -1));
|
172
188
|
} else {
|
@@ -176,7 +192,7 @@ define(function(require, exports, module) {
|
|
176
192
|
default:
|
177
193
|
return 0;
|
178
194
|
}
|
179
|
-
if (octalEsc = /^(?:\\.|[^\\])*\\[0-7]/.test(string)) {
|
195
|
+
if (octalEsc = /^(?:\\.|[^\\])*\\(?:0[0-7]|[1-7])/.test(string)) {
|
180
196
|
this.error("octal escape sequences " + string + " are not allowed");
|
181
197
|
}
|
182
198
|
this.line += count(string, '\n');
|
@@ -185,7 +201,9 @@ define(function(require, exports, module) {
|
|
185
201
|
|
186
202
|
Lexer.prototype.heredocToken = function() {
|
187
203
|
var doc, heredoc, match, quote;
|
188
|
-
if (!(match = HEREDOC.exec(this.chunk)))
|
204
|
+
if (!(match = HEREDOC.exec(this.chunk))) {
|
205
|
+
return 0;
|
206
|
+
}
|
189
207
|
heredoc = match[0];
|
190
208
|
quote = heredoc.charAt(0);
|
191
209
|
doc = this.sanitizeHeredoc(match[2], {
|
@@ -205,7 +223,9 @@ define(function(require, exports, module) {
|
|
205
223
|
|
206
224
|
Lexer.prototype.commentToken = function() {
|
207
225
|
var comment, here, match;
|
208
|
-
if (!(match = this.chunk.match(COMMENT)))
|
226
|
+
if (!(match = this.chunk.match(COMMENT))) {
|
227
|
+
return 0;
|
228
|
+
}
|
209
229
|
comment = match[0], here = match[1];
|
210
230
|
if (here) {
|
211
231
|
this.token('HERECOMMENT', this.sanitizeHeredoc(here, {
|
@@ -223,12 +243,15 @@ define(function(require, exports, module) {
|
|
223
243
|
return 0;
|
224
244
|
}
|
225
245
|
this.token('JS', (script = match[0]).slice(1, -1));
|
246
|
+
this.line += count(script, '\n');
|
226
247
|
return script.length;
|
227
248
|
};
|
228
249
|
|
229
250
|
Lexer.prototype.regexToken = function() {
|
230
251
|
var flags, length, match, prev, regex, _ref2, _ref3;
|
231
|
-
if (this.chunk.charAt(0) !== '/')
|
252
|
+
if (this.chunk.charAt(0) !== '/') {
|
253
|
+
return 0;
|
254
|
+
}
|
232
255
|
if (match = HEREGEX.exec(this.chunk)) {
|
233
256
|
length = this.heregexToken(match);
|
234
257
|
this.line += count(match[0], '\n');
|
@@ -238,12 +261,16 @@ define(function(require, exports, module) {
|
|
238
261
|
if (prev && (_ref2 = prev[0], __indexOf.call((prev.spaced ? NOT_REGEX : NOT_SPACED_REGEX), _ref2) >= 0)) {
|
239
262
|
return 0;
|
240
263
|
}
|
241
|
-
if (!(match = REGEX.exec(this.chunk)))
|
264
|
+
if (!(match = REGEX.exec(this.chunk))) {
|
265
|
+
return 0;
|
266
|
+
}
|
242
267
|
_ref3 = match, match = _ref3[0], regex = _ref3[1], flags = _ref3[2];
|
243
268
|
if (regex.slice(0, 2) === '/*') {
|
244
269
|
this.error('regular expressions cannot begin with `*`');
|
245
270
|
}
|
246
|
-
if (regex === '//')
|
271
|
+
if (regex === '//') {
|
272
|
+
regex = '/(?:)/';
|
273
|
+
}
|
247
274
|
this.token('REGEX', "" + regex + flags);
|
248
275
|
return match.length;
|
249
276
|
};
|
@@ -270,7 +297,9 @@ define(function(require, exports, module) {
|
|
270
297
|
if (tag === 'TOKENS') {
|
271
298
|
tokens.push.apply(tokens, value);
|
272
299
|
} else {
|
273
|
-
if (!(value = value.replace(HEREGEX_OMIT, '')))
|
300
|
+
if (!(value = value.replace(HEREGEX_OMIT, ''))) {
|
301
|
+
continue;
|
302
|
+
}
|
274
303
|
value = value.replace(/\\/g, '\\\\');
|
275
304
|
tokens.push(['STRING', this.makeString(value, '"', true)]);
|
276
305
|
}
|
@@ -281,18 +310,21 @@ define(function(require, exports, module) {
|
|
281
310
|
this.tokens.push(['STRING', '""'], ['+', '+']);
|
282
311
|
}
|
283
312
|
(_ref5 = this.tokens).push.apply(_ref5, tokens);
|
284
|
-
if (flags)
|
313
|
+
if (flags) {
|
314
|
+
this.tokens.push([',', ','], ['STRING', '"' + flags + '"']);
|
315
|
+
}
|
285
316
|
this.token(')', ')');
|
286
317
|
return heregex.length;
|
287
318
|
};
|
288
319
|
|
289
320
|
Lexer.prototype.lineToken = function() {
|
290
|
-
var diff, indent, match, noNewlines,
|
291
|
-
if (!(match = MULTI_DENT.exec(this.chunk)))
|
321
|
+
var diff, indent, match, noNewlines, size;
|
322
|
+
if (!(match = MULTI_DENT.exec(this.chunk))) {
|
323
|
+
return 0;
|
324
|
+
}
|
292
325
|
indent = match[0];
|
293
326
|
this.line += count(indent, '\n');
|
294
327
|
this.seenFor = false;
|
295
|
-
prev = last(this.tokens, 1);
|
296
328
|
size = indent.length - 1 - indent.lastIndexOf('\n');
|
297
329
|
noNewlines = this.unfinished();
|
298
330
|
if (size - this.indebt === this.indent) {
|
@@ -342,7 +374,9 @@ define(function(require, exports, module) {
|
|
342
374
|
this.token('OUTDENT', dent);
|
343
375
|
}
|
344
376
|
}
|
345
|
-
if (dent)
|
377
|
+
if (dent) {
|
378
|
+
this.outdebt -= moveOut;
|
379
|
+
}
|
346
380
|
while (this.value() === ';') {
|
347
381
|
this.tokens.pop();
|
348
382
|
}
|
@@ -358,7 +392,9 @@ define(function(require, exports, module) {
|
|
358
392
|
return 0;
|
359
393
|
}
|
360
394
|
prev = last(this.tokens);
|
361
|
-
if (prev)
|
395
|
+
if (prev) {
|
396
|
+
prev[match ? 'spaced' : 'newLine'] = true;
|
397
|
+
}
|
362
398
|
if (match) {
|
363
399
|
return match[0].length;
|
364
400
|
} else {
|
@@ -370,12 +406,16 @@ define(function(require, exports, module) {
|
|
370
406
|
while (this.value() === ';') {
|
371
407
|
this.tokens.pop();
|
372
408
|
}
|
373
|
-
if (this.tag() !== 'TERMINATOR')
|
409
|
+
if (this.tag() !== 'TERMINATOR') {
|
410
|
+
this.token('TERMINATOR', '\n');
|
411
|
+
}
|
374
412
|
return this;
|
375
413
|
};
|
376
414
|
|
377
415
|
Lexer.prototype.suppressNewlines = function() {
|
378
|
-
if (this.value() === '\\')
|
416
|
+
if (this.value() === '\\') {
|
417
|
+
this.tokens.pop();
|
418
|
+
}
|
379
419
|
return this;
|
380
420
|
};
|
381
421
|
|
@@ -383,7 +423,9 @@ define(function(require, exports, module) {
|
|
383
423
|
var match, prev, tag, value, _ref2, _ref3, _ref4, _ref5;
|
384
424
|
if (match = OPERATOR.exec(this.chunk)) {
|
385
425
|
value = match[0];
|
386
|
-
if (CODE.test(value))
|
426
|
+
if (CODE.test(value)) {
|
427
|
+
this.tagParameters();
|
428
|
+
}
|
387
429
|
} else {
|
388
430
|
value = this.chunk.charAt(0);
|
389
431
|
}
|
@@ -416,7 +458,9 @@ define(function(require, exports, module) {
|
|
416
458
|
tag = 'LOGIC';
|
417
459
|
} else if (prev && !prev.spaced) {
|
418
460
|
if (value === '(' && (_ref4 = prev[0], __indexOf.call(CALLABLE, _ref4) >= 0)) {
|
419
|
-
if (prev[0] === '?')
|
461
|
+
if (prev[0] === '?') {
|
462
|
+
prev[0] = 'FUNC_EXIST';
|
463
|
+
}
|
420
464
|
tag = 'CALL_START';
|
421
465
|
} else if (value === '[' && (_ref5 = prev[0], __indexOf.call(INDEXABLE, _ref5) >= 0)) {
|
422
466
|
tag = 'INDEX_START';
|
@@ -448,7 +492,9 @@ define(function(require, exports, module) {
|
|
448
492
|
if (HEREDOC_ILLEGAL.test(doc)) {
|
449
493
|
this.error("block comment cannot contain \"*/\", starting");
|
450
494
|
}
|
451
|
-
if (doc.indexOf('\n') <= 0)
|
495
|
+
if (doc.indexOf('\n') <= 0) {
|
496
|
+
return doc;
|
497
|
+
}
|
452
498
|
} else {
|
453
499
|
while (match = HEREDOC_INDENT.exec(doc)) {
|
454
500
|
attempt = match[1];
|
@@ -457,14 +503,20 @@ define(function(require, exports, module) {
|
|
457
503
|
}
|
458
504
|
}
|
459
505
|
}
|
460
|
-
if (indent)
|
461
|
-
|
506
|
+
if (indent) {
|
507
|
+
doc = doc.replace(RegExp("\\n" + indent, "g"), '\n');
|
508
|
+
}
|
509
|
+
if (!herecomment) {
|
510
|
+
doc = doc.replace(/^\n/, '');
|
511
|
+
}
|
462
512
|
return doc;
|
463
513
|
};
|
464
514
|
|
465
515
|
Lexer.prototype.tagParameters = function() {
|
466
516
|
var i, stack, tok, tokens;
|
467
|
-
if (this.tag() !== ')')
|
517
|
+
if (this.tag() !== ')') {
|
518
|
+
return this;
|
519
|
+
}
|
468
520
|
stack = [];
|
469
521
|
tokens = this.tokens;
|
470
522
|
i = tokens.length;
|
@@ -508,7 +560,9 @@ define(function(require, exports, module) {
|
|
508
560
|
continue;
|
509
561
|
case end:
|
510
562
|
stack.pop();
|
511
|
-
if (!stack.length)
|
563
|
+
if (!stack.length) {
|
564
|
+
return str.slice(0, +i + 1 || 9e9);
|
565
|
+
}
|
512
566
|
end = stack[stack.length - 1];
|
513
567
|
continue;
|
514
568
|
}
|
@@ -528,7 +582,9 @@ define(function(require, exports, module) {
|
|
528
582
|
|
529
583
|
Lexer.prototype.interpolateString = function(str, options) {
|
530
584
|
var expr, heredoc, i, inner, interpolated, len, letter, nested, pi, regex, tag, tokens, value, _i, _len, _ref2, _ref3, _ref4;
|
531
|
-
if (options == null)
|
585
|
+
if (options == null) {
|
586
|
+
options = {};
|
587
|
+
}
|
532
588
|
heredoc = options.heredoc, regex = options.regex;
|
533
589
|
tokens = [];
|
534
590
|
pi = 0;
|
@@ -541,7 +597,9 @@ define(function(require, exports, module) {
|
|
541
597
|
if (!(letter === '#' && str.charAt(i + 1) === '{' && (expr = this.balancedString(str.slice(i + 1), '}')))) {
|
542
598
|
continue;
|
543
599
|
}
|
544
|
-
if (pi < i)
|
600
|
+
if (pi < i) {
|
601
|
+
tokens.push(['NEOSTRING', str.slice(pi, i)]);
|
602
|
+
}
|
545
603
|
inner = expr.slice(1, -1);
|
546
604
|
if (inner.length) {
|
547
605
|
nested = new Lexer().tokenize(inner, {
|
@@ -563,28 +621,44 @@ define(function(require, exports, module) {
|
|
563
621
|
i += expr.length;
|
564
622
|
pi = i + 1;
|
565
623
|
}
|
566
|
-
if ((i > pi && pi < str.length))
|
567
|
-
|
568
|
-
|
569
|
-
if (
|
570
|
-
|
624
|
+
if ((i > pi && pi < str.length)) {
|
625
|
+
tokens.push(['NEOSTRING', str.slice(pi)]);
|
626
|
+
}
|
627
|
+
if (regex) {
|
628
|
+
return tokens;
|
629
|
+
}
|
630
|
+
if (!tokens.length) {
|
631
|
+
return this.token('STRING', '""');
|
632
|
+
}
|
633
|
+
if (tokens[0][0] !== 'NEOSTRING') {
|
634
|
+
tokens.unshift(['', '']);
|
635
|
+
}
|
636
|
+
if (interpolated = tokens.length > 1) {
|
637
|
+
this.token('(', '(');
|
638
|
+
}
|
571
639
|
for (i = _i = 0, _len = tokens.length; _i < _len; i = ++_i) {
|
572
640
|
_ref3 = tokens[i], tag = _ref3[0], value = _ref3[1];
|
573
|
-
if (i)
|
641
|
+
if (i) {
|
642
|
+
this.token('+', '+');
|
643
|
+
}
|
574
644
|
if (tag === 'TOKENS') {
|
575
645
|
(_ref4 = this.tokens).push.apply(_ref4, value);
|
576
646
|
} else {
|
577
647
|
this.token('STRING', this.makeString(value, '"', heredoc));
|
578
648
|
}
|
579
649
|
}
|
580
|
-
if (interpolated)
|
650
|
+
if (interpolated) {
|
651
|
+
this.token(')', ')');
|
652
|
+
}
|
581
653
|
return tokens;
|
582
654
|
};
|
583
655
|
|
584
656
|
Lexer.prototype.pair = function(tag) {
|
585
657
|
var size, wanted;
|
586
658
|
if (tag !== (wanted = last(this.ends))) {
|
587
|
-
if ('OUTDENT' !== wanted)
|
659
|
+
if ('OUTDENT' !== wanted) {
|
660
|
+
this.error("unmatched " + tag);
|
661
|
+
}
|
588
662
|
this.indent -= size = last(this.indents);
|
589
663
|
this.outdentToken(size, true);
|
590
664
|
return this.pair(tag);
|
@@ -616,7 +690,9 @@ define(function(require, exports, module) {
|
|
616
690
|
};
|
617
691
|
|
618
692
|
Lexer.prototype.makeString = function(body, quote, heredoc) {
|
619
|
-
if (!body)
|
693
|
+
if (!body) {
|
694
|
+
return quote + quote;
|
695
|
+
}
|
620
696
|
body = body.replace(/\\([\s\S])/g, function(match, contents) {
|
621
697
|
if (contents === '\n' || contents === quote) {
|
622
698
|
return contents;
|
@@ -663,7 +739,7 @@ define(function(require, exports, module) {
|
|
663
739
|
|
664
740
|
COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat(COFFEE_ALIASES);
|
665
741
|
|
666
|
-
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', '
|
742
|
+
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf', 'implements', 'interface', 'package', 'private', 'protected', 'public', 'static', 'yield'];
|
667
743
|
|
668
744
|
STRICT_PROSCRIBED = ['arguments', 'eval'];
|
669
745
|
|
@@ -723,17 +799,17 @@ define(function(require, exports, module) {
|
|
723
799
|
|
724
800
|
RELATION = ['IN', 'OF', 'INSTANCEOF'];
|
725
801
|
|
726
|
-
BOOL = ['TRUE', 'FALSE'
|
802
|
+
BOOL = ['TRUE', 'FALSE'];
|
727
803
|
|
728
|
-
NOT_REGEX = ['NUMBER', 'REGEX', 'BOOL', '++', '--', ']'];
|
804
|
+
NOT_REGEX = ['NUMBER', 'REGEX', 'BOOL', 'NULL', 'UNDEFINED', '++', '--', ']'];
|
729
805
|
|
730
806
|
NOT_SPACED_REGEX = NOT_REGEX.concat(')', '}', 'THIS', 'IDENTIFIER', 'STRING');
|
731
807
|
|
732
808
|
CALLABLE = ['IDENTIFIER', 'STRING', 'REGEX', ')', ']', '}', '?', '::', '@', 'THIS', 'SUPER'];
|
733
809
|
|
734
|
-
INDEXABLE = CALLABLE.concat('NUMBER', 'BOOL');
|
810
|
+
INDEXABLE = CALLABLE.concat('NUMBER', 'BOOL', 'NULL', 'UNDEFINED');
|
735
811
|
|
736
812
|
LINE_BREAK = ['INDENT', 'OUTDENT', 'TERMINATOR'];
|
737
813
|
|
738
814
|
|
739
|
-
});
|
815
|
+
});
|