gollum 2.0.0 → 2.1.0
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/README.md +44 -7
- data/Rakefile +1 -1
- data/bin/gollum +20 -1
- data/gollum.gemspec +400 -5
- data/lib/gollum.rb +2 -1
- data/lib/gollum/blob_entry.rb +13 -1
- data/lib/gollum/committer.rb +10 -1
- data/lib/gollum/file.rb +15 -2
- data/lib/gollum/file_view.rb +145 -0
- data/lib/gollum/frontend/app.rb +217 -69
- data/lib/gollum/frontend/helpers.rb +21 -0
- data/lib/gollum/frontend/public/gollum/css/_styles.css +121 -0
- data/lib/gollum/frontend/public/gollum/css/editor.css +17 -8
- data/lib/gollum/frontend/public/gollum/css/gollum.css +440 -402
- data/lib/gollum/frontend/public/gollum/css/template.css +540 -289
- data/lib/gollum/frontend/public/gollum/images/dirty-shade.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/fileview/document.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/fileview/folder-horizontal.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/fileview/toggle-small-expand.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/fileview/toggle-small.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/para.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/pin-16.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/pin-20.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/pin-24.png +0 -0
- data/lib/gollum/frontend/public/gollum/images/pin-32.png +0 -0
- data/lib/gollum/frontend/public/gollum/javascript/editor/gollum.editor.js +31 -7
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/asciidoc.js +2 -1
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/creole.js +2 -1
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/markdown.js +18 -6
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/org.js +2 -1
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/pod.js +2 -1
- data/lib/gollum/frontend/public/gollum/javascript/editor/langs/textile.js +2 -1
- data/lib/gollum/frontend/public/gollum/javascript/gollum.dialog.js +3 -0
- data/lib/gollum/frontend/public/gollum/javascript/gollum.js +78 -16
- data/lib/gollum/frontend/public/gollum/javascript/jquery-1.7.2.min.js +4 -0
- data/lib/gollum/frontend/public/gollum/javascript/mousetrap.min.js +8 -0
- data/lib/gollum/frontend/public/gollum/livepreview/css/custom.css +107 -0
- data/lib/gollum/frontend/public/gollum/livepreview/images/cancel_24.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/images/lr_24.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/images/save_24.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/images/savecomment_24.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/index.html +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ace.js +103 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor.js +254 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +184 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +261 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +92 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +121 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +193 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +460 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +101 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config.js +124 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/codefolding-fold-button-states.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +327 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/expand-marker.png +0 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document.js +617 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document_test.js +314 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +2419 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +252 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +116 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +276 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +759 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +981 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor.js +2163 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +231 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +171 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +562 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static.css +22 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +98 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +536 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +367 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +170 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +143 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +257 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +315 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +122 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +556 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +101 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +611 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +193 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +134 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +49 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +202 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +187 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +214 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +595 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +106 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +105 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +292 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +1059 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +317 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +121 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +72 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/fixoldbrowsers.js +19 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +129 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +62 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +61 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +113 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +105 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +98 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +225 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +98 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +113 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +68 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +74 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +66 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +132 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +180 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +121 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +235 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +121 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +63 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +100 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +739 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +2756 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +603 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +68 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +342 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +154 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +227 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +72 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +92 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +71 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +135 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +74 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +104 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +110 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +9014 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +242 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +99 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +85 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +66 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +75 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +108 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +93 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +83 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +127 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +108 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +95 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +92 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +76 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +115 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +86 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +169 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +88 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +65 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +105 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +262 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +117 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +129 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy.js +24 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +183 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +104 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +83 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +159 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +93 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +74 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java.js +25 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +144 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +471 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +225 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +165 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +88 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +99 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +100 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json/json_parse.js +346 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +111 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +103 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +108 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsx.js +53 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsx_highlight_rules.js +122 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +57 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +38 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +87 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +279 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +116 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +220 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +91 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +87 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +436 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/luapage.js +22 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/luapage_highlight_rules.js +42 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +81 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +103 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +355 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +117 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +168 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +78 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +583 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +119 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +1165 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +138 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +147 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +182 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +86 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +116 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +194 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +116 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +132 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +168 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala.js +25 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +179 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +86 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +304 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +144 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +145 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +70 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +89 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +78 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +71 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +159 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +109 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +71 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +73 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +100 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +65 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +109 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +103 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +82 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +120 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +202 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Position.js +59 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Readme.md +6 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/StringLexer.js +1686 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XMLLexer.js +2993 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTLexer.js +69 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTParser.js +63 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryLexer.js +10363 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +42525 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQuerySemanticHighlighter.js +165 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/antlr3-all.js +6177 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery.js +55 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +158 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +86 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +64 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +116 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/model/editor.js +70 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +73 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +354 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +105 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +71 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +140 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +158 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +163 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +762 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +171 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/definitions.js +696 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/lexer.js +598 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/options.js +61 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/parser.js +2072 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +278 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range.js +581 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list.js +230 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +170 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_test.js +198 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +93 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +142 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search.js +398 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +87 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_test.js +451 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection.js +886 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +472 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/split.js +411 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all.js +42 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +136 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/assertions.js +63 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js +313 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/async.js +529 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/index.js +13 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/test.js +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/utils.js +65 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +85 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockdom.js +10 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +204 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/tests.html +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +159 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +118 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +119 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +145 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +151 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +149 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +182 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +45 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +102 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +48 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +133 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +137 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +140 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +140 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +146 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +148 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +145 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +150 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +131 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +130 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +165 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +47 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +164 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +160 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +162 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +141 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +46 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +162 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +219 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +195 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +142 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/unicode.js +107 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +1402 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +93 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jshint.js +4469 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jslint.js +6396 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/mirror.js +43 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +138 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +176 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_sourcemint.js +73 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/jquery.ba-throttle-debounce.min.js +2 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +456 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/md_sundown.js +22 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/requirejs.min.js +35 -0
- data/lib/gollum/frontend/public/gollum/livepreview/js/sundown.js +1 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/ace/LICENSE.txt +476 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/bootstraponline_gollum/LICENSE.txt +9 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/debounce/LICENSE-MIT.txt +22 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/gollum/LICENSE.txt +21 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/jquery/MIT-LICENSE.txt +20 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/licenses.txt +59 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/notepages/LICENSE.txt +19 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/requirejs/LICENSE.txt +58 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/retina_display_icon_set/by_sa_3.0_unported_legalcode.txt +359 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/sizzle/LICENSE.txt +148 -0
- data/lib/gollum/frontend/public/gollum/livepreview/licenses/sundown/sundown.txt +4 -0
- data/lib/gollum/frontend/public/gollum/livepreview/readme.md +44 -0
- data/lib/gollum/frontend/templates/compare.mustache +9 -9
- data/lib/gollum/frontend/templates/create.mustache +4 -1
- data/lib/gollum/frontend/templates/edit.mustache +6 -3
- data/lib/gollum/frontend/templates/editor.mustache +30 -14
- data/lib/gollum/frontend/templates/file_view.mustache +32 -0
- data/lib/gollum/frontend/templates/history.mustache +8 -8
- data/lib/gollum/frontend/templates/layout.mustache +21 -14
- data/lib/gollum/frontend/templates/page.mustache +37 -14
- data/lib/gollum/frontend/templates/pages.mustache +14 -10
- data/lib/gollum/frontend/templates/search.mustache +2 -2
- data/lib/gollum/frontend/templates/searchbar.mustache +1 -1
- data/lib/gollum/frontend/uri_encode_component.rb +172 -0
- data/lib/gollum/frontend/views/compare.rb +2 -4
- data/lib/gollum/frontend/views/create.rb +5 -0
- data/lib/gollum/frontend/views/edit.rb +12 -0
- data/lib/gollum/frontend/views/file_view.rb +19 -0
- data/lib/gollum/frontend/views/has_page.rb +15 -0
- data/lib/gollum/frontend/views/history.rb +8 -4
- data/lib/gollum/frontend/views/layout.rb +9 -1
- data/lib/gollum/frontend/views/page.rb +37 -10
- data/lib/gollum/frontend/views/pages.rb +48 -0
- data/lib/gollum/git_access.rb +2 -2
- data/lib/gollum/markup.rb +115 -19
- data/lib/gollum/page.rb +79 -9
- data/lib/gollum/tex.rb +319 -42
- data/lib/gollum/wiki.rb +92 -12
- data/licenses/css_tree_menu_thecssninja/license.txt +50 -0
- data/licenses/licenses.txt +23 -0
- data/licenses/unity_asset_pool/COPYRIGHT +286 -0
- data/test/examples/lotr.git/config +1 -1
- data/test/examples/lotr.git/logs/HEAD +4 -0
- data/test/examples/lotr.git/logs/refs/heads/master +4 -0
- data/test/examples/lotr.git/objects/0d/c9016ca928c78d5421a99a53b379b53929221e +0 -0
- data/test/examples/lotr.git/objects/1c/79ddc69707f7b164bc2ea58beb5d8965ff6bd0 +0 -0
- data/test/examples/lotr.git/objects/27/680b0fce1abfbc528e7aa53d92645852d52eb6 +0 -0
- data/test/examples/lotr.git/objects/45/3b250f979c7bd6dfb62640c944c982ae6721ee +0 -0
- data/test/examples/lotr.git/objects/45/f319ee12f2b551b901b22e72602963c366fff1 +0 -0
- data/test/examples/lotr.git/objects/46/a697caf435815bb07bbce947fc2d58be15f087 +0 -0
- data/test/examples/lotr.git/objects/4c/45c2b4e297a726c3d3f66886f35373e48fe1c5 +2 -0
- data/test/examples/lotr.git/objects/4e/023f460ce466e154ca09d8774c79ad5a53fc15 +0 -0
- data/test/examples/lotr.git/objects/62/9aa678272b017a4d136d35e77ac94d80b08dc2 +1 -0
- data/test/examples/lotr.git/objects/6e/48abfc56565574859e081ee58eae655d48cf71 +0 -0
- data/test/examples/lotr.git/objects/7b/60c5a20a501a70f2317fa0ef763e1e2ce22d6b +0 -0
- data/test/examples/lotr.git/objects/7d/981cd984ad589e3cf00d8122170c6f7d685979 +0 -0
- data/test/examples/lotr.git/objects/94/9a9cc3119b9c98817f375e976d2bb5e2a42809 +0 -0
- data/test/examples/lotr.git/objects/9b/e95b960ac388d4e7db55f610f828e9c31344e6 +0 -0
- data/test/examples/lotr.git/objects/b0/de6e794dfdc7ef3400e894225bfe23308aae5c +0 -0
- data/test/examples/lotr.git/objects/b1/6b3d9fad9d78e5a669e7f33d94c96da374eccd +0 -0
- data/test/examples/lotr.git/objects/c9/6a7645db5d4c76389e77cd103ef3ed77d81e4c +0 -0
- data/test/examples/lotr.git/objects/ca/7355dc497e9729fbaf0c0e3f424b86afef5614 +0 -0
- data/test/examples/lotr.git/objects/cf/ea406f5f77afc7fb673a43e97721234385b1bd +2 -0
- data/test/examples/lotr.git/objects/d5/29304506d37f544675244c335d85cab5d29966 +0 -0
- data/test/examples/lotr.git/objects/fb/c5dd7d807707b4a0a97c1182fecfef1eced5df +1 -0
- data/test/examples/lotr.git/objects/fc/3eee516ff72dc9099ba00d4611eb02e5c9e634 +0 -0
- data/test/examples/lotr.git/objects/ff/6f7de62644369380ba73b4e4297c1a2d6f0b66 +0 -0
- data/test/examples/lotr.git/refs/heads/master +1 -1
- data/test/examples/revert.git/COMMIT_EDITMSG +1 -1
- data/test/examples/revert.git/index +0 -0
- data/test/examples/revert.git/logs/HEAD +1 -0
- data/test/examples/revert.git/logs/refs/heads/master +1 -0
- data/test/examples/revert.git/objects/10/2685c42018f802557f05db171f44443e8dacab +0 -0
- data/test/examples/revert.git/objects/8e/83f898e5e16ae400db59dda1017acad540f3aa +0 -0
- data/test/examples/revert.git/objects/ed/6c9f63b98acf73c25b5ffbb38da557d3682023 +3 -0
- data/test/examples/revert.git/refs/heads/master +1 -1
- data/test/file_view/1_file.txt +3 -0
- data/test/file_view/1_file_1_folder.txt +8 -0
- data/test/file_view/1_folder.txt +8 -0
- data/test/file_view/2_files_2_folders.txt +12 -0
- data/test/file_view/2_files_2_folders_1_root.txt +13 -0
- data/test/file_view/nested_folders.txt +28 -0
- data/test/test_app.rb +162 -12
- data/test/test_app_helpers.rb +13 -0
- data/test/test_committer.rb +1 -1
- data/test/test_file_view.rb +102 -0
- data/test/test_git_access.rb +3 -2
- data/test/test_markup.rb +45 -12
- data/test/test_page.rb +65 -1
- data/test/test_page_revert.rb +14 -2
- data/test/test_pages_view.rb +37 -0
- data/test/test_unicode.rb +110 -0
- data/test/test_wiki.rb +51 -4
- metadata +658 -239
- data/lib/gollum/frontend/public/gollum/javascript/jquery.js +0 -7179
@@ -0,0 +1,202 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
5
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
6
|
+
* the License. You may obtain a copy of the License at
|
7
|
+
* http://www.mozilla.org/MPL/
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
10
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11
|
+
* for the specific language governing rights and limitations under the
|
12
|
+
* License.
|
13
|
+
*
|
14
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
15
|
+
*
|
16
|
+
* The Initial Developer of the Original Code is
|
17
|
+
* Ajax.org B.V.
|
18
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
19
|
+
* the Initial Developer. All Rights Reserved.
|
20
|
+
*
|
21
|
+
* Contributor(s):
|
22
|
+
* Wolfgang Meier
|
23
|
+
* William Candillon <wcandillon AT gmail DOT com>
|
24
|
+
*
|
25
|
+
* Alternatively, the contents of this file may be used under the terms of
|
26
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
27
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
28
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
29
|
+
* of those above. If you wish to allow use of your version of this file only
|
30
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
31
|
+
* use your version of this file under the terms of the MPL, indicate your
|
32
|
+
* decision by deleting the provisions above and replace them with the notice
|
33
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
34
|
+
* the provisions above, a recipient may use your version of this file under
|
35
|
+
* the terms of any one of the MPL, the GPL or the LGPL.
|
36
|
+
*
|
37
|
+
* ***** END LICENSE BLOCK ***** */
|
38
|
+
define(function(require, exports, module) {
|
39
|
+
"use strict";
|
40
|
+
|
41
|
+
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
42
|
+
var oop = require("../lib/oop");
|
43
|
+
var TextMode = require("./text").Mode;
|
44
|
+
var Tokenizer = require("../tokenizer").Tokenizer;
|
45
|
+
var XQueryHighlightRules = require("./xquery_highlight_rules").XQueryHighlightRules;
|
46
|
+
var XQueryBehaviour = require("./behaviour/xquery").XQueryBehaviour;
|
47
|
+
//var XQueryBackgroundHighlighter = require("./xquery_background_highlighter").XQueryBackgroundHighlighter;
|
48
|
+
var Range = require("../range").Range;
|
49
|
+
|
50
|
+
var Mode = function(parent) {
|
51
|
+
this.$tokenizer = new Tokenizer(new XQueryHighlightRules().getRules());
|
52
|
+
this.$behaviour = new XQueryBehaviour(parent);
|
53
|
+
};
|
54
|
+
|
55
|
+
oop.inherits(Mode, TextMode);
|
56
|
+
|
57
|
+
(function() {
|
58
|
+
|
59
|
+
this.getNextLineIndent = function(state, line, tab) {
|
60
|
+
var indent = this.$getIndent(line);
|
61
|
+
var match = line.match(/\s*(?:then|else|return|[{\(]|<\w+>)\s*$/);
|
62
|
+
if (match)
|
63
|
+
indent += tab;
|
64
|
+
return indent;
|
65
|
+
};
|
66
|
+
|
67
|
+
this.checkOutdent = function(state, line, input) {
|
68
|
+
if (! /^\s+$/.test(line))
|
69
|
+
return false;
|
70
|
+
|
71
|
+
return /^\s*[\}\)]/.test(input);
|
72
|
+
};
|
73
|
+
|
74
|
+
this.autoOutdent = function(state, doc, row) {
|
75
|
+
var line = doc.getLine(row);
|
76
|
+
var match = line.match(/^(\s*[\}\)])/);
|
77
|
+
|
78
|
+
if (!match) return 0;
|
79
|
+
|
80
|
+
var column = match[1].length;
|
81
|
+
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
82
|
+
|
83
|
+
if (!openBracePos || openBracePos.row == row) return 0;
|
84
|
+
|
85
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
86
|
+
doc.replace(new Range(row, 0, row, column-1), indent);
|
87
|
+
};
|
88
|
+
|
89
|
+
this.$getIndent = function(line) {
|
90
|
+
var match = line.match(/^(\s+)/);
|
91
|
+
if (match) {
|
92
|
+
return match[1];
|
93
|
+
}
|
94
|
+
|
95
|
+
return "";
|
96
|
+
};
|
97
|
+
|
98
|
+
this.toggleCommentLines = function(state, doc, startRow, endRow) {
|
99
|
+
var i, line;
|
100
|
+
var outdent = true;
|
101
|
+
var re = /^\s*\(:(.*):\)/;
|
102
|
+
|
103
|
+
for (i=startRow; i<= endRow; i++) {
|
104
|
+
if (!re.test(doc.getLine(i))) {
|
105
|
+
outdent = false;
|
106
|
+
break;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
var range = new Range(0, 0, 0, 0);
|
111
|
+
for (i=startRow; i<= endRow; i++) {
|
112
|
+
line = doc.getLine(i);
|
113
|
+
range.start.row = i;
|
114
|
+
range.end.row = i;
|
115
|
+
range.end.column = line.length;
|
116
|
+
|
117
|
+
doc.replace(range, outdent ? line.match(re)[1] : "(:" + line + ":)");
|
118
|
+
}
|
119
|
+
};
|
120
|
+
|
121
|
+
this.createWorker = function(session) {
|
122
|
+
this.$deltas = [];
|
123
|
+
var worker = new WorkerClient(["ace"], "worker-xquery.js", "ace/mode/xquery_worker", "XQueryWorker");
|
124
|
+
var that = this;
|
125
|
+
|
126
|
+
session.getDocument().on('change', function(evt){
|
127
|
+
that.$deltas.push(evt.data);
|
128
|
+
});
|
129
|
+
|
130
|
+
worker.attachToDocument(session.getDocument());
|
131
|
+
|
132
|
+
worker.on("start", function(e) {
|
133
|
+
//console.log("start");
|
134
|
+
that.$deltas = [];
|
135
|
+
});
|
136
|
+
|
137
|
+
worker.on("error", function(e) {
|
138
|
+
session.setAnnotations([e.data]);
|
139
|
+
});
|
140
|
+
|
141
|
+
worker.on("ok", function(e) {
|
142
|
+
session.clearAnnotations();
|
143
|
+
});
|
144
|
+
|
145
|
+
worker.on("highlight", function(tokens) {
|
146
|
+
var firstRow = 0;
|
147
|
+
var lastRow = session.getLength() - 1;
|
148
|
+
|
149
|
+
var lines = tokens.data.lines;
|
150
|
+
var states = tokens.data.states;
|
151
|
+
|
152
|
+
for(var i=0; i < that.$deltas.length; i++)
|
153
|
+
{
|
154
|
+
var delta = that.$deltas[i];
|
155
|
+
|
156
|
+
if (delta.action === "insertLines")
|
157
|
+
{
|
158
|
+
var newLineCount = delta.lines.length;
|
159
|
+
for (var i = 0; i < newLineCount; i++) {
|
160
|
+
lines.splice(delta.range.start.row + i, 0, undefined);
|
161
|
+
states.splice(delta.range.start.row + i, 0, undefined);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
else if (delta.action === "insertText")
|
165
|
+
{
|
166
|
+
if (session.getDocument().isNewLine(delta.text))
|
167
|
+
{
|
168
|
+
lines.splice(delta.range.end.row, 0, undefined);
|
169
|
+
states.splice(delta.range.end.row, 0, undefined);
|
170
|
+
} else {
|
171
|
+
lines[delta.range.start.row] = undefined;
|
172
|
+
states[delta.range.start.row] = undefined;
|
173
|
+
}
|
174
|
+
} else if (delta.action === "removeLines") {
|
175
|
+
var oldLineCount = delta.lines.length;
|
176
|
+
lines.splice(delta.range.start.row, oldLineCount);
|
177
|
+
states.splice(delta.range.start.row, oldLineCount);
|
178
|
+
} else if (delta.action === "removeText") {
|
179
|
+
if (session.getDocument().isNewLine(delta.text))
|
180
|
+
{
|
181
|
+
lines[delta.range.start.row] = undefined;
|
182
|
+
lines.splice(delta.range.end.row, 1);
|
183
|
+
states[delta.range.start.row] = undefined;
|
184
|
+
states.splice(delta.range.end.row, 1);
|
185
|
+
} else {
|
186
|
+
lines[delta.range.start.row] = undefined;
|
187
|
+
states[delta.range.start.row] = undefined;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
session.bgTokenizer.lines = lines;
|
192
|
+
session.bgTokenizer.states = states;
|
193
|
+
session.bgTokenizer.fireUpdateEvent(firstRow, lastRow);
|
194
|
+
});
|
195
|
+
|
196
|
+
return worker;
|
197
|
+
};
|
198
|
+
|
199
|
+
}).call(Mode.prototype);
|
200
|
+
|
201
|
+
exports.Mode = Mode;
|
202
|
+
});
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
2
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
3
|
+
*
|
4
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
5
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
6
|
+
* the License. You may obtain a copy of the License at
|
7
|
+
* http://www.mozilla.org/MPL/
|
8
|
+
*
|
9
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
10
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11
|
+
* for the specific language governing rights and limitations under the
|
12
|
+
* License.
|
13
|
+
*
|
14
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
15
|
+
*
|
16
|
+
* The Initial Developer of the Original Code is
|
17
|
+
* Ajax.org B.V.
|
18
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
19
|
+
* the Initial Developer. All Rights Reserved.
|
20
|
+
*
|
21
|
+
* Contributor(s):
|
22
|
+
* William Candillon <wcandillon AT gmail DOT com>
|
23
|
+
*
|
24
|
+
* Alternatively, the contents of this file may be used under the terms of
|
25
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
26
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
27
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
28
|
+
* of those above. If you wish to allow use of your version of this file only
|
29
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
30
|
+
* use your version of this file under the terms of the MPL, indicate your
|
31
|
+
* decision by deleting the provisions above and replace them with the notice
|
32
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
33
|
+
* the provisions above, a recipient may use your version of this file under
|
34
|
+
* the terms of any one of the MPL, the GPL or the LGPL. *
|
35
|
+
* ***** END LICENSE BLOCK ***** */
|
36
|
+
define(function(require, exports, module){
|
37
|
+
var Position = exports.Position = function(line, offset, length)
|
38
|
+
{
|
39
|
+
this.line = line;
|
40
|
+
this.offset = offset;
|
41
|
+
this.length = length;
|
42
|
+
|
43
|
+
this.getLine = function()
|
44
|
+
{
|
45
|
+
return this.line;
|
46
|
+
};
|
47
|
+
|
48
|
+
this.getOffset = function()
|
49
|
+
{
|
50
|
+
return this.offset;
|
51
|
+
};
|
52
|
+
|
53
|
+
this.getLength = function()
|
54
|
+
{
|
55
|
+
return this.length;
|
56
|
+
};
|
57
|
+
};
|
58
|
+
|
59
|
+
});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
WARNING!
|
2
|
+
============================
|
3
|
+
|
4
|
+
Files in this folder are generated automatically from the xquery.js project (https://github.com/wcandillon/xquery.js).
|
5
|
+
Instructions on how to generate the XQuery parser are available at https://github.com/wcandillon/xquery.js
|
6
|
+
|
@@ -0,0 +1,1686 @@
|
|
1
|
+
define(function(require, exports, module) {
|
2
|
+
// $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/StringLexer.g 2012-05-25 02:35:38
|
3
|
+
|
4
|
+
/* ***** BEGIN LICENSE BLOCK *****
|
5
|
+
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
6
|
+
*
|
7
|
+
* The contents of this file are subject to the Mozilla Public License Version
|
8
|
+
* 1.1 (the "License"); you may not use this file except in compliance with
|
9
|
+
* the License. You may obtain a copy of the License at
|
10
|
+
* http://www.mozilla.org/MPL/
|
11
|
+
*
|
12
|
+
* Software distributed under the License is distributed on an "AS IS" basis,
|
13
|
+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
14
|
+
* for the specific language governing rights and limitations under the
|
15
|
+
* License.
|
16
|
+
*
|
17
|
+
* The Original Code is Ajax.org Code Editor (ACE).
|
18
|
+
*
|
19
|
+
* The Initial Developer of the Original Code is
|
20
|
+
* Ajax.org B.V.
|
21
|
+
* Portions created by the Initial Developer are Copyright (C) 2010
|
22
|
+
* the Initial Developer. All Rights Reserved.
|
23
|
+
*
|
24
|
+
* Contributor(s):
|
25
|
+
* William Candillon <wcandillon AT gmail DOT com>
|
26
|
+
*
|
27
|
+
* Alternatively, the contents of this file may be used under the terms of
|
28
|
+
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
29
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
30
|
+
* in which case the provisions of the GPL or the LGPL are applicable instead
|
31
|
+
* of those above. If you wish to allow use of your version of this file only
|
32
|
+
* under the terms of either the GPL or the LGPL, and not to allow others to
|
33
|
+
* use your version of this file under the terms of the MPL, indicate your
|
34
|
+
* decision by deleting the provisions above and replace them with the notice
|
35
|
+
* and other provisions required by the GPL or the LGPL. If you do not delete
|
36
|
+
* the provisions above, a recipient may use your version of this file under
|
37
|
+
* the terms of any one of the MPL, the GPL or the LGPL. *
|
38
|
+
* ***** END LICENSE BLOCK ***** */
|
39
|
+
var org = require("./antlr3-all").org;
|
40
|
+
var XQDTLexer = require("./XQDTLexer").XQDTLexer;
|
41
|
+
|
42
|
+
|
43
|
+
var StringLexer = function(input, state) {
|
44
|
+
// alternate constructor @todo
|
45
|
+
// public StringLexer(CharStream input)
|
46
|
+
// public StringLexer(CharStream input, RecognizerSharedState state) {
|
47
|
+
if (!state) {
|
48
|
+
state = new org.antlr.runtime.RecognizerSharedState();
|
49
|
+
}
|
50
|
+
|
51
|
+
(function(){
|
52
|
+
|
53
|
+
|
54
|
+
this.inQuotStr = false;
|
55
|
+
this.inAposStr = false;
|
56
|
+
|
57
|
+
//boolean inQuotStr = false;
|
58
|
+
//boolean inAposStr = false;
|
59
|
+
|
60
|
+
//public StringLexer(CharStream input, boolean isAposStr) {
|
61
|
+
// this(input, new RecognizerSharedState());
|
62
|
+
// this.inAposStr = isAposStr;
|
63
|
+
// this.inQuotStr = !isAposStr;
|
64
|
+
// setIsWsExplicit(true);
|
65
|
+
//}
|
66
|
+
|
67
|
+
}).call(this);
|
68
|
+
|
69
|
+
this.dfa8 = new StringLexer.DFA8(this);
|
70
|
+
StringLexer.superclass.constructor.call(this, input, state);
|
71
|
+
|
72
|
+
|
73
|
+
};
|
74
|
+
|
75
|
+
org.antlr.lang.augmentObject(StringLexer, {
|
76
|
+
EOF: -1,
|
77
|
+
L_QuotAttrContentChar: 4,
|
78
|
+
L_AposAttrContentChar: 5,
|
79
|
+
L_ElementContentChar: 6,
|
80
|
+
L_CDataSection: 7,
|
81
|
+
L_PredefinedEntityRef: 8,
|
82
|
+
L_CharRef: 9,
|
83
|
+
ESCAPE_LBRACKET: 10,
|
84
|
+
ESCAPE_RBRACKET: 11,
|
85
|
+
ESCAPE_APOS: 12,
|
86
|
+
ESCAPE_QUOT: 13,
|
87
|
+
CDATA_START: 14,
|
88
|
+
CDATA_END: 15,
|
89
|
+
ANCESTOR: 16,
|
90
|
+
ANCESTOR_OR_SELF: 17,
|
91
|
+
AND: 18,
|
92
|
+
AS: 19,
|
93
|
+
ASCENDING: 20,
|
94
|
+
AT: 21,
|
95
|
+
ATTRIBUTE: 22,
|
96
|
+
BASE_URI: 23,
|
97
|
+
BOUNDARY_SPACE: 24,
|
98
|
+
BY: 25,
|
99
|
+
CASE: 26,
|
100
|
+
CAST: 27,
|
101
|
+
CASTABLE: 28,
|
102
|
+
CHILD: 29,
|
103
|
+
COLLATION: 30,
|
104
|
+
COMMENT: 31,
|
105
|
+
CONSTRUCTION: 32,
|
106
|
+
COPY_NAMESPACES: 33,
|
107
|
+
DECLARE: 34,
|
108
|
+
DEFAULT: 35,
|
109
|
+
DESCENDANT: 36,
|
110
|
+
DESCENDANT_OR_SELF: 37,
|
111
|
+
DESCENDING: 38,
|
112
|
+
DIV: 39,
|
113
|
+
DOCUMENT: 40,
|
114
|
+
DOCUMENT_NODE: 41,
|
115
|
+
ELEMENT: 42,
|
116
|
+
ELSE: 43,
|
117
|
+
EMPTY: 44,
|
118
|
+
EMPTY_SEQUENCE: 45,
|
119
|
+
ENCODING: 46,
|
120
|
+
EQ: 47,
|
121
|
+
EVERY: 48,
|
122
|
+
EXCEPT: 49,
|
123
|
+
EXTERNAL: 50,
|
124
|
+
FOLLOWING: 51,
|
125
|
+
FOLLOWING_SIBLING: 52,
|
126
|
+
FOR: 53,
|
127
|
+
FUNCTION: 54,
|
128
|
+
GE: 55,
|
129
|
+
GREATEST: 56,
|
130
|
+
GT: 57,
|
131
|
+
IDIV: 58,
|
132
|
+
IF: 59,
|
133
|
+
IMPORT: 60,
|
134
|
+
IN: 61,
|
135
|
+
INHERIT: 62,
|
136
|
+
INSTANCE: 63,
|
137
|
+
INTERSECT: 64,
|
138
|
+
IS: 65,
|
139
|
+
ITEM: 66,
|
140
|
+
LAX: 67,
|
141
|
+
LE: 68,
|
142
|
+
LEAST: 69,
|
143
|
+
LET: 70,
|
144
|
+
LT: 71,
|
145
|
+
MOD: 72,
|
146
|
+
MODULE: 73,
|
147
|
+
NAMESPACE: 74,
|
148
|
+
NE: 75,
|
149
|
+
NO_INHERIT: 76,
|
150
|
+
NO_PRESERVE: 77,
|
151
|
+
NODE: 78,
|
152
|
+
OF: 79,
|
153
|
+
OPTION: 80,
|
154
|
+
OR: 81,
|
155
|
+
ORDER: 82,
|
156
|
+
ORDERED: 83,
|
157
|
+
ORDERING: 84,
|
158
|
+
PARENT: 85,
|
159
|
+
PRECEDING: 86,
|
160
|
+
PRECEDING_SIBLING: 87,
|
161
|
+
PRESERVE: 88,
|
162
|
+
PROCESSING_INSTRUCTION: 89,
|
163
|
+
RETURN: 90,
|
164
|
+
SATISFIES: 91,
|
165
|
+
SCHEMA: 92,
|
166
|
+
SCHEMA_ATTRIBUTE: 93,
|
167
|
+
SCHEMA_ELEMENT: 94,
|
168
|
+
SELF: 95,
|
169
|
+
SOME: 96,
|
170
|
+
STABLE: 97,
|
171
|
+
STRICT: 98,
|
172
|
+
STRIP: 99,
|
173
|
+
TEXT: 100,
|
174
|
+
THEN: 101,
|
175
|
+
TO: 102,
|
176
|
+
TREAT: 103,
|
177
|
+
TYPESWITCH: 104,
|
178
|
+
UNION: 105,
|
179
|
+
UNORDERED: 106,
|
180
|
+
VALIDATE: 107,
|
181
|
+
VARIABLE: 108,
|
182
|
+
VERSION: 109,
|
183
|
+
WHERE: 110,
|
184
|
+
XQUERY: 111,
|
185
|
+
ALLOWING: 112,
|
186
|
+
CATCH: 113,
|
187
|
+
CONTEXT: 114,
|
188
|
+
COUNT: 115,
|
189
|
+
DECIMAL_FORMAT: 116,
|
190
|
+
DECIMAL_SEPARATOR: 117,
|
191
|
+
DIGIT: 118,
|
192
|
+
END: 119,
|
193
|
+
GROUP: 120,
|
194
|
+
GROUPING_SEPARATOR: 121,
|
195
|
+
INFINITY: 122,
|
196
|
+
MINUS_SIGN: 123,
|
197
|
+
NAMESPACE_NODE: 124,
|
198
|
+
NAN: 125,
|
199
|
+
NEXT: 126,
|
200
|
+
ONLY: 127,
|
201
|
+
PATTERN_SEPARATOR: 128,
|
202
|
+
PERCENT: 129,
|
203
|
+
PER_MILLE: 130,
|
204
|
+
PREVIOUS: 131,
|
205
|
+
SLIDING: 132,
|
206
|
+
START: 133,
|
207
|
+
SWITCH: 134,
|
208
|
+
TRY: 135,
|
209
|
+
TUMBLING: 136,
|
210
|
+
TYPE: 137,
|
211
|
+
WHEN: 138,
|
212
|
+
WINDOW: 139,
|
213
|
+
ZERO_DIGIT: 140,
|
214
|
+
AFTER: 141,
|
215
|
+
BEFORE: 142,
|
216
|
+
COPY: 143,
|
217
|
+
DELETE: 144,
|
218
|
+
FIRST: 145,
|
219
|
+
INSERT: 146,
|
220
|
+
INTO: 147,
|
221
|
+
LAST: 148,
|
222
|
+
MODIFY: 149,
|
223
|
+
NODES: 150,
|
224
|
+
RENAME: 151,
|
225
|
+
REPLACE: 152,
|
226
|
+
REVALIDATION: 153,
|
227
|
+
SKIP: 154,
|
228
|
+
UPDATING: 155,
|
229
|
+
VALUE: 156,
|
230
|
+
WITH: 157,
|
231
|
+
ALL: 158,
|
232
|
+
ANY: 159,
|
233
|
+
CONTAINS: 160,
|
234
|
+
CONTENT: 161,
|
235
|
+
DIACRITICS: 162,
|
236
|
+
DIFFERENT: 163,
|
237
|
+
DISTANCE: 164,
|
238
|
+
ENTIRE: 165,
|
239
|
+
EXACTLY: 166,
|
240
|
+
FROM: 167,
|
241
|
+
FT_OPTION: 168,
|
242
|
+
FTAND: 169,
|
243
|
+
FTNOT: 170,
|
244
|
+
FTOR: 171,
|
245
|
+
INSENSITIVE: 172,
|
246
|
+
LANGUAGE: 173,
|
247
|
+
LEVELS: 174,
|
248
|
+
LOWERCASE: 175,
|
249
|
+
MOST: 176,
|
250
|
+
NO: 177,
|
251
|
+
NOT: 178,
|
252
|
+
OCCURS: 179,
|
253
|
+
PARAGRAPH: 180,
|
254
|
+
PARAGRAPHS: 181,
|
255
|
+
PHRASE: 182,
|
256
|
+
RELATIONSHIP: 183,
|
257
|
+
SAME: 184,
|
258
|
+
SCORE: 185,
|
259
|
+
SENSITIVE: 186,
|
260
|
+
SENTENCE: 187,
|
261
|
+
SENTENCES: 188,
|
262
|
+
STEMMING: 189,
|
263
|
+
STOP: 190,
|
264
|
+
THESAURUS: 191,
|
265
|
+
TIMES: 192,
|
266
|
+
UPPERCASE: 193,
|
267
|
+
USING: 194,
|
268
|
+
WEIGHT: 195,
|
269
|
+
WILDCARDS: 196,
|
270
|
+
WITHOUT: 197,
|
271
|
+
WORD: 198,
|
272
|
+
WORDS: 199,
|
273
|
+
BREAK: 200,
|
274
|
+
CONTINUE: 201,
|
275
|
+
EXIT: 202,
|
276
|
+
LOOP: 203,
|
277
|
+
RETURNING: 204,
|
278
|
+
WHILE: 205,
|
279
|
+
CHECK: 206,
|
280
|
+
COLLECTION: 207,
|
281
|
+
CONSTRAINT: 208,
|
282
|
+
FOREACH: 209,
|
283
|
+
FOREIGN: 210,
|
284
|
+
INDEX: 211,
|
285
|
+
INTEGRITY: 212,
|
286
|
+
KEY: 213,
|
287
|
+
ON: 214,
|
288
|
+
UNIQUE: 215,
|
289
|
+
BINARY: 216,
|
290
|
+
AMP_ER: 217,
|
291
|
+
APOS_ER: 218,
|
292
|
+
QUOT_ER: 219,
|
293
|
+
CONCAT: 220,
|
294
|
+
LPAREN: 221,
|
295
|
+
RPAREN: 222,
|
296
|
+
DOLLAR: 223,
|
297
|
+
LBRACKET: 224,
|
298
|
+
RBRACKET: 225,
|
299
|
+
LSQUARE: 226,
|
300
|
+
RSQUARE: 227,
|
301
|
+
EQUAL: 228,
|
302
|
+
BIND: 229,
|
303
|
+
NOTEQUAL: 230,
|
304
|
+
ANN_PERCENT: 231,
|
305
|
+
HASH: 232,
|
306
|
+
AMP: 233,
|
307
|
+
COMMA: 234,
|
308
|
+
QUESTION: 235,
|
309
|
+
STAR: 236,
|
310
|
+
PLUS: 237,
|
311
|
+
MINUS: 238,
|
312
|
+
SMALLER: 239,
|
313
|
+
GREATER: 240,
|
314
|
+
SMALLEREQ: 241,
|
315
|
+
GREATEREQ: 242,
|
316
|
+
SMALLER_SMALLER: 243,
|
317
|
+
GREATER_GREATER: 244,
|
318
|
+
SLASH: 245,
|
319
|
+
SLASH_SLASH: 246,
|
320
|
+
DOT: 247,
|
321
|
+
DOT_DOT: 248,
|
322
|
+
COLON: 249,
|
323
|
+
COLON_COLON: 250,
|
324
|
+
EMPTY_CLOSE_TAG: 251,
|
325
|
+
CLOSE_TAG: 252,
|
326
|
+
SEMICOLON: 253,
|
327
|
+
VBAR: 254,
|
328
|
+
PRAGMA_START: 255,
|
329
|
+
PRAGMA_END: 256,
|
330
|
+
XML_COMMENT_START: 257,
|
331
|
+
XML_COMMENT_END: 258,
|
332
|
+
PI_START: 259,
|
333
|
+
PI_END: 260,
|
334
|
+
ATTR_SIGN: 261,
|
335
|
+
CHARREF_DEC: 262,
|
336
|
+
CHARREF_HEX: 263,
|
337
|
+
APOS: 264,
|
338
|
+
QUOT: 265,
|
339
|
+
NCNameStartChar: 266,
|
340
|
+
NCNameChar: 267,
|
341
|
+
L_NCName: 268,
|
342
|
+
Letter: 269,
|
343
|
+
HexLetter: 270,
|
344
|
+
Digit: 271,
|
345
|
+
Digits: 272,
|
346
|
+
S: 273,
|
347
|
+
SU: 274,
|
348
|
+
L_Pragma: 275,
|
349
|
+
L_DirCommentConstructor: 276,
|
350
|
+
L_DirPIConstructor: 277,
|
351
|
+
L_IntegerLiteral: 278,
|
352
|
+
L_DecimalLiteral: 279,
|
353
|
+
L_DoubleLiteral: 280,
|
354
|
+
L_Comment: 281,
|
355
|
+
L_AnyChar: 282,
|
356
|
+
L_QuotStringLiteralChar: 283,
|
357
|
+
L_AposStringLiteralChar: 284
|
358
|
+
});
|
359
|
+
|
360
|
+
(function(){
|
361
|
+
var HIDDEN = org.antlr.runtime.Token.HIDDEN_CHANNEL,
|
362
|
+
EOF = org.antlr.runtime.Token.EOF;
|
363
|
+
org.antlr.lang.extend(StringLexer, XQDTLexer, {
|
364
|
+
EOF : -1,
|
365
|
+
L_QuotAttrContentChar : 4,
|
366
|
+
L_AposAttrContentChar : 5,
|
367
|
+
L_ElementContentChar : 6,
|
368
|
+
L_CDataSection : 7,
|
369
|
+
L_PredefinedEntityRef : 8,
|
370
|
+
L_CharRef : 9,
|
371
|
+
ESCAPE_LBRACKET : 10,
|
372
|
+
ESCAPE_RBRACKET : 11,
|
373
|
+
ESCAPE_APOS : 12,
|
374
|
+
ESCAPE_QUOT : 13,
|
375
|
+
CDATA_START : 14,
|
376
|
+
CDATA_END : 15,
|
377
|
+
ANCESTOR : 16,
|
378
|
+
ANCESTOR_OR_SELF : 17,
|
379
|
+
AND : 18,
|
380
|
+
AS : 19,
|
381
|
+
ASCENDING : 20,
|
382
|
+
AT : 21,
|
383
|
+
ATTRIBUTE : 22,
|
384
|
+
BASE_URI : 23,
|
385
|
+
BOUNDARY_SPACE : 24,
|
386
|
+
BY : 25,
|
387
|
+
CASE : 26,
|
388
|
+
CAST : 27,
|
389
|
+
CASTABLE : 28,
|
390
|
+
CHILD : 29,
|
391
|
+
COLLATION : 30,
|
392
|
+
COMMENT : 31,
|
393
|
+
CONSTRUCTION : 32,
|
394
|
+
COPY_NAMESPACES : 33,
|
395
|
+
DECLARE : 34,
|
396
|
+
DEFAULT : 35,
|
397
|
+
DESCENDANT : 36,
|
398
|
+
DESCENDANT_OR_SELF : 37,
|
399
|
+
DESCENDING : 38,
|
400
|
+
DIV : 39,
|
401
|
+
DOCUMENT : 40,
|
402
|
+
DOCUMENT_NODE : 41,
|
403
|
+
ELEMENT : 42,
|
404
|
+
ELSE : 43,
|
405
|
+
EMPTY : 44,
|
406
|
+
EMPTY_SEQUENCE : 45,
|
407
|
+
ENCODING : 46,
|
408
|
+
EQ : 47,
|
409
|
+
EVERY : 48,
|
410
|
+
EXCEPT : 49,
|
411
|
+
EXTERNAL : 50,
|
412
|
+
FOLLOWING : 51,
|
413
|
+
FOLLOWING_SIBLING : 52,
|
414
|
+
FOR : 53,
|
415
|
+
FUNCTION : 54,
|
416
|
+
GE : 55,
|
417
|
+
GREATEST : 56,
|
418
|
+
GT : 57,
|
419
|
+
IDIV : 58,
|
420
|
+
IF : 59,
|
421
|
+
IMPORT : 60,
|
422
|
+
IN : 61,
|
423
|
+
INHERIT : 62,
|
424
|
+
INSTANCE : 63,
|
425
|
+
INTERSECT : 64,
|
426
|
+
IS : 65,
|
427
|
+
ITEM : 66,
|
428
|
+
LAX : 67,
|
429
|
+
LE : 68,
|
430
|
+
LEAST : 69,
|
431
|
+
LET : 70,
|
432
|
+
LT : 71,
|
433
|
+
MOD : 72,
|
434
|
+
MODULE : 73,
|
435
|
+
NAMESPACE : 74,
|
436
|
+
NE : 75,
|
437
|
+
NO_INHERIT : 76,
|
438
|
+
NO_PRESERVE : 77,
|
439
|
+
NODE : 78,
|
440
|
+
OF : 79,
|
441
|
+
OPTION : 80,
|
442
|
+
OR : 81,
|
443
|
+
ORDER : 82,
|
444
|
+
ORDERED : 83,
|
445
|
+
ORDERING : 84,
|
446
|
+
PARENT : 85,
|
447
|
+
PRECEDING : 86,
|
448
|
+
PRECEDING_SIBLING : 87,
|
449
|
+
PRESERVE : 88,
|
450
|
+
PROCESSING_INSTRUCTION : 89,
|
451
|
+
RETURN : 90,
|
452
|
+
SATISFIES : 91,
|
453
|
+
SCHEMA : 92,
|
454
|
+
SCHEMA_ATTRIBUTE : 93,
|
455
|
+
SCHEMA_ELEMENT : 94,
|
456
|
+
SELF : 95,
|
457
|
+
SOME : 96,
|
458
|
+
STABLE : 97,
|
459
|
+
STRICT : 98,
|
460
|
+
STRIP : 99,
|
461
|
+
TEXT : 100,
|
462
|
+
THEN : 101,
|
463
|
+
TO : 102,
|
464
|
+
TREAT : 103,
|
465
|
+
TYPESWITCH : 104,
|
466
|
+
UNION : 105,
|
467
|
+
UNORDERED : 106,
|
468
|
+
VALIDATE : 107,
|
469
|
+
VARIABLE : 108,
|
470
|
+
VERSION : 109,
|
471
|
+
WHERE : 110,
|
472
|
+
XQUERY : 111,
|
473
|
+
ALLOWING : 112,
|
474
|
+
CATCH : 113,
|
475
|
+
CONTEXT : 114,
|
476
|
+
COUNT : 115,
|
477
|
+
DECIMAL_FORMAT : 116,
|
478
|
+
DECIMAL_SEPARATOR : 117,
|
479
|
+
DIGIT : 118,
|
480
|
+
END : 119,
|
481
|
+
GROUP : 120,
|
482
|
+
GROUPING_SEPARATOR : 121,
|
483
|
+
INFINITY : 122,
|
484
|
+
MINUS_SIGN : 123,
|
485
|
+
NAMESPACE_NODE : 124,
|
486
|
+
NAN : 125,
|
487
|
+
NEXT : 126,
|
488
|
+
ONLY : 127,
|
489
|
+
PATTERN_SEPARATOR : 128,
|
490
|
+
PERCENT : 129,
|
491
|
+
PER_MILLE : 130,
|
492
|
+
PREVIOUS : 131,
|
493
|
+
SLIDING : 132,
|
494
|
+
START : 133,
|
495
|
+
SWITCH : 134,
|
496
|
+
TRY : 135,
|
497
|
+
TUMBLING : 136,
|
498
|
+
TYPE : 137,
|
499
|
+
WHEN : 138,
|
500
|
+
WINDOW : 139,
|
501
|
+
ZERO_DIGIT : 140,
|
502
|
+
AFTER : 141,
|
503
|
+
BEFORE : 142,
|
504
|
+
COPY : 143,
|
505
|
+
DELETE : 144,
|
506
|
+
FIRST : 145,
|
507
|
+
INSERT : 146,
|
508
|
+
INTO : 147,
|
509
|
+
LAST : 148,
|
510
|
+
MODIFY : 149,
|
511
|
+
NODES : 150,
|
512
|
+
RENAME : 151,
|
513
|
+
REPLACE : 152,
|
514
|
+
REVALIDATION : 153,
|
515
|
+
SKIP : 154,
|
516
|
+
UPDATING : 155,
|
517
|
+
VALUE : 156,
|
518
|
+
WITH : 157,
|
519
|
+
ALL : 158,
|
520
|
+
ANY : 159,
|
521
|
+
CONTAINS : 160,
|
522
|
+
CONTENT : 161,
|
523
|
+
DIACRITICS : 162,
|
524
|
+
DIFFERENT : 163,
|
525
|
+
DISTANCE : 164,
|
526
|
+
ENTIRE : 165,
|
527
|
+
EXACTLY : 166,
|
528
|
+
FROM : 167,
|
529
|
+
FT_OPTION : 168,
|
530
|
+
FTAND : 169,
|
531
|
+
FTNOT : 170,
|
532
|
+
FTOR : 171,
|
533
|
+
INSENSITIVE : 172,
|
534
|
+
LANGUAGE : 173,
|
535
|
+
LEVELS : 174,
|
536
|
+
LOWERCASE : 175,
|
537
|
+
MOST : 176,
|
538
|
+
NO : 177,
|
539
|
+
NOT : 178,
|
540
|
+
OCCURS : 179,
|
541
|
+
PARAGRAPH : 180,
|
542
|
+
PARAGRAPHS : 181,
|
543
|
+
PHRASE : 182,
|
544
|
+
RELATIONSHIP : 183,
|
545
|
+
SAME : 184,
|
546
|
+
SCORE : 185,
|
547
|
+
SENSITIVE : 186,
|
548
|
+
SENTENCE : 187,
|
549
|
+
SENTENCES : 188,
|
550
|
+
STEMMING : 189,
|
551
|
+
STOP : 190,
|
552
|
+
THESAURUS : 191,
|
553
|
+
TIMES : 192,
|
554
|
+
UPPERCASE : 193,
|
555
|
+
USING : 194,
|
556
|
+
WEIGHT : 195,
|
557
|
+
WILDCARDS : 196,
|
558
|
+
WITHOUT : 197,
|
559
|
+
WORD : 198,
|
560
|
+
WORDS : 199,
|
561
|
+
BREAK : 200,
|
562
|
+
CONTINUE : 201,
|
563
|
+
EXIT : 202,
|
564
|
+
LOOP : 203,
|
565
|
+
RETURNING : 204,
|
566
|
+
WHILE : 205,
|
567
|
+
CHECK : 206,
|
568
|
+
COLLECTION : 207,
|
569
|
+
CONSTRAINT : 208,
|
570
|
+
FOREACH : 209,
|
571
|
+
FOREIGN : 210,
|
572
|
+
INDEX : 211,
|
573
|
+
INTEGRITY : 212,
|
574
|
+
KEY : 213,
|
575
|
+
ON : 214,
|
576
|
+
UNIQUE : 215,
|
577
|
+
BINARY : 216,
|
578
|
+
AMP_ER : 217,
|
579
|
+
APOS_ER : 218,
|
580
|
+
QUOT_ER : 219,
|
581
|
+
CONCAT : 220,
|
582
|
+
LPAREN : 221,
|
583
|
+
RPAREN : 222,
|
584
|
+
DOLLAR : 223,
|
585
|
+
LBRACKET : 224,
|
586
|
+
RBRACKET : 225,
|
587
|
+
LSQUARE : 226,
|
588
|
+
RSQUARE : 227,
|
589
|
+
EQUAL : 228,
|
590
|
+
BIND : 229,
|
591
|
+
NOTEQUAL : 230,
|
592
|
+
ANN_PERCENT : 231,
|
593
|
+
HASH : 232,
|
594
|
+
AMP : 233,
|
595
|
+
COMMA : 234,
|
596
|
+
QUESTION : 235,
|
597
|
+
STAR : 236,
|
598
|
+
PLUS : 237,
|
599
|
+
MINUS : 238,
|
600
|
+
SMALLER : 239,
|
601
|
+
GREATER : 240,
|
602
|
+
SMALLEREQ : 241,
|
603
|
+
GREATEREQ : 242,
|
604
|
+
SMALLER_SMALLER : 243,
|
605
|
+
GREATER_GREATER : 244,
|
606
|
+
SLASH : 245,
|
607
|
+
SLASH_SLASH : 246,
|
608
|
+
DOT : 247,
|
609
|
+
DOT_DOT : 248,
|
610
|
+
COLON : 249,
|
611
|
+
COLON_COLON : 250,
|
612
|
+
EMPTY_CLOSE_TAG : 251,
|
613
|
+
CLOSE_TAG : 252,
|
614
|
+
SEMICOLON : 253,
|
615
|
+
VBAR : 254,
|
616
|
+
PRAGMA_START : 255,
|
617
|
+
PRAGMA_END : 256,
|
618
|
+
XML_COMMENT_START : 257,
|
619
|
+
XML_COMMENT_END : 258,
|
620
|
+
PI_START : 259,
|
621
|
+
PI_END : 260,
|
622
|
+
ATTR_SIGN : 261,
|
623
|
+
CHARREF_DEC : 262,
|
624
|
+
CHARREF_HEX : 263,
|
625
|
+
APOS : 264,
|
626
|
+
QUOT : 265,
|
627
|
+
NCNameStartChar : 266,
|
628
|
+
NCNameChar : 267,
|
629
|
+
L_NCName : 268,
|
630
|
+
Letter : 269,
|
631
|
+
HexLetter : 270,
|
632
|
+
Digit : 271,
|
633
|
+
Digits : 272,
|
634
|
+
S : 273,
|
635
|
+
SU : 274,
|
636
|
+
L_Pragma : 275,
|
637
|
+
L_DirCommentConstructor : 276,
|
638
|
+
L_DirPIConstructor : 277,
|
639
|
+
L_IntegerLiteral : 278,
|
640
|
+
L_DecimalLiteral : 279,
|
641
|
+
L_DoubleLiteral : 280,
|
642
|
+
L_Comment : 281,
|
643
|
+
L_AnyChar : 282,
|
644
|
+
L_QuotStringLiteralChar : 283,
|
645
|
+
L_AposStringLiteralChar : 284,
|
646
|
+
getGrammarFileName: function() { return "xquery/StringLexer.g"; }
|
647
|
+
});
|
648
|
+
org.antlr.lang.augmentObject(StringLexer.prototype, {
|
649
|
+
// $ANTLR start QUOT
|
650
|
+
mQUOT: function() {
|
651
|
+
try {
|
652
|
+
var _type = this.QUOT;
|
653
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
654
|
+
// xquery/StringLexer.g:66:6: ({...}? => '\"' )
|
655
|
+
// xquery/StringLexer.g:66:8: {...}? => '\"'
|
656
|
+
if ( !(( this.inQuotStr )) ) {
|
657
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "QUOT", " this.inQuotStr ");
|
658
|
+
}
|
659
|
+
this.match('\"');
|
660
|
+
this.inQuotStr = !this.inQuotStr;
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
this.state.type = _type;
|
665
|
+
this.state.channel = _channel;
|
666
|
+
}
|
667
|
+
finally {
|
668
|
+
}
|
669
|
+
},
|
670
|
+
// $ANTLR end "QUOT",
|
671
|
+
|
672
|
+
// $ANTLR start APOS
|
673
|
+
mAPOS: function() {
|
674
|
+
try {
|
675
|
+
var _type = this.APOS;
|
676
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
677
|
+
// xquery/StringLexer.g:67:6: ({...}? => '\\'' )
|
678
|
+
// xquery/StringLexer.g:67:8: {...}? => '\\''
|
679
|
+
if ( !(( this.inAposStr )) ) {
|
680
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "APOS", " this.inAposStr ");
|
681
|
+
}
|
682
|
+
this.match('\'');
|
683
|
+
this.inAposStr = !this.inAposStr;
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
this.state.type = _type;
|
688
|
+
this.state.channel = _channel;
|
689
|
+
}
|
690
|
+
finally {
|
691
|
+
}
|
692
|
+
},
|
693
|
+
// $ANTLR end "APOS",
|
694
|
+
|
695
|
+
// $ANTLR start ESCAPE_QUOT
|
696
|
+
mESCAPE_QUOT: function() {
|
697
|
+
try {
|
698
|
+
var _type = this.ESCAPE_QUOT;
|
699
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
700
|
+
// xquery/StringLexer.g:68:13: ({...}? => '\"\"' )
|
701
|
+
// xquery/StringLexer.g:68:15: {...}? => '\"\"'
|
702
|
+
if ( !(( this.inQuotStr )) ) {
|
703
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_QUOT", " this.inQuotStr ");
|
704
|
+
}
|
705
|
+
this.match("\"\"");
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
this.state.type = _type;
|
711
|
+
this.state.channel = _channel;
|
712
|
+
}
|
713
|
+
finally {
|
714
|
+
}
|
715
|
+
},
|
716
|
+
// $ANTLR end "ESCAPE_QUOT",
|
717
|
+
|
718
|
+
// $ANTLR start ESCAPE_APOS
|
719
|
+
mESCAPE_APOS: function() {
|
720
|
+
try {
|
721
|
+
var _type = this.ESCAPE_APOS;
|
722
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
723
|
+
// xquery/StringLexer.g:69:13: ({...}? => '\\'\\'' )
|
724
|
+
// xquery/StringLexer.g:69:15: {...}? => '\\'\\''
|
725
|
+
if ( !(( this.inAposStr )) ) {
|
726
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_APOS", " this.inAposStr ");
|
727
|
+
}
|
728
|
+
this.match("''");
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
this.state.type = _type;
|
734
|
+
this.state.channel = _channel;
|
735
|
+
}
|
736
|
+
finally {
|
737
|
+
}
|
738
|
+
},
|
739
|
+
// $ANTLR end "ESCAPE_APOS",
|
740
|
+
|
741
|
+
// $ANTLR start L_PredefinedEntityRef
|
742
|
+
mL_PredefinedEntityRef: function() {
|
743
|
+
try {
|
744
|
+
var _type = this.L_PredefinedEntityRef;
|
745
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
746
|
+
// xquery/StringLexer.g:73:2: ({...}? => '&' ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' ) ';' )
|
747
|
+
// xquery/StringLexer.g:73:4: {...}? => '&' ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' ) ';'
|
748
|
+
if ( !(( this.inQuotStr | this.inAposStr )) ) {
|
749
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "L_PredefinedEntityRef", " this.inQuotStr | this.inAposStr ");
|
750
|
+
}
|
751
|
+
this.match('&');
|
752
|
+
// xquery/StringLexer.g:73:48: ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' )
|
753
|
+
var alt1=5;
|
754
|
+
switch ( this.input.LA(1) ) {
|
755
|
+
case 'l':
|
756
|
+
alt1=1;
|
757
|
+
break;
|
758
|
+
case 'g':
|
759
|
+
alt1=2;
|
760
|
+
break;
|
761
|
+
case 'a':
|
762
|
+
var LA1_3 = this.input.LA(2);
|
763
|
+
|
764
|
+
if ( (LA1_3=='p') ) {
|
765
|
+
alt1=3;
|
766
|
+
}
|
767
|
+
else if ( (LA1_3=='m') ) {
|
768
|
+
alt1=5;
|
769
|
+
}
|
770
|
+
else {
|
771
|
+
var nvae =
|
772
|
+
new org.antlr.runtime.NoViableAltException("", 1, 3, this.input);
|
773
|
+
|
774
|
+
throw nvae;
|
775
|
+
}
|
776
|
+
break;
|
777
|
+
case 'q':
|
778
|
+
alt1=4;
|
779
|
+
break;
|
780
|
+
default:
|
781
|
+
var nvae =
|
782
|
+
new org.antlr.runtime.NoViableAltException("", 1, 0, this.input);
|
783
|
+
|
784
|
+
throw nvae;
|
785
|
+
}
|
786
|
+
|
787
|
+
switch (alt1) {
|
788
|
+
case 1 :
|
789
|
+
// xquery/StringLexer.g:73:49: 'lt'
|
790
|
+
this.match("lt");
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
break;
|
795
|
+
case 2 :
|
796
|
+
// xquery/StringLexer.g:73:56: 'gt'
|
797
|
+
this.match("gt");
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
break;
|
802
|
+
case 3 :
|
803
|
+
// xquery/StringLexer.g:73:63: 'apos'
|
804
|
+
this.match("apos");
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
break;
|
809
|
+
case 4 :
|
810
|
+
// xquery/StringLexer.g:73:72: 'quot'
|
811
|
+
this.match("quot");
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
break;
|
816
|
+
case 5 :
|
817
|
+
// xquery/StringLexer.g:73:81: 'amp'
|
818
|
+
this.match("amp");
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
break;
|
823
|
+
|
824
|
+
}
|
825
|
+
|
826
|
+
this.match(';');
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
this.state.type = _type;
|
831
|
+
this.state.channel = _channel;
|
832
|
+
}
|
833
|
+
finally {
|
834
|
+
}
|
835
|
+
},
|
836
|
+
// $ANTLR end "L_PredefinedEntityRef",
|
837
|
+
|
838
|
+
// $ANTLR start L_CharRef
|
839
|
+
mL_CharRef: function() {
|
840
|
+
try {
|
841
|
+
var _type = this.L_CharRef;
|
842
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
843
|
+
// xquery/StringLexer.g:78:2: ({...}? => '&#' ( '0' .. '9' )+ ';' | '&#x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ';' )
|
844
|
+
var alt4=2;
|
845
|
+
var LA4_0 = this.input.LA(1);
|
846
|
+
|
847
|
+
if ( (LA4_0=='&') ) {
|
848
|
+
var LA4_1 = this.input.LA(2);
|
849
|
+
|
850
|
+
if ( (LA4_1=='#') ) {
|
851
|
+
var LA4_2 = this.input.LA(3);
|
852
|
+
|
853
|
+
if ( (LA4_2=='x') ) {
|
854
|
+
alt4=2;
|
855
|
+
}
|
856
|
+
else if ( ((LA4_2>='0' && LA4_2<='9')) && (( this.inQuotStr | this.inAposStr ))) {
|
857
|
+
alt4=1;
|
858
|
+
}
|
859
|
+
else {
|
860
|
+
var nvae =
|
861
|
+
new org.antlr.runtime.NoViableAltException("", 4, 2, this.input);
|
862
|
+
|
863
|
+
throw nvae;
|
864
|
+
}
|
865
|
+
}
|
866
|
+
else {
|
867
|
+
var nvae =
|
868
|
+
new org.antlr.runtime.NoViableAltException("", 4, 1, this.input);
|
869
|
+
|
870
|
+
throw nvae;
|
871
|
+
}
|
872
|
+
}
|
873
|
+
else {
|
874
|
+
var nvae =
|
875
|
+
new org.antlr.runtime.NoViableAltException("", 4, 0, this.input);
|
876
|
+
|
877
|
+
throw nvae;
|
878
|
+
}
|
879
|
+
switch (alt4) {
|
880
|
+
case 1 :
|
881
|
+
// xquery/StringLexer.g:78:4: {...}? => '&#' ( '0' .. '9' )+ ';'
|
882
|
+
if ( !(( this.inQuotStr | this.inAposStr )) ) {
|
883
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "L_CharRef", " this.inQuotStr | this.inAposStr ");
|
884
|
+
}
|
885
|
+
this.match("&#");
|
886
|
+
|
887
|
+
// xquery/StringLexer.g:78:49: ( '0' .. '9' )+
|
888
|
+
var cnt2=0;
|
889
|
+
loop2:
|
890
|
+
do {
|
891
|
+
var alt2=2;
|
892
|
+
var LA2_0 = this.input.LA(1);
|
893
|
+
|
894
|
+
if ( ((LA2_0>='0' && LA2_0<='9')) ) {
|
895
|
+
alt2=1;
|
896
|
+
}
|
897
|
+
|
898
|
+
|
899
|
+
switch (alt2) {
|
900
|
+
case 1 :
|
901
|
+
// xquery/StringLexer.g:78:49: '0' .. '9'
|
902
|
+
this.matchRange('0','9');
|
903
|
+
|
904
|
+
|
905
|
+
break;
|
906
|
+
|
907
|
+
default :
|
908
|
+
if ( cnt2 >= 1 ) {
|
909
|
+
break loop2;
|
910
|
+
}
|
911
|
+
var eee = new org.antlr.runtime.EarlyExitException(2, this.input);
|
912
|
+
throw eee;
|
913
|
+
}
|
914
|
+
cnt2++;
|
915
|
+
} while (true);
|
916
|
+
|
917
|
+
this.match(';');
|
918
|
+
|
919
|
+
|
920
|
+
break;
|
921
|
+
case 2 :
|
922
|
+
// xquery/StringLexer.g:78:65: '&#x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ';'
|
923
|
+
this.match("&#x");
|
924
|
+
|
925
|
+
// xquery/StringLexer.g:78:71: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
|
926
|
+
var cnt3=0;
|
927
|
+
loop3:
|
928
|
+
do {
|
929
|
+
var alt3=2;
|
930
|
+
var LA3_0 = this.input.LA(1);
|
931
|
+
|
932
|
+
if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='F')||(LA3_0>='a' && LA3_0<='f')) ) {
|
933
|
+
alt3=1;
|
934
|
+
}
|
935
|
+
|
936
|
+
|
937
|
+
switch (alt3) {
|
938
|
+
case 1 :
|
939
|
+
// xquery/StringLexer.g:
|
940
|
+
if ( (this.input.LA(1)>='0' && this.input.LA(1)<='9')||(this.input.LA(1)>='A' && this.input.LA(1)<='F')||(this.input.LA(1)>='a' && this.input.LA(1)<='f') ) {
|
941
|
+
this.input.consume();
|
942
|
+
|
943
|
+
}
|
944
|
+
else {
|
945
|
+
var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
|
946
|
+
this.recover(mse);
|
947
|
+
throw mse;}
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
break;
|
952
|
+
|
953
|
+
default :
|
954
|
+
if ( cnt3 >= 1 ) {
|
955
|
+
break loop3;
|
956
|
+
}
|
957
|
+
var eee = new org.antlr.runtime.EarlyExitException(3, this.input);
|
958
|
+
throw eee;
|
959
|
+
}
|
960
|
+
cnt3++;
|
961
|
+
} while (true);
|
962
|
+
|
963
|
+
this.match(';');
|
964
|
+
|
965
|
+
|
966
|
+
break;
|
967
|
+
|
968
|
+
}
|
969
|
+
this.state.type = _type;
|
970
|
+
this.state.channel = _channel;
|
971
|
+
}
|
972
|
+
finally {
|
973
|
+
}
|
974
|
+
},
|
975
|
+
// $ANTLR end "L_CharRef",
|
976
|
+
|
977
|
+
// $ANTLR start L_QuotStringLiteralChar
|
978
|
+
mL_QuotStringLiteralChar: function() {
|
979
|
+
try {
|
980
|
+
var _type = this.L_QuotStringLiteralChar;
|
981
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
982
|
+
// xquery/StringLexer.g:82:2: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0027' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
|
983
|
+
// xquery/StringLexer.g:82:4: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0027' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
984
|
+
if ( !(( this.inQuotStr )) ) {
|
985
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "L_QuotStringLiteralChar", " this.inQuotStr ");
|
986
|
+
}
|
987
|
+
// xquery/StringLexer.g:83:3: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0027' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
988
|
+
var cnt5=0;
|
989
|
+
loop5:
|
990
|
+
do {
|
991
|
+
var alt5=2;
|
992
|
+
var LA5_0 = this.input.LA(1);
|
993
|
+
|
994
|
+
if ( ((LA5_0>='\t' && LA5_0<='\n')||LA5_0=='\r'||(LA5_0>=' ' && LA5_0<='!')||(LA5_0>='#' && LA5_0<='%')||(LA5_0>='\'' && LA5_0<='\uD7FF')||(LA5_0>='\uE000' && LA5_0<='\uFFFD')) ) {
|
995
|
+
alt5=1;
|
996
|
+
}
|
997
|
+
|
998
|
+
|
999
|
+
switch (alt5) {
|
1000
|
+
case 1 :
|
1001
|
+
// xquery/StringLexer.g:
|
1002
|
+
if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||this.input.LA(1)=='\r'||(this.input.LA(1)>=' ' && this.input.LA(1)<='!')||(this.input.LA(1)>='#' && this.input.LA(1)<='%')||(this.input.LA(1)>='\'' && this.input.LA(1)<='\uD7FF')||(this.input.LA(1)>='\uE000' && this.input.LA(1)<='\uFFFD') ) {
|
1003
|
+
this.input.consume();
|
1004
|
+
|
1005
|
+
}
|
1006
|
+
else {
|
1007
|
+
var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
|
1008
|
+
this.recover(mse);
|
1009
|
+
throw mse;}
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
break;
|
1014
|
+
|
1015
|
+
default :
|
1016
|
+
if ( cnt5 >= 1 ) {
|
1017
|
+
break loop5;
|
1018
|
+
}
|
1019
|
+
var eee = new org.antlr.runtime.EarlyExitException(5, this.input);
|
1020
|
+
throw eee;
|
1021
|
+
}
|
1022
|
+
cnt5++;
|
1023
|
+
} while (true);
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
this.state.type = _type;
|
1029
|
+
this.state.channel = _channel;
|
1030
|
+
}
|
1031
|
+
finally {
|
1032
|
+
}
|
1033
|
+
},
|
1034
|
+
// $ANTLR end "L_QuotStringLiteralChar",
|
1035
|
+
|
1036
|
+
// $ANTLR start L_AposStringLiteralChar
|
1037
|
+
mL_AposStringLiteralChar: function() {
|
1038
|
+
try {
|
1039
|
+
var _type = this.L_AposStringLiteralChar;
|
1040
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
1041
|
+
// xquery/StringLexer.g:88:2: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0028' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
|
1042
|
+
// xquery/StringLexer.g:88:4: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0028' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
1043
|
+
if ( !(( this.inAposStr )) ) {
|
1044
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "L_AposStringLiteralChar", " this.inAposStr ");
|
1045
|
+
}
|
1046
|
+
// xquery/StringLexer.g:89:3: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0028' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
1047
|
+
var cnt6=0;
|
1048
|
+
loop6:
|
1049
|
+
do {
|
1050
|
+
var alt6=2;
|
1051
|
+
var LA6_0 = this.input.LA(1);
|
1052
|
+
|
1053
|
+
if ( ((LA6_0>='\t' && LA6_0<='\n')||LA6_0=='\r'||(LA6_0>=' ' && LA6_0<='%')||(LA6_0>='(' && LA6_0<='\uD7FF')||(LA6_0>='\uE000' && LA6_0<='\uFFFD')) ) {
|
1054
|
+
alt6=1;
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
|
1058
|
+
switch (alt6) {
|
1059
|
+
case 1 :
|
1060
|
+
// xquery/StringLexer.g:
|
1061
|
+
if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||this.input.LA(1)=='\r'||(this.input.LA(1)>=' ' && this.input.LA(1)<='%')||(this.input.LA(1)>='(' && this.input.LA(1)<='\uD7FF')||(this.input.LA(1)>='\uE000' && this.input.LA(1)<='\uFFFD') ) {
|
1062
|
+
this.input.consume();
|
1063
|
+
|
1064
|
+
}
|
1065
|
+
else {
|
1066
|
+
var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
|
1067
|
+
this.recover(mse);
|
1068
|
+
throw mse;}
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
break;
|
1073
|
+
|
1074
|
+
default :
|
1075
|
+
if ( cnt6 >= 1 ) {
|
1076
|
+
break loop6;
|
1077
|
+
}
|
1078
|
+
var eee = new org.antlr.runtime.EarlyExitException(6, this.input);
|
1079
|
+
throw eee;
|
1080
|
+
}
|
1081
|
+
cnt6++;
|
1082
|
+
} while (true);
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
this.state.type = _type;
|
1088
|
+
this.state.channel = _channel;
|
1089
|
+
}
|
1090
|
+
finally {
|
1091
|
+
}
|
1092
|
+
},
|
1093
|
+
// $ANTLR end "L_AposStringLiteralChar",
|
1094
|
+
|
1095
|
+
// $ANTLR start L_AnyChar
|
1096
|
+
mL_AnyChar: function() {
|
1097
|
+
try {
|
1098
|
+
var _type = this.L_AnyChar;
|
1099
|
+
var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
|
1100
|
+
// xquery/StringLexer.g:98:5: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
|
1101
|
+
// xquery/StringLexer.g:98:9: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
1102
|
+
if ( !(( !this.inQuotStr && !this.inAposStr )) ) {
|
1103
|
+
throw new org.antlr.runtime.FailedPredicateException(this.input, "L_AnyChar", " !this.inQuotStr && !this.inAposStr ");
|
1104
|
+
}
|
1105
|
+
// xquery/StringLexer.g:99:9: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
|
1106
|
+
var cnt7=0;
|
1107
|
+
loop7:
|
1108
|
+
do {
|
1109
|
+
var alt7=2;
|
1110
|
+
var LA7_0 = this.input.LA(1);
|
1111
|
+
|
1112
|
+
if ( ((LA7_0>='\t' && LA7_0<='\n')||LA7_0=='\r'||(LA7_0>=' ' && LA7_0<='%')||(LA7_0>='\'' && LA7_0<=';')||(LA7_0>='=' && LA7_0<='z')||LA7_0=='|'||(LA7_0>='~' && LA7_0<='\uD7FF')||(LA7_0>='\uE000' && LA7_0<='\uFFFD')) ) {
|
1113
|
+
alt7=1;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
|
1117
|
+
switch (alt7) {
|
1118
|
+
case 1 :
|
1119
|
+
// xquery/StringLexer.g:
|
1120
|
+
if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||this.input.LA(1)=='\r'||(this.input.LA(1)>=' ' && this.input.LA(1)<='%')||(this.input.LA(1)>='\'' && this.input.LA(1)<=';')||(this.input.LA(1)>='=' && this.input.LA(1)<='z')||this.input.LA(1)=='|'||(this.input.LA(1)>='~' && this.input.LA(1)<='\uD7FF')||(this.input.LA(1)>='\uE000' && this.input.LA(1)<='\uFFFD') ) {
|
1121
|
+
this.input.consume();
|
1122
|
+
|
1123
|
+
}
|
1124
|
+
else {
|
1125
|
+
var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
|
1126
|
+
this.recover(mse);
|
1127
|
+
throw mse;}
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
break;
|
1132
|
+
|
1133
|
+
default :
|
1134
|
+
if ( cnt7 >= 1 ) {
|
1135
|
+
break loop7;
|
1136
|
+
}
|
1137
|
+
var eee = new org.antlr.runtime.EarlyExitException(7, this.input);
|
1138
|
+
throw eee;
|
1139
|
+
}
|
1140
|
+
cnt7++;
|
1141
|
+
} while (true);
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
this.state.type = _type;
|
1147
|
+
this.state.channel = _channel;
|
1148
|
+
}
|
1149
|
+
finally {
|
1150
|
+
}
|
1151
|
+
},
|
1152
|
+
// $ANTLR end "L_AnyChar",
|
1153
|
+
|
1154
|
+
mTokens: function() {
|
1155
|
+
// xquery/StringLexer.g:1:8: ( QUOT | APOS | ESCAPE_QUOT | ESCAPE_APOS | L_PredefinedEntityRef | L_CharRef | L_QuotStringLiteralChar | L_AposStringLiteralChar | L_AnyChar )
|
1156
|
+
var alt8=9;
|
1157
|
+
alt8 = this.dfa8.predict(this.input);
|
1158
|
+
switch (alt8) {
|
1159
|
+
case 1 :
|
1160
|
+
// xquery/StringLexer.g:1:10: QUOT
|
1161
|
+
this.mQUOT();
|
1162
|
+
|
1163
|
+
|
1164
|
+
break;
|
1165
|
+
case 2 :
|
1166
|
+
// xquery/StringLexer.g:1:15: APOS
|
1167
|
+
this.mAPOS();
|
1168
|
+
|
1169
|
+
|
1170
|
+
break;
|
1171
|
+
case 3 :
|
1172
|
+
// xquery/StringLexer.g:1:20: ESCAPE_QUOT
|
1173
|
+
this.mESCAPE_QUOT();
|
1174
|
+
|
1175
|
+
|
1176
|
+
break;
|
1177
|
+
case 4 :
|
1178
|
+
// xquery/StringLexer.g:1:32: ESCAPE_APOS
|
1179
|
+
this.mESCAPE_APOS();
|
1180
|
+
|
1181
|
+
|
1182
|
+
break;
|
1183
|
+
case 5 :
|
1184
|
+
// xquery/StringLexer.g:1:44: L_PredefinedEntityRef
|
1185
|
+
this.mL_PredefinedEntityRef();
|
1186
|
+
|
1187
|
+
|
1188
|
+
break;
|
1189
|
+
case 6 :
|
1190
|
+
// xquery/StringLexer.g:1:66: L_CharRef
|
1191
|
+
this.mL_CharRef();
|
1192
|
+
|
1193
|
+
|
1194
|
+
break;
|
1195
|
+
case 7 :
|
1196
|
+
// xquery/StringLexer.g:1:76: L_QuotStringLiteralChar
|
1197
|
+
this.mL_QuotStringLiteralChar();
|
1198
|
+
|
1199
|
+
|
1200
|
+
break;
|
1201
|
+
case 8 :
|
1202
|
+
// xquery/StringLexer.g:1:100: L_AposStringLiteralChar
|
1203
|
+
this.mL_AposStringLiteralChar();
|
1204
|
+
|
1205
|
+
|
1206
|
+
break;
|
1207
|
+
case 9 :
|
1208
|
+
// xquery/StringLexer.g:1:124: L_AnyChar
|
1209
|
+
this.mL_AnyChar();
|
1210
|
+
|
1211
|
+
|
1212
|
+
break;
|
1213
|
+
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
}
|
1217
|
+
|
1218
|
+
}, true); // important to pass true to overwrite default implementations
|
1219
|
+
|
1220
|
+
org.antlr.lang.augmentObject(StringLexer, {
|
1221
|
+
DFA8_eotS:
|
1222
|
+
"\u0001\uffff\u0001\u0007\u0001\u000c\u0001\uffff\u0001\u0011\u0001"+
|
1223
|
+
"\u0012\u0001\u0013\u0001\uffff\u0001\u0015\u0002\uffff\u0001\u0016\u0001"+
|
1224
|
+
"\uffff\u0001\u0018\u000d\uffff",
|
1225
|
+
DFA8_eofS:
|
1226
|
+
"\u001b\uffff",
|
1227
|
+
DFA8_minS:
|
1228
|
+
"\u0003\u0009\u0001\u0023\u0003\u0009\u0001\u0000\u0001\u0009\u0002"+
|
1229
|
+
"\uffff\u0001\u0009\u0001\u0000\u0001\u0009\u0003\uffff\u0003\u0000\u0001"+
|
1230
|
+
"\uffff\u0002\u0000\u0001\uffff\u0001\u0000\u0002\uffff",
|
1231
|
+
DFA8_maxS:
|
1232
|
+
"\u0003\ufffd\u0001\u0071\u0003\ufffd\u0001\u0000\u0001\ufffd\u0002"+
|
1233
|
+
"\uffff\u0001\ufffd\u0001\u0000\u0001\ufffd\u0003\uffff\u0003\u0000\u0001"+
|
1234
|
+
"\uffff\u0002\u0000\u0001\uffff\u0001\u0000\u0002\uffff",
|
1235
|
+
DFA8_acceptS:
|
1236
|
+
"\u0009\uffff\u0001\u0008\u0001\u0009\u0003\uffff\u0001\u0007\u0001"+
|
1237
|
+
"\u0006\u0001\u0005\u0003\uffff\u0001\u0001\u0002\uffff\u0001\u0002\u0001"+
|
1238
|
+
"\uffff\u0001\u0003\u0001\u0004",
|
1239
|
+
DFA8_specialS:
|
1240
|
+
"\u0001\u0007\u0001\u000e\u0001\u0000\u0001\u0004\u0001\u0011\u0001"+
|
1241
|
+
"\u000a\u0001\u0005\u0001\u0009\u0001\u0010\u0002\uffff\u0001\u000f\u0001"+
|
1242
|
+
"\u0008\u0001\u0006\u0003\uffff\u0001\u000d\u0001\u0003\u0001\u000b\u0001"+
|
1243
|
+
"\uffff\u0001\u0001\u0001\u000c\u0001\uffff\u0001\u0002\u0002\uffff}>",
|
1244
|
+
DFA8_transitionS: [
|
1245
|
+
"\u0002\u0004\u0002\uffff\u0001\u0004\u0012\uffff\u0002\u0004"+
|
1246
|
+
"\u0001\u0001\u0003\u0004\u0001\u0003\u0001\u0002\u0014\u0004"+
|
1247
|
+
"\u0001\u0005\u003e\u0004\u0001\u0005\u0001\u0004\u0001\u0005"+
|
1248
|
+
"\ud782\u0004\u0800\uffff\u1ffe\u0004",
|
1249
|
+
"\u0002\u0008\u0002\uffff\u0001\u0008\u0012\uffff\u0002\u0008"+
|
1250
|
+
"\u0001\u0006\u0003\u0008\u0001\uffff\u0001\u000a\u0014\u0008"+
|
1251
|
+
"\u0001\u0009\u003e\u0008\u0001\u0009\u0001\u0008\u0001\u0009"+
|
1252
|
+
"\ud782\u0008\u0800\uffff\u1ffe\u0008",
|
1253
|
+
"\u0002\u000d\u0002\uffff\u0001\u000d\u0012\uffff\u0002\u000d"+
|
1254
|
+
"\u0001\u000a\u0003\u000d\u0001\uffff\u0001\u000b\u0014\u000d"+
|
1255
|
+
"\u0001\u000e\u003e\u000d\u0001\u000e\u0001\u000d\u0001\u000e"+
|
1256
|
+
"\ud782\u000d\u0800\uffff\u1ffe\u000d",
|
1257
|
+
"\u0001\u000f\u003d\uffff\u0001\u0010\u0005\uffff\u0001\u0010"+
|
1258
|
+
"\u0004\uffff\u0001\u0010\u0004\uffff\u0001\u0010",
|
1259
|
+
"\u0002\u0004\u0002\uffff\u0001\u0004\u0012\uffff\u0002\u0004"+
|
1260
|
+
"\u0001\u0008\u0003\u0004\u0001\uffff\u0001\u000d\u0014\u0004"+
|
1261
|
+
"\u0001\u0005\u003e\u0004\u0001\u0005\u0001\u0004\u0001\u0005"+
|
1262
|
+
"\ud782\u0004\u0800\uffff\u1ffe\u0004",
|
1263
|
+
"\u0002\u0005\u0002\uffff\u0001\u0005\u0012\uffff\u0002\u0005"+
|
1264
|
+
"\u0001\u0009\u0003\u0005\u0001\uffff\u0001\u000e\ud7d8\u0005"+
|
1265
|
+
"\u0800\uffff\u1ffe\u0005",
|
1266
|
+
"\u0002\u0008\u0002\uffff\u0001\u0008\u0012\uffff\u0006\u0008"+
|
1267
|
+
"\u0001\uffff\u0001\u000a\u0014\u0008\u0001\u0009\u003e\u0008"+
|
1268
|
+
"\u0001\u0009\u0001\u0008\u0001\u0009\ud782\u0008\u0800\uffff"+
|
1269
|
+
"\u1ffe\u0008",
|
1270
|
+
"\u0001\uffff",
|
1271
|
+
"\u0002\u0008\u0002\uffff\u0001\u0008\u0012\uffff\u0006\u0008"+
|
1272
|
+
"\u0001\uffff\u0001\u000a\u0014\u0008\u0001\u0009\u003e\u0008"+
|
1273
|
+
"\u0001\u0009\u0001\u0008\u0001\u0009\ud782\u0008\u0800\uffff"+
|
1274
|
+
"\u1ffe\u0008",
|
1275
|
+
"",
|
1276
|
+
"",
|
1277
|
+
"\u0002\u000d\u0002\uffff\u0001\u000d\u0012\uffff\u0002\u000d"+
|
1278
|
+
"\u0001\u000a\u0003\u000d\u0001\uffff\u0015\u000d\u0001\u000e"+
|
1279
|
+
"\u003e\u000d\u0001\u000e\u0001\u000d\u0001\u000e\ud782\u000d"+
|
1280
|
+
"\u0800\uffff\u1ffe\u000d",
|
1281
|
+
"\u0001\uffff",
|
1282
|
+
"\u0002\u000d\u0002\uffff\u0001\u000d\u0012\uffff\u0002\u000d"+
|
1283
|
+
"\u0001\u000a\u0003\u000d\u0001\uffff\u0015\u000d\u0001\u000e"+
|
1284
|
+
"\u003e\u000d\u0001\u000e\u0001\u000d\u0001\u000e\ud782\u000d"+
|
1285
|
+
"\u0800\uffff\u1ffe\u000d",
|
1286
|
+
"",
|
1287
|
+
"",
|
1288
|
+
"",
|
1289
|
+
"\u0001\uffff",
|
1290
|
+
"\u0001\uffff",
|
1291
|
+
"\u0001\uffff",
|
1292
|
+
"",
|
1293
|
+
"\u0001\uffff",
|
1294
|
+
"\u0001\uffff",
|
1295
|
+
"",
|
1296
|
+
"\u0001\uffff",
|
1297
|
+
"",
|
1298
|
+
""
|
1299
|
+
]
|
1300
|
+
});
|
1301
|
+
|
1302
|
+
org.antlr.lang.augmentObject(StringLexer, {
|
1303
|
+
DFA8_eot:
|
1304
|
+
org.antlr.runtime.DFA.unpackEncodedString(StringLexer.DFA8_eotS),
|
1305
|
+
DFA8_eof:
|
1306
|
+
org.antlr.runtime.DFA.unpackEncodedString(StringLexer.DFA8_eofS),
|
1307
|
+
DFA8_min:
|
1308
|
+
org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(StringLexer.DFA8_minS),
|
1309
|
+
DFA8_max:
|
1310
|
+
org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(StringLexer.DFA8_maxS),
|
1311
|
+
DFA8_accept:
|
1312
|
+
org.antlr.runtime.DFA.unpackEncodedString(StringLexer.DFA8_acceptS),
|
1313
|
+
DFA8_special:
|
1314
|
+
org.antlr.runtime.DFA.unpackEncodedString(StringLexer.DFA8_specialS),
|
1315
|
+
DFA8_transition: (function() {
|
1316
|
+
var a = [],
|
1317
|
+
i,
|
1318
|
+
numStates = StringLexer.DFA8_transitionS.length;
|
1319
|
+
for (i=0; i<numStates; i++) {
|
1320
|
+
a.push(org.antlr.runtime.DFA.unpackEncodedString(StringLexer.DFA8_transitionS[i]));
|
1321
|
+
}
|
1322
|
+
return a;
|
1323
|
+
})()
|
1324
|
+
});
|
1325
|
+
|
1326
|
+
StringLexer.DFA8 = function(recognizer) {
|
1327
|
+
this.recognizer = recognizer;
|
1328
|
+
this.decisionNumber = 8;
|
1329
|
+
this.eot = StringLexer.DFA8_eot;
|
1330
|
+
this.eof = StringLexer.DFA8_eof;
|
1331
|
+
this.min = StringLexer.DFA8_min;
|
1332
|
+
this.max = StringLexer.DFA8_max;
|
1333
|
+
this.accept = StringLexer.DFA8_accept;
|
1334
|
+
this.special = StringLexer.DFA8_special;
|
1335
|
+
this.transition = StringLexer.DFA8_transition;
|
1336
|
+
};
|
1337
|
+
|
1338
|
+
org.antlr.lang.extend(StringLexer.DFA8, org.antlr.runtime.DFA, {
|
1339
|
+
getDescription: function() {
|
1340
|
+
return "1:1: Tokens : ( QUOT | APOS | ESCAPE_QUOT | ESCAPE_APOS | L_PredefinedEntityRef | L_CharRef | L_QuotStringLiteralChar | L_AposStringLiteralChar | L_AnyChar );";
|
1341
|
+
},
|
1342
|
+
specialStateTransition: function(s, input) {
|
1343
|
+
var _s = s;
|
1344
|
+
/* bind to recognizer so semantic predicates can be evaluated */
|
1345
|
+
var retval = (function(s, input) {
|
1346
|
+
switch ( s ) {
|
1347
|
+
case 0 :
|
1348
|
+
var LA8_2 = input.LA(1);
|
1349
|
+
|
1350
|
+
|
1351
|
+
var index8_2 = input.index();
|
1352
|
+
input.rewind();
|
1353
|
+
s = -1;
|
1354
|
+
if ( (LA8_2=='\'') && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 11;}
|
1355
|
+
|
1356
|
+
else if ( ((LA8_2>='\t' && LA8_2<='\n')||LA8_2=='\r'||(LA8_2>=' ' && LA8_2<='!')||(LA8_2>='#' && LA8_2<='%')||(LA8_2>='(' && LA8_2<=';')||(LA8_2>='=' && LA8_2<='z')||LA8_2=='|'||(LA8_2>='~' && LA8_2<='\uD7FF')||(LA8_2>='\uE000' && LA8_2<='\uFFFD')) && ((( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 13;}
|
1357
|
+
|
1358
|
+
else if ( (LA8_2=='<'||LA8_2=='{'||LA8_2=='}') && (( this.inQuotStr ))) {s = 14;}
|
1359
|
+
|
1360
|
+
else if ( (LA8_2=='\"') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1361
|
+
|
1362
|
+
else s = 12;
|
1363
|
+
|
1364
|
+
|
1365
|
+
input.seek(index8_2);
|
1366
|
+
if ( s>=0 ) return s;
|
1367
|
+
break;
|
1368
|
+
case 1 :
|
1369
|
+
var LA8_21 = input.LA(1);
|
1370
|
+
|
1371
|
+
|
1372
|
+
var index8_21 = input.index();
|
1373
|
+
input.rewind();
|
1374
|
+
s = -1;
|
1375
|
+
if ( (( this.inAposStr )) ) {s = 9;}
|
1376
|
+
|
1377
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1378
|
+
|
1379
|
+
|
1380
|
+
input.seek(index8_21);
|
1381
|
+
if ( s>=0 ) return s;
|
1382
|
+
break;
|
1383
|
+
case 2 :
|
1384
|
+
var LA8_24 = input.LA(1);
|
1385
|
+
|
1386
|
+
|
1387
|
+
var index8_24 = input.index();
|
1388
|
+
input.rewind();
|
1389
|
+
s = -1;
|
1390
|
+
if ( (( this.inQuotStr )) ) {s = 14;}
|
1391
|
+
|
1392
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1393
|
+
|
1394
|
+
|
1395
|
+
input.seek(index8_24);
|
1396
|
+
if ( s>=0 ) return s;
|
1397
|
+
break;
|
1398
|
+
case 3 :
|
1399
|
+
var LA8_18 = input.LA(1);
|
1400
|
+
|
1401
|
+
|
1402
|
+
var index8_18 = input.index();
|
1403
|
+
input.rewind();
|
1404
|
+
s = -1;
|
1405
|
+
if ( (( this.inQuotStr )) ) {s = 14;}
|
1406
|
+
|
1407
|
+
else if ( (( this.inAposStr )) ) {s = 9;}
|
1408
|
+
|
1409
|
+
|
1410
|
+
input.seek(index8_18);
|
1411
|
+
if ( s>=0 ) return s;
|
1412
|
+
break;
|
1413
|
+
case 4 :
|
1414
|
+
var LA8_3 = input.LA(1);
|
1415
|
+
|
1416
|
+
|
1417
|
+
var index8_3 = input.index();
|
1418
|
+
input.rewind();
|
1419
|
+
s = -1;
|
1420
|
+
if ( (LA8_3=='#') ) {s = 15;}
|
1421
|
+
|
1422
|
+
else if ( (LA8_3=='a'||LA8_3=='g'||LA8_3=='l'||LA8_3=='q') && (( this.inQuotStr | this.inAposStr ))) {s = 16;}
|
1423
|
+
|
1424
|
+
|
1425
|
+
input.seek(index8_3);
|
1426
|
+
if ( s>=0 ) return s;
|
1427
|
+
break;
|
1428
|
+
case 5 :
|
1429
|
+
var LA8_6 = input.LA(1);
|
1430
|
+
|
1431
|
+
|
1432
|
+
var index8_6 = input.index();
|
1433
|
+
input.rewind();
|
1434
|
+
s = -1;
|
1435
|
+
if ( ((LA8_6>='\t' && LA8_6<='\n')||LA8_6=='\r'||(LA8_6>=' ' && LA8_6<='%')||(LA8_6>='(' && LA8_6<=';')||(LA8_6>='=' && LA8_6<='z')||LA8_6=='|'||(LA8_6>='~' && LA8_6<='\uD7FF')||(LA8_6>='\uE000' && LA8_6<='\uFFFD')) && ((( this.inAposStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 8;}
|
1436
|
+
|
1437
|
+
else if ( (LA8_6=='<'||LA8_6=='{'||LA8_6=='}') && (( this.inAposStr ))) {s = 9;}
|
1438
|
+
|
1439
|
+
else if ( (LA8_6=='\'') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1440
|
+
|
1441
|
+
else s = 19;
|
1442
|
+
|
1443
|
+
|
1444
|
+
input.seek(index8_6);
|
1445
|
+
if ( s>=0 ) return s;
|
1446
|
+
break;
|
1447
|
+
case 6 :
|
1448
|
+
var LA8_13 = input.LA(1);
|
1449
|
+
|
1450
|
+
|
1451
|
+
var index8_13 = input.index();
|
1452
|
+
input.rewind();
|
1453
|
+
s = -1;
|
1454
|
+
if ( ((LA8_13>='\t' && LA8_13<='\n')||LA8_13=='\r'||(LA8_13>=' ' && LA8_13<='!')||(LA8_13>='#' && LA8_13<='%')||(LA8_13>='\'' && LA8_13<=';')||(LA8_13>='=' && LA8_13<='z')||LA8_13=='|'||(LA8_13>='~' && LA8_13<='\uD7FF')||(LA8_13>='\uE000' && LA8_13<='\uFFFD')) && ((( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 13;}
|
1455
|
+
|
1456
|
+
else if ( (LA8_13=='<'||LA8_13=='{'||LA8_13=='}') && (( this.inQuotStr ))) {s = 14;}
|
1457
|
+
|
1458
|
+
else if ( (LA8_13=='\"') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1459
|
+
|
1460
|
+
else s = 24;
|
1461
|
+
|
1462
|
+
|
1463
|
+
input.seek(index8_13);
|
1464
|
+
if ( s>=0 ) return s;
|
1465
|
+
break;
|
1466
|
+
case 7 :
|
1467
|
+
var LA8_0 = input.LA(1);
|
1468
|
+
|
1469
|
+
|
1470
|
+
var index8_0 = input.index();
|
1471
|
+
input.rewind();
|
1472
|
+
s = -1;
|
1473
|
+
if ( (LA8_0=='\"') && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 1;}
|
1474
|
+
|
1475
|
+
else if ( (LA8_0=='\'') && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 2;}
|
1476
|
+
|
1477
|
+
else if ( (LA8_0=='&') ) {s = 3;}
|
1478
|
+
|
1479
|
+
else if ( ((LA8_0>='\t' && LA8_0<='\n')||LA8_0=='\r'||(LA8_0>=' ' && LA8_0<='!')||(LA8_0>='#' && LA8_0<='%')||(LA8_0>='(' && LA8_0<=';')||(LA8_0>='=' && LA8_0<='z')||LA8_0=='|'||(LA8_0>='~' && LA8_0<='\uD7FF')||(LA8_0>='\uE000' && LA8_0<='\uFFFD')) && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 4;}
|
1480
|
+
|
1481
|
+
else if ( (LA8_0=='<'||LA8_0=='{'||LA8_0=='}') && ((( this.inAposStr )||( this.inQuotStr )))) {s = 5;}
|
1482
|
+
|
1483
|
+
|
1484
|
+
input.seek(index8_0);
|
1485
|
+
if ( s>=0 ) return s;
|
1486
|
+
break;
|
1487
|
+
case 8 :
|
1488
|
+
var LA8_12 = input.LA(1);
|
1489
|
+
|
1490
|
+
|
1491
|
+
var index8_12 = input.index();
|
1492
|
+
input.rewind();
|
1493
|
+
s = -1;
|
1494
|
+
if ( (( this.inAposStr )) ) {s = 23;}
|
1495
|
+
|
1496
|
+
else if ( (( this.inQuotStr )) ) {s = 14;}
|
1497
|
+
|
1498
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1499
|
+
|
1500
|
+
|
1501
|
+
input.seek(index8_12);
|
1502
|
+
if ( s>=0 ) return s;
|
1503
|
+
break;
|
1504
|
+
case 9 :
|
1505
|
+
var LA8_7 = input.LA(1);
|
1506
|
+
|
1507
|
+
|
1508
|
+
var index8_7 = input.index();
|
1509
|
+
input.rewind();
|
1510
|
+
s = -1;
|
1511
|
+
if ( (( this.inQuotStr )) ) {s = 20;}
|
1512
|
+
|
1513
|
+
else if ( (( this.inAposStr )) ) {s = 9;}
|
1514
|
+
|
1515
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1516
|
+
|
1517
|
+
|
1518
|
+
input.seek(index8_7);
|
1519
|
+
if ( s>=0 ) return s;
|
1520
|
+
break;
|
1521
|
+
case 10 :
|
1522
|
+
var LA8_5 = input.LA(1);
|
1523
|
+
|
1524
|
+
|
1525
|
+
var index8_5 = input.index();
|
1526
|
+
input.rewind();
|
1527
|
+
s = -1;
|
1528
|
+
if ( ((LA8_5>='\t' && LA8_5<='\n')||LA8_5=='\r'||(LA8_5>=' ' && LA8_5<='!')||(LA8_5>='#' && LA8_5<='%')||(LA8_5>='(' && LA8_5<='\uD7FF')||(LA8_5>='\uE000' && LA8_5<='\uFFFD')) && ((( this.inAposStr )||( this.inQuotStr )))) {s = 5;}
|
1529
|
+
|
1530
|
+
else if ( (LA8_5=='\'') && (( this.inQuotStr ))) {s = 14;}
|
1531
|
+
|
1532
|
+
else if ( (LA8_5=='\"') && (( this.inAposStr ))) {s = 9;}
|
1533
|
+
|
1534
|
+
else s = 18;
|
1535
|
+
|
1536
|
+
|
1537
|
+
input.seek(index8_5);
|
1538
|
+
if ( s>=0 ) return s;
|
1539
|
+
break;
|
1540
|
+
case 11 :
|
1541
|
+
var LA8_19 = input.LA(1);
|
1542
|
+
|
1543
|
+
|
1544
|
+
var index8_19 = input.index();
|
1545
|
+
input.rewind();
|
1546
|
+
s = -1;
|
1547
|
+
if ( (( this.inQuotStr )) ) {s = 25;}
|
1548
|
+
|
1549
|
+
else if ( (( this.inAposStr )) ) {s = 9;}
|
1550
|
+
|
1551
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1552
|
+
|
1553
|
+
|
1554
|
+
input.seek(index8_19);
|
1555
|
+
if ( s>=0 ) return s;
|
1556
|
+
break;
|
1557
|
+
case 12 :
|
1558
|
+
var LA8_22 = input.LA(1);
|
1559
|
+
|
1560
|
+
|
1561
|
+
var index8_22 = input.index();
|
1562
|
+
input.rewind();
|
1563
|
+
s = -1;
|
1564
|
+
if ( (( this.inAposStr )) ) {s = 26;}
|
1565
|
+
|
1566
|
+
else if ( (( this.inQuotStr )) ) {s = 14;}
|
1567
|
+
|
1568
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1569
|
+
|
1570
|
+
|
1571
|
+
input.seek(index8_22);
|
1572
|
+
if ( s>=0 ) return s;
|
1573
|
+
break;
|
1574
|
+
case 13 :
|
1575
|
+
var LA8_17 = input.LA(1);
|
1576
|
+
|
1577
|
+
|
1578
|
+
var index8_17 = input.index();
|
1579
|
+
input.rewind();
|
1580
|
+
s = -1;
|
1581
|
+
if ( (( this.inQuotStr )) ) {s = 14;}
|
1582
|
+
|
1583
|
+
else if ( (( this.inAposStr )) ) {s = 9;}
|
1584
|
+
|
1585
|
+
else if ( (( !this.inQuotStr && !this.inAposStr )) ) {s = 10;}
|
1586
|
+
|
1587
|
+
|
1588
|
+
input.seek(index8_17);
|
1589
|
+
if ( s>=0 ) return s;
|
1590
|
+
break;
|
1591
|
+
case 14 :
|
1592
|
+
var LA8_1 = input.LA(1);
|
1593
|
+
|
1594
|
+
|
1595
|
+
var index8_1 = input.index();
|
1596
|
+
input.rewind();
|
1597
|
+
s = -1;
|
1598
|
+
if ( (LA8_1=='\"') && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 6;}
|
1599
|
+
|
1600
|
+
else if ( ((LA8_1>='\t' && LA8_1<='\n')||LA8_1=='\r'||(LA8_1>=' ' && LA8_1<='!')||(LA8_1>='#' && LA8_1<='%')||(LA8_1>='(' && LA8_1<=';')||(LA8_1>='=' && LA8_1<='z')||LA8_1=='|'||(LA8_1>='~' && LA8_1<='\uD7FF')||(LA8_1>='\uE000' && LA8_1<='\uFFFD')) && ((( this.inAposStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 8;}
|
1601
|
+
|
1602
|
+
else if ( (LA8_1=='<'||LA8_1=='{'||LA8_1=='}') && (( this.inAposStr ))) {s = 9;}
|
1603
|
+
|
1604
|
+
else if ( (LA8_1=='\'') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1605
|
+
|
1606
|
+
else s = 7;
|
1607
|
+
|
1608
|
+
|
1609
|
+
input.seek(index8_1);
|
1610
|
+
if ( s>=0 ) return s;
|
1611
|
+
break;
|
1612
|
+
case 15 :
|
1613
|
+
var LA8_11 = input.LA(1);
|
1614
|
+
|
1615
|
+
|
1616
|
+
var index8_11 = input.index();
|
1617
|
+
input.rewind();
|
1618
|
+
s = -1;
|
1619
|
+
if ( ((LA8_11>='\t' && LA8_11<='\n')||LA8_11=='\r'||(LA8_11>=' ' && LA8_11<='!')||(LA8_11>='#' && LA8_11<='%')||(LA8_11>='\'' && LA8_11<=';')||(LA8_11>='=' && LA8_11<='z')||LA8_11=='|'||(LA8_11>='~' && LA8_11<='\uD7FF')||(LA8_11>='\uE000' && LA8_11<='\uFFFD')) && ((( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 13;}
|
1620
|
+
|
1621
|
+
else if ( (LA8_11=='<'||LA8_11=='{'||LA8_11=='}') && (( this.inQuotStr ))) {s = 14;}
|
1622
|
+
|
1623
|
+
else if ( (LA8_11=='\"') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1624
|
+
|
1625
|
+
else s = 22;
|
1626
|
+
|
1627
|
+
|
1628
|
+
input.seek(index8_11);
|
1629
|
+
if ( s>=0 ) return s;
|
1630
|
+
break;
|
1631
|
+
case 16 :
|
1632
|
+
var LA8_8 = input.LA(1);
|
1633
|
+
|
1634
|
+
|
1635
|
+
var index8_8 = input.index();
|
1636
|
+
input.rewind();
|
1637
|
+
s = -1;
|
1638
|
+
if ( ((LA8_8>='\t' && LA8_8<='\n')||LA8_8=='\r'||(LA8_8>=' ' && LA8_8<='%')||(LA8_8>='(' && LA8_8<=';')||(LA8_8>='=' && LA8_8<='z')||LA8_8=='|'||(LA8_8>='~' && LA8_8<='\uD7FF')||(LA8_8>='\uE000' && LA8_8<='\uFFFD')) && ((( this.inAposStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 8;}
|
1639
|
+
|
1640
|
+
else if ( (LA8_8=='<'||LA8_8=='{'||LA8_8=='}') && (( this.inAposStr ))) {s = 9;}
|
1641
|
+
|
1642
|
+
else if ( (LA8_8=='\'') && (( !this.inQuotStr && !this.inAposStr ))) {s = 10;}
|
1643
|
+
|
1644
|
+
else s = 21;
|
1645
|
+
|
1646
|
+
|
1647
|
+
input.seek(index8_8);
|
1648
|
+
if ( s>=0 ) return s;
|
1649
|
+
break;
|
1650
|
+
case 17 :
|
1651
|
+
var LA8_4 = input.LA(1);
|
1652
|
+
|
1653
|
+
|
1654
|
+
var index8_4 = input.index();
|
1655
|
+
input.rewind();
|
1656
|
+
s = -1;
|
1657
|
+
if ( ((LA8_4>='\t' && LA8_4<='\n')||LA8_4=='\r'||(LA8_4>=' ' && LA8_4<='!')||(LA8_4>='#' && LA8_4<='%')||(LA8_4>='(' && LA8_4<=';')||(LA8_4>='=' && LA8_4<='z')||LA8_4=='|'||(LA8_4>='~' && LA8_4<='\uD7FF')||(LA8_4>='\uE000' && LA8_4<='\uFFFD')) && ((( this.inAposStr )||( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 4;}
|
1658
|
+
|
1659
|
+
else if ( (LA8_4=='\'') && ((( this.inQuotStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 13;}
|
1660
|
+
|
1661
|
+
else if ( (LA8_4=='\"') && ((( this.inAposStr )||( !this.inQuotStr && !this.inAposStr )))) {s = 8;}
|
1662
|
+
|
1663
|
+
else if ( (LA8_4=='<'||LA8_4=='{'||LA8_4=='}') && ((( this.inAposStr )||( this.inQuotStr )))) {s = 5;}
|
1664
|
+
|
1665
|
+
else s = 17;
|
1666
|
+
|
1667
|
+
|
1668
|
+
input.seek(index8_4);
|
1669
|
+
if ( s>=0 ) return s;
|
1670
|
+
break;
|
1671
|
+
}
|
1672
|
+
}).call(this.recognizer, s, input);
|
1673
|
+
if (!org.antlr.lang.isUndefined(retval)) {
|
1674
|
+
return retval;
|
1675
|
+
}
|
1676
|
+
var nvae =
|
1677
|
+
new org.antlr.runtime.NoViableAltException(this.getDescription(), 8, _s, input);
|
1678
|
+
this.error(nvae);
|
1679
|
+
throw nvae;
|
1680
|
+
},
|
1681
|
+
dummy: null
|
1682
|
+
});
|
1683
|
+
|
1684
|
+
})();
|
1685
|
+
exports.StringLexer = StringLexer;
|
1686
|
+
});
|