burp_cms 1.3.13 → 1.3.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/app/assets/images/burp/add-image-2.jpg +0 -0
  4. data/app/assets/images/burp/add-image-3.jpg +0 -0
  5. data/app/assets/images/burp/add-image-4.jpg +0 -0
  6. data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
  7. data/app/assets/images/burp/remove-image-2.jpg +0 -0
  8. data/app/assets/images/burp/remove-image-3.jpg +0 -0
  9. data/app/assets/images/burp/remove-image-4.jpg +0 -0
  10. data/app/assets/images/burp/remove-image-5.jpg +0 -0
  11. data/app/views/burp/static/help.html.erb +8 -8
  12. data/lib/burp/version.rb +1 -1
  13. metadata +95 -234
  14. data/app/assets/images/burp/add-image-2.png +0 -0
  15. data/app/assets/images/burp/add-image-3.png +0 -0
  16. data/app/assets/images/burp/add-image-4.png +0 -0
  17. data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
  18. data/app/assets/images/burp/remove-image-2.png +0 -0
  19. data/app/assets/images/burp/remove-image-3.png +0 -0
  20. data/app/assets/images/burp/remove-image-4.png +0 -0
  21. data/app/assets/images/burp/remove-image-5.png +0 -0
  22. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
  23. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
  24. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
  25. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
  26. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
  27. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
  28. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
  29. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
  30. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
  31. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
  32. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
  33. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
  34. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
  35. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
  36. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
  37. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
  38. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
  39. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
  40. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
  41. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
  42. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
  43. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
  44. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
  45. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
  46. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
  47. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
  48. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
  49. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
  50. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
  51. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
  52. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
  53. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
  54. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
  55. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
  56. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
  57. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
  58. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
  59. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
  60. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
  61. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
  62. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
  63. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
  64. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
  65. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
  66. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
  67. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
  68. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
  69. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
  70. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
  71. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
  72. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
  73. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
  74. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
  75. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
  76. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
  77. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
  78. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
  79. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
  80. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
  81. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
  82. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
  83. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
  84. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
  85. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
  86. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
  87. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
  88. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
  89. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
  90. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
  91. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
  92. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
  93. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
  94. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
  95. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
  96. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
  97. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
  98. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
  99. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
  100. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
  101. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
  102. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
  103. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
  104. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
  105. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
  106. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
  107. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
  108. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
  109. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
  110. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
  111. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
  112. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
  113. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
  114. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
  115. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
  116. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
  117. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
  118. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
  119. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
  120. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
  121. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
  122. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
  123. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
  124. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
  125. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
  126. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
  127. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
  128. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
  129. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
  130. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
  131. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
  132. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
  133. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
  134. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
  135. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
  136. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
  137. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
  138. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
  139. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
  140. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
  141. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
  142. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
  143. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
  144. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
  145. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
  146. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
  147. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
  148. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
  149. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
  150. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
  151. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
  152. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
  153. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
  154. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
  155. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
  156. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
  157. data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
  158. data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
  159. data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
  160. data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
  161. data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
  162. data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
  163. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
  164. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
  165. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
  166. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
  167. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
  168. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
  169. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
  170. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
  171. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
  172. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
  173. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
  174. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
  175. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
  176. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
  177. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
  178. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
  179. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
  180. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
  181. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
  182. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
  183. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
  184. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
  185. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
  186. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
  187. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
  188. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
  189. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
  190. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
  191. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
  192. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
  193. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
  194. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
  195. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
  196. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
  197. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
  198. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
  199. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
  200. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
  201. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
  202. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
  203. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
  204. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
  205. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
  206. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
  207. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
  208. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
  209. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
  210. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
  211. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
  212. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
  213. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
  214. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
  215. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
  216. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
  217. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
  218. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
  219. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
  220. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
  221. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
  222. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
  223. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
  224. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
  225. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
  226. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
  227. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
  228. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
  229. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
  230. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
  231. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
  232. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
  233. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
  234. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
  235. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
  236. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
  237. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
  238. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
  239. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
  240. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
  241. data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
  242. data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
  243. data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,48 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: PHP mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="../xml/xml.js"></script>
8
- <script src="../javascript/javascript.js"></script>
9
- <script src="../css/css.js"></script>
10
- <script src="../clike/clike.js"></script>
11
- <script src="php.js"></script>
12
- <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
13
- <link rel="stylesheet" href="../../doc/docs.css">
14
- </head>
15
- <body>
16
- <h1>CodeMirror: PHP mode</h1>
17
-
18
- <form><textarea id="code" name="code">
19
- <?php
20
- function hello($who) {
21
- return "Hello " . $who;
22
- }
23
- ?>
24
- <p>The program says <?= hello("World") ?>.</p>
25
- <script>
26
- alert("And here is some JS code"); // also colored
27
- </script>
28
- </textarea></form>
29
-
30
- <script>
31
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
32
- lineNumbers: true,
33
- matchBrackets: true,
34
- mode: "application/x-httpd-php",
35
- indentUnit: 4,
36
- indentWithTabs: true,
37
- enterMode: "keep",
38
- tabMode: "shift"
39
- });
40
- </script>
41
-
42
- <p>Simple HTML/PHP mode based on
43
- the <a href="../clike/">C-like</a> mode. Depends on XML,
44
- JavaScript, CSS, and C-like modes.</p>
45
-
46
- <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p>
47
- </body>
48
- </html>
@@ -1,150 +0,0 @@
1
- (function() {
2
- function keywords(str) {
3
- var obj = {}, words = str.split(" ");
4
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
5
- return obj;
6
- }
7
- function heredoc(delim) {
8
- return function(stream, state) {
9
- if (stream.match(delim)) state.tokenize = null;
10
- else stream.skipToEnd();
11
- return "string";
12
- }
13
- }
14
- var phpConfig = {
15
- name: "clike",
16
- keywords: keywords("abstract and array as break case catch class clone const continue declare default " +
17
- "do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " +
18
- "for foreach function global goto if implements interface instanceof namespace " +
19
- "new or private protected public static switch throw trait try use var while xor " +
20
- "die echo empty exit eval include include_once isset list require require_once return " +
21
- "print unset __halt_compiler self static parent"),
22
- blockKeywords: keywords("catch do else elseif for foreach if switch try while"),
23
- atoms: keywords("true false null TRUE FALSE NULL"),
24
- multiLineStrings: true,
25
- hooks: {
26
- "$": function(stream, state) {
27
- stream.eatWhile(/[\w\$_]/);
28
- return "variable-2";
29
- },
30
- "<": function(stream, state) {
31
- if (stream.match(/<</)) {
32
- stream.eatWhile(/[\w\.]/);
33
- state.tokenize = heredoc(stream.current().slice(3));
34
- return state.tokenize(stream, state);
35
- }
36
- return false;
37
- },
38
- "#": function(stream, state) {
39
- while (!stream.eol() && !stream.match("?>", false)) stream.next();
40
- return "comment";
41
- },
42
- "/": function(stream, state) {
43
- if (stream.eat("/")) {
44
- while (!stream.eol() && !stream.match("?>", false)) stream.next();
45
- return "comment";
46
- }
47
- return false;
48
- }
49
- }
50
- };
51
-
52
- CodeMirror.defineMode("php", function(config, parserConfig) {
53
- var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true});
54
- var jsMode = CodeMirror.getMode(config, "javascript");
55
- var cssMode = CodeMirror.getMode(config, "css");
56
- var phpMode = CodeMirror.getMode(config, phpConfig);
57
-
58
- function dispatch(stream, state) { // TODO open PHP inside text/css
59
- var isPHP = state.mode == "php";
60
- if (stream.sol() && state.pending != '"') state.pending = null;
61
- if (state.curMode == htmlMode) {
62
- if (stream.match(/^<\?\w*/)) {
63
- state.curMode = phpMode;
64
- state.curState = state.php;
65
- state.curClose = "?>";
66
- state.mode = "php";
67
- return "meta";
68
- }
69
- if (state.pending == '"') {
70
- while (!stream.eol() && stream.next() != '"') {}
71
- var style = "string";
72
- } else if (state.pending && stream.pos < state.pending.end) {
73
- stream.pos = state.pending.end;
74
- var style = state.pending.style;
75
- } else {
76
- var style = htmlMode.token(stream, state.curState);
77
- }
78
- state.pending = null;
79
- var cur = stream.current(), openPHP = cur.search(/<\?/);
80
- if (openPHP != -1) {
81
- if (style == "string" && /\"$/.test(cur) && !/\?>/.test(cur)) state.pending = '"';
82
- else state.pending = {end: stream.pos, style: style};
83
- stream.backUp(cur.length - openPHP);
84
- } else if (style == "tag" && stream.current() == ">" && state.curState.context) {
85
- if (/^script$/i.test(state.curState.context.tagName)) {
86
- state.curMode = jsMode;
87
- state.curState = jsMode.startState(htmlMode.indent(state.curState, ""));
88
- state.curClose = /^<\/\s*script\s*>/i;
89
- state.mode = "javascript";
90
- }
91
- else if (/^style$/i.test(state.curState.context.tagName)) {
92
- state.curMode = cssMode;
93
- state.curState = cssMode.startState(htmlMode.indent(state.curState, ""));
94
- state.curClose = /^<\/\s*style\s*>/i;
95
- state.mode = "css";
96
- }
97
- }
98
- return style;
99
- } else if ((!isPHP || state.php.tokenize == null) &&
100
- stream.match(state.curClose, isPHP)) {
101
- state.curMode = htmlMode;
102
- state.curState = state.html;
103
- state.curClose = null;
104
- state.mode = "html";
105
- if (isPHP) return "meta";
106
- else return dispatch(stream, state);
107
- } else {
108
- return state.curMode.token(stream, state.curState);
109
- }
110
- }
111
-
112
- return {
113
- startState: function() {
114
- var html = htmlMode.startState();
115
- return {html: html,
116
- php: phpMode.startState(),
117
- curMode: parserConfig.startOpen ? phpMode : htmlMode,
118
- curState: parserConfig.startOpen ? phpMode.startState() : html,
119
- curClose: parserConfig.startOpen ? /^\?>/ : null,
120
- mode: parserConfig.startOpen ? "php" : "html",
121
- pending: null}
122
- },
123
-
124
- copyState: function(state) {
125
- var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
126
- php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
127
- if (state.curState == html) cur = htmlNew;
128
- else if (state.curState == php) cur = phpNew;
129
- else cur = CodeMirror.copyState(state.curMode, state.curState);
130
- return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur,
131
- curClose: state.curClose, mode: state.mode,
132
- pending: state.pending};
133
- },
134
-
135
- token: dispatch,
136
-
137
- indent: function(state, textAfter) {
138
- if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) ||
139
- (state.curMode == phpMode && /^\?>/.test(textAfter)))
140
- return htmlMode.indent(state.html, textAfter);
141
- return state.curMode.indent(state.curState, textAfter);
142
- },
143
-
144
- electricChars: "/{}:"
145
- }
146
- }, "xml", "clike", "javascript", "css");
147
- CodeMirror.defineMIME("application/x-httpd-php", "php");
148
- CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
149
- CodeMirror.defineMIME("text/x-php", phpConfig);
150
- })();
@@ -1,42 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Pig Latin mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="pig.js"></script>
8
- <link rel="stylesheet" href="../../doc/docs.css">
9
- <style>.CodeMirror {border: 2px inset #dee;}</style>
10
- </head>
11
- <body>
12
- <h1>CodeMirror: Pig Latin mode</h1>
13
-
14
- <form><textarea id="code" name="code">
15
- -- Apache Pig (Pig Latin Language) Demo
16
- /*
17
- This is a multiline comment.
18
- */
19
- a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
20
- b = GROUP a BY (x,y,3+4);
21
- c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
22
- STORE c INTO "\path\to\output";
23
-
24
- --
25
- </textarea></form>
26
-
27
- <script>
28
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
29
- lineNumbers: true,
30
- matchBrackets: true,
31
- indentUnit: 4,
32
- mode: "text/x-pig"
33
- });
34
- </script>
35
-
36
- <p>
37
- Simple mode that handles Pig Latin language.
38
- </p>
39
-
40
- <p><strong>MIME type defined:</strong> <code>text/x-pig</code>
41
- (PIG code)
42
- </html>
@@ -1,172 +0,0 @@
1
- /*
2
- * Pig Latin Mode for CodeMirror 2
3
- * @author Prasanth Jayachandran
4
- * @link https://github.com/prasanthj/pig-codemirror-2
5
- * This implementation is adapted from PL/SQL mode in CodeMirror 2.
6
- */
7
- CodeMirror.defineMode("pig", function(config, parserConfig) {
8
- var indentUnit = config.indentUnit,
9
- keywords = parserConfig.keywords,
10
- builtins = parserConfig.builtins,
11
- types = parserConfig.types,
12
- multiLineStrings = parserConfig.multiLineStrings;
13
-
14
- var isOperatorChar = /[*+\-%<>=&?:\/!|]/;
15
-
16
- function chain(stream, state, f) {
17
- state.tokenize = f;
18
- return f(stream, state);
19
- }
20
-
21
- var type;
22
- function ret(tp, style) {
23
- type = tp;
24
- return style;
25
- }
26
-
27
- function tokenComment(stream, state) {
28
- var isEnd = false;
29
- var ch;
30
- while(ch = stream.next()) {
31
- if(ch == "/" && isEnd) {
32
- state.tokenize = tokenBase;
33
- break;
34
- }
35
- isEnd = (ch == "*");
36
- }
37
- return ret("comment", "comment");
38
- }
39
-
40
- function tokenString(quote) {
41
- return function(stream, state) {
42
- var escaped = false, next, end = false;
43
- while((next = stream.next()) != null) {
44
- if (next == quote && !escaped) {
45
- end = true; break;
46
- }
47
- escaped = !escaped && next == "\\";
48
- }
49
- if (end || !(escaped || multiLineStrings))
50
- state.tokenize = tokenBase;
51
- return ret("string", "error");
52
- };
53
- }
54
-
55
- function tokenBase(stream, state) {
56
- var ch = stream.next();
57
-
58
- // is a start of string?
59
- if (ch == '"' || ch == "'")
60
- return chain(stream, state, tokenString(ch));
61
- // is it one of the special chars
62
- else if(/[\[\]{}\(\),;\.]/.test(ch))
63
- return ret(ch);
64
- // is it a number?
65
- else if(/\d/.test(ch)) {
66
- stream.eatWhile(/[\w\.]/);
67
- return ret("number", "number");
68
- }
69
- // multi line comment or operator
70
- else if (ch == "/") {
71
- if (stream.eat("*")) {
72
- return chain(stream, state, tokenComment);
73
- }
74
- else {
75
- stream.eatWhile(isOperatorChar);
76
- return ret("operator", "operator");
77
- }
78
- }
79
- // single line comment or operator
80
- else if (ch=="-") {
81
- if(stream.eat("-")){
82
- stream.skipToEnd();
83
- return ret("comment", "comment");
84
- }
85
- else {
86
- stream.eatWhile(isOperatorChar);
87
- return ret("operator", "operator");
88
- }
89
- }
90
- // is it an operator
91
- else if (isOperatorChar.test(ch)) {
92
- stream.eatWhile(isOperatorChar);
93
- return ret("operator", "operator");
94
- }
95
- else {
96
- // get the while word
97
- stream.eatWhile(/[\w\$_]/);
98
- // is it one of the listed keywords?
99
- if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) {
100
- if (stream.eat(")") || stream.eat(".")) {
101
- //keywords can be used as variables like flatten(group), group.$0 etc..
102
- }
103
- else {
104
- return ("keyword", "keyword");
105
- }
106
- }
107
- // is it one of the builtin functions?
108
- if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase()))
109
- {
110
- return ("keyword", "variable-2")
111
- }
112
- // is it one of the listed types?
113
- if (types && types.propertyIsEnumerable(stream.current().toUpperCase()))
114
- return ("keyword", "variable-3")
115
- // default is a 'word'
116
- return ret("word", "pig-word");
117
- }
118
- }
119
-
120
- // Interface
121
- return {
122
- startState: function(basecolumn) {
123
- return {
124
- tokenize: tokenBase,
125
- startOfLine: true
126
- };
127
- },
128
-
129
- token: function(stream, state) {
130
- if(stream.eatSpace()) return null;
131
- var style = state.tokenize(stream, state);
132
- return style;
133
- }
134
- };
135
- });
136
-
137
- (function() {
138
- function keywords(str) {
139
- var obj = {}, words = str.split(" ");
140
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
141
- return obj;
142
- }
143
-
144
- // builtin funcs taken from trunk revision 1303237
145
- var pBuiltins = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL "
146
- + "CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS "
147
- + "DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG "
148
- + "FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN "
149
- + "INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER "
150
- + "ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS "
151
- + "LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA "
152
- + "PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE "
153
- + "SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG "
154
- + "TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ";
155
-
156
- // taken from QueryLexer.g
157
- var pKeywords = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP "
158
- + "JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL "
159
- + "PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE "
160
- + "SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE "
161
- + "NEQ MATCHES TRUE FALSE ";
162
-
163
- // data types
164
- var pTypes = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP "
165
-
166
- CodeMirror.defineMIME("text/x-pig", {
167
- name: "pig",
168
- builtins: keywords(pBuiltins),
169
- keywords: keywords(pKeywords),
170
- types: keywords(pTypes)
171
- });
172
- }());
@@ -1,62 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Oracle PL/SQL mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="plsql.js"></script>
8
- <link rel="stylesheet" href="../../doc/docs.css">
9
- <style>.CodeMirror {border: 2px inset #dee;}</style>
10
- </head>
11
- <body>
12
- <h1>CodeMirror: Oracle PL/SQL mode</h1>
13
-
14
- <form><textarea id="code" name="code">
15
- -- Oracle PL/SQL Code Demo
16
- /*
17
- based on c-like mode, adapted to PL/SQL by Peter Raganitsch ( http://www.oracle-and-apex.com/ )
18
- April 2011
19
- */
20
- DECLARE
21
- vIdx NUMBER;
22
- vString VARCHAR2(100);
23
- cText CONSTANT VARCHAR2(100) := 'That''s it! Have fun with CodeMirror 2';
24
- BEGIN
25
- vIdx := 0;
26
- --
27
- FOR rDATA IN
28
- ( SELECT *
29
- FROM EMP
30
- ORDER BY EMPNO
31
- )
32
- LOOP
33
- vIdx := vIdx + 1;
34
- vString := rDATA.EMPNO || ' - ' || rDATA.ENAME;
35
- --
36
- UPDATE EMP
37
- SET SAL = SAL * 101/100
38
- WHERE EMPNO = rDATA.EMPNO
39
- ;
40
- END LOOP;
41
- --
42
- SYS.DBMS_OUTPUT.Put_Line (cText);
43
- END;
44
- --
45
- </textarea></form>
46
-
47
- <script>
48
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
49
- lineNumbers: true,
50
- matchBrackets: true,
51
- indentUnit: 4,
52
- mode: "text/x-plsql"
53
- });
54
- </script>
55
-
56
- <p>
57
- Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course).
58
- </p>
59
-
60
- <p><strong>MIME type defined:</strong> <code>text/x-plsql</code>
61
- (PLSQL code)
62
- </html>
@@ -1,217 +0,0 @@
1
- CodeMirror.defineMode("plsql", function(config, parserConfig) {
2
- var indentUnit = config.indentUnit,
3
- keywords = parserConfig.keywords,
4
- functions = parserConfig.functions,
5
- types = parserConfig.types,
6
- sqlplus = parserConfig.sqlplus,
7
- multiLineStrings = parserConfig.multiLineStrings;
8
- var isOperatorChar = /[+\-*&%=<>!?:\/|]/;
9
- function chain(stream, state, f) {
10
- state.tokenize = f;
11
- return f(stream, state);
12
- }
13
-
14
- var type;
15
- function ret(tp, style) {
16
- type = tp;
17
- return style;
18
- }
19
-
20
- function tokenBase(stream, state) {
21
- var ch = stream.next();
22
- // start of string?
23
- if (ch == '"' || ch == "'")
24
- return chain(stream, state, tokenString(ch));
25
- // is it one of the special signs []{}().,;? Seperator?
26
- else if (/[\[\]{}\(\),;\.]/.test(ch))
27
- return ret(ch);
28
- // start of a number value?
29
- else if (/\d/.test(ch)) {
30
- stream.eatWhile(/[\w\.]/);
31
- return ret("number", "number");
32
- }
33
- // multi line comment or simple operator?
34
- else if (ch == "/") {
35
- if (stream.eat("*")) {
36
- return chain(stream, state, tokenComment);
37
- }
38
- else {
39
- stream.eatWhile(isOperatorChar);
40
- return ret("operator", "operator");
41
- }
42
- }
43
- // single line comment or simple operator?
44
- else if (ch == "-") {
45
- if (stream.eat("-")) {
46
- stream.skipToEnd();
47
- return ret("comment", "comment");
48
- }
49
- else {
50
- stream.eatWhile(isOperatorChar);
51
- return ret("operator", "operator");
52
- }
53
- }
54
- // pl/sql variable?
55
- else if (ch == "@" || ch == "$") {
56
- stream.eatWhile(/[\w\d\$_]/);
57
- return ret("word", "variable");
58
- }
59
- // is it a operator?
60
- else if (isOperatorChar.test(ch)) {
61
- stream.eatWhile(isOperatorChar);
62
- return ret("operator", "operator");
63
- }
64
- else {
65
- // get the whole word
66
- stream.eatWhile(/[\w\$_]/);
67
- // is it one of the listed keywords?
68
- if (keywords && keywords.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "keyword");
69
- // is it one of the listed functions?
70
- if (functions && functions.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "builtin");
71
- // is it one of the listed types?
72
- if (types && types.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-2");
73
- // is it one of the listed sqlplus keywords?
74
- if (sqlplus && sqlplus.propertyIsEnumerable(stream.current().toLowerCase())) return ret("keyword", "variable-3");
75
- // default: just a "word"
76
- return ret("word", "plsql-word");
77
- }
78
- }
79
-
80
- function tokenString(quote) {
81
- return function(stream, state) {
82
- var escaped = false, next, end = false;
83
- while ((next = stream.next()) != null) {
84
- if (next == quote && !escaped) {end = true; break;}
85
- escaped = !escaped && next == "\\";
86
- }
87
- if (end || !(escaped || multiLineStrings))
88
- state.tokenize = tokenBase;
89
- return ret("string", "plsql-string");
90
- };
91
- }
92
-
93
- function tokenComment(stream, state) {
94
- var maybeEnd = false, ch;
95
- while (ch = stream.next()) {
96
- if (ch == "/" && maybeEnd) {
97
- state.tokenize = tokenBase;
98
- break;
99
- }
100
- maybeEnd = (ch == "*");
101
- }
102
- return ret("comment", "plsql-comment");
103
- }
104
-
105
- // Interface
106
-
107
- return {
108
- startState: function(basecolumn) {
109
- return {
110
- tokenize: tokenBase,
111
- startOfLine: true
112
- };
113
- },
114
-
115
- token: function(stream, state) {
116
- if (stream.eatSpace()) return null;
117
- var style = state.tokenize(stream, state);
118
- return style;
119
- }
120
- };
121
- });
122
-
123
- (function() {
124
- function keywords(str) {
125
- var obj = {}, words = str.split(" ");
126
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
127
- return obj;
128
- }
129
- var cKeywords = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit " +
130
- "authorization avg " +
131
- "base_table begin between binary_integer body boolean by " +
132
- "case cast char char_base check close cluster clusters colauth column comment commit compress connect " +
133
- "connected constant constraint crash create current currval cursor " +
134
- "data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete " +
135
- "desc digits dispose distinct do drop " +
136
- "else elsif enable end entry escape exception exception_init exchange exclusive exists exit external " +
137
- "fast fetch file for force form from function " +
138
- "generic goto grant group " +
139
- "having " +
140
- "identified if immediate in increment index indexes indicator initial initrans insert interface intersect " +
141
- "into is " +
142
- "key " +
143
- "level library like limited local lock log logging long loop " +
144
- "master maxextents maxtrans member minextents minus mislabel mode modify multiset " +
145
- "new next no noaudit nocompress nologging noparallel not nowait number_base " +
146
- "object of off offline on online only open option or order out " +
147
- "package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior " +
148
- "private privileges procedure public " +
149
- "raise range raw read rebuild record ref references refresh release rename replace resource restrict return " +
150
- "returning reverse revoke rollback row rowid rowlabel rownum rows run " +
151
- "savepoint schema segment select separate session set share snapshot some space split sql start statement " +
152
- "storage subtype successful synonym " +
153
- "tabauth table tables tablespace task terminate then to trigger truncate type " +
154
- "union unique unlimited unrecoverable unusable update use using " +
155
- "validate value values variable view views " +
156
- "when whenever where while with work";
157
-
158
- var cFunctions = "abs acos add_months ascii asin atan atan2 average " +
159
- "bfilename " +
160
- "ceil chartorowid chr concat convert cos cosh count " +
161
- "decode deref dual dump dup_val_on_index " +
162
- "empty error exp " +
163
- "false floor found " +
164
- "glb greatest " +
165
- "hextoraw " +
166
- "initcap instr instrb isopen " +
167
- "last_day least lenght lenghtb ln lower lpad ltrim lub " +
168
- "make_ref max min mod months_between " +
169
- "new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower " +
170
- "nls_sort nls_upper nlssort no_data_found notfound null nvl " +
171
- "others " +
172
- "power " +
173
- "rawtohex reftohex round rowcount rowidtochar rpad rtrim " +
174
- "sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate " +
175
- "tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc " +
176
- "uid upper user userenv " +
177
- "variance vsize";
178
-
179
- var cTypes = "bfile blob " +
180
- "character clob " +
181
- "dec " +
182
- "float " +
183
- "int integer " +
184
- "mlslabel " +
185
- "natural naturaln nchar nclob number numeric nvarchar2 " +
186
- "real rowtype " +
187
- "signtype smallint string " +
188
- "varchar varchar2";
189
-
190
- var cSqlplus = "appinfo arraysize autocommit autoprint autorecovery autotrace " +
191
- "blockterminator break btitle " +
192
- "cmdsep colsep compatibility compute concat copycommit copytypecheck " +
193
- "define describe " +
194
- "echo editfile embedded escape exec execute " +
195
- "feedback flagger flush " +
196
- "heading headsep " +
197
- "instance " +
198
- "linesize lno loboffset logsource long longchunksize " +
199
- "markup " +
200
- "native newpage numformat numwidth " +
201
- "pagesize pause pno " +
202
- "recsep recsepchar release repfooter repheader " +
203
- "serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber " +
204
- "sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix " +
205
- "tab term termout time timing trimout trimspool ttitle " +
206
- "underline " +
207
- "verify version " +
208
- "wrap";
209
-
210
- CodeMirror.defineMIME("text/x-plsql", {
211
- name: "plsql",
212
- keywords: keywords(cKeywords),
213
- functions: keywords(cFunctions),
214
- types: keywords(cTypes),
215
- sqlplus: keywords(cSqlplus)
216
- });
217
- }());