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,195 +0,0 @@
1
- CodeMirror.defineMode("ruby", function(config, parserConfig) {
2
- function wordObj(words) {
3
- var o = {};
4
- for (var i = 0, e = words.length; i < e; ++i) o[words[i]] = true;
5
- return o;
6
- }
7
- var keywords = wordObj([
8
- "alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else",
9
- "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or",
10
- "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless",
11
- "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc",
12
- "caller", "lambda", "proc", "public", "protected", "private", "require", "load",
13
- "require_relative", "extend", "autoload"
14
- ]);
15
- var indentWords = wordObj(["def", "class", "case", "for", "while", "do", "module", "then",
16
- "catch", "loop", "proc", "begin"]);
17
- var dedentWords = wordObj(["end", "until"]);
18
- var matching = {"[": "]", "{": "}", "(": ")"};
19
- var curPunc;
20
-
21
- function chain(newtok, stream, state) {
22
- state.tokenize.push(newtok);
23
- return newtok(stream, state);
24
- }
25
-
26
- function tokenBase(stream, state) {
27
- curPunc = null;
28
- if (stream.sol() && stream.match("=begin") && stream.eol()) {
29
- state.tokenize.push(readBlockComment);
30
- return "comment";
31
- }
32
- if (stream.eatSpace()) return null;
33
- var ch = stream.next(), m;
34
- if (ch == "`" || ch == "'" || ch == '"' ||
35
- (ch == "/" && !stream.eol() && stream.peek() != " ")) {
36
- return chain(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state);
37
- } else if (ch == "%") {
38
- var style, embed = false;
39
- if (stream.eat("s")) style = "atom";
40
- else if (stream.eat(/[WQ]/)) { style = "string"; embed = true; }
41
- else if (stream.eat(/[wxqr]/)) style = "string";
42
- var delim = stream.eat(/[^\w\s]/);
43
- if (!delim) return "operator";
44
- if (matching.propertyIsEnumerable(delim)) delim = matching[delim];
45
- return chain(readQuoted(delim, style, embed, true), stream, state);
46
- } else if (ch == "#") {
47
- stream.skipToEnd();
48
- return "comment";
49
- } else if (ch == "<" && (m = stream.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) {
50
- return chain(readHereDoc(m[1]), stream, state);
51
- } else if (ch == "0") {
52
- if (stream.eat("x")) stream.eatWhile(/[\da-fA-F]/);
53
- else if (stream.eat("b")) stream.eatWhile(/[01]/);
54
- else stream.eatWhile(/[0-7]/);
55
- return "number";
56
- } else if (/\d/.test(ch)) {
57
- stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/);
58
- return "number";
59
- } else if (ch == "?") {
60
- while (stream.match(/^\\[CM]-/)) {}
61
- if (stream.eat("\\")) stream.eatWhile(/\w/);
62
- else stream.next();
63
- return "string";
64
- } else if (ch == ":") {
65
- if (stream.eat("'")) return chain(readQuoted("'", "atom", false), stream, state);
66
- if (stream.eat('"')) return chain(readQuoted('"', "atom", true), stream, state);
67
- stream.eatWhile(/[\w\?]/);
68
- return "atom";
69
- } else if (ch == "@") {
70
- stream.eat("@");
71
- stream.eatWhile(/[\w\?]/);
72
- return "variable-2";
73
- } else if (ch == "$") {
74
- stream.next();
75
- stream.eatWhile(/[\w\?]/);
76
- return "variable-3";
77
- } else if (/\w/.test(ch)) {
78
- stream.eatWhile(/[\w\?]/);
79
- if (stream.eat(":")) return "atom";
80
- return "ident";
81
- } else if (ch == "|" && (state.varList || state.lastTok == "{" || state.lastTok == "do")) {
82
- curPunc = "|";
83
- return null;
84
- } else if (/[\(\)\[\]{}\\;]/.test(ch)) {
85
- curPunc = ch;
86
- return null;
87
- } else if (ch == "-" && stream.eat(">")) {
88
- return "arrow";
89
- } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) {
90
- stream.eatWhile(/[=+\-\/*:\.^%<>~|]/);
91
- return "operator";
92
- } else {
93
- return null;
94
- }
95
- }
96
-
97
- function tokenBaseUntilBrace() {
98
- var depth = 1;
99
- return function(stream, state) {
100
- if (stream.peek() == "}") {
101
- depth--;
102
- if (depth == 0) {
103
- state.tokenize.pop();
104
- return state.tokenize[state.tokenize.length-1](stream, state);
105
- }
106
- } else if (stream.peek() == "{") {
107
- depth++;
108
- }
109
- return tokenBase(stream, state);
110
- };
111
- }
112
- function readQuoted(quote, style, embed, unescaped) {
113
- return function(stream, state) {
114
- var escaped = false, ch;
115
- while ((ch = stream.next()) != null) {
116
- if (ch == quote && (unescaped || !escaped)) {
117
- state.tokenize.pop();
118
- break;
119
- }
120
- if (embed && ch == "#" && !escaped && stream.eat("{")) {
121
- state.tokenize.push(tokenBaseUntilBrace(arguments.callee));
122
- break;
123
- }
124
- escaped = !escaped && ch == "\\";
125
- }
126
- return style;
127
- };
128
- }
129
- function readHereDoc(phrase) {
130
- return function(stream, state) {
131
- if (stream.match(phrase)) state.tokenize.pop();
132
- else stream.skipToEnd();
133
- return "string";
134
- };
135
- }
136
- function readBlockComment(stream, state) {
137
- if (stream.sol() && stream.match("=end") && stream.eol())
138
- state.tokenize.pop();
139
- stream.skipToEnd();
140
- return "comment";
141
- }
142
-
143
- return {
144
- startState: function() {
145
- return {tokenize: [tokenBase],
146
- indented: 0,
147
- context: {type: "top", indented: -config.indentUnit},
148
- continuedLine: false,
149
- lastTok: null,
150
- varList: false};
151
- },
152
-
153
- token: function(stream, state) {
154
- if (stream.sol()) state.indented = stream.indentation();
155
- var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype;
156
- if (style == "ident") {
157
- var word = stream.current();
158
- style = keywords.propertyIsEnumerable(stream.current()) ? "keyword"
159
- : /^[A-Z]/.test(word) ? "tag"
160
- : (state.lastTok == "def" || state.lastTok == "class" || state.varList) ? "def"
161
- : "variable";
162
- if (indentWords.propertyIsEnumerable(word)) kwtype = "indent";
163
- else if (dedentWords.propertyIsEnumerable(word)) kwtype = "dedent";
164
- else if ((word == "if" || word == "unless") && stream.column() == stream.indentation())
165
- kwtype = "indent";
166
- }
167
- if (curPunc || (style && style != "comment")) state.lastTok = word || curPunc || style;
168
- if (curPunc == "|") state.varList = !state.varList;
169
-
170
- if (kwtype == "indent" || /[\(\[\{]/.test(curPunc))
171
- state.context = {prev: state.context, type: curPunc || style, indented: state.indented};
172
- else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc)) && state.context.prev)
173
- state.context = state.context.prev;
174
-
175
- if (stream.eol())
176
- state.continuedLine = (curPunc == "\\" || style == "operator");
177
- return style;
178
- },
179
-
180
- indent: function(state, textAfter) {
181
- if (state.tokenize[state.tokenize.length-1] != tokenBase) return 0;
182
- var firstChar = textAfter && textAfter.charAt(0);
183
- var ct = state.context;
184
- var closing = ct.type == matching[firstChar] ||
185
- ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter);
186
- return ct.indented + (closing ? 0 : config.indentUnit) +
187
- (state.continuedLine ? config.indentUnit : 0);
188
- },
189
- electricChars: "}de" // enD and rescuE
190
-
191
- };
192
- });
193
-
194
- CodeMirror.defineMIME("text/x-ruby", "ruby");
195
-
@@ -1,48 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Rust mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="rust.js"></script>
8
- <link rel="stylesheet" href="../../doc/docs.css">
9
- <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
10
- </head>
11
- <body>
12
- <h1>CodeMirror: Rust mode</h1>
13
-
14
- <div><textarea id="code" name="code">
15
- // Demo code.
16
-
17
- type foo<T> = int;
18
- enum bar {
19
- some(int, foo<float>),
20
- none
21
- }
22
-
23
- fn check_crate(x: int) {
24
- let v = 10;
25
- alt foo {
26
- 1 to 3 {
27
- print_foo();
28
- if x {
29
- blah() + 10;
30
- }
31
- }
32
- (x, y) { "bye" }
33
- _ { "hi" }
34
- }
35
- }
36
- </textarea></div>
37
-
38
- <script>
39
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
40
- lineNumbers: true,
41
- matchBrackets: true,
42
- tabMode: "indent"
43
- });
44
- </script>
45
-
46
- <p><strong>MIME types defined:</strong> <code>text/x-rustsrc</code>.</p>
47
- </body>
48
- </html>
@@ -1,432 +0,0 @@
1
- CodeMirror.defineMode("rust", function() {
2
- var indentUnit = 4, altIndentUnit = 2;
3
- var valKeywords = {
4
- "if": "if-style", "while": "if-style", "else": "else-style",
5
- "do": "else-style", "ret": "else-style", "fail": "else-style",
6
- "break": "atom", "cont": "atom", "const": "let", "resource": "fn",
7
- "let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface",
8
- "impl": "impl", "type": "type", "enum": "enum", "mod": "mod",
9
- "as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
10
- "claim": "op", "native": "ignore", "unsafe": "ignore", "import": "else-style",
11
- "export": "else-style", "copy": "op", "log": "op", "log_err": "op",
12
- "use": "op", "bind": "op", "self": "atom"
13
- };
14
- var typeKeywords = function() {
15
- var keywords = {"fn": "fn", "block": "fn", "obj": "obj"};
16
- var atoms = "bool uint int i8 i16 i32 i64 u8 u16 u32 u64 float f32 f64 str char".split(" ");
17
- for (var i = 0, e = atoms.length; i < e; ++i) keywords[atoms[i]] = "atom";
18
- return keywords;
19
- }();
20
- var operatorChar = /[+\-*&%=<>!?|\.@]/;
21
-
22
- // Tokenizer
23
-
24
- // Used as scratch variable to communicate multiple values without
25
- // consing up tons of objects.
26
- var tcat, content;
27
- function r(tc, style) {
28
- tcat = tc;
29
- return style;
30
- }
31
-
32
- function tokenBase(stream, state) {
33
- var ch = stream.next();
34
- if (ch == '"') {
35
- state.tokenize = tokenString;
36
- return state.tokenize(stream, state);
37
- }
38
- if (ch == "'") {
39
- tcat = "atom";
40
- if (stream.eat("\\")) {
41
- if (stream.skipTo("'")) { stream.next(); return "string"; }
42
- else { return "error"; }
43
- } else {
44
- stream.next();
45
- return stream.eat("'") ? "string" : "error";
46
- }
47
- }
48
- if (ch == "/") {
49
- if (stream.eat("/")) { stream.skipToEnd(); return "comment"; }
50
- if (stream.eat("*")) {
51
- state.tokenize = tokenComment(1);
52
- return state.tokenize(stream, state);
53
- }
54
- }
55
- if (ch == "#") {
56
- if (stream.eat("[")) { tcat = "open-attr"; return null; }
57
- stream.eatWhile(/\w/);
58
- return r("macro", "meta");
59
- }
60
- if (ch == ":" && stream.match(":<")) {
61
- return r("op", null);
62
- }
63
- if (ch.match(/\d/) || (ch == "." && stream.eat(/\d/))) {
64
- var flp = false;
65
- if (!stream.match(/^x[\da-f]+/i) && !stream.match(/^b[01]+/)) {
66
- stream.eatWhile(/\d/);
67
- if (stream.eat(".")) { flp = true; stream.eatWhile(/\d/); }
68
- if (stream.match(/^e[+\-]?\d+/i)) { flp = true; }
69
- }
70
- if (flp) stream.match(/^f(?:32|64)/);
71
- else stream.match(/^[ui](?:8|16|32|64)/);
72
- return r("atom", "number");
73
- }
74
- if (ch.match(/[()\[\]{}:;,]/)) return r(ch, null);
75
- if (ch == "-" && stream.eat(">")) return r("->", null);
76
- if (ch.match(operatorChar)) {
77
- stream.eatWhile(operatorChar);
78
- return r("op", null);
79
- }
80
- stream.eatWhile(/\w/);
81
- content = stream.current();
82
- if (stream.match(/^::\w/)) {
83
- stream.backUp(1);
84
- return r("prefix", "variable-2");
85
- }
86
- if (state.keywords.propertyIsEnumerable(content))
87
- return r(state.keywords[content], content.match(/true|false/) ? "atom" : "keyword");
88
- return r("name", "variable");
89
- }
90
-
91
- function tokenString(stream, state) {
92
- var ch, escaped = false;
93
- while (ch = stream.next()) {
94
- if (ch == '"' && !escaped) {
95
- state.tokenize = tokenBase;
96
- return r("atom", "string");
97
- }
98
- escaped = !escaped && ch == "\\";
99
- }
100
- // Hack to not confuse the parser when a string is split in
101
- // pieces.
102
- return r("op", "string");
103
- }
104
-
105
- function tokenComment(depth) {
106
- return function(stream, state) {
107
- var lastCh = null, ch;
108
- while (ch = stream.next()) {
109
- if (ch == "/" && lastCh == "*") {
110
- if (depth == 1) {
111
- state.tokenize = tokenBase;
112
- break;
113
- } else {
114
- state.tokenize = tokenComment(depth - 1);
115
- return state.tokenize(stream, state);
116
- }
117
- }
118
- if (ch == "*" && lastCh == "/") {
119
- state.tokenize = tokenComment(depth + 1);
120
- return state.tokenize(stream, state);
121
- }
122
- lastCh = ch;
123
- }
124
- return "comment";
125
- };
126
- }
127
-
128
- // Parser
129
-
130
- var cx = {state: null, stream: null, marked: null, cc: null};
131
- function pass() {
132
- for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
133
- }
134
- function cont() {
135
- pass.apply(null, arguments);
136
- return true;
137
- }
138
-
139
- function pushlex(type, info) {
140
- var result = function() {
141
- var state = cx.state;
142
- state.lexical = {indented: state.indented, column: cx.stream.column(),
143
- type: type, prev: state.lexical, info: info};
144
- };
145
- result.lex = true;
146
- return result;
147
- }
148
- function poplex() {
149
- var state = cx.state;
150
- if (state.lexical.prev) {
151
- if (state.lexical.type == ")")
152
- state.indented = state.lexical.indented;
153
- state.lexical = state.lexical.prev;
154
- }
155
- }
156
- function typecx() { cx.state.keywords = typeKeywords; }
157
- function valcx() { cx.state.keywords = valKeywords; }
158
- poplex.lex = typecx.lex = valcx.lex = true;
159
-
160
- function commasep(comb, end) {
161
- function more(type) {
162
- if (type == ",") return cont(comb, more);
163
- if (type == end) return cont();
164
- return cont(more);
165
- }
166
- return function(type) {
167
- if (type == end) return cont();
168
- return pass(comb, more);
169
- };
170
- }
171
-
172
- function stat_of(comb, tag) {
173
- return cont(pushlex("stat", tag), comb, poplex, block);
174
- }
175
- function block(type) {
176
- if (type == "}") return cont();
177
- if (type == "let") return stat_of(letdef1, "let");
178
- if (type == "fn") return stat_of(fndef);
179
- if (type == "type") return cont(pushlex("stat"), tydef, endstatement, poplex, block);
180
- if (type == "enum") return stat_of(enumdef);
181
- if (type == "mod") return stat_of(mod);
182
- if (type == "iface") return stat_of(iface);
183
- if (type == "impl") return stat_of(impl);
184
- if (type == "open-attr") return cont(pushlex("]"), commasep(expression, "]"), poplex);
185
- if (type == "ignore" || type.match(/[\]\);,]/)) return cont(block);
186
- return pass(pushlex("stat"), expression, poplex, endstatement, block);
187
- }
188
- function endstatement(type) {
189
- if (type == ";") return cont();
190
- return pass();
191
- }
192
- function expression(type) {
193
- if (type == "atom" || type == "name") return cont(maybeop);
194
- if (type == "{") return cont(pushlex("}"), exprbrace, poplex);
195
- if (type.match(/[\[\(]/)) return matchBrackets(type, expression);
196
- if (type.match(/[\]\)\};,]/)) return pass();
197
- if (type == "if-style") return cont(expression, expression);
198
- if (type == "else-style" || type == "op") return cont(expression);
199
- if (type == "for") return cont(pattern, maybetype, inop, expression, expression);
200
- if (type == "alt") return cont(expression, altbody);
201
- if (type == "fn") return cont(fndef);
202
- if (type == "macro") return cont(macro);
203
- return cont();
204
- }
205
- function maybeop(type) {
206
- if (content == ".") return cont(maybeprop);
207
- if (content == "::<"){return cont(typarams, maybeop);}
208
- if (type == "op" || content == ":") return cont(expression);
209
- if (type == "(" || type == "[") return matchBrackets(type, expression);
210
- return pass();
211
- }
212
- function maybeprop(type) {
213
- if (content.match(/^\w+$/)) {cx.marked = "variable"; return cont(maybeop);}
214
- return pass(expression);
215
- }
216
- function exprbrace(type) {
217
- if (type == "op") {
218
- if (content == "|") return cont(blockvars, poplex, pushlex("}", "block"), block);
219
- if (content == "||") return cont(poplex, pushlex("}", "block"), block);
220
- }
221
- if (content == "mutable" || (content.match(/^\w+$/) && cx.stream.peek() == ":"
222
- && !cx.stream.match("::", false)))
223
- return pass(record_of(expression));
224
- return pass(block);
225
- }
226
- function record_of(comb) {
227
- function ro(type) {
228
- if (content == "mutable" || content == "with") {cx.marked = "keyword"; return cont(ro);}
229
- if (content.match(/^\w*$/)) {cx.marked = "variable"; return cont(ro);}
230
- if (type == ":") return cont(comb, ro);
231
- if (type == "}") return cont();
232
- return cont(ro);
233
- }
234
- return ro;
235
- }
236
- function blockvars(type) {
237
- if (type == "name") {cx.marked = "def"; return cont(blockvars);}
238
- if (type == "op" && content == "|") return cont();
239
- return cont(blockvars);
240
- }
241
-
242
- function letdef1(type) {
243
- if (type.match(/[\]\)\};]/)) return cont();
244
- if (content == "=") return cont(expression, letdef2);
245
- if (type == ",") return cont(letdef1);
246
- return pass(pattern, maybetype, letdef1);
247
- }
248
- function letdef2(type) {
249
- if (type.match(/[\]\)\};,]/)) return pass(letdef1);
250
- else return pass(expression, letdef2);
251
- }
252
- function maybetype(type) {
253
- if (type == ":") return cont(typecx, rtype, valcx);
254
- return pass();
255
- }
256
- function inop(type) {
257
- if (type == "name" && content == "in") {cx.marked = "keyword"; return cont();}
258
- return pass();
259
- }
260
- function fndef(type) {
261
- if (content == "@" || content == "~") {cx.marked = "keyword"; return cont(fndef);}
262
- if (type == "name") {cx.marked = "def"; return cont(fndef);}
263
- if (content == "<") return cont(typarams, fndef);
264
- if (type == "{") return pass(expression);
265
- if (type == "(") return cont(pushlex(")"), commasep(argdef, ")"), poplex, fndef);
266
- if (type == "->") return cont(typecx, rtype, valcx, fndef);
267
- if (type == ";") return cont();
268
- return cont(fndef);
269
- }
270
- function tydef(type) {
271
- if (type == "name") {cx.marked = "def"; return cont(tydef);}
272
- if (content == "<") return cont(typarams, tydef);
273
- if (content == "=") return cont(typecx, rtype, valcx);
274
- return cont(tydef);
275
- }
276
- function enumdef(type) {
277
- if (type == "name") {cx.marked = "def"; return cont(enumdef);}
278
- if (content == "<") return cont(typarams, enumdef);
279
- if (content == "=") return cont(typecx, rtype, valcx, endstatement);
280
- if (type == "{") return cont(pushlex("}"), typecx, enumblock, valcx, poplex);
281
- return cont(enumdef);
282
- }
283
- function enumblock(type) {
284
- if (type == "}") return cont();
285
- if (type == "(") return cont(pushlex(")"), commasep(rtype, ")"), poplex, enumblock);
286
- if (content.match(/^\w+$/)) cx.marked = "def";
287
- return cont(enumblock);
288
- }
289
- function mod(type) {
290
- if (type == "name") {cx.marked = "def"; return cont(mod);}
291
- if (type == "{") return cont(pushlex("}"), block, poplex);
292
- return pass();
293
- }
294
- function iface(type) {
295
- if (type == "name") {cx.marked = "def"; return cont(iface);}
296
- if (content == "<") return cont(typarams, iface);
297
- if (type == "{") return cont(pushlex("}"), block, poplex);
298
- return pass();
299
- }
300
- function impl(type) {
301
- if (content == "<") return cont(typarams, impl);
302
- if (content == "of" || content == "for") {cx.marked = "keyword"; return cont(rtype, impl);}
303
- if (type == "name") {cx.marked = "def"; return cont(impl);}
304
- if (type == "{") return cont(pushlex("}"), block, poplex);
305
- return pass();
306
- }
307
- function typarams(type) {
308
- if (content == ">") return cont();
309
- if (content == ",") return cont(typarams);
310
- if (content == ":") return cont(rtype, typarams);
311
- return pass(rtype, typarams);
312
- }
313
- function argdef(type) {
314
- if (type == "name") {cx.marked = "def"; return cont(argdef);}
315
- if (type == ":") return cont(typecx, rtype, valcx);
316
- return pass();
317
- }
318
- function rtype(type) {
319
- if (type == "name") {cx.marked = "variable-3"; return cont(rtypemaybeparam); }
320
- if (content == "mutable") {cx.marked = "keyword"; return cont(rtype);}
321
- if (type == "atom") return cont(rtypemaybeparam);
322
- if (type == "op" || type == "obj") return cont(rtype);
323
- if (type == "fn") return cont(fntype);
324
- if (type == "{") return cont(pushlex("{"), record_of(rtype), poplex);
325
- return matchBrackets(type, rtype);
326
- }
327
- function rtypemaybeparam(type) {
328
- if (content == "<") return cont(typarams);
329
- return pass();
330
- }
331
- function fntype(type) {
332
- if (type == "(") return cont(pushlex("("), commasep(rtype, ")"), poplex, fntype);
333
- if (type == "->") return cont(rtype);
334
- return pass();
335
- }
336
- function pattern(type) {
337
- if (type == "name") {cx.marked = "def"; return cont(patternmaybeop);}
338
- if (type == "atom") return cont(patternmaybeop);
339
- if (type == "op") return cont(pattern);
340
- if (type.match(/[\]\)\};,]/)) return pass();
341
- return matchBrackets(type, pattern);
342
- }
343
- function patternmaybeop(type) {
344
- if (type == "op" && content == ".") return cont();
345
- if (content == "to") {cx.marked = "keyword"; return cont(pattern);}
346
- else return pass();
347
- }
348
- function altbody(type) {
349
- if (type == "{") return cont(pushlex("}", "alt"), altblock1, poplex);
350
- return pass();
351
- }
352
- function altblock1(type) {
353
- if (type == "}") return cont();
354
- if (type == "|") return cont(altblock1);
355
- if (content == "when") {cx.marked = "keyword"; return cont(expression, altblock2);}
356
- if (type.match(/[\]\);,]/)) return cont(altblock1);
357
- return pass(pattern, altblock2);
358
- }
359
- function altblock2(type) {
360
- if (type == "{") return cont(pushlex("}", "alt"), block, poplex, altblock1);
361
- else return pass(altblock1);
362
- }
363
-
364
- function macro(type) {
365
- if (type.match(/[\[\(\{]/)) return matchBrackets(type, expression);
366
- return pass();
367
- }
368
- function matchBrackets(type, comb) {
369
- if (type == "[") return cont(pushlex("]"), commasep(comb, "]"), poplex);
370
- if (type == "(") return cont(pushlex(")"), commasep(comb, ")"), poplex);
371
- if (type == "{") return cont(pushlex("}"), commasep(comb, "}"), poplex);
372
- return cont();
373
- }
374
-
375
- function parse(state, stream, style) {
376
- var cc = state.cc;
377
- // Communicate our context to the combinators.
378
- // (Less wasteful than consing up a hundred closures on every call.)
379
- cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc;
380
-
381
- while (true) {
382
- var combinator = cc.length ? cc.pop() : block;
383
- if (combinator(tcat)) {
384
- while(cc.length && cc[cc.length - 1].lex)
385
- cc.pop()();
386
- return cx.marked || style;
387
- }
388
- }
389
- }
390
-
391
- return {
392
- startState: function() {
393
- return {
394
- tokenize: tokenBase,
395
- cc: [],
396
- lexical: {indented: -indentUnit, column: 0, type: "top", align: false},
397
- keywords: valKeywords,
398
- indented: 0
399
- };
400
- },
401
-
402
- token: function(stream, state) {
403
- if (stream.sol()) {
404
- if (!state.lexical.hasOwnProperty("align"))
405
- state.lexical.align = false;
406
- state.indented = stream.indentation();
407
- }
408
- if (stream.eatSpace()) return null;
409
- tcat = content = null;
410
- var style = state.tokenize(stream, state);
411
- if (style == "comment") return style;
412
- if (!state.lexical.hasOwnProperty("align"))
413
- state.lexical.align = true;
414
- if (tcat == "prefix") return style;
415
- if (!content) content = stream.current();
416
- return parse(state, stream, style);
417
- },
418
-
419
- indent: function(state, textAfter) {
420
- if (state.tokenize != tokenBase) return 0;
421
- var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical,
422
- type = lexical.type, closing = firstChar == type;
423
- if (type == "stat") return lexical.indented + indentUnit;
424
- if (lexical.align) return lexical.column + (closing ? 0 : 1);
425
- return lexical.indented + (closing ? 0 : (lexical.info == "alt" ? altIndentUnit : indentUnit));
426
- },
427
-
428
- electricChars: "{}"
429
- };
430
- });
431
-
432
- CodeMirror.defineMIME("text/x-rustsrc", "rust");