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.

Files changed (454) hide show
  1. data/README.md +44 -7
  2. data/Rakefile +1 -1
  3. data/bin/gollum +20 -1
  4. data/gollum.gemspec +400 -5
  5. data/lib/gollum.rb +2 -1
  6. data/lib/gollum/blob_entry.rb +13 -1
  7. data/lib/gollum/committer.rb +10 -1
  8. data/lib/gollum/file.rb +15 -2
  9. data/lib/gollum/file_view.rb +145 -0
  10. data/lib/gollum/frontend/app.rb +217 -69
  11. data/lib/gollum/frontend/helpers.rb +21 -0
  12. data/lib/gollum/frontend/public/gollum/css/_styles.css +121 -0
  13. data/lib/gollum/frontend/public/gollum/css/editor.css +17 -8
  14. data/lib/gollum/frontend/public/gollum/css/gollum.css +440 -402
  15. data/lib/gollum/frontend/public/gollum/css/template.css +540 -289
  16. data/lib/gollum/frontend/public/gollum/images/dirty-shade.png +0 -0
  17. data/lib/gollum/frontend/public/gollum/images/fileview/document.png +0 -0
  18. data/lib/gollum/frontend/public/gollum/images/fileview/folder-horizontal.png +0 -0
  19. data/lib/gollum/frontend/public/gollum/images/fileview/toggle-small-expand.png +0 -0
  20. data/lib/gollum/frontend/public/gollum/images/fileview/toggle-small.png +0 -0
  21. data/lib/gollum/frontend/public/gollum/images/para.png +0 -0
  22. data/lib/gollum/frontend/public/gollum/images/pin-16.png +0 -0
  23. data/lib/gollum/frontend/public/gollum/images/pin-20.png +0 -0
  24. data/lib/gollum/frontend/public/gollum/images/pin-24.png +0 -0
  25. data/lib/gollum/frontend/public/gollum/images/pin-32.png +0 -0
  26. data/lib/gollum/frontend/public/gollum/javascript/editor/gollum.editor.js +31 -7
  27. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/asciidoc.js +2 -1
  28. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/creole.js +2 -1
  29. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/markdown.js +18 -6
  30. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/org.js +2 -1
  31. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/pod.js +2 -1
  32. data/lib/gollum/frontend/public/gollum/javascript/editor/langs/textile.js +2 -1
  33. data/lib/gollum/frontend/public/gollum/javascript/gollum.dialog.js +3 -0
  34. data/lib/gollum/frontend/public/gollum/javascript/gollum.js +78 -16
  35. data/lib/gollum/frontend/public/gollum/javascript/jquery-1.7.2.min.js +4 -0
  36. data/lib/gollum/frontend/public/gollum/javascript/mousetrap.min.js +8 -0
  37. data/lib/gollum/frontend/public/gollum/livepreview/css/custom.css +107 -0
  38. data/lib/gollum/frontend/public/gollum/livepreview/images/cancel_24.png +0 -0
  39. data/lib/gollum/frontend/public/gollum/livepreview/images/lr_24.png +0 -0
  40. data/lib/gollum/frontend/public/gollum/livepreview/images/save_24.png +0 -0
  41. data/lib/gollum/frontend/public/gollum/livepreview/images/savecomment_24.png +0 -0
  42. data/lib/gollum/frontend/public/gollum/livepreview/index.html +46 -0
  43. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ace.js +103 -0
  44. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor.js +254 -0
  45. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/anchor_test.js +184 -0
  46. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer.js +261 -0
  47. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/background_tokenizer_test.js +92 -0
  48. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager.js +121 -0
  49. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/command_manager_test.js +193 -0
  50. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/default_commands.js +460 -0
  51. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/commands/multi_select_commands.js +101 -0
  52. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/config.js +124 -0
  53. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/codefolding-fold-button-states.png +0 -0
  54. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/editor.css +327 -0
  55. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/css/expand-marker.png +0 -0
  56. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document.js +617 -0
  57. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/document_test.js +314 -0
  58. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session.js +2419 -0
  59. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/bracket_match.js +252 -0
  60. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold.js +116 -0
  61. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/fold_line.js +276 -0
  62. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session/folding.js +759 -0
  63. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/edit_session_test.js +981 -0
  64. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor.js +2163 -0
  65. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_change_document_test.js +195 -0
  66. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_highlight_selected_word_test.js +231 -0
  67. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_navigation_test.js +171 -0
  68. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/editor_text_edit_test.js +562 -0
  69. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static.css +22 -0
  70. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight.js +98 -0
  71. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/static_highlight_test.js +81 -0
  72. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/ext/textarea.js +536 -0
  73. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/emacs.js +367 -0
  74. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/hash_handler.js +170 -0
  75. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/keybinding.js +143 -0
  76. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/state_handler.js +257 -0
  77. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/textinput.js +315 -0
  78. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim.js +122 -0
  79. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/commands.js +556 -0
  80. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/aliases.js +101 -0
  81. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/motions.js +611 -0
  82. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/operators.js +193 -0
  83. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/maps/util.js +134 -0
  84. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/keyboard/vim/registers.js +49 -0
  85. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/cursor.js +202 -0
  86. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/gutter.js +187 -0
  87. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/marker.js +214 -0
  88. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text.js +595 -0
  89. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/layer/text_test.js +106 -0
  90. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/browser_focus.js +105 -0
  91. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/dom.js +292 -0
  92. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/es5-shim.js +1059 -0
  93. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event.js +317 -0
  94. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter.js +121 -0
  95. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/event_emitter_test.js +72 -0
  96. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/fixoldbrowsers.js +19 -0
  97. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/keys.js +129 -0
  98. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/lang.js +164 -0
  99. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/net.js +62 -0
  100. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/oop.js +61 -0
  101. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/regexp.js +113 -0
  102. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/lib/useragent.js +105 -0
  103. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour.js +98 -0
  104. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/cstyle.js +225 -0
  105. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/html.js +98 -0
  106. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xml.js +113 -0
  107. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/behaviour/xquery.js +68 -0
  108. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search.js +74 -0
  109. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c9search_highlight_rules.js +66 -0
  110. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp.js +132 -0
  111. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/c_cpp_highlight_rules.js +180 -0
  112. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure.js +121 -0
  113. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/clojure_highlight_rules.js +235 -0
  114. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee.js +121 -0
  115. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/coffee-script.js +63 -0
  116. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/helpers.js +100 -0
  117. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/lexer.js +739 -0
  118. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/nodes.js +2756 -0
  119. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser.js +603 -0
  120. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/parser_test.js +68 -0
  121. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/rewriter.js +342 -0
  122. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee/scope.js +154 -0
  123. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules.js +227 -0
  124. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_highlight_rules_test.js +72 -0
  125. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coffee_worker.js +92 -0
  126. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion.js +71 -0
  127. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_highlight_rules.js +135 -0
  128. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/coldfusion_test.js +74 -0
  129. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp.js +58 -0
  130. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/csharp_highlight_rules.js +104 -0
  131. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css.js +110 -0
  132. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css/csslint.js +9014 -0
  133. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules.js +242 -0
  134. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_highlight_rules_test.js +99 -0
  135. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_test.js +85 -0
  136. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker.js +66 -0
  137. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/css_worker_test.js +75 -0
  138. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff.js +58 -0
  139. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/diff_highlight_rules.js +108 -0
  140. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/doc_comment_highlight_rules.js +93 -0
  141. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/c9search.js +83 -0
  142. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee.js +127 -0
  143. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/coffee_test.js +108 -0
  144. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle.js +95 -0
  145. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/cstyle_test.js +92 -0
  146. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/diff.js +76 -0
  147. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/fold_mode.js +115 -0
  148. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html.js +86 -0
  149. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/html_test.js +169 -0
  150. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js +88 -0
  151. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic.js +65 -0
  152. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/pythonic_test.js +105 -0
  153. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml.js +262 -0
  154. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/folding/xml_test.js +117 -0
  155. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang.js +81 -0
  156. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/golang_highlight_rules.js +129 -0
  157. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy.js +24 -0
  158. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/groovy_highlight_rules.js +183 -0
  159. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe.js +58 -0
  160. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/haxe_highlight_rules.js +104 -0
  161. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html.js +83 -0
  162. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules.js +159 -0
  163. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_highlight_rules_test.js +93 -0
  164. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/html_test.js +74 -0
  165. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java.js +25 -0
  166. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/java_highlight_rules.js +144 -0
  167. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript.js +164 -0
  168. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules.js +471 -0
  169. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_highlight_rules_test.js +225 -0
  170. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_test.js +165 -0
  171. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker.js +88 -0
  172. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/javascript_worker_test.js +99 -0
  173. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json.js +100 -0
  174. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json/json_parse.js +346 -0
  175. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_highlight_rules.js +111 -0
  176. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker.js +103 -0
  177. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/json_worker_test.js +108 -0
  178. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsx.js +53 -0
  179. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/jsx_highlight_rules.js +122 -0
  180. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex.js +57 -0
  181. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/latex_highlight_rules.js +38 -0
  182. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less.js +87 -0
  183. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/less_highlight_rules.js +279 -0
  184. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid.js +116 -0
  185. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules.js +220 -0
  186. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/liquid_highlight_rules_test.js +91 -0
  187. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua.js +87 -0
  188. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/lua_highlight_rules.js +436 -0
  189. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/luapage.js +22 -0
  190. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/luapage_highlight_rules.js +42 -0
  191. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown.js +81 -0
  192. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/markdown_highlight_rules.js +195 -0
  193. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_brace_outdent.js +81 -0
  194. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/matching_parens_outdent.js +81 -0
  195. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml.js +103 -0
  196. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ocaml_highlight_rules.js +355 -0
  197. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl.js +117 -0
  198. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/perl_highlight_rules.js +168 -0
  199. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql.js +78 -0
  200. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/pgsql_highlight_rules.js +583 -0
  201. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php.js +119 -0
  202. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/php_highlight_rules.js +1165 -0
  203. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell.js +58 -0
  204. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/powershell_highlight_rules.js +138 -0
  205. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python.js +147 -0
  206. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_highlight_rules.js +182 -0
  207. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/python_test.js +86 -0
  208. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby.js +116 -0
  209. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules.js +194 -0
  210. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/ruby_highlight_rules_test.js +116 -0
  211. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad.js +132 -0
  212. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scad_highlight_rules.js +168 -0
  213. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala.js +25 -0
  214. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scala_highlight_rules.js +179 -0
  215. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss.js +86 -0
  216. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/scss_highlight_rules.js +304 -0
  217. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh.js +144 -0
  218. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sh_highlight_rules.js +145 -0
  219. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql.js +70 -0
  220. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/sql_highlight_rules.js +89 -0
  221. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg.js +78 -0
  222. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/svg_highlight_rules.js +71 -0
  223. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text.js +159 -0
  224. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_highlight_rules.js +109 -0
  225. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/text_test.js +71 -0
  226. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile.js +73 -0
  227. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/textile_highlight_rules.js +100 -0
  228. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml.js +65 -0
  229. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules.js +109 -0
  230. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_highlight_rules_test.js +103 -0
  231. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_test.js +82 -0
  232. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xml_util.js +120 -0
  233. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery.js +202 -0
  234. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Position.js +59 -0
  235. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/Readme.md +6 -0
  236. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/StringLexer.js +1686 -0
  237. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XMLLexer.js +2993 -0
  238. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTLexer.js +69 -0
  239. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQDTParser.js +63 -0
  240. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryLexer.js +10363 -0
  241. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQueryParser.js +42525 -0
  242. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/XQuerySemanticHighlighter.js +165 -0
  243. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/antlr3-all.js +6177 -0
  244. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery/xquery.js +55 -0
  245. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_highlight_rules.js +158 -0
  246. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/xquery_worker.js +86 -0
  247. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml.js +64 -0
  248. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/yaml_highlight_rules.js +116 -0
  249. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/model/editor.js +70 -0
  250. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_gutter_handler.js +73 -0
  251. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/default_handlers.js +354 -0
  252. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/dragdrop.js +105 -0
  253. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/fold_handler.js +71 -0
  254. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_event.js +140 -0
  255. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/mouse_handler.js +158 -0
  256. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mouse/multi_select_handler.js +163 -0
  257. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select.js +762 -0
  258. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/multi_select_test.js +171 -0
  259. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/definitions.js +696 -0
  260. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/lexer.js +598 -0
  261. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/options.js +61 -0
  262. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/narcissus/parser.js +2072 -0
  263. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder.js +278 -0
  264. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/placeholder_test.js +164 -0
  265. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range.js +581 -0
  266. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list.js +230 -0
  267. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_list_test.js +170 -0
  268. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/range_test.js +198 -0
  269. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/renderloop.js +93 -0
  270. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/requirejs/text.js +58 -0
  271. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/scrollbar.js +142 -0
  272. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search.js +398 -0
  273. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_highlight.js +87 -0
  274. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/search_test.js +451 -0
  275. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection.js +886 -0
  276. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/selection_test.js +472 -0
  277. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/split.js +411 -0
  278. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all.js +42 -0
  279. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/all_browser.js +136 -0
  280. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/assertions.js +63 -0
  281. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js +313 -0
  282. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/async.js +529 -0
  283. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/index.js +13 -0
  284. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/test.js +195 -0
  285. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/utils.js +65 -0
  286. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/benchmark.js +85 -0
  287. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockdom.js +10 -0
  288. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js +204 -0
  289. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/tests.html +46 -0
  290. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.css +159 -0
  291. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/chrome.js +46 -0
  292. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.css +118 -0
  293. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds.js +46 -0
  294. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.css +119 -0
  295. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/clouds_midnight.js +46 -0
  296. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.css +145 -0
  297. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/cobalt.js +46 -0
  298. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.css +151 -0
  299. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/crimson_editor.js +46 -0
  300. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.css +149 -0
  301. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dawn.js +46 -0
  302. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.css +182 -0
  303. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/dreamweaver.js +45 -0
  304. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.css +102 -0
  305. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/eclipse.js +48 -0
  306. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.css +133 -0
  307. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/github.js +46 -0
  308. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.css +137 -0
  309. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/idle_fingers.js +46 -0
  310. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.css +140 -0
  311. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/kr_theme.js +46 -0
  312. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.css +140 -0
  313. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore.js +46 -0
  314. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.css +146 -0
  315. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/merbivore_soft.js +46 -0
  316. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.css +148 -0
  317. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/mono_industrial.js +46 -0
  318. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.css +145 -0
  319. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/monokai.js +46 -0
  320. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.css +150 -0
  321. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/pastel_on_dark.js +46 -0
  322. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.css +131 -0
  323. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_dark.js +46 -0
  324. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.css +130 -0
  325. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/solarized_light.js +46 -0
  326. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.css +165 -0
  327. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/textmate.js +47 -0
  328. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.css +164 -0
  329. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow.js +46 -0
  330. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.css +164 -0
  331. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night.js +46 -0
  332. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.css +164 -0
  333. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_blue.js +46 -0
  334. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.css +164 -0
  335. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_bright.js +46 -0
  336. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.css +160 -0
  337. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/tomorrow_night_eighties.js +46 -0
  338. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.css +162 -0
  339. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/twilight.js +46 -0
  340. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.css +141 -0
  341. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/theme/vibrant_ink.js +46 -0
  342. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator.js +162 -0
  343. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/token_iterator_test.js +219 -0
  344. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/tokenizer.js +195 -0
  345. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/undomanager.js +142 -0
  346. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/unicode.js +107 -0
  347. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer.js +1402 -0
  348. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/virtual_renderer_test.js +93 -0
  349. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jshint.js +4469 -0
  350. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/jslint.js +6396 -0
  351. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/mirror.js +43 -0
  352. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker.js +138 -0
  353. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_client.js +176 -0
  354. data/lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/worker/worker_sourcemint.js +73 -0
  355. data/lib/gollum/frontend/public/gollum/livepreview/js/jquery.ba-throttle-debounce.min.js +2 -0
  356. data/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +456 -0
  357. data/lib/gollum/frontend/public/gollum/livepreview/js/md_sundown.js +22 -0
  358. data/lib/gollum/frontend/public/gollum/livepreview/js/requirejs.min.js +35 -0
  359. data/lib/gollum/frontend/public/gollum/livepreview/js/sundown.js +1 -0
  360. data/lib/gollum/frontend/public/gollum/livepreview/licenses/ace/LICENSE.txt +476 -0
  361. data/lib/gollum/frontend/public/gollum/livepreview/licenses/bootstraponline_gollum/LICENSE.txt +9 -0
  362. data/lib/gollum/frontend/public/gollum/livepreview/licenses/debounce/LICENSE-MIT.txt +22 -0
  363. data/lib/gollum/frontend/public/gollum/livepreview/licenses/gollum/LICENSE.txt +21 -0
  364. data/lib/gollum/frontend/public/gollum/livepreview/licenses/jquery/MIT-LICENSE.txt +20 -0
  365. data/lib/gollum/frontend/public/gollum/livepreview/licenses/licenses.txt +59 -0
  366. data/lib/gollum/frontend/public/gollum/livepreview/licenses/notepages/LICENSE.txt +19 -0
  367. data/lib/gollum/frontend/public/gollum/livepreview/licenses/requirejs/LICENSE.txt +58 -0
  368. data/lib/gollum/frontend/public/gollum/livepreview/licenses/retina_display_icon_set/by_sa_3.0_unported_legalcode.txt +359 -0
  369. data/lib/gollum/frontend/public/gollum/livepreview/licenses/sizzle/LICENSE.txt +148 -0
  370. data/lib/gollum/frontend/public/gollum/livepreview/licenses/sundown/sundown.txt +4 -0
  371. data/lib/gollum/frontend/public/gollum/livepreview/readme.md +44 -0
  372. data/lib/gollum/frontend/templates/compare.mustache +9 -9
  373. data/lib/gollum/frontend/templates/create.mustache +4 -1
  374. data/lib/gollum/frontend/templates/edit.mustache +6 -3
  375. data/lib/gollum/frontend/templates/editor.mustache +30 -14
  376. data/lib/gollum/frontend/templates/file_view.mustache +32 -0
  377. data/lib/gollum/frontend/templates/history.mustache +8 -8
  378. data/lib/gollum/frontend/templates/layout.mustache +21 -14
  379. data/lib/gollum/frontend/templates/page.mustache +37 -14
  380. data/lib/gollum/frontend/templates/pages.mustache +14 -10
  381. data/lib/gollum/frontend/templates/search.mustache +2 -2
  382. data/lib/gollum/frontend/templates/searchbar.mustache +1 -1
  383. data/lib/gollum/frontend/uri_encode_component.rb +172 -0
  384. data/lib/gollum/frontend/views/compare.rb +2 -4
  385. data/lib/gollum/frontend/views/create.rb +5 -0
  386. data/lib/gollum/frontend/views/edit.rb +12 -0
  387. data/lib/gollum/frontend/views/file_view.rb +19 -0
  388. data/lib/gollum/frontend/views/has_page.rb +15 -0
  389. data/lib/gollum/frontend/views/history.rb +8 -4
  390. data/lib/gollum/frontend/views/layout.rb +9 -1
  391. data/lib/gollum/frontend/views/page.rb +37 -10
  392. data/lib/gollum/frontend/views/pages.rb +48 -0
  393. data/lib/gollum/git_access.rb +2 -2
  394. data/lib/gollum/markup.rb +115 -19
  395. data/lib/gollum/page.rb +79 -9
  396. data/lib/gollum/tex.rb +319 -42
  397. data/lib/gollum/wiki.rb +92 -12
  398. data/licenses/css_tree_menu_thecssninja/license.txt +50 -0
  399. data/licenses/licenses.txt +23 -0
  400. data/licenses/unity_asset_pool/COPYRIGHT +286 -0
  401. data/test/examples/lotr.git/config +1 -1
  402. data/test/examples/lotr.git/logs/HEAD +4 -0
  403. data/test/examples/lotr.git/logs/refs/heads/master +4 -0
  404. data/test/examples/lotr.git/objects/0d/c9016ca928c78d5421a99a53b379b53929221e +0 -0
  405. data/test/examples/lotr.git/objects/1c/79ddc69707f7b164bc2ea58beb5d8965ff6bd0 +0 -0
  406. data/test/examples/lotr.git/objects/27/680b0fce1abfbc528e7aa53d92645852d52eb6 +0 -0
  407. data/test/examples/lotr.git/objects/45/3b250f979c7bd6dfb62640c944c982ae6721ee +0 -0
  408. data/test/examples/lotr.git/objects/45/f319ee12f2b551b901b22e72602963c366fff1 +0 -0
  409. data/test/examples/lotr.git/objects/46/a697caf435815bb07bbce947fc2d58be15f087 +0 -0
  410. data/test/examples/lotr.git/objects/4c/45c2b4e297a726c3d3f66886f35373e48fe1c5 +2 -0
  411. data/test/examples/lotr.git/objects/4e/023f460ce466e154ca09d8774c79ad5a53fc15 +0 -0
  412. data/test/examples/lotr.git/objects/62/9aa678272b017a4d136d35e77ac94d80b08dc2 +1 -0
  413. data/test/examples/lotr.git/objects/6e/48abfc56565574859e081ee58eae655d48cf71 +0 -0
  414. data/test/examples/lotr.git/objects/7b/60c5a20a501a70f2317fa0ef763e1e2ce22d6b +0 -0
  415. data/test/examples/lotr.git/objects/7d/981cd984ad589e3cf00d8122170c6f7d685979 +0 -0
  416. data/test/examples/lotr.git/objects/94/9a9cc3119b9c98817f375e976d2bb5e2a42809 +0 -0
  417. data/test/examples/lotr.git/objects/9b/e95b960ac388d4e7db55f610f828e9c31344e6 +0 -0
  418. data/test/examples/lotr.git/objects/b0/de6e794dfdc7ef3400e894225bfe23308aae5c +0 -0
  419. data/test/examples/lotr.git/objects/b1/6b3d9fad9d78e5a669e7f33d94c96da374eccd +0 -0
  420. data/test/examples/lotr.git/objects/c9/6a7645db5d4c76389e77cd103ef3ed77d81e4c +0 -0
  421. data/test/examples/lotr.git/objects/ca/7355dc497e9729fbaf0c0e3f424b86afef5614 +0 -0
  422. data/test/examples/lotr.git/objects/cf/ea406f5f77afc7fb673a43e97721234385b1bd +2 -0
  423. data/test/examples/lotr.git/objects/d5/29304506d37f544675244c335d85cab5d29966 +0 -0
  424. data/test/examples/lotr.git/objects/fb/c5dd7d807707b4a0a97c1182fecfef1eced5df +1 -0
  425. data/test/examples/lotr.git/objects/fc/3eee516ff72dc9099ba00d4611eb02e5c9e634 +0 -0
  426. data/test/examples/lotr.git/objects/ff/6f7de62644369380ba73b4e4297c1a2d6f0b66 +0 -0
  427. data/test/examples/lotr.git/refs/heads/master +1 -1
  428. data/test/examples/revert.git/COMMIT_EDITMSG +1 -1
  429. data/test/examples/revert.git/index +0 -0
  430. data/test/examples/revert.git/logs/HEAD +1 -0
  431. data/test/examples/revert.git/logs/refs/heads/master +1 -0
  432. data/test/examples/revert.git/objects/10/2685c42018f802557f05db171f44443e8dacab +0 -0
  433. data/test/examples/revert.git/objects/8e/83f898e5e16ae400db59dda1017acad540f3aa +0 -0
  434. data/test/examples/revert.git/objects/ed/6c9f63b98acf73c25b5ffbb38da557d3682023 +3 -0
  435. data/test/examples/revert.git/refs/heads/master +1 -1
  436. data/test/file_view/1_file.txt +3 -0
  437. data/test/file_view/1_file_1_folder.txt +8 -0
  438. data/test/file_view/1_folder.txt +8 -0
  439. data/test/file_view/2_files_2_folders.txt +12 -0
  440. data/test/file_view/2_files_2_folders_1_root.txt +13 -0
  441. data/test/file_view/nested_folders.txt +28 -0
  442. data/test/test_app.rb +162 -12
  443. data/test/test_app_helpers.rb +13 -0
  444. data/test/test_committer.rb +1 -1
  445. data/test/test_file_view.rb +102 -0
  446. data/test/test_git_access.rb +3 -2
  447. data/test/test_markup.rb +45 -12
  448. data/test/test_page.rb +65 -1
  449. data/test/test_page_revert.rb +14 -2
  450. data/test/test_pages_view.rb +37 -0
  451. data/test/test_unicode.rb +110 -0
  452. data/test/test_wiki.rb +51 -4
  453. metadata +658 -239
  454. data/lib/gollum/frontend/public/gollum/javascript/jquery.js +0 -7179
@@ -0,0 +1,2993 @@
1
+ define(function(require, exports, module) {
2
+ // $ANTLR 3.3 Nov 30, 2010 12:50:56 xquery/XMLLexer.g 2012-05-25 02:35:40
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 XMLLexer = function(input, state) {
44
+ // alternate constructor @todo
45
+ // public XMLLexer(CharStream input)
46
+ // public XMLLexer(CharStream input, RecognizerSharedState state) {
47
+ if (!state) {
48
+ state = new org.antlr.runtime.RecognizerSharedState();
49
+ }
50
+
51
+ (function(){
52
+
53
+
54
+ this.inElem = true;
55
+ this.inAposAttr = false;
56
+ this.inQuotAttr = false;
57
+
58
+ this.isInElement = function()
59
+ {
60
+ return this.inElem;
61
+ }
62
+
63
+ this.isInAposAttribute = function()
64
+ {
65
+ return this.inAposAttr;
66
+ }
67
+
68
+ this.isInQuotAttr = function()
69
+ {
70
+ return this.inQuotAttr;
71
+ }
72
+
73
+ this.addToStack = function(stack) {
74
+ if (!this.inAposAttr && !this.inQuotAttr)
75
+ this.inElem = false;
76
+ stack.push(this);
77
+ }
78
+
79
+
80
+ // dummy list for warning elimination
81
+ //List<Stack<Object>> dummy = new ArrayList<Stack<Object>>();
82
+
83
+ // when we start, the '<' has already been eaten by the other lexer
84
+ //boolean inElem = true;
85
+ //boolean inAposAttr = false;
86
+ //boolean inQuotAttr = false;
87
+ //
88
+ //public boolean isInElement()
89
+ //{
90
+ // return inElem;
91
+ //}
92
+ //
93
+ //public boolean isInAposAttribute()
94
+ //{
95
+ // return inAposAttr;
96
+ //}
97
+ //
98
+ //public boolean isInQuotAttr()
99
+ //{
100
+ // return inQuotAttr;
101
+ //}
102
+ //
103
+ //@Override
104
+ //public void addToStack(List<XQDTLexer> stack) {
105
+ // if (!inAposAttr && !inQuotAttr)
106
+ // inElem = false;
107
+ // stack.add(this);
108
+ //}
109
+ //
110
+ //private boolean log() {
111
+ // System.out.println("inApos:\t" + inAposAttr);
112
+ // System.out.println("inQuot:\t" + inQuotAttr);
113
+ // System.out.println("inElem:\t" + inElem);
114
+ // System.out.println("---------------------");
115
+ // return false;
116
+ //}
117
+
118
+
119
+ }).call(this);
120
+
121
+ this.dfa16 = new XMLLexer.DFA16(this);
122
+ XMLLexer.superclass.constructor.call(this, input, state);
123
+
124
+
125
+ };
126
+
127
+ org.antlr.lang.augmentObject(XMLLexer, {
128
+ EOF: -1,
129
+ L_QuotAttrContentChar: 4,
130
+ L_AposAttrContentChar: 5,
131
+ L_ElementContentChar: 6,
132
+ L_CDataSection: 7,
133
+ L_PredefinedEntityRef: 8,
134
+ L_CharRef: 9,
135
+ ESCAPE_LBRACKET: 10,
136
+ ESCAPE_RBRACKET: 11,
137
+ ESCAPE_APOS: 12,
138
+ ESCAPE_QUOT: 13,
139
+ CDATA_START: 14,
140
+ CDATA_END: 15,
141
+ ANCESTOR: 16,
142
+ ANCESTOR_OR_SELF: 17,
143
+ AND: 18,
144
+ AS: 19,
145
+ ASCENDING: 20,
146
+ AT: 21,
147
+ ATTRIBUTE: 22,
148
+ BASE_URI: 23,
149
+ BOUNDARY_SPACE: 24,
150
+ BY: 25,
151
+ CASE: 26,
152
+ CAST: 27,
153
+ CASTABLE: 28,
154
+ CHILD: 29,
155
+ COLLATION: 30,
156
+ COMMENT: 31,
157
+ CONSTRUCTION: 32,
158
+ COPY_NAMESPACES: 33,
159
+ DECLARE: 34,
160
+ DEFAULT: 35,
161
+ DESCENDANT: 36,
162
+ DESCENDANT_OR_SELF: 37,
163
+ DESCENDING: 38,
164
+ DIV: 39,
165
+ DOCUMENT: 40,
166
+ DOCUMENT_NODE: 41,
167
+ ELEMENT: 42,
168
+ ELSE: 43,
169
+ EMPTY: 44,
170
+ EMPTY_SEQUENCE: 45,
171
+ ENCODING: 46,
172
+ EQ: 47,
173
+ EVERY: 48,
174
+ EXCEPT: 49,
175
+ EXTERNAL: 50,
176
+ FOLLOWING: 51,
177
+ FOLLOWING_SIBLING: 52,
178
+ FOR: 53,
179
+ FUNCTION: 54,
180
+ GE: 55,
181
+ GREATEST: 56,
182
+ GT: 57,
183
+ IDIV: 58,
184
+ IF: 59,
185
+ IMPORT: 60,
186
+ IN: 61,
187
+ INHERIT: 62,
188
+ INSTANCE: 63,
189
+ INTERSECT: 64,
190
+ IS: 65,
191
+ ITEM: 66,
192
+ LAX: 67,
193
+ LE: 68,
194
+ LEAST: 69,
195
+ LET: 70,
196
+ LT: 71,
197
+ MOD: 72,
198
+ MODULE: 73,
199
+ NAMESPACE: 74,
200
+ NE: 75,
201
+ NO_INHERIT: 76,
202
+ NO_PRESERVE: 77,
203
+ NODE: 78,
204
+ OF: 79,
205
+ OPTION: 80,
206
+ OR: 81,
207
+ ORDER: 82,
208
+ ORDERED: 83,
209
+ ORDERING: 84,
210
+ PARENT: 85,
211
+ PRECEDING: 86,
212
+ PRECEDING_SIBLING: 87,
213
+ PRESERVE: 88,
214
+ PROCESSING_INSTRUCTION: 89,
215
+ RETURN: 90,
216
+ SATISFIES: 91,
217
+ SCHEMA: 92,
218
+ SCHEMA_ATTRIBUTE: 93,
219
+ SCHEMA_ELEMENT: 94,
220
+ SELF: 95,
221
+ SOME: 96,
222
+ STABLE: 97,
223
+ STRICT: 98,
224
+ STRIP: 99,
225
+ TEXT: 100,
226
+ THEN: 101,
227
+ TO: 102,
228
+ TREAT: 103,
229
+ TYPESWITCH: 104,
230
+ UNION: 105,
231
+ UNORDERED: 106,
232
+ VALIDATE: 107,
233
+ VARIABLE: 108,
234
+ VERSION: 109,
235
+ WHERE: 110,
236
+ XQUERY: 111,
237
+ ALLOWING: 112,
238
+ CATCH: 113,
239
+ CONTEXT: 114,
240
+ COUNT: 115,
241
+ DECIMAL_FORMAT: 116,
242
+ DECIMAL_SEPARATOR: 117,
243
+ DIGIT: 118,
244
+ END: 119,
245
+ GROUP: 120,
246
+ GROUPING_SEPARATOR: 121,
247
+ INFINITY: 122,
248
+ MINUS_SIGN: 123,
249
+ NAMESPACE_NODE: 124,
250
+ NAN: 125,
251
+ NEXT: 126,
252
+ ONLY: 127,
253
+ PATTERN_SEPARATOR: 128,
254
+ PERCENT: 129,
255
+ PER_MILLE: 130,
256
+ PREVIOUS: 131,
257
+ SLIDING: 132,
258
+ START: 133,
259
+ SWITCH: 134,
260
+ TRY: 135,
261
+ TUMBLING: 136,
262
+ TYPE: 137,
263
+ WHEN: 138,
264
+ WINDOW: 139,
265
+ ZERO_DIGIT: 140,
266
+ AFTER: 141,
267
+ BEFORE: 142,
268
+ COPY: 143,
269
+ DELETE: 144,
270
+ FIRST: 145,
271
+ INSERT: 146,
272
+ INTO: 147,
273
+ LAST: 148,
274
+ MODIFY: 149,
275
+ NODES: 150,
276
+ RENAME: 151,
277
+ REPLACE: 152,
278
+ REVALIDATION: 153,
279
+ SKIP: 154,
280
+ UPDATING: 155,
281
+ VALUE: 156,
282
+ WITH: 157,
283
+ ALL: 158,
284
+ ANY: 159,
285
+ CONTAINS: 160,
286
+ CONTENT: 161,
287
+ DIACRITICS: 162,
288
+ DIFFERENT: 163,
289
+ DISTANCE: 164,
290
+ ENTIRE: 165,
291
+ EXACTLY: 166,
292
+ FROM: 167,
293
+ FT_OPTION: 168,
294
+ FTAND: 169,
295
+ FTNOT: 170,
296
+ FTOR: 171,
297
+ INSENSITIVE: 172,
298
+ LANGUAGE: 173,
299
+ LEVELS: 174,
300
+ LOWERCASE: 175,
301
+ MOST: 176,
302
+ NO: 177,
303
+ NOT: 178,
304
+ OCCURS: 179,
305
+ PARAGRAPH: 180,
306
+ PARAGRAPHS: 181,
307
+ PHRASE: 182,
308
+ RELATIONSHIP: 183,
309
+ SAME: 184,
310
+ SCORE: 185,
311
+ SENSITIVE: 186,
312
+ SENTENCE: 187,
313
+ SENTENCES: 188,
314
+ STEMMING: 189,
315
+ STOP: 190,
316
+ THESAURUS: 191,
317
+ TIMES: 192,
318
+ UPPERCASE: 193,
319
+ USING: 194,
320
+ WEIGHT: 195,
321
+ WILDCARDS: 196,
322
+ WITHOUT: 197,
323
+ WORD: 198,
324
+ WORDS: 199,
325
+ BREAK: 200,
326
+ CONTINUE: 201,
327
+ EXIT: 202,
328
+ LOOP: 203,
329
+ RETURNING: 204,
330
+ WHILE: 205,
331
+ CHECK: 206,
332
+ COLLECTION: 207,
333
+ CONSTRAINT: 208,
334
+ FOREACH: 209,
335
+ FOREIGN: 210,
336
+ INDEX: 211,
337
+ INTEGRITY: 212,
338
+ KEY: 213,
339
+ ON: 214,
340
+ UNIQUE: 215,
341
+ BINARY: 216,
342
+ AMP_ER: 217,
343
+ APOS_ER: 218,
344
+ QUOT_ER: 219,
345
+ CONCAT: 220,
346
+ LPAREN: 221,
347
+ RPAREN: 222,
348
+ DOLLAR: 223,
349
+ LBRACKET: 224,
350
+ RBRACKET: 225,
351
+ LSQUARE: 226,
352
+ RSQUARE: 227,
353
+ EQUAL: 228,
354
+ BIND: 229,
355
+ NOTEQUAL: 230,
356
+ ANN_PERCENT: 231,
357
+ HASH: 232,
358
+ AMP: 233,
359
+ COMMA: 234,
360
+ QUESTION: 235,
361
+ STAR: 236,
362
+ PLUS: 237,
363
+ MINUS: 238,
364
+ SMALLER: 239,
365
+ GREATER: 240,
366
+ SMALLEREQ: 241,
367
+ GREATEREQ: 242,
368
+ SMALLER_SMALLER: 243,
369
+ GREATER_GREATER: 244,
370
+ SLASH: 245,
371
+ SLASH_SLASH: 246,
372
+ DOT: 247,
373
+ DOT_DOT: 248,
374
+ COLON: 249,
375
+ COLON_COLON: 250,
376
+ EMPTY_CLOSE_TAG: 251,
377
+ CLOSE_TAG: 252,
378
+ SEMICOLON: 253,
379
+ VBAR: 254,
380
+ PRAGMA_START: 255,
381
+ PRAGMA_END: 256,
382
+ XML_COMMENT_START: 257,
383
+ XML_COMMENT_END: 258,
384
+ PI_START: 259,
385
+ PI_END: 260,
386
+ ATTR_SIGN: 261,
387
+ CHARREF_DEC: 262,
388
+ CHARREF_HEX: 263,
389
+ APOS: 264,
390
+ QUOT: 265,
391
+ NCNameStartChar: 266,
392
+ NCNameChar: 267,
393
+ L_NCName: 268,
394
+ Letter: 269,
395
+ HexLetter: 270,
396
+ Digit: 271,
397
+ Digits: 272,
398
+ S: 273,
399
+ SU: 274,
400
+ L_Pragma: 275,
401
+ L_DirCommentConstructor: 276,
402
+ L_DirPIConstructor: 277,
403
+ L_IntegerLiteral: 278,
404
+ L_DecimalLiteral: 279,
405
+ L_DoubleLiteral: 280,
406
+ L_Comment: 281,
407
+ L_AnyChar: 282,
408
+ NCNameUnprotected: 283,
409
+ XMLDigit: 284
410
+ });
411
+
412
+ (function(){
413
+ var HIDDEN = org.antlr.runtime.Token.HIDDEN_CHANNEL,
414
+ EOF = org.antlr.runtime.Token.EOF;
415
+ org.antlr.lang.extend(XMLLexer, XQDTLexer, {
416
+ EOF : -1,
417
+ L_QuotAttrContentChar : 4,
418
+ L_AposAttrContentChar : 5,
419
+ L_ElementContentChar : 6,
420
+ L_CDataSection : 7,
421
+ L_PredefinedEntityRef : 8,
422
+ L_CharRef : 9,
423
+ ESCAPE_LBRACKET : 10,
424
+ ESCAPE_RBRACKET : 11,
425
+ ESCAPE_APOS : 12,
426
+ ESCAPE_QUOT : 13,
427
+ CDATA_START : 14,
428
+ CDATA_END : 15,
429
+ ANCESTOR : 16,
430
+ ANCESTOR_OR_SELF : 17,
431
+ AND : 18,
432
+ AS : 19,
433
+ ASCENDING : 20,
434
+ AT : 21,
435
+ ATTRIBUTE : 22,
436
+ BASE_URI : 23,
437
+ BOUNDARY_SPACE : 24,
438
+ BY : 25,
439
+ CASE : 26,
440
+ CAST : 27,
441
+ CASTABLE : 28,
442
+ CHILD : 29,
443
+ COLLATION : 30,
444
+ COMMENT : 31,
445
+ CONSTRUCTION : 32,
446
+ COPY_NAMESPACES : 33,
447
+ DECLARE : 34,
448
+ DEFAULT : 35,
449
+ DESCENDANT : 36,
450
+ DESCENDANT_OR_SELF : 37,
451
+ DESCENDING : 38,
452
+ DIV : 39,
453
+ DOCUMENT : 40,
454
+ DOCUMENT_NODE : 41,
455
+ ELEMENT : 42,
456
+ ELSE : 43,
457
+ EMPTY : 44,
458
+ EMPTY_SEQUENCE : 45,
459
+ ENCODING : 46,
460
+ EQ : 47,
461
+ EVERY : 48,
462
+ EXCEPT : 49,
463
+ EXTERNAL : 50,
464
+ FOLLOWING : 51,
465
+ FOLLOWING_SIBLING : 52,
466
+ FOR : 53,
467
+ FUNCTION : 54,
468
+ GE : 55,
469
+ GREATEST : 56,
470
+ GT : 57,
471
+ IDIV : 58,
472
+ IF : 59,
473
+ IMPORT : 60,
474
+ IN : 61,
475
+ INHERIT : 62,
476
+ INSTANCE : 63,
477
+ INTERSECT : 64,
478
+ IS : 65,
479
+ ITEM : 66,
480
+ LAX : 67,
481
+ LE : 68,
482
+ LEAST : 69,
483
+ LET : 70,
484
+ LT : 71,
485
+ MOD : 72,
486
+ MODULE : 73,
487
+ NAMESPACE : 74,
488
+ NE : 75,
489
+ NO_INHERIT : 76,
490
+ NO_PRESERVE : 77,
491
+ NODE : 78,
492
+ OF : 79,
493
+ OPTION : 80,
494
+ OR : 81,
495
+ ORDER : 82,
496
+ ORDERED : 83,
497
+ ORDERING : 84,
498
+ PARENT : 85,
499
+ PRECEDING : 86,
500
+ PRECEDING_SIBLING : 87,
501
+ PRESERVE : 88,
502
+ PROCESSING_INSTRUCTION : 89,
503
+ RETURN : 90,
504
+ SATISFIES : 91,
505
+ SCHEMA : 92,
506
+ SCHEMA_ATTRIBUTE : 93,
507
+ SCHEMA_ELEMENT : 94,
508
+ SELF : 95,
509
+ SOME : 96,
510
+ STABLE : 97,
511
+ STRICT : 98,
512
+ STRIP : 99,
513
+ TEXT : 100,
514
+ THEN : 101,
515
+ TO : 102,
516
+ TREAT : 103,
517
+ TYPESWITCH : 104,
518
+ UNION : 105,
519
+ UNORDERED : 106,
520
+ VALIDATE : 107,
521
+ VARIABLE : 108,
522
+ VERSION : 109,
523
+ WHERE : 110,
524
+ XQUERY : 111,
525
+ ALLOWING : 112,
526
+ CATCH : 113,
527
+ CONTEXT : 114,
528
+ COUNT : 115,
529
+ DECIMAL_FORMAT : 116,
530
+ DECIMAL_SEPARATOR : 117,
531
+ DIGIT : 118,
532
+ END : 119,
533
+ GROUP : 120,
534
+ GROUPING_SEPARATOR : 121,
535
+ INFINITY : 122,
536
+ MINUS_SIGN : 123,
537
+ NAMESPACE_NODE : 124,
538
+ NAN : 125,
539
+ NEXT : 126,
540
+ ONLY : 127,
541
+ PATTERN_SEPARATOR : 128,
542
+ PERCENT : 129,
543
+ PER_MILLE : 130,
544
+ PREVIOUS : 131,
545
+ SLIDING : 132,
546
+ START : 133,
547
+ SWITCH : 134,
548
+ TRY : 135,
549
+ TUMBLING : 136,
550
+ TYPE : 137,
551
+ WHEN : 138,
552
+ WINDOW : 139,
553
+ ZERO_DIGIT : 140,
554
+ AFTER : 141,
555
+ BEFORE : 142,
556
+ COPY : 143,
557
+ DELETE : 144,
558
+ FIRST : 145,
559
+ INSERT : 146,
560
+ INTO : 147,
561
+ LAST : 148,
562
+ MODIFY : 149,
563
+ NODES : 150,
564
+ RENAME : 151,
565
+ REPLACE : 152,
566
+ REVALIDATION : 153,
567
+ SKIP : 154,
568
+ UPDATING : 155,
569
+ VALUE : 156,
570
+ WITH : 157,
571
+ ALL : 158,
572
+ ANY : 159,
573
+ CONTAINS : 160,
574
+ CONTENT : 161,
575
+ DIACRITICS : 162,
576
+ DIFFERENT : 163,
577
+ DISTANCE : 164,
578
+ ENTIRE : 165,
579
+ EXACTLY : 166,
580
+ FROM : 167,
581
+ FT_OPTION : 168,
582
+ FTAND : 169,
583
+ FTNOT : 170,
584
+ FTOR : 171,
585
+ INSENSITIVE : 172,
586
+ LANGUAGE : 173,
587
+ LEVELS : 174,
588
+ LOWERCASE : 175,
589
+ MOST : 176,
590
+ NO : 177,
591
+ NOT : 178,
592
+ OCCURS : 179,
593
+ PARAGRAPH : 180,
594
+ PARAGRAPHS : 181,
595
+ PHRASE : 182,
596
+ RELATIONSHIP : 183,
597
+ SAME : 184,
598
+ SCORE : 185,
599
+ SENSITIVE : 186,
600
+ SENTENCE : 187,
601
+ SENTENCES : 188,
602
+ STEMMING : 189,
603
+ STOP : 190,
604
+ THESAURUS : 191,
605
+ TIMES : 192,
606
+ UPPERCASE : 193,
607
+ USING : 194,
608
+ WEIGHT : 195,
609
+ WILDCARDS : 196,
610
+ WITHOUT : 197,
611
+ WORD : 198,
612
+ WORDS : 199,
613
+ BREAK : 200,
614
+ CONTINUE : 201,
615
+ EXIT : 202,
616
+ LOOP : 203,
617
+ RETURNING : 204,
618
+ WHILE : 205,
619
+ CHECK : 206,
620
+ COLLECTION : 207,
621
+ CONSTRAINT : 208,
622
+ FOREACH : 209,
623
+ FOREIGN : 210,
624
+ INDEX : 211,
625
+ INTEGRITY : 212,
626
+ KEY : 213,
627
+ ON : 214,
628
+ UNIQUE : 215,
629
+ BINARY : 216,
630
+ AMP_ER : 217,
631
+ APOS_ER : 218,
632
+ QUOT_ER : 219,
633
+ CONCAT : 220,
634
+ LPAREN : 221,
635
+ RPAREN : 222,
636
+ DOLLAR : 223,
637
+ LBRACKET : 224,
638
+ RBRACKET : 225,
639
+ LSQUARE : 226,
640
+ RSQUARE : 227,
641
+ EQUAL : 228,
642
+ BIND : 229,
643
+ NOTEQUAL : 230,
644
+ ANN_PERCENT : 231,
645
+ HASH : 232,
646
+ AMP : 233,
647
+ COMMA : 234,
648
+ QUESTION : 235,
649
+ STAR : 236,
650
+ PLUS : 237,
651
+ MINUS : 238,
652
+ SMALLER : 239,
653
+ GREATER : 240,
654
+ SMALLEREQ : 241,
655
+ GREATEREQ : 242,
656
+ SMALLER_SMALLER : 243,
657
+ GREATER_GREATER : 244,
658
+ SLASH : 245,
659
+ SLASH_SLASH : 246,
660
+ DOT : 247,
661
+ DOT_DOT : 248,
662
+ COLON : 249,
663
+ COLON_COLON : 250,
664
+ EMPTY_CLOSE_TAG : 251,
665
+ CLOSE_TAG : 252,
666
+ SEMICOLON : 253,
667
+ VBAR : 254,
668
+ PRAGMA_START : 255,
669
+ PRAGMA_END : 256,
670
+ XML_COMMENT_START : 257,
671
+ XML_COMMENT_END : 258,
672
+ PI_START : 259,
673
+ PI_END : 260,
674
+ ATTR_SIGN : 261,
675
+ CHARREF_DEC : 262,
676
+ CHARREF_HEX : 263,
677
+ APOS : 264,
678
+ QUOT : 265,
679
+ NCNameStartChar : 266,
680
+ NCNameChar : 267,
681
+ L_NCName : 268,
682
+ Letter : 269,
683
+ HexLetter : 270,
684
+ Digit : 271,
685
+ Digits : 272,
686
+ S : 273,
687
+ SU : 274,
688
+ L_Pragma : 275,
689
+ L_DirCommentConstructor : 276,
690
+ L_DirPIConstructor : 277,
691
+ L_IntegerLiteral : 278,
692
+ L_DecimalLiteral : 279,
693
+ L_DoubleLiteral : 280,
694
+ L_Comment : 281,
695
+ L_AnyChar : 282,
696
+ NCNameUnprotected : 283,
697
+ XMLDigit : 284,
698
+ getGrammarFileName: function() { return "xquery/XMLLexer.g"; }
699
+ });
700
+ org.antlr.lang.augmentObject(XMLLexer.prototype, {
701
+ // $ANTLR start QUOT
702
+ mQUOT: function() {
703
+ try {
704
+ var _type = this.QUOT;
705
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
706
+ // xquery/XMLLexer.g:132:6: ({...}? => '\"' )
707
+ // xquery/XMLLexer.g:132:8: {...}? => '\"'
708
+ if ( !(( this.inElem || this.inQuotAttr )) ) {
709
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "QUOT", " this.inElem || this.inQuotAttr ");
710
+ }
711
+ this.match('\"');
712
+ if (!this.inAposAttr) this.inQuotAttr = (!this.inQuotAttr);
713
+
714
+
715
+
716
+ this.state.type = _type;
717
+ this.state.channel = _channel;
718
+ }
719
+ finally {
720
+ }
721
+ },
722
+ // $ANTLR end "QUOT",
723
+
724
+ // $ANTLR start APOS
725
+ mAPOS: function() {
726
+ try {
727
+ var _type = this.APOS;
728
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
729
+ // xquery/XMLLexer.g:133:6: ({...}? => '\\'' )
730
+ // xquery/XMLLexer.g:133:8: {...}? => '\\''
731
+ if ( !(( this.inElem || this.inAposAttr )) ) {
732
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "APOS", " this.inElem || this.inAposAttr ");
733
+ }
734
+ this.match('\'');
735
+ if (!this.inQuotAttr) this.inAposAttr = !this.inAposAttr;
736
+
737
+
738
+
739
+ this.state.type = _type;
740
+ this.state.channel = _channel;
741
+ }
742
+ finally {
743
+ }
744
+ },
745
+ // $ANTLR end "APOS",
746
+
747
+ // $ANTLR start L_QuotAttrContentChar
748
+ mL_QuotAttrContentChar: function() {
749
+ try {
750
+ var _type = this.L_QuotAttrContentChar;
751
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
752
+ // xquery/XMLLexer.g:136:2: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
753
+ // xquery/XMLLexer.g:136:4: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
754
+ if ( !(( this.inQuotAttr )) ) {
755
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_QuotAttrContentChar", " this.inQuotAttr ");
756
+ }
757
+ // xquery/XMLLexer.g:137:3: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
758
+ var cnt1=0;
759
+ loop1:
760
+ do {
761
+ var alt1=2;
762
+ var LA1_0 = this.input.LA(1);
763
+
764
+ if ( ((LA1_0>='\t' && LA1_0<='\n')||LA1_0=='\r'||(LA1_0>=' ' && LA1_0<='!')||(LA1_0>='#' && LA1_0<='%')||(LA1_0>='(' && LA1_0<=';')||(LA1_0>='=' && LA1_0<='z')||LA1_0=='|'||(LA1_0>='~' && LA1_0<='\uD7FF')||(LA1_0>='\uE000' && LA1_0<='\uFFFD')) ) {
765
+ alt1=1;
766
+ }
767
+
768
+
769
+ switch (alt1) {
770
+ case 1 :
771
+ // xquery/XMLLexer.g:
772
+ 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)<=';')||(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') ) {
773
+ this.input.consume();
774
+
775
+ }
776
+ else {
777
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
778
+ this.recover(mse);
779
+ throw mse;}
780
+
781
+
782
+
783
+ break;
784
+
785
+ default :
786
+ if ( cnt1 >= 1 ) {
787
+ break loop1;
788
+ }
789
+ var eee = new org.antlr.runtime.EarlyExitException(1, this.input);
790
+ throw eee;
791
+ }
792
+ cnt1++;
793
+ } while (true);
794
+
795
+
796
+
797
+
798
+ this.state.type = _type;
799
+ this.state.channel = _channel;
800
+ }
801
+ finally {
802
+ }
803
+ },
804
+ // $ANTLR end "L_QuotAttrContentChar",
805
+
806
+ // $ANTLR start L_AposAttrContentChar
807
+ mL_AposAttrContentChar: function() {
808
+ try {
809
+ var _type = this.L_AposAttrContentChar;
810
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
811
+ // xquery/XMLLexer.g:143:2: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
812
+ // xquery/XMLLexer.g:143:4: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
813
+ if ( !(( this.inAposAttr )) ) {
814
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_AposAttrContentChar", " this.inAposAttr ");
815
+ }
816
+ // xquery/XMLLexer.g:144:3: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' | '\\u0021' | '\\u0023' .. '\\u0025' | '\\u0028' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' .. '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
817
+ var cnt2=0;
818
+ loop2:
819
+ do {
820
+ var alt2=2;
821
+ var LA2_0 = this.input.LA(1);
822
+
823
+ if ( ((LA2_0>='\t' && LA2_0<='\n')||LA2_0=='\r'||(LA2_0>=' ' && LA2_0<='!')||(LA2_0>='#' && LA2_0<='%')||(LA2_0>='(' && LA2_0<=';')||(LA2_0>='=' && LA2_0<='z')||LA2_0=='|'||(LA2_0>='~' && LA2_0<='\uD7FF')||(LA2_0>='\uE000' && LA2_0<='\uFFFD')) ) {
824
+ alt2=1;
825
+ }
826
+
827
+
828
+ switch (alt2) {
829
+ case 1 :
830
+ // xquery/XMLLexer.g:
831
+ 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)<=';')||(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') ) {
832
+ this.input.consume();
833
+
834
+ }
835
+ else {
836
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
837
+ this.recover(mse);
838
+ throw mse;}
839
+
840
+
841
+
842
+ break;
843
+
844
+ default :
845
+ if ( cnt2 >= 1 ) {
846
+ break loop2;
847
+ }
848
+ var eee = new org.antlr.runtime.EarlyExitException(2, this.input);
849
+ throw eee;
850
+ }
851
+ cnt2++;
852
+ } while (true);
853
+
854
+
855
+
856
+
857
+ this.state.type = _type;
858
+ this.state.channel = _channel;
859
+ }
860
+ finally {
861
+ }
862
+ },
863
+ // $ANTLR end "L_AposAttrContentChar",
864
+
865
+ // $ANTLR start L_ElementContentChar
866
+ mL_ElementContentChar: function() {
867
+ try {
868
+ var _type = this.L_ElementContentChar;
869
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
870
+ // xquery/XMLLexer.g:151:2: ({...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+ )
871
+ // xquery/XMLLexer.g:151:4: {...}? => ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
872
+ if ( !(( !this.inElem )) ) {
873
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_ElementContentChar", " !this.inElem ");
874
+ }
875
+ // xquery/XMLLexer.g:152:3: ( '\\u0009' | '\\u000A' | '\\u000D' | '\\u0020' .. '\\u0025' | '\\u0027' .. '\\u003B' | '\\u003D' .. '\\u007A' | '\\u007C' | '\\u007E' .. '\\uD7FF' | '\\uE000' .. '\\uFFFD' )+
876
+ var cnt3=0;
877
+ loop3:
878
+ do {
879
+ var alt3=2;
880
+ var LA3_0 = this.input.LA(1);
881
+
882
+ if ( ((LA3_0>='\t' && LA3_0<='\n')||LA3_0=='\r'||(LA3_0>=' ' && LA3_0<='%')||(LA3_0>='\'' && LA3_0<=';')||(LA3_0>='=' && LA3_0<='z')||LA3_0=='|'||(LA3_0>='~' && LA3_0<='\uD7FF')||(LA3_0>='\uE000' && LA3_0<='\uFFFD')) ) {
883
+ alt3=1;
884
+ }
885
+
886
+
887
+ switch (alt3) {
888
+ case 1 :
889
+ // xquery/XMLLexer.g:
890
+ 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') ) {
891
+ this.input.consume();
892
+
893
+ }
894
+ else {
895
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
896
+ this.recover(mse);
897
+ throw mse;}
898
+
899
+
900
+
901
+ break;
902
+
903
+ default :
904
+ if ( cnt3 >= 1 ) {
905
+ break loop3;
906
+ }
907
+ var eee = new org.antlr.runtime.EarlyExitException(3, this.input);
908
+ throw eee;
909
+ }
910
+ cnt3++;
911
+ } while (true);
912
+
913
+
914
+
915
+
916
+ this.state.type = _type;
917
+ this.state.channel = _channel;
918
+ }
919
+ finally {
920
+ }
921
+ },
922
+ // $ANTLR end "L_ElementContentChar",
923
+
924
+ // $ANTLR start GREATER
925
+ mGREATER: function() {
926
+ try {
927
+ var _type = this.GREATER;
928
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
929
+ // xquery/XMLLexer.g:158:2: ({...}? => '>' )
930
+ // xquery/XMLLexer.g:158:4: {...}? => '>'
931
+ if ( !(( this.inElem )) ) {
932
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "GREATER", " this.inElem ");
933
+ }
934
+ this.match('>');
935
+ this.inElem = false;
936
+
937
+
938
+
939
+ this.state.type = _type;
940
+ this.state.channel = _channel;
941
+ }
942
+ finally {
943
+ }
944
+ },
945
+ // $ANTLR end "GREATER",
946
+
947
+ // $ANTLR start EMPTY_CLOSE_TAG
948
+ mEMPTY_CLOSE_TAG: function() {
949
+ try {
950
+ var _type = this.EMPTY_CLOSE_TAG;
951
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
952
+ // xquery/XMLLexer.g:162:2: ({...}? => '/>' )
953
+ // xquery/XMLLexer.g:162:4: {...}? => '/>'
954
+ if ( !(( this.inElem )) ) {
955
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "EMPTY_CLOSE_TAG", " this.inElem ");
956
+ }
957
+ this.match("/>");
958
+
959
+ this.inElem = false;
960
+
961
+
962
+
963
+ this.state.type = _type;
964
+ this.state.channel = _channel;
965
+ }
966
+ finally {
967
+ }
968
+ },
969
+ // $ANTLR end "EMPTY_CLOSE_TAG",
970
+
971
+ // $ANTLR start S
972
+ mS: function() {
973
+ try {
974
+ var _type = this.S;
975
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
976
+ // xquery/XMLLexer.g:166:2: ({...}? => ( ' ' | '\\t' | '\\r' | '\\n' )+ )
977
+ // xquery/XMLLexer.g:166:4: {...}? => ( ' ' | '\\t' | '\\r' | '\\n' )+
978
+ if ( !(( this.inElem )) ) {
979
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "S", " this.inElem ");
980
+ }
981
+ // xquery/XMLLexer.g:166:24: ( ' ' | '\\t' | '\\r' | '\\n' )+
982
+ var cnt4=0;
983
+ loop4:
984
+ do {
985
+ var alt4=2;
986
+ var LA4_0 = this.input.LA(1);
987
+
988
+ if ( ((LA4_0>='\t' && LA4_0<='\n')||LA4_0=='\r'||LA4_0==' ') ) {
989
+ alt4=1;
990
+ }
991
+
992
+
993
+ switch (alt4) {
994
+ case 1 :
995
+ // xquery/XMLLexer.g:
996
+ if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||this.input.LA(1)=='\r'||this.input.LA(1)==' ' ) {
997
+ this.input.consume();
998
+
999
+ }
1000
+ else {
1001
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1002
+ this.recover(mse);
1003
+ throw mse;}
1004
+
1005
+
1006
+
1007
+ break;
1008
+
1009
+ default :
1010
+ if ( cnt4 >= 1 ) {
1011
+ break loop4;
1012
+ }
1013
+ var eee = new org.antlr.runtime.EarlyExitException(4, this.input);
1014
+ throw eee;
1015
+ }
1016
+ cnt4++;
1017
+ } while (true);
1018
+
1019
+
1020
+
1021
+
1022
+ this.state.type = _type;
1023
+ this.state.channel = _channel;
1024
+ }
1025
+ finally {
1026
+ }
1027
+ },
1028
+ // $ANTLR end "S",
1029
+
1030
+ // $ANTLR start L_NCName
1031
+ mL_NCName: function() {
1032
+ try {
1033
+ var _type = this.L_NCName;
1034
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1035
+ // xquery/XMLLexer.g:172:2: ({...}? => NCNameUnprotected )
1036
+ // xquery/XMLLexer.g:172:4: {...}? => NCNameUnprotected
1037
+ if ( !(( this.inElem )) ) {
1038
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_NCName", " this.inElem ");
1039
+ }
1040
+ this.mNCNameUnprotected();
1041
+
1042
+
1043
+
1044
+ this.state.type = _type;
1045
+ this.state.channel = _channel;
1046
+ }
1047
+ finally {
1048
+ }
1049
+ },
1050
+ // $ANTLR end "L_NCName",
1051
+
1052
+ // $ANTLR start NCNameUnprotected
1053
+ mNCNameUnprotected: function() {
1054
+ try {
1055
+ // xquery/XMLLexer.g:176:2: ( NCNameStartChar ( NCNameChar )* )
1056
+ // xquery/XMLLexer.g:176:4: NCNameStartChar ( NCNameChar )*
1057
+ this.mNCNameStartChar();
1058
+ // xquery/XMLLexer.g:176:20: ( NCNameChar )*
1059
+ loop5:
1060
+ do {
1061
+ var alt5=2;
1062
+ var LA5_0 = this.input.LA(1);
1063
+
1064
+ if ( ((LA5_0>='-' && LA5_0<='.')||(LA5_0>='0' && LA5_0<='9')||(LA5_0>='A' && LA5_0<='Z')||LA5_0=='_'||(LA5_0>='a' && LA5_0<='z')) ) {
1065
+ alt5=1;
1066
+ }
1067
+
1068
+
1069
+ switch (alt5) {
1070
+ case 1 :
1071
+ // xquery/XMLLexer.g:176:20: NCNameChar
1072
+ this.mNCNameChar();
1073
+
1074
+
1075
+ break;
1076
+
1077
+ default :
1078
+ break loop5;
1079
+ }
1080
+ } while (true);
1081
+
1082
+
1083
+
1084
+
1085
+ }
1086
+ finally {
1087
+ }
1088
+ },
1089
+ // $ANTLR end "NCNameUnprotected",
1090
+
1091
+ // $ANTLR start NCNameStartChar
1092
+ mNCNameStartChar: function() {
1093
+ try {
1094
+ // xquery/XMLLexer.g:180:2: ( Letter | '_' )
1095
+ // xquery/XMLLexer.g:
1096
+ if ( (this.input.LA(1)>='A' && this.input.LA(1)<='Z')||this.input.LA(1)=='_'||(this.input.LA(1)>='a' && this.input.LA(1)<='z') ) {
1097
+ this.input.consume();
1098
+
1099
+ }
1100
+ else {
1101
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1102
+ this.recover(mse);
1103
+ throw mse;}
1104
+
1105
+
1106
+
1107
+
1108
+ }
1109
+ finally {
1110
+ }
1111
+ },
1112
+ // $ANTLR end "NCNameStartChar",
1113
+
1114
+ // $ANTLR start NCNameChar
1115
+ mNCNameChar: function() {
1116
+ try {
1117
+ // xquery/XMLLexer.g:184:2: ( Letter | XMLDigit | '.' | '-' | '_' )
1118
+ // xquery/XMLLexer.g:
1119
+ if ( (this.input.LA(1)>='-' && this.input.LA(1)<='.')||(this.input.LA(1)>='0' && this.input.LA(1)<='9')||(this.input.LA(1)>='A' && this.input.LA(1)<='Z')||this.input.LA(1)=='_'||(this.input.LA(1)>='a' && this.input.LA(1)<='z') ) {
1120
+ this.input.consume();
1121
+
1122
+ }
1123
+ else {
1124
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1125
+ this.recover(mse);
1126
+ throw mse;}
1127
+
1128
+
1129
+
1130
+
1131
+ }
1132
+ finally {
1133
+ }
1134
+ },
1135
+ // $ANTLR end "NCNameChar",
1136
+
1137
+ // $ANTLR start Letter
1138
+ mLetter: function() {
1139
+ try {
1140
+ // xquery/XMLLexer.g:188:2: ( 'a' .. 'z' | 'A' .. 'Z' )
1141
+ // xquery/XMLLexer.g:
1142
+ if ( (this.input.LA(1)>='A' && this.input.LA(1)<='Z')||(this.input.LA(1)>='a' && this.input.LA(1)<='z') ) {
1143
+ this.input.consume();
1144
+
1145
+ }
1146
+ else {
1147
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1148
+ this.recover(mse);
1149
+ throw mse;}
1150
+
1151
+
1152
+
1153
+
1154
+ }
1155
+ finally {
1156
+ }
1157
+ },
1158
+ // $ANTLR end "Letter",
1159
+
1160
+ // $ANTLR start XMLDigit
1161
+ mXMLDigit: function() {
1162
+ try {
1163
+ // xquery/XMLLexer.g:192:2: ( '0' .. '9' )
1164
+ // xquery/XMLLexer.g:192:4: '0' .. '9'
1165
+ this.matchRange('0','9');
1166
+
1167
+
1168
+
1169
+ }
1170
+ finally {
1171
+ }
1172
+ },
1173
+ // $ANTLR end "XMLDigit",
1174
+
1175
+ // $ANTLR start EQUAL
1176
+ mEQUAL: function() {
1177
+ try {
1178
+ var _type = this.EQUAL;
1179
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1180
+ // xquery/XMLLexer.g:207:7: ({...}? => '=' )
1181
+ // xquery/XMLLexer.g:207:9: {...}? => '='
1182
+ if ( !(( this.inElem )) ) {
1183
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "EQUAL", " this.inElem ");
1184
+ }
1185
+ this.match('=');
1186
+
1187
+
1188
+
1189
+ this.state.type = _type;
1190
+ this.state.channel = _channel;
1191
+ }
1192
+ finally {
1193
+ }
1194
+ },
1195
+ // $ANTLR end "EQUAL",
1196
+
1197
+ // $ANTLR start ESCAPE_APOS
1198
+ mESCAPE_APOS: function() {
1199
+ try {
1200
+ var _type = this.ESCAPE_APOS;
1201
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1202
+ // xquery/XMLLexer.g:208:13: ({...}? => '\\'\\'' )
1203
+ // xquery/XMLLexer.g:208:15: {...}? => '\\'\\''
1204
+ if ( !(( this.inAposAttr )) ) {
1205
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_APOS", " this.inAposAttr ");
1206
+ }
1207
+ this.match("''");
1208
+
1209
+
1210
+
1211
+
1212
+ this.state.type = _type;
1213
+ this.state.channel = _channel;
1214
+ }
1215
+ finally {
1216
+ }
1217
+ },
1218
+ // $ANTLR end "ESCAPE_APOS",
1219
+
1220
+ // $ANTLR start ESCAPE_QUOT
1221
+ mESCAPE_QUOT: function() {
1222
+ try {
1223
+ var _type = this.ESCAPE_QUOT;
1224
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1225
+ // xquery/XMLLexer.g:209:13: ({...}? => '\"\"' )
1226
+ // xquery/XMLLexer.g:209:15: {...}? => '\"\"'
1227
+ if ( !(( this.inQuotAttr )) ) {
1228
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_QUOT", " this.inQuotAttr ");
1229
+ }
1230
+ this.match("\"\"");
1231
+
1232
+
1233
+
1234
+
1235
+ this.state.type = _type;
1236
+ this.state.channel = _channel;
1237
+ }
1238
+ finally {
1239
+ }
1240
+ },
1241
+ // $ANTLR end "ESCAPE_QUOT",
1242
+
1243
+ // $ANTLR start ESCAPE_LBRACKET
1244
+ mESCAPE_LBRACKET: function() {
1245
+ try {
1246
+ var _type = this.ESCAPE_LBRACKET;
1247
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1248
+ // xquery/XMLLexer.g:212:2: ({...}? => '{{' )
1249
+ // xquery/XMLLexer.g:212:4: {...}? => '{{'
1250
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1251
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_LBRACKET", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1252
+ }
1253
+ this.match("{{");
1254
+
1255
+
1256
+
1257
+
1258
+ this.state.type = _type;
1259
+ this.state.channel = _channel;
1260
+ }
1261
+ finally {
1262
+ }
1263
+ },
1264
+ // $ANTLR end "ESCAPE_LBRACKET",
1265
+
1266
+ // $ANTLR start ESCAPE_RBRACKET
1267
+ mESCAPE_RBRACKET: function() {
1268
+ try {
1269
+ var _type = this.ESCAPE_RBRACKET;
1270
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1271
+ // xquery/XMLLexer.g:216:2: ({...}? => '}}' )
1272
+ // xquery/XMLLexer.g:216:4: {...}? => '}}'
1273
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1274
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "ESCAPE_RBRACKET", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1275
+ }
1276
+ this.match("}}");
1277
+
1278
+
1279
+
1280
+
1281
+ this.state.type = _type;
1282
+ this.state.channel = _channel;
1283
+ }
1284
+ finally {
1285
+ }
1286
+ },
1287
+ // $ANTLR end "ESCAPE_RBRACKET",
1288
+
1289
+ // $ANTLR start LBRACKET
1290
+ mLBRACKET: function() {
1291
+ try {
1292
+ var _type = this.LBRACKET;
1293
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1294
+ // xquery/XMLLexer.g:219:10: ({...}? => '{' )
1295
+ // xquery/XMLLexer.g:219:12: {...}? => '{'
1296
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1297
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "LBRACKET", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1298
+ }
1299
+ this.match('{');
1300
+
1301
+
1302
+
1303
+ this.state.type = _type;
1304
+ this.state.channel = _channel;
1305
+ }
1306
+ finally {
1307
+ }
1308
+ },
1309
+ // $ANTLR end "LBRACKET",
1310
+
1311
+ // $ANTLR start RBRACKET
1312
+ mRBRACKET: function() {
1313
+ try {
1314
+ var _type = this.RBRACKET;
1315
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1316
+ // xquery/XMLLexer.g:220:10: ({...}? => '}' )
1317
+ // xquery/XMLLexer.g:220:12: {...}? => '}'
1318
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1319
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "RBRACKET", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1320
+ }
1321
+ this.match('}');
1322
+
1323
+
1324
+
1325
+ this.state.type = _type;
1326
+ this.state.channel = _channel;
1327
+ }
1328
+ finally {
1329
+ }
1330
+ },
1331
+ // $ANTLR end "RBRACKET",
1332
+
1333
+ // $ANTLR start SMALLER
1334
+ mSMALLER: function() {
1335
+ try {
1336
+ var _type = this.SMALLER;
1337
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1338
+ // xquery/XMLLexer.g:221:9: ( '<' )
1339
+ // xquery/XMLLexer.g:221:11: '<'
1340
+ this.match('<');
1341
+
1342
+
1343
+
1344
+ this.state.type = _type;
1345
+ this.state.channel = _channel;
1346
+ }
1347
+ finally {
1348
+ }
1349
+ },
1350
+ // $ANTLR end "SMALLER",
1351
+
1352
+ // $ANTLR start CLOSE_TAG
1353
+ mCLOSE_TAG: function() {
1354
+ try {
1355
+ var _type = this.CLOSE_TAG;
1356
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1357
+ // xquery/XMLLexer.g:222:11: ({...}? => '</' )
1358
+ // xquery/XMLLexer.g:222:13: {...}? => '</'
1359
+ if ( !(( !this.inElem )) ) {
1360
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "CLOSE_TAG", " !this.inElem ");
1361
+ }
1362
+ this.match("</");
1363
+
1364
+ this.inElem = true;
1365
+
1366
+
1367
+
1368
+ this.state.type = _type;
1369
+ this.state.channel = _channel;
1370
+ }
1371
+ finally {
1372
+ }
1373
+ },
1374
+ // $ANTLR end "CLOSE_TAG",
1375
+
1376
+ // $ANTLR start CDATA_START
1377
+ mCDATA_START: function() {
1378
+ try {
1379
+ var _type = this.CDATA_START;
1380
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1381
+ // xquery/XMLLexer.g:224:13: ( '<![CDATA[' )
1382
+ // xquery/XMLLexer.g:224:15: '<![CDATA['
1383
+ this.match("<![CDATA[");
1384
+
1385
+
1386
+
1387
+
1388
+ this.state.type = _type;
1389
+ this.state.channel = _channel;
1390
+ }
1391
+ finally {
1392
+ }
1393
+ },
1394
+ // $ANTLR end "CDATA_START",
1395
+
1396
+ // $ANTLR start CDATA_END
1397
+ mCDATA_END: function() {
1398
+ try {
1399
+ var _type = this.CDATA_END;
1400
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1401
+ // xquery/XMLLexer.g:225:12: ( ']]>' )
1402
+ // xquery/XMLLexer.g:225:14: ']]>'
1403
+ this.match("]]>");
1404
+
1405
+
1406
+
1407
+
1408
+ this.state.type = _type;
1409
+ this.state.channel = _channel;
1410
+ }
1411
+ finally {
1412
+ }
1413
+ },
1414
+ // $ANTLR end "CDATA_END",
1415
+
1416
+ // $ANTLR start L_CDataSection
1417
+ mL_CDataSection: function() {
1418
+ try {
1419
+ var _type = this.L_CDataSection;
1420
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1421
+ // xquery/XMLLexer.g:229:3: ({...}? => CDATA_START ( options {greedy=false; } : ( . )* ) CDATA_END )
1422
+ // xquery/XMLLexer.g:229:5: {...}? => CDATA_START ( options {greedy=false; } : ( . )* ) CDATA_END
1423
+ if ( !(( !this.inElem )) ) {
1424
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_CDataSection", " !this.inElem ");
1425
+ }
1426
+ this.mCDATA_START();
1427
+ // xquery/XMLLexer.g:229:38: ( options {greedy=false; } : ( . )* )
1428
+ // xquery/XMLLexer.g:229:65: ( . )*
1429
+ // xquery/XMLLexer.g:229:65: ( . )*
1430
+ loop6:
1431
+ do {
1432
+ var alt6=2;
1433
+ var LA6_0 = this.input.LA(1);
1434
+
1435
+ if ( (LA6_0==']') ) {
1436
+ var LA6_1 = this.input.LA(2);
1437
+
1438
+ if ( (LA6_1==']') ) {
1439
+ var LA6_3 = this.input.LA(3);
1440
+
1441
+ if ( (LA6_3=='>') ) {
1442
+ alt6=2;
1443
+ }
1444
+ else if ( ((LA6_3>='\u0000' && LA6_3<='=')||(LA6_3>='?' && LA6_3<='\uFFFF')) ) {
1445
+ alt6=1;
1446
+ }
1447
+
1448
+
1449
+ }
1450
+ else if ( ((LA6_1>='\u0000' && LA6_1<='\\')||(LA6_1>='^' && LA6_1<='\uFFFF')) ) {
1451
+ alt6=1;
1452
+ }
1453
+
1454
+
1455
+ }
1456
+ else if ( ((LA6_0>='\u0000' && LA6_0<='\\')||(LA6_0>='^' && LA6_0<='\uFFFF')) ) {
1457
+ alt6=1;
1458
+ }
1459
+
1460
+
1461
+ switch (alt6) {
1462
+ case 1 :
1463
+ // xquery/XMLLexer.g:229:65: .
1464
+ this.matchAny();
1465
+
1466
+
1467
+ break;
1468
+
1469
+ default :
1470
+ break loop6;
1471
+ }
1472
+ } while (true);
1473
+
1474
+
1475
+
1476
+
1477
+ this.mCDATA_END();
1478
+
1479
+
1480
+
1481
+ this.state.type = _type;
1482
+ this.state.channel = _channel;
1483
+ }
1484
+ finally {
1485
+ }
1486
+ },
1487
+ // $ANTLR end "L_CDataSection",
1488
+
1489
+ // $ANTLR start L_PredefinedEntityRef
1490
+ mL_PredefinedEntityRef: function() {
1491
+ try {
1492
+ var _type = this.L_PredefinedEntityRef;
1493
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1494
+ // xquery/XMLLexer.g:237:2: ({...}? => '&' ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' ) ';' )
1495
+ // xquery/XMLLexer.g:237:4: {...}? => '&' ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' ) ';'
1496
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1497
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_PredefinedEntityRef", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1498
+ }
1499
+ this.match('&');
1500
+ // xquery/XMLLexer.g:237:67: ( 'lt' | 'gt' | 'apos' | 'quot' | 'amp' )
1501
+ var alt7=5;
1502
+ switch ( this.input.LA(1) ) {
1503
+ case 'l':
1504
+ alt7=1;
1505
+ break;
1506
+ case 'g':
1507
+ alt7=2;
1508
+ break;
1509
+ case 'a':
1510
+ var LA7_3 = this.input.LA(2);
1511
+
1512
+ if ( (LA7_3=='p') ) {
1513
+ alt7=3;
1514
+ }
1515
+ else if ( (LA7_3=='m') ) {
1516
+ alt7=5;
1517
+ }
1518
+ else {
1519
+ var nvae =
1520
+ new org.antlr.runtime.NoViableAltException("", 7, 3, this.input);
1521
+
1522
+ throw nvae;
1523
+ }
1524
+ break;
1525
+ case 'q':
1526
+ alt7=4;
1527
+ break;
1528
+ default:
1529
+ var nvae =
1530
+ new org.antlr.runtime.NoViableAltException("", 7, 0, this.input);
1531
+
1532
+ throw nvae;
1533
+ }
1534
+
1535
+ switch (alt7) {
1536
+ case 1 :
1537
+ // xquery/XMLLexer.g:237:68: 'lt'
1538
+ this.match("lt");
1539
+
1540
+
1541
+
1542
+ break;
1543
+ case 2 :
1544
+ // xquery/XMLLexer.g:237:75: 'gt'
1545
+ this.match("gt");
1546
+
1547
+
1548
+
1549
+ break;
1550
+ case 3 :
1551
+ // xquery/XMLLexer.g:237:82: 'apos'
1552
+ this.match("apos");
1553
+
1554
+
1555
+
1556
+ break;
1557
+ case 4 :
1558
+ // xquery/XMLLexer.g:237:91: 'quot'
1559
+ this.match("quot");
1560
+
1561
+
1562
+
1563
+ break;
1564
+ case 5 :
1565
+ // xquery/XMLLexer.g:237:100: 'amp'
1566
+ this.match("amp");
1567
+
1568
+
1569
+
1570
+ break;
1571
+
1572
+ }
1573
+
1574
+ this.match(';');
1575
+
1576
+
1577
+
1578
+ this.state.type = _type;
1579
+ this.state.channel = _channel;
1580
+ }
1581
+ finally {
1582
+ }
1583
+ },
1584
+ // $ANTLR end "L_PredefinedEntityRef",
1585
+
1586
+ // $ANTLR start L_CharRef
1587
+ mL_CharRef: function() {
1588
+ try {
1589
+ var _type = this.L_CharRef;
1590
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1591
+ // xquery/XMLLexer.g:242:2: ({...}? => '&#' ( '0' .. '9' )+ ';' | '&#x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ';' )
1592
+ var alt10=2;
1593
+ var LA10_0 = this.input.LA(1);
1594
+
1595
+ if ( (LA10_0=='&') ) {
1596
+ var LA10_1 = this.input.LA(2);
1597
+
1598
+ if ( (LA10_1=='#') ) {
1599
+ var LA10_2 = this.input.LA(3);
1600
+
1601
+ if ( (LA10_2=='x') ) {
1602
+ alt10=2;
1603
+ }
1604
+ else if ( ((LA10_2>='0' && LA10_2<='9')) && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {
1605
+ alt10=1;
1606
+ }
1607
+ else {
1608
+ var nvae =
1609
+ new org.antlr.runtime.NoViableAltException("", 10, 2, this.input);
1610
+
1611
+ throw nvae;
1612
+ }
1613
+ }
1614
+ else {
1615
+ var nvae =
1616
+ new org.antlr.runtime.NoViableAltException("", 10, 1, this.input);
1617
+
1618
+ throw nvae;
1619
+ }
1620
+ }
1621
+ else {
1622
+ var nvae =
1623
+ new org.antlr.runtime.NoViableAltException("", 10, 0, this.input);
1624
+
1625
+ throw nvae;
1626
+ }
1627
+ switch (alt10) {
1628
+ case 1 :
1629
+ // xquery/XMLLexer.g:242:4: {...}? => '&#' ( '0' .. '9' )+ ';'
1630
+ if ( !(( !this.inElem || this.inAposAttr || this.inQuotAttr )) ) {
1631
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_CharRef", " !this.inElem || this.inAposAttr || this.inQuotAttr ");
1632
+ }
1633
+ this.match("&#");
1634
+
1635
+ // xquery/XMLLexer.g:242:68: ( '0' .. '9' )+
1636
+ var cnt8=0;
1637
+ loop8:
1638
+ do {
1639
+ var alt8=2;
1640
+ var LA8_0 = this.input.LA(1);
1641
+
1642
+ if ( ((LA8_0>='0' && LA8_0<='9')) ) {
1643
+ alt8=1;
1644
+ }
1645
+
1646
+
1647
+ switch (alt8) {
1648
+ case 1 :
1649
+ // xquery/XMLLexer.g:242:69: '0' .. '9'
1650
+ this.matchRange('0','9');
1651
+
1652
+
1653
+ break;
1654
+
1655
+ default :
1656
+ if ( cnt8 >= 1 ) {
1657
+ break loop8;
1658
+ }
1659
+ var eee = new org.antlr.runtime.EarlyExitException(8, this.input);
1660
+ throw eee;
1661
+ }
1662
+ cnt8++;
1663
+ } while (true);
1664
+
1665
+ this.match(';');
1666
+
1667
+
1668
+ break;
1669
+ case 2 :
1670
+ // xquery/XMLLexer.g:242:86: '&#x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ';'
1671
+ this.match("&#x");
1672
+
1673
+ // xquery/XMLLexer.g:242:92: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
1674
+ var cnt9=0;
1675
+ loop9:
1676
+ do {
1677
+ var alt9=2;
1678
+ var LA9_0 = this.input.LA(1);
1679
+
1680
+ if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='F')||(LA9_0>='a' && LA9_0<='f')) ) {
1681
+ alt9=1;
1682
+ }
1683
+
1684
+
1685
+ switch (alt9) {
1686
+ case 1 :
1687
+ // xquery/XMLLexer.g:
1688
+ 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') ) {
1689
+ this.input.consume();
1690
+
1691
+ }
1692
+ else {
1693
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1694
+ this.recover(mse);
1695
+ throw mse;}
1696
+
1697
+
1698
+
1699
+ break;
1700
+
1701
+ default :
1702
+ if ( cnt9 >= 1 ) {
1703
+ break loop9;
1704
+ }
1705
+ var eee = new org.antlr.runtime.EarlyExitException(9, this.input);
1706
+ throw eee;
1707
+ }
1708
+ cnt9++;
1709
+ } while (true);
1710
+
1711
+ this.match(';');
1712
+
1713
+
1714
+ break;
1715
+
1716
+ }
1717
+ this.state.type = _type;
1718
+ this.state.channel = _channel;
1719
+ }
1720
+ finally {
1721
+ }
1722
+ },
1723
+ // $ANTLR end "L_CharRef",
1724
+
1725
+ // $ANTLR start L_DirCommentConstructor
1726
+ mL_DirCommentConstructor: function() {
1727
+ try {
1728
+ var _type = this.L_DirCommentConstructor;
1729
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1730
+ // xquery/XMLLexer.g:246:2: ({...}? => '<!--' ( options {greedy=false; } : ( . )* ) '-->' )
1731
+ // xquery/XMLLexer.g:246:4: {...}? => '<!--' ( options {greedy=false; } : ( . )* ) '-->'
1732
+ if ( !(( !this.inElem )) ) {
1733
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_DirCommentConstructor", " !this.inElem ");
1734
+ }
1735
+ this.match("<!--");
1736
+
1737
+ // xquery/XMLLexer.g:246:32: ( options {greedy=false; } : ( . )* )
1738
+ // xquery/XMLLexer.g:246:59: ( . )*
1739
+ // xquery/XMLLexer.g:246:59: ( . )*
1740
+ loop11:
1741
+ do {
1742
+ var alt11=2;
1743
+ var LA11_0 = this.input.LA(1);
1744
+
1745
+ if ( (LA11_0=='-') ) {
1746
+ var LA11_1 = this.input.LA(2);
1747
+
1748
+ if ( (LA11_1=='-') ) {
1749
+ var LA11_3 = this.input.LA(3);
1750
+
1751
+ if ( (LA11_3=='>') ) {
1752
+ alt11=2;
1753
+ }
1754
+ else if ( ((LA11_3>='\u0000' && LA11_3<='=')||(LA11_3>='?' && LA11_3<='\uFFFF')) ) {
1755
+ alt11=1;
1756
+ }
1757
+
1758
+
1759
+ }
1760
+ else if ( ((LA11_1>='\u0000' && LA11_1<=',')||(LA11_1>='.' && LA11_1<='\uFFFF')) ) {
1761
+ alt11=1;
1762
+ }
1763
+
1764
+
1765
+ }
1766
+ else if ( ((LA11_0>='\u0000' && LA11_0<=',')||(LA11_0>='.' && LA11_0<='\uFFFF')) ) {
1767
+ alt11=1;
1768
+ }
1769
+
1770
+
1771
+ switch (alt11) {
1772
+ case 1 :
1773
+ // xquery/XMLLexer.g:246:59: .
1774
+ this.matchAny();
1775
+
1776
+
1777
+ break;
1778
+
1779
+ default :
1780
+ break loop11;
1781
+ }
1782
+ } while (true);
1783
+
1784
+
1785
+
1786
+
1787
+ this.match("-->");
1788
+
1789
+
1790
+
1791
+
1792
+ this.state.type = _type;
1793
+ this.state.channel = _channel;
1794
+ }
1795
+ finally {
1796
+ }
1797
+ },
1798
+ // $ANTLR end "L_DirCommentConstructor",
1799
+
1800
+ // $ANTLR start L_DirPIConstructor
1801
+ mL_DirPIConstructor: function() {
1802
+ try {
1803
+ var _type = this.L_DirPIConstructor;
1804
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1805
+ // xquery/XMLLexer.g:249:2: ({...}? => '<?' ( SU )? NCNameUnprotected ( SU ( options {greedy=false; } : ( . )* ) )? '?>' )
1806
+ // xquery/XMLLexer.g:249:4: {...}? => '<?' ( SU )? NCNameUnprotected ( SU ( options {greedy=false; } : ( . )* ) )? '?>'
1807
+ if ( !(( !this.inElem )) ) {
1808
+ throw new org.antlr.runtime.FailedPredicateException(this.input, "L_DirPIConstructor", " !this.inElem ");
1809
+ }
1810
+ this.match("<?");
1811
+
1812
+ // xquery/XMLLexer.g:250:8: ( SU )?
1813
+ var alt12=2;
1814
+ var LA12_0 = this.input.LA(1);
1815
+
1816
+ if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {
1817
+ alt12=1;
1818
+ }
1819
+ switch (alt12) {
1820
+ case 1 :
1821
+ // xquery/XMLLexer.g:250:8: SU
1822
+ this.mSU();
1823
+
1824
+
1825
+ break;
1826
+
1827
+ }
1828
+
1829
+ this.mNCNameUnprotected();
1830
+ // xquery/XMLLexer.g:250:30: ( SU ( options {greedy=false; } : ( . )* ) )?
1831
+ var alt14=2;
1832
+ var LA14_0 = this.input.LA(1);
1833
+
1834
+ if ( ((LA14_0>='\t' && LA14_0<='\n')||LA14_0=='\r'||LA14_0==' ') ) {
1835
+ alt14=1;
1836
+ }
1837
+ switch (alt14) {
1838
+ case 1 :
1839
+ // xquery/XMLLexer.g:250:31: SU ( options {greedy=false; } : ( . )* )
1840
+ this.mSU();
1841
+ // xquery/XMLLexer.g:250:34: ( options {greedy=false; } : ( . )* )
1842
+ // xquery/XMLLexer.g:250:61: ( . )*
1843
+ // xquery/XMLLexer.g:250:61: ( . )*
1844
+ loop13:
1845
+ do {
1846
+ var alt13=2;
1847
+ var LA13_0 = this.input.LA(1);
1848
+
1849
+ if ( (LA13_0=='?') ) {
1850
+ var LA13_1 = this.input.LA(2);
1851
+
1852
+ if ( (LA13_1=='>') ) {
1853
+ alt13=2;
1854
+ }
1855
+ else if ( ((LA13_1>='\u0000' && LA13_1<='=')||(LA13_1>='?' && LA13_1<='\uFFFF')) ) {
1856
+ alt13=1;
1857
+ }
1858
+
1859
+
1860
+ }
1861
+ else if ( ((LA13_0>='\u0000' && LA13_0<='>')||(LA13_0>='@' && LA13_0<='\uFFFF')) ) {
1862
+ alt13=1;
1863
+ }
1864
+
1865
+
1866
+ switch (alt13) {
1867
+ case 1 :
1868
+ // xquery/XMLLexer.g:250:61: .
1869
+ this.matchAny();
1870
+
1871
+
1872
+ break;
1873
+
1874
+ default :
1875
+ break loop13;
1876
+ }
1877
+ } while (true);
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+ break;
1885
+
1886
+ }
1887
+
1888
+ this.match("?>");
1889
+
1890
+
1891
+
1892
+
1893
+ this.state.type = _type;
1894
+ this.state.channel = _channel;
1895
+ }
1896
+ finally {
1897
+ }
1898
+ },
1899
+ // $ANTLR end "L_DirPIConstructor",
1900
+
1901
+ // $ANTLR start SU
1902
+ mSU: function() {
1903
+ try {
1904
+ // xquery/XMLLexer.g:254:2: ( ( ' ' | '\\t' | '\\n' | '\\r' )+ )
1905
+ // xquery/XMLLexer.g:254:4: ( ' ' | '\\t' | '\\n' | '\\r' )+
1906
+ // xquery/XMLLexer.g:254:4: ( ' ' | '\\t' | '\\n' | '\\r' )+
1907
+ var cnt15=0;
1908
+ loop15:
1909
+ do {
1910
+ var alt15=2;
1911
+ var LA15_0 = this.input.LA(1);
1912
+
1913
+ if ( ((LA15_0>='\t' && LA15_0<='\n')||LA15_0=='\r'||LA15_0==' ') ) {
1914
+ alt15=1;
1915
+ }
1916
+
1917
+
1918
+ switch (alt15) {
1919
+ case 1 :
1920
+ // xquery/XMLLexer.g:
1921
+ if ( (this.input.LA(1)>='\t' && this.input.LA(1)<='\n')||this.input.LA(1)=='\r'||this.input.LA(1)==' ' ) {
1922
+ this.input.consume();
1923
+
1924
+ }
1925
+ else {
1926
+ var mse = new org.antlr.runtime.MismatchedSetException(null,this.input);
1927
+ this.recover(mse);
1928
+ throw mse;}
1929
+
1930
+
1931
+
1932
+ break;
1933
+
1934
+ default :
1935
+ if ( cnt15 >= 1 ) {
1936
+ break loop15;
1937
+ }
1938
+ var eee = new org.antlr.runtime.EarlyExitException(15, this.input);
1939
+ throw eee;
1940
+ }
1941
+ cnt15++;
1942
+ } while (true);
1943
+
1944
+
1945
+
1946
+
1947
+ }
1948
+ finally {
1949
+ }
1950
+ },
1951
+ // $ANTLR end "SU",
1952
+
1953
+ // $ANTLR start COLON
1954
+ mCOLON: function() {
1955
+ try {
1956
+ var _type = this.COLON;
1957
+ var _channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL;
1958
+ // xquery/XMLLexer.g:257:7: ( ':' )
1959
+ // xquery/XMLLexer.g:257:9: ':'
1960
+ this.match(':');
1961
+
1962
+
1963
+
1964
+ this.state.type = _type;
1965
+ this.state.channel = _channel;
1966
+ }
1967
+ finally {
1968
+ }
1969
+ },
1970
+ // $ANTLR end "COLON",
1971
+
1972
+ mTokens: function() {
1973
+ // xquery/XMLLexer.g:1:8: ( QUOT | APOS | L_QuotAttrContentChar | L_AposAttrContentChar | L_ElementContentChar | GREATER | EMPTY_CLOSE_TAG | S | L_NCName | EQUAL | ESCAPE_APOS | ESCAPE_QUOT | ESCAPE_LBRACKET | ESCAPE_RBRACKET | LBRACKET | RBRACKET | SMALLER | CLOSE_TAG | CDATA_START | CDATA_END | L_CDataSection | L_PredefinedEntityRef | L_CharRef | L_DirCommentConstructor | L_DirPIConstructor | COLON )
1974
+ var alt16=26;
1975
+ alt16 = this.dfa16.predict(this.input);
1976
+ switch (alt16) {
1977
+ case 1 :
1978
+ // xquery/XMLLexer.g:1:10: QUOT
1979
+ this.mQUOT();
1980
+
1981
+
1982
+ break;
1983
+ case 2 :
1984
+ // xquery/XMLLexer.g:1:15: APOS
1985
+ this.mAPOS();
1986
+
1987
+
1988
+ break;
1989
+ case 3 :
1990
+ // xquery/XMLLexer.g:1:20: L_QuotAttrContentChar
1991
+ this.mL_QuotAttrContentChar();
1992
+
1993
+
1994
+ break;
1995
+ case 4 :
1996
+ // xquery/XMLLexer.g:1:42: L_AposAttrContentChar
1997
+ this.mL_AposAttrContentChar();
1998
+
1999
+
2000
+ break;
2001
+ case 5 :
2002
+ // xquery/XMLLexer.g:1:64: L_ElementContentChar
2003
+ this.mL_ElementContentChar();
2004
+
2005
+
2006
+ break;
2007
+ case 6 :
2008
+ // xquery/XMLLexer.g:1:85: GREATER
2009
+ this.mGREATER();
2010
+
2011
+
2012
+ break;
2013
+ case 7 :
2014
+ // xquery/XMLLexer.g:1:93: EMPTY_CLOSE_TAG
2015
+ this.mEMPTY_CLOSE_TAG();
2016
+
2017
+
2018
+ break;
2019
+ case 8 :
2020
+ // xquery/XMLLexer.g:1:109: S
2021
+ this.mS();
2022
+
2023
+
2024
+ break;
2025
+ case 9 :
2026
+ // xquery/XMLLexer.g:1:111: L_NCName
2027
+ this.mL_NCName();
2028
+
2029
+
2030
+ break;
2031
+ case 10 :
2032
+ // xquery/XMLLexer.g:1:120: EQUAL
2033
+ this.mEQUAL();
2034
+
2035
+
2036
+ break;
2037
+ case 11 :
2038
+ // xquery/XMLLexer.g:1:126: ESCAPE_APOS
2039
+ this.mESCAPE_APOS();
2040
+
2041
+
2042
+ break;
2043
+ case 12 :
2044
+ // xquery/XMLLexer.g:1:138: ESCAPE_QUOT
2045
+ this.mESCAPE_QUOT();
2046
+
2047
+
2048
+ break;
2049
+ case 13 :
2050
+ // xquery/XMLLexer.g:1:150: ESCAPE_LBRACKET
2051
+ this.mESCAPE_LBRACKET();
2052
+
2053
+
2054
+ break;
2055
+ case 14 :
2056
+ // xquery/XMLLexer.g:1:166: ESCAPE_RBRACKET
2057
+ this.mESCAPE_RBRACKET();
2058
+
2059
+
2060
+ break;
2061
+ case 15 :
2062
+ // xquery/XMLLexer.g:1:182: LBRACKET
2063
+ this.mLBRACKET();
2064
+
2065
+
2066
+ break;
2067
+ case 16 :
2068
+ // xquery/XMLLexer.g:1:191: RBRACKET
2069
+ this.mRBRACKET();
2070
+
2071
+
2072
+ break;
2073
+ case 17 :
2074
+ // xquery/XMLLexer.g:1:200: SMALLER
2075
+ this.mSMALLER();
2076
+
2077
+
2078
+ break;
2079
+ case 18 :
2080
+ // xquery/XMLLexer.g:1:208: CLOSE_TAG
2081
+ this.mCLOSE_TAG();
2082
+
2083
+
2084
+ break;
2085
+ case 19 :
2086
+ // xquery/XMLLexer.g:1:218: CDATA_START
2087
+ this.mCDATA_START();
2088
+
2089
+
2090
+ break;
2091
+ case 20 :
2092
+ // xquery/XMLLexer.g:1:230: CDATA_END
2093
+ this.mCDATA_END();
2094
+
2095
+
2096
+ break;
2097
+ case 21 :
2098
+ // xquery/XMLLexer.g:1:240: L_CDataSection
2099
+ this.mL_CDataSection();
2100
+
2101
+
2102
+ break;
2103
+ case 22 :
2104
+ // xquery/XMLLexer.g:1:255: L_PredefinedEntityRef
2105
+ this.mL_PredefinedEntityRef();
2106
+
2107
+
2108
+ break;
2109
+ case 23 :
2110
+ // xquery/XMLLexer.g:1:277: L_CharRef
2111
+ this.mL_CharRef();
2112
+
2113
+
2114
+ break;
2115
+ case 24 :
2116
+ // xquery/XMLLexer.g:1:287: L_DirCommentConstructor
2117
+ this.mL_DirCommentConstructor();
2118
+
2119
+
2120
+ break;
2121
+ case 25 :
2122
+ // xquery/XMLLexer.g:1:311: L_DirPIConstructor
2123
+ this.mL_DirPIConstructor();
2124
+
2125
+
2126
+ break;
2127
+ case 26 :
2128
+ // xquery/XMLLexer.g:1:330: COLON
2129
+ this.mCOLON();
2130
+
2131
+
2132
+ break;
2133
+
2134
+ }
2135
+
2136
+ }
2137
+
2138
+ }, true); // important to pass true to overwrite default implementations
2139
+
2140
+ org.antlr.lang.augmentObject(XMLLexer, {
2141
+ DFA16_eotS:
2142
+ "\u0001\uffff\u0001\u0010\u0001\u0013\u0001\u0014\u0001\u0016\u0001"+
2143
+ "\u0017\u0001\u0018\u0001\u001a\u0001\u0016\u0001\u001d\u0001\u001f\u0001"+
2144
+ "\u0023\u0001\u0024\u0001\uffff\u0001\u0016\u0001\u0027\u0002\uffff\u0001"+
2145
+ "\u0029\u0002\uffff\u0001\u002e\u0003\uffff\u0001\u0018\u0001\uffff\u0001"+
2146
+ "\u0016\u0016\uffff\u0001\u0039\u000d\uffff\u0001\u0041\u0002\uffff",
2147
+ DFA16_eofS:
2148
+ "\u0043\uffff",
2149
+ DFA16_minS:
2150
+ "\u0009\u0009\u0001\u007b\u0001\u007d\u0001\u0021\u0001\u0009\u0001"+
2151
+ "\u0023\u0002\u0009\u0001\u0000\u0001\uffff\u0001\u0009\u0002\u0000\u0001"+
2152
+ "\u0009\u0003\u0000\u0001\u0009\u0001\u0000\u0001\u0009\u0005\uffff\u0001"+
2153
+ "\u002d\u0002\uffff\u0001\u0000\u0002\uffff\u0001\u0000\u0001\uffff\u0001"+
2154
+ "\u0000\u0004\uffff\u0001\u0000\u0003\uffff\u0001\u0009\u0001\u0043\u0005"+
2155
+ "\uffff\u0001\u0000\u0001\u0044\u0001\uffff\u0001\u0041\u0001\u0054\u0001"+
2156
+ "\u0041\u0001\u005b\u0001\u0000\u0002\uffff",
2157
+ DFA16_maxS:
2158
+ "\u0009\ufffd\u0001\u007b\u0001\u007d\u0001\u003f\u0001\ufffd\u0001"+
2159
+ "\u0071\u0002\ufffd\u0001\u0000\u0001\uffff\u0001\ufffd\u0002\u0000\u0001"+
2160
+ "\ufffd\u0003\u0000\u0001\ufffd\u0001\u0000\u0001\ufffd\u0005\uffff\u0001"+
2161
+ "\u005b\u0002\uffff\u0001\u0000\u0002\uffff\u0001\u0000\u0001\uffff\u0001"+
2162
+ "\u0000\u0004\uffff\u0001\u0000\u0003\uffff\u0001\ufffd\u0001\u0043\u0005"+
2163
+ "\uffff\u0001\u0000\u0001\u0044\u0001\uffff\u0001\u0041\u0001\u0054\u0001"+
2164
+ "\u0041\u0001\u005b\u0001\uffff\u0002\uffff",
2165
+ DFA16_acceptS:
2166
+ "\u0011\uffff\u0001\u0005\u000a\uffff\u0001\u000d\u0001\u000f\u0001"+
2167
+ "\u000e\u0001\u0010\u0001\u0012\u0001\uffff\u0001\u0019\u0001\u0011\u0001"+
2168
+ "\uffff\u0001\u0017\u0001\u0016\u0001\uffff\u0001\u0001\u0001\uffff\u0001"+
2169
+ "\u0002\u0001\u0003\u0001\u0004\u0001\u0006\u0001\uffff\u0001\u0008\u0001"+
2170
+ "\u0009\u0001\u000a\u0002\uffff\u0001\u0018\u0001\u001a\u0001\u000c\u0001"+
2171
+ "\u000b\u0001\u0007\u0002\uffff\u0001\u0014\u0005\uffff\u0001\u0013\u0001"+
2172
+ "\u0015",
2173
+ DFA16_specialS:
2174
+ "\u0001\u0000\u0001\u001f\u0001\u0022\u0001\u0004\u0001\u000d\u0001"+
2175
+ "\u001e\u0001\u0015\u0001\u0002\u0001\u000b\u0001\u0021\u0001\u0005\u0001"+
2176
+ "\u0011\u0001\u001b\u0001\u0020\u0001\u000c\u0001\u001a\u0001\u0009\u0001"+
2177
+ "\uffff\u0001\u0010\u0001\u000a\u0001\u001d\u0001\u0016\u0001\u000f\u0001"+
2178
+ "\u0018\u0001\u0019\u0001\u0003\u0001\u0017\u0001\u0008\u0005\uffff\u0001"+
2179
+ "\u0012\u0002\uffff\u0001\u000e\u0002\uffff\u0001\u0006\u0001\uffff\u0001"+
2180
+ "\u0007\u0004\uffff\u0001\u001c\u0003\uffff\u0001\u0013\u0006\uffff\u0001"+
2181
+ "\u0014\u0006\uffff\u0001\u0001\u0002\uffff}>",
2182
+ DFA16_transitionS: [
2183
+ "\u0002\u0005\u0002\uffff\u0001\u0005\u0012\uffff\u0001\u0005"+
2184
+ "\u0001\u000e\u0001\u0001\u0003\u000e\u0001\u000d\u0001\u0002"+
2185
+ "\u0007\u000e\u0001\u0004\u000a\u000e\u0001\u000c\u0001\u000e"+
2186
+ "\u0001\u000b\u0001\u0007\u0001\u0003\u0002\u000e\u001a\u0006"+
2187
+ "\u0002\u000e\u0001\u0008\u0001\u000e\u0001\u0006\u0001\u000e"+
2188
+ "\u001a\u0006\u0001\u0009\u0001\u000e\u0001\u000a\ud782\u000e"+
2189
+ "\u0800\uffff\u1ffe\u000e",
2190
+ "\u0002\u0011\u0002\uffff\u0001\u0011\u0012\uffff\u0002\u0011"+
2191
+ "\u0001\u000f\u0003\u0011\u0001\uffff\u0015\u0011\u0001\uffff"+
2192
+ "\u003e\u0011\u0001\uffff\u0001\u0011\u0001\uffff\ud782\u0011"+
2193
+ "\u0800\uffff\u1ffe\u0011",
2194
+ "\u0002\u0011\u0002\uffff\u0001\u0011\u0012\uffff\u0006\u0011"+
2195
+ "\u0001\uffff\u0001\u0012\u0014\u0011\u0001\uffff\u003e\u0011"+
2196
+ "\u0001\uffff\u0001\u0011\u0001\uffff\ud782\u0011\u0800\uffff"+
2197
+ "\u1ffe\u0011",
2198
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2199
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2200
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2201
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2202
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2203
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2204
+ "\u0001\uffff\u0001\u000e\u0001\u0015\u003c\u000e\u0001\uffff"+
2205
+ "\u0001\u000e\u0001\uffff\ud782\u000e\u0800\uffff\u1ffe\u000e",
2206
+ "\u0002\u0005\u0002\uffff\u0001\u0005\u0012\uffff\u0001\u0005"+
2207
+ "\u0001\u000e\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011"+
2208
+ "\u0014\u000e\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e"+
2209
+ "\u0001\uffff\ud782\u000e\u0800\uffff\u1ffe\u000e",
2210
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2211
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0005\u000e"+
2212
+ "\u0002\u0019\u0001\u000e\u000a\u0019\u0002\u000e\u0001\uffff"+
2213
+ "\u0004\u000e\u001a\u0019\u0004\u000e\u0001\u0019\u0001\u000e"+
2214
+ "\u001a\u0019\u0001\uffff\u0001\u000e\u0001\uffff\ud782\u000e"+
2215
+ "\u0800\uffff\u1ffe\u000e",
2216
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2217
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2218
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2219
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2220
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2221
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2222
+ "\u0001\uffff\u0020\u000e\u0001\u001b\u001d\u000e\u0001\uffff"+
2223
+ "\u0001\u000e\u0001\uffff\ud782\u000e\u0800\uffff\u1ffe\u000e",
2224
+ "\u0001\u001c",
2225
+ "\u0001\u001e",
2226
+ "\u0001\u0021\u000d\uffff\u0001\u0020\u000f\uffff\u0001\u0022",
2227
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2228
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2229
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2230
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2231
+ "\u0001\u0025\u003d\uffff\u0001\u0026\u0005\uffff\u0001\u0026"+
2232
+ "\u0004\uffff\u0001\u0026\u0004\uffff\u0001\u0026",
2233
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2234
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2235
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2236
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2237
+ "\u0002\u0011\u0002\uffff\u0001\u0011\u0012\uffff\u0006\u0011"+
2238
+ "\u0001\uffff\u0015\u0011\u0001\uffff\u003e\u0011\u0001\uffff"+
2239
+ "\u0001\u0011\u0001\uffff\ud782\u0011\u0800\uffff\u1ffe\u0011",
2240
+ "\u0001\uffff",
2241
+ "",
2242
+ "\u0002\u0011\u0002\uffff\u0001\u0011\u0012\uffff\u0006\u0011"+
2243
+ "\u0001\uffff\u0015\u0011\u0001\uffff\u003e\u0011\u0001\uffff"+
2244
+ "\u0001\u0011\u0001\uffff\ud782\u0011\u0800\uffff\u1ffe\u0011",
2245
+ "\u0001\uffff",
2246
+ "\u0001\uffff",
2247
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2248
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2249
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2250
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2251
+ "\u0001\uffff",
2252
+ "\u0001\uffff",
2253
+ "\u0001\uffff",
2254
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2255
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0005\u000e"+
2256
+ "\u0002\u0019\u0001\u000e\u000a\u0019\u0002\u000e\u0001\uffff"+
2257
+ "\u0004\u000e\u001a\u0019\u0004\u000e\u0001\u0019\u0001\u000e"+
2258
+ "\u001a\u0019\u0001\uffff\u0001\u000e\u0001\uffff\ud782\u000e"+
2259
+ "\u0800\uffff\u1ffe\u000e",
2260
+ "\u0001\uffff",
2261
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2262
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2263
+ "\u0001\uffff\u0001\u000e\u0001\u0032\u003c\u000e\u0001\uffff"+
2264
+ "\u0001\u000e\u0001\uffff\ud782\u000e\u0800\uffff\u1ffe\u000e",
2265
+ "",
2266
+ "",
2267
+ "",
2268
+ "",
2269
+ "",
2270
+ "\u0001\u0034\u002d\uffff\u0001\u0033",
2271
+ "",
2272
+ "",
2273
+ "\u0001\uffff",
2274
+ "",
2275
+ "",
2276
+ "\u0001\uffff",
2277
+ "",
2278
+ "\u0001\uffff",
2279
+ "",
2280
+ "",
2281
+ "",
2282
+ "",
2283
+ "\u0001\uffff",
2284
+ "",
2285
+ "",
2286
+ "",
2287
+ "\u0002\u000e\u0002\uffff\u0001\u000e\u0012\uffff\u0002\u000e"+
2288
+ "\u0001\u0011\u0003\u000e\u0001\uffff\u0001\u0011\u0014\u000e"+
2289
+ "\u0001\uffff\u003e\u000e\u0001\uffff\u0001\u000e\u0001\uffff"+
2290
+ "\ud782\u000e\u0800\uffff\u1ffe\u000e",
2291
+ "\u0001\u003a",
2292
+ "",
2293
+ "",
2294
+ "",
2295
+ "",
2296
+ "",
2297
+ "\u0001\uffff",
2298
+ "\u0001\u003c",
2299
+ "",
2300
+ "\u0001\u003d",
2301
+ "\u0001\u003e",
2302
+ "\u0001\u003f",
2303
+ "\u0001\u0040",
2304
+ "\u0000\u0042",
2305
+ "",
2306
+ ""
2307
+ ]
2308
+ });
2309
+
2310
+ org.antlr.lang.augmentObject(XMLLexer, {
2311
+ DFA16_eot:
2312
+ org.antlr.runtime.DFA.unpackEncodedString(XMLLexer.DFA16_eotS),
2313
+ DFA16_eof:
2314
+ org.antlr.runtime.DFA.unpackEncodedString(XMLLexer.DFA16_eofS),
2315
+ DFA16_min:
2316
+ org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(XMLLexer.DFA16_minS),
2317
+ DFA16_max:
2318
+ org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(XMLLexer.DFA16_maxS),
2319
+ DFA16_accept:
2320
+ org.antlr.runtime.DFA.unpackEncodedString(XMLLexer.DFA16_acceptS),
2321
+ DFA16_special:
2322
+ org.antlr.runtime.DFA.unpackEncodedString(XMLLexer.DFA16_specialS),
2323
+ DFA16_transition: (function() {
2324
+ var a = [],
2325
+ i,
2326
+ numStates = XMLLexer.DFA16_transitionS.length;
2327
+ for (i=0; i<numStates; i++) {
2328
+ a.push(org.antlr.runtime.DFA.unpackEncodedString(XMLLexer.DFA16_transitionS[i]));
2329
+ }
2330
+ return a;
2331
+ })()
2332
+ });
2333
+
2334
+ XMLLexer.DFA16 = function(recognizer) {
2335
+ this.recognizer = recognizer;
2336
+ this.decisionNumber = 16;
2337
+ this.eot = XMLLexer.DFA16_eot;
2338
+ this.eof = XMLLexer.DFA16_eof;
2339
+ this.min = XMLLexer.DFA16_min;
2340
+ this.max = XMLLexer.DFA16_max;
2341
+ this.accept = XMLLexer.DFA16_accept;
2342
+ this.special = XMLLexer.DFA16_special;
2343
+ this.transition = XMLLexer.DFA16_transition;
2344
+ };
2345
+
2346
+ org.antlr.lang.extend(XMLLexer.DFA16, org.antlr.runtime.DFA, {
2347
+ getDescription: function() {
2348
+ return "1:1: Tokens : ( QUOT | APOS | L_QuotAttrContentChar | L_AposAttrContentChar | L_ElementContentChar | GREATER | EMPTY_CLOSE_TAG | S | L_NCName | EQUAL | ESCAPE_APOS | ESCAPE_QUOT | ESCAPE_LBRACKET | ESCAPE_RBRACKET | LBRACKET | RBRACKET | SMALLER | CLOSE_TAG | CDATA_START | CDATA_END | L_CDataSection | L_PredefinedEntityRef | L_CharRef | L_DirCommentConstructor | L_DirPIConstructor | COLON );";
2349
+ },
2350
+ specialStateTransition: function(s, input) {
2351
+ var _s = s;
2352
+ /* bind to recognizer so semantic predicates can be evaluated */
2353
+ var retval = (function(s, input) {
2354
+ switch ( s ) {
2355
+ case 0 :
2356
+ var LA16_0 = input.LA(1);
2357
+
2358
+
2359
+ var index16_0 = input.index();
2360
+ input.rewind();
2361
+ s = -1;
2362
+ if ( (LA16_0=='\"') && ((( this.inQuotAttr )||( this.inElem || this.inQuotAttr )||( !this.inElem )))) {s = 1;}
2363
+
2364
+ else if ( (LA16_0=='\'') && ((( this.inElem || this.inAposAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 2;}
2365
+
2366
+ else if ( (LA16_0=='>') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 3;}
2367
+
2368
+ else if ( (LA16_0=='/') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 4;}
2369
+
2370
+ else if ( ((LA16_0>='\t' && LA16_0<='\n')||LA16_0=='\r'||LA16_0==' ') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 5;}
2371
+
2372
+ else if ( ((LA16_0>='A' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='z')) && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 6;}
2373
+
2374
+ else if ( (LA16_0=='=') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 7;}
2375
+
2376
+ else if ( (LA16_0==']') ) {s = 8;}
2377
+
2378
+ else if ( (LA16_0=='{') && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {s = 9;}
2379
+
2380
+ else if ( (LA16_0=='}') && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {s = 10;}
2381
+
2382
+ else if ( (LA16_0=='<') ) {s = 11;}
2383
+
2384
+ else if ( (LA16_0==':') ) {s = 12;}
2385
+
2386
+ else if ( (LA16_0=='&') ) {s = 13;}
2387
+
2388
+ else if ( (LA16_0=='!'||(LA16_0>='#' && LA16_0<='%')||(LA16_0>='(' && LA16_0<='.')||(LA16_0>='0' && LA16_0<='9')||LA16_0==';'||(LA16_0>='?' && LA16_0<='@')||(LA16_0>='[' && LA16_0<='\\')||LA16_0=='^'||LA16_0=='`'||LA16_0=='|'||(LA16_0>='~' && LA16_0<='\uD7FF')||(LA16_0>='\uE000' && LA16_0<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2389
+
2390
+
2391
+ input.seek(index16_0);
2392
+ if ( s>=0 ) return s;
2393
+ break;
2394
+ case 1 :
2395
+ var LA16_64 = input.LA(1);
2396
+
2397
+
2398
+ var index16_64 = input.index();
2399
+ input.rewind();
2400
+ s = -1;
2401
+ if ( ((LA16_64>='\u0000' && LA16_64<='\uFFFF')) && (( !this.inElem ))) {s = 66;}
2402
+
2403
+ else s = 65;
2404
+
2405
+
2406
+ input.seek(index16_64);
2407
+ if ( s>=0 ) return s;
2408
+ break;
2409
+ case 2 :
2410
+ var LA16_7 = input.LA(1);
2411
+
2412
+
2413
+ var index16_7 = input.index();
2414
+ input.rewind();
2415
+ s = -1;
2416
+ if ( ((LA16_7>='\t' && LA16_7<='\n')||LA16_7=='\r'||(LA16_7>=' ' && LA16_7<='!')||(LA16_7>='#' && LA16_7<='%')||(LA16_7>='(' && LA16_7<=';')||(LA16_7>='=' && LA16_7<='z')||LA16_7=='|'||(LA16_7>='~' && LA16_7<='\uD7FF')||(LA16_7>='\uE000' && LA16_7<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2417
+
2418
+ else if ( (LA16_7=='\"'||LA16_7=='\'') && (( !this.inElem ))) {s = 17;}
2419
+
2420
+ else s = 26;
2421
+
2422
+
2423
+ input.seek(index16_7);
2424
+ if ( s>=0 ) return s;
2425
+ break;
2426
+ case 3 :
2427
+ var LA16_25 = input.LA(1);
2428
+
2429
+
2430
+ var index16_25 = input.index();
2431
+ input.rewind();
2432
+ s = -1;
2433
+ if ( ((LA16_25>='-' && LA16_25<='.')||(LA16_25>='0' && LA16_25<='9')||(LA16_25>='A' && LA16_25<='Z')||LA16_25=='_'||(LA16_25>='a' && LA16_25<='z')) && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 25;}
2434
+
2435
+ else if ( (LA16_25=='\"'||LA16_25=='\'') && (( !this.inElem ))) {s = 17;}
2436
+
2437
+ else if ( ((LA16_25>='\t' && LA16_25<='\n')||LA16_25=='\r'||(LA16_25>=' ' && LA16_25<='!')||(LA16_25>='#' && LA16_25<='%')||(LA16_25>='(' && LA16_25<=',')||LA16_25=='/'||(LA16_25>=':' && LA16_25<=';')||(LA16_25>='=' && LA16_25<='@')||(LA16_25>='[' && LA16_25<='^')||LA16_25=='`'||LA16_25=='|'||(LA16_25>='~' && LA16_25<='\uD7FF')||(LA16_25>='\uE000' && LA16_25<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2438
+
2439
+ else s = 24;
2440
+
2441
+
2442
+ input.seek(index16_25);
2443
+ if ( s>=0 ) return s;
2444
+ break;
2445
+ case 4 :
2446
+ var LA16_3 = input.LA(1);
2447
+
2448
+
2449
+ var index16_3 = input.index();
2450
+ input.rewind();
2451
+ s = -1;
2452
+ if ( ((LA16_3>='\t' && LA16_3<='\n')||LA16_3=='\r'||(LA16_3>=' ' && LA16_3<='!')||(LA16_3>='#' && LA16_3<='%')||(LA16_3>='(' && LA16_3<=';')||(LA16_3>='=' && LA16_3<='z')||LA16_3=='|'||(LA16_3>='~' && LA16_3<='\uD7FF')||(LA16_3>='\uE000' && LA16_3<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2453
+
2454
+ else if ( (LA16_3=='\"'||LA16_3=='\'') && (( !this.inElem ))) {s = 17;}
2455
+
2456
+ else s = 20;
2457
+
2458
+
2459
+ input.seek(index16_3);
2460
+ if ( s>=0 ) return s;
2461
+ break;
2462
+ case 5 :
2463
+ var LA16_10 = input.LA(1);
2464
+
2465
+
2466
+ var index16_10 = input.index();
2467
+ input.rewind();
2468
+ s = -1;
2469
+ if ( (LA16_10=='}') && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {s = 30;}
2470
+
2471
+ else s = 31;
2472
+
2473
+
2474
+ input.seek(index16_10);
2475
+ if ( s>=0 ) return s;
2476
+ break;
2477
+ case 6 :
2478
+ var LA16_39 = input.LA(1);
2479
+
2480
+
2481
+ var index16_39 = input.index();
2482
+ input.rewind();
2483
+ s = -1;
2484
+ if ( (( !this.inElem )) ) {s = 17;}
2485
+
2486
+ else if ( (( this.inQuotAttr )) ) {s = 54;}
2487
+
2488
+
2489
+ input.seek(index16_39);
2490
+ if ( s>=0 ) return s;
2491
+ break;
2492
+ case 7 :
2493
+ var LA16_41 = input.LA(1);
2494
+
2495
+
2496
+ var index16_41 = input.index();
2497
+ input.rewind();
2498
+ s = -1;
2499
+ if ( (( !this.inElem )) ) {s = 17;}
2500
+
2501
+ else if ( (( this.inAposAttr )) ) {s = 55;}
2502
+
2503
+
2504
+ input.seek(index16_41);
2505
+ if ( s>=0 ) return s;
2506
+ break;
2507
+ case 8 :
2508
+ var LA16_27 = input.LA(1);
2509
+
2510
+
2511
+ var index16_27 = input.index();
2512
+ input.rewind();
2513
+ s = -1;
2514
+ if ( (LA16_27=='>') ) {s = 50;}
2515
+
2516
+ else if ( ((LA16_27>='\t' && LA16_27<='\n')||LA16_27=='\r'||(LA16_27>=' ' && LA16_27<='!')||(LA16_27>='#' && LA16_27<='%')||(LA16_27>='(' && LA16_27<=';')||LA16_27=='='||(LA16_27>='?' && LA16_27<='z')||LA16_27=='|'||(LA16_27>='~' && LA16_27<='\uD7FF')||(LA16_27>='\uE000' && LA16_27<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2517
+
2518
+ else if ( (LA16_27=='\"'||LA16_27=='\'') && (( !this.inElem ))) {s = 17;}
2519
+
2520
+ else s = 22;
2521
+
2522
+
2523
+ input.seek(index16_27);
2524
+ if ( s>=0 ) return s;
2525
+ break;
2526
+ case 9 :
2527
+ var LA16_16 = input.LA(1);
2528
+
2529
+
2530
+ var index16_16 = input.index();
2531
+ input.rewind();
2532
+ s = -1;
2533
+ if ( (( this.inElem || this.inQuotAttr )) ) {s = 40;}
2534
+
2535
+ else if ( (( !this.inElem )) ) {s = 17;}
2536
+
2537
+
2538
+ input.seek(index16_16);
2539
+ if ( s>=0 ) return s;
2540
+ break;
2541
+ case 10 :
2542
+ var LA16_19 = input.LA(1);
2543
+
2544
+
2545
+ var index16_19 = input.index();
2546
+ input.rewind();
2547
+ s = -1;
2548
+ if ( (( this.inElem || this.inAposAttr )) ) {s = 42;}
2549
+
2550
+ else if ( (( !this.inElem )) ) {s = 17;}
2551
+
2552
+
2553
+ input.seek(index16_19);
2554
+ if ( s>=0 ) return s;
2555
+ break;
2556
+ case 11 :
2557
+ var LA16_8 = input.LA(1);
2558
+
2559
+
2560
+ var index16_8 = input.index();
2561
+ input.rewind();
2562
+ s = -1;
2563
+ if ( (LA16_8==']') ) {s = 27;}
2564
+
2565
+ else if ( ((LA16_8>='\t' && LA16_8<='\n')||LA16_8=='\r'||(LA16_8>=' ' && LA16_8<='!')||(LA16_8>='#' && LA16_8<='%')||(LA16_8>='(' && LA16_8<=';')||(LA16_8>='=' && LA16_8<='\\')||(LA16_8>='^' && LA16_8<='z')||LA16_8=='|'||(LA16_8>='~' && LA16_8<='\uD7FF')||(LA16_8>='\uE000' && LA16_8<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2566
+
2567
+ else if ( (LA16_8=='\"'||LA16_8=='\'') && (( !this.inElem ))) {s = 17;}
2568
+
2569
+ else s = 22;
2570
+
2571
+
2572
+ input.seek(index16_8);
2573
+ if ( s>=0 ) return s;
2574
+ break;
2575
+ case 12 :
2576
+ var LA16_14 = input.LA(1);
2577
+
2578
+
2579
+ var index16_14 = input.index();
2580
+ input.rewind();
2581
+ s = -1;
2582
+ if ( ((LA16_14>='\t' && LA16_14<='\n')||LA16_14=='\r'||(LA16_14>=' ' && LA16_14<='!')||(LA16_14>='#' && LA16_14<='%')||(LA16_14>='(' && LA16_14<=';')||(LA16_14>='=' && LA16_14<='z')||LA16_14=='|'||(LA16_14>='~' && LA16_14<='\uD7FF')||(LA16_14>='\uE000' && LA16_14<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2583
+
2584
+ else if ( (LA16_14=='\"'||LA16_14=='\'') && (( !this.inElem ))) {s = 17;}
2585
+
2586
+ else s = 22;
2587
+
2588
+
2589
+ input.seek(index16_14);
2590
+ if ( s>=0 ) return s;
2591
+ break;
2592
+ case 13 :
2593
+ var LA16_4 = input.LA(1);
2594
+
2595
+
2596
+ var index16_4 = input.index();
2597
+ input.rewind();
2598
+ s = -1;
2599
+ if ( (LA16_4=='>') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 21;}
2600
+
2601
+ else if ( ((LA16_4>='\t' && LA16_4<='\n')||LA16_4=='\r'||(LA16_4>=' ' && LA16_4<='!')||(LA16_4>='#' && LA16_4<='%')||(LA16_4>='(' && LA16_4<=';')||LA16_4=='='||(LA16_4>='?' && LA16_4<='z')||LA16_4=='|'||(LA16_4>='~' && LA16_4<='\uD7FF')||(LA16_4>='\uE000' && LA16_4<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2602
+
2603
+ else if ( (LA16_4=='\"'||LA16_4=='\'') && (( !this.inElem ))) {s = 17;}
2604
+
2605
+ else s = 22;
2606
+
2607
+
2608
+ input.seek(index16_4);
2609
+ if ( s>=0 ) return s;
2610
+ break;
2611
+ case 14 :
2612
+ var LA16_36 = input.LA(1);
2613
+
2614
+
2615
+ var index16_36 = input.index();
2616
+ input.rewind();
2617
+ s = -1;
2618
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2619
+
2620
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2621
+
2622
+ else if ( (( !this.inElem )) ) {s = 17;}
2623
+
2624
+ else if ( (true) ) {s = 53;}
2625
+
2626
+
2627
+ input.seek(index16_36);
2628
+ if ( s>=0 ) return s;
2629
+ break;
2630
+ case 15 :
2631
+ var LA16_22 = input.LA(1);
2632
+
2633
+
2634
+ var index16_22 = input.index();
2635
+ input.rewind();
2636
+ s = -1;
2637
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2638
+
2639
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2640
+
2641
+ else if ( (( !this.inElem )) ) {s = 17;}
2642
+
2643
+
2644
+ input.seek(index16_22);
2645
+ if ( s>=0 ) return s;
2646
+ break;
2647
+ case 16 :
2648
+ var LA16_18 = input.LA(1);
2649
+
2650
+
2651
+ var index16_18 = input.index();
2652
+ input.rewind();
2653
+ s = -1;
2654
+ if ( ((LA16_18>='\t' && LA16_18<='\n')||LA16_18=='\r'||(LA16_18>=' ' && LA16_18<='%')||(LA16_18>='\'' && LA16_18<=';')||(LA16_18>='=' && LA16_18<='z')||LA16_18=='|'||(LA16_18>='~' && LA16_18<='\uD7FF')||(LA16_18>='\uE000' && LA16_18<='\uFFFD')) && (( !this.inElem ))) {s = 17;}
2655
+
2656
+ else s = 41;
2657
+
2658
+
2659
+ input.seek(index16_18);
2660
+ if ( s>=0 ) return s;
2661
+ break;
2662
+ case 17 :
2663
+ var LA16_11 = input.LA(1);
2664
+
2665
+
2666
+ var index16_11 = input.index();
2667
+ input.rewind();
2668
+ s = -1;
2669
+ if ( (LA16_11=='/') && (( !this.inElem ))) {s = 32;}
2670
+
2671
+ else if ( (LA16_11=='!') ) {s = 33;}
2672
+
2673
+ else if ( (LA16_11=='?') && (( !this.inElem ))) {s = 34;}
2674
+
2675
+ else s = 35;
2676
+
2677
+
2678
+ input.seek(index16_11);
2679
+ if ( s>=0 ) return s;
2680
+ break;
2681
+ case 18 :
2682
+ var LA16_33 = input.LA(1);
2683
+
2684
+
2685
+ var index16_33 = input.index();
2686
+ input.rewind();
2687
+ s = -1;
2688
+ if ( (LA16_33=='[') ) {s = 51;}
2689
+
2690
+ else if ( (LA16_33=='-') && (( !this.inElem ))) {s = 52;}
2691
+
2692
+
2693
+ input.seek(index16_33);
2694
+ if ( s>=0 ) return s;
2695
+ break;
2696
+ case 19 :
2697
+ var LA16_50 = input.LA(1);
2698
+
2699
+
2700
+ var index16_50 = input.index();
2701
+ input.rewind();
2702
+ s = -1;
2703
+ if ( ((LA16_50>='\t' && LA16_50<='\n')||LA16_50=='\r'||(LA16_50>=' ' && LA16_50<='!')||(LA16_50>='#' && LA16_50<='%')||(LA16_50>='(' && LA16_50<=';')||(LA16_50>='=' && LA16_50<='z')||LA16_50=='|'||(LA16_50>='~' && LA16_50<='\uD7FF')||(LA16_50>='\uE000' && LA16_50<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2704
+
2705
+ else if ( (LA16_50=='\"'||LA16_50=='\'') && (( !this.inElem ))) {s = 17;}
2706
+
2707
+ else s = 57;
2708
+
2709
+
2710
+ input.seek(index16_50);
2711
+ if ( s>=0 ) return s;
2712
+ break;
2713
+ case 20 :
2714
+ var LA16_57 = input.LA(1);
2715
+
2716
+
2717
+ var index16_57 = input.index();
2718
+ input.rewind();
2719
+ s = -1;
2720
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2721
+
2722
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2723
+
2724
+ else if ( (( !this.inElem )) ) {s = 17;}
2725
+
2726
+ else if ( (true) ) {s = 59;}
2727
+
2728
+
2729
+ input.seek(index16_57);
2730
+ if ( s>=0 ) return s;
2731
+ break;
2732
+ case 21 :
2733
+ var LA16_6 = input.LA(1);
2734
+
2735
+
2736
+ var index16_6 = input.index();
2737
+ input.rewind();
2738
+ s = -1;
2739
+ if ( ((LA16_6>='-' && LA16_6<='.')||(LA16_6>='0' && LA16_6<='9')||(LA16_6>='A' && LA16_6<='Z')||LA16_6=='_'||(LA16_6>='a' && LA16_6<='z')) && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 25;}
2740
+
2741
+ else if ( (LA16_6=='\"'||LA16_6=='\'') && (( !this.inElem ))) {s = 17;}
2742
+
2743
+ else if ( ((LA16_6>='\t' && LA16_6<='\n')||LA16_6=='\r'||(LA16_6>=' ' && LA16_6<='!')||(LA16_6>='#' && LA16_6<='%')||(LA16_6>='(' && LA16_6<=',')||LA16_6=='/'||(LA16_6>=':' && LA16_6<=';')||(LA16_6>='=' && LA16_6<='@')||(LA16_6>='[' && LA16_6<='^')||LA16_6=='`'||LA16_6=='|'||(LA16_6>='~' && LA16_6<='\uD7FF')||(LA16_6>='\uE000' && LA16_6<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2744
+
2745
+ else s = 24;
2746
+
2747
+
2748
+ input.seek(index16_6);
2749
+ if ( s>=0 ) return s;
2750
+ break;
2751
+ case 22 :
2752
+ var LA16_21 = input.LA(1);
2753
+
2754
+
2755
+ var index16_21 = input.index();
2756
+ input.rewind();
2757
+ s = -1;
2758
+ if ( ((LA16_21>='\t' && LA16_21<='\n')||LA16_21=='\r'||(LA16_21>=' ' && LA16_21<='!')||(LA16_21>='#' && LA16_21<='%')||(LA16_21>='(' && LA16_21<=';')||(LA16_21>='=' && LA16_21<='z')||LA16_21=='|'||(LA16_21>='~' && LA16_21<='\uD7FF')||(LA16_21>='\uE000' && LA16_21<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2759
+
2760
+ else if ( (LA16_21=='\"'||LA16_21=='\'') && (( !this.inElem ))) {s = 17;}
2761
+
2762
+ else s = 46;
2763
+
2764
+
2765
+ input.seek(index16_21);
2766
+ if ( s>=0 ) return s;
2767
+ break;
2768
+ case 23 :
2769
+ var LA16_26 = input.LA(1);
2770
+
2771
+
2772
+ var index16_26 = input.index();
2773
+ input.rewind();
2774
+ s = -1;
2775
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2776
+
2777
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2778
+
2779
+ else if ( (( !this.inElem )) ) {s = 17;}
2780
+
2781
+ else if ( (( this.inElem )) ) {s = 49;}
2782
+
2783
+
2784
+ input.seek(index16_26);
2785
+ if ( s>=0 ) return s;
2786
+ break;
2787
+ case 24 :
2788
+ var LA16_23 = input.LA(1);
2789
+
2790
+
2791
+ var index16_23 = input.index();
2792
+ input.rewind();
2793
+ s = -1;
2794
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2795
+
2796
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2797
+
2798
+ else if ( (( !this.inElem )) ) {s = 17;}
2799
+
2800
+ else if ( (( this.inElem )) ) {s = 47;}
2801
+
2802
+
2803
+ input.seek(index16_23);
2804
+ if ( s>=0 ) return s;
2805
+ break;
2806
+ case 25 :
2807
+ var LA16_24 = input.LA(1);
2808
+
2809
+
2810
+ var index16_24 = input.index();
2811
+ input.rewind();
2812
+ s = -1;
2813
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2814
+
2815
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2816
+
2817
+ else if ( (( !this.inElem )) ) {s = 17;}
2818
+
2819
+ else if ( (( this.inElem )) ) {s = 48;}
2820
+
2821
+
2822
+ input.seek(index16_24);
2823
+ if ( s>=0 ) return s;
2824
+ break;
2825
+ case 26 :
2826
+ var LA16_15 = input.LA(1);
2827
+
2828
+
2829
+ var index16_15 = input.index();
2830
+ input.rewind();
2831
+ s = -1;
2832
+ if ( ((LA16_15>='\t' && LA16_15<='\n')||LA16_15=='\r'||(LA16_15>=' ' && LA16_15<='%')||(LA16_15>='\'' && LA16_15<=';')||(LA16_15>='=' && LA16_15<='z')||LA16_15=='|'||(LA16_15>='~' && LA16_15<='\uD7FF')||(LA16_15>='\uE000' && LA16_15<='\uFFFD')) && (( !this.inElem ))) {s = 17;}
2833
+
2834
+ else s = 39;
2835
+
2836
+
2837
+ input.seek(index16_15);
2838
+ if ( s>=0 ) return s;
2839
+ break;
2840
+ case 27 :
2841
+ var LA16_12 = input.LA(1);
2842
+
2843
+
2844
+ var index16_12 = input.index();
2845
+ input.rewind();
2846
+ s = -1;
2847
+ if ( ((LA16_12>='\t' && LA16_12<='\n')||LA16_12=='\r'||(LA16_12>=' ' && LA16_12<='!')||(LA16_12>='#' && LA16_12<='%')||(LA16_12>='(' && LA16_12<=';')||(LA16_12>='=' && LA16_12<='z')||LA16_12=='|'||(LA16_12>='~' && LA16_12<='\uD7FF')||(LA16_12>='\uE000' && LA16_12<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2848
+
2849
+ else if ( (LA16_12=='\"'||LA16_12=='\'') && (( !this.inElem ))) {s = 17;}
2850
+
2851
+ else s = 36;
2852
+
2853
+
2854
+ input.seek(index16_12);
2855
+ if ( s>=0 ) return s;
2856
+ break;
2857
+ case 28 :
2858
+ var LA16_46 = input.LA(1);
2859
+
2860
+
2861
+ var index16_46 = input.index();
2862
+ input.rewind();
2863
+ s = -1;
2864
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2865
+
2866
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2867
+
2868
+ else if ( (( !this.inElem )) ) {s = 17;}
2869
+
2870
+ else if ( (( this.inElem )) ) {s = 56;}
2871
+
2872
+
2873
+ input.seek(index16_46);
2874
+ if ( s>=0 ) return s;
2875
+ break;
2876
+ case 29 :
2877
+ var LA16_20 = input.LA(1);
2878
+
2879
+
2880
+ var index16_20 = input.index();
2881
+ input.rewind();
2882
+ s = -1;
2883
+ if ( (( this.inQuotAttr )) ) {s = 43;}
2884
+
2885
+ else if ( (( this.inAposAttr )) ) {s = 44;}
2886
+
2887
+ else if ( (( !this.inElem )) ) {s = 17;}
2888
+
2889
+ else if ( (( this.inElem )) ) {s = 45;}
2890
+
2891
+
2892
+ input.seek(index16_20);
2893
+ if ( s>=0 ) return s;
2894
+ break;
2895
+ case 30 :
2896
+ var LA16_5 = input.LA(1);
2897
+
2898
+
2899
+ var index16_5 = input.index();
2900
+ input.rewind();
2901
+ s = -1;
2902
+ if ( ((LA16_5>='\t' && LA16_5<='\n')||LA16_5=='\r'||LA16_5==' ') && ((( this.inElem )||( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 5;}
2903
+
2904
+ else if ( (LA16_5=='\"'||LA16_5=='\'') && (( !this.inElem ))) {s = 17;}
2905
+
2906
+ else if ( (LA16_5=='!'||(LA16_5>='#' && LA16_5<='%')||(LA16_5>='(' && LA16_5<=';')||(LA16_5>='=' && LA16_5<='z')||LA16_5=='|'||(LA16_5>='~' && LA16_5<='\uD7FF')||(LA16_5>='\uE000' && LA16_5<='\uFFFD')) && ((( this.inQuotAttr )||( this.inAposAttr )||( !this.inElem )))) {s = 14;}
2907
+
2908
+ else s = 23;
2909
+
2910
+
2911
+ input.seek(index16_5);
2912
+ if ( s>=0 ) return s;
2913
+ break;
2914
+ case 31 :
2915
+ var LA16_1 = input.LA(1);
2916
+
2917
+
2918
+ var index16_1 = input.index();
2919
+ input.rewind();
2920
+ s = -1;
2921
+ if ( (LA16_1=='\"') && ((( this.inQuotAttr )||( !this.inElem )))) {s = 15;}
2922
+
2923
+ else if ( ((LA16_1>='\t' && LA16_1<='\n')||LA16_1=='\r'||(LA16_1>=' ' && LA16_1<='!')||(LA16_1>='#' && LA16_1<='%')||(LA16_1>='\'' && LA16_1<=';')||(LA16_1>='=' && LA16_1<='z')||LA16_1=='|'||(LA16_1>='~' && LA16_1<='\uD7FF')||(LA16_1>='\uE000' && LA16_1<='\uFFFD')) && (( !this.inElem ))) {s = 17;}
2924
+
2925
+ else s = 16;
2926
+
2927
+
2928
+ input.seek(index16_1);
2929
+ if ( s>=0 ) return s;
2930
+ break;
2931
+ case 32 :
2932
+ var LA16_13 = input.LA(1);
2933
+
2934
+
2935
+ var index16_13 = input.index();
2936
+ input.rewind();
2937
+ s = -1;
2938
+ if ( (LA16_13=='#') ) {s = 37;}
2939
+
2940
+ else if ( (LA16_13=='a'||LA16_13=='g'||LA16_13=='l'||LA16_13=='q') && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {s = 38;}
2941
+
2942
+
2943
+ input.seek(index16_13);
2944
+ if ( s>=0 ) return s;
2945
+ break;
2946
+ case 33 :
2947
+ var LA16_9 = input.LA(1);
2948
+
2949
+
2950
+ var index16_9 = input.index();
2951
+ input.rewind();
2952
+ s = -1;
2953
+ if ( (LA16_9=='{') && (( !this.inElem || this.inAposAttr || this.inQuotAttr ))) {s = 28;}
2954
+
2955
+ else s = 29;
2956
+
2957
+
2958
+ input.seek(index16_9);
2959
+ if ( s>=0 ) return s;
2960
+ break;
2961
+ case 34 :
2962
+ var LA16_2 = input.LA(1);
2963
+
2964
+
2965
+ var index16_2 = input.index();
2966
+ input.rewind();
2967
+ s = -1;
2968
+ if ( (LA16_2=='\'') && ((( this.inAposAttr )||( !this.inElem )))) {s = 18;}
2969
+
2970
+ else if ( ((LA16_2>='\t' && LA16_2<='\n')||LA16_2=='\r'||(LA16_2>=' ' && LA16_2<='%')||(LA16_2>='(' && LA16_2<=';')||(LA16_2>='=' && LA16_2<='z')||LA16_2=='|'||(LA16_2>='~' && LA16_2<='\uD7FF')||(LA16_2>='\uE000' && LA16_2<='\uFFFD')) && (( !this.inElem ))) {s = 17;}
2971
+
2972
+ else s = 19;
2973
+
2974
+
2975
+ input.seek(index16_2);
2976
+ if ( s>=0 ) return s;
2977
+ break;
2978
+ }
2979
+ }).call(this.recognizer, s, input);
2980
+ if (!org.antlr.lang.isUndefined(retval)) {
2981
+ return retval;
2982
+ }
2983
+ var nvae =
2984
+ new org.antlr.runtime.NoViableAltException(this.getDescription(), 16, _s, input);
2985
+ this.error(nvae);
2986
+ throw nvae;
2987
+ },
2988
+ dummy: null
2989
+ });
2990
+
2991
+ })();
2992
+ exports.XMLLexer = XMLLexer;
2993
+ });