burp_cms 1.3.13 → 1.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,448 +0,0 @@
1
- /*
2
- Copyright (C) 2011 by MarkLogic Corporation
3
- Author: Mike Brevoort <mike@brevoort.com>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
22
- */
23
- CodeMirror.defineMode("xquery", function(config, parserConfig) {
24
-
25
- // The keywords object is set to the result of this self executing
26
- // function. Each keyword is a property of the keywords object whose
27
- // value is {type: atype, style: astyle}
28
- var keywords = function(){
29
- // conveinence functions used to build keywords object
30
- function kw(type) {return {type: type, style: "keyword"};}
31
- var A = kw("keyword a")
32
- , B = kw("keyword b")
33
- , C = kw("keyword c")
34
- , operator = kw("operator")
35
- , atom = {type: "atom", style: "atom"}
36
- , punctuation = {type: "punctuation", style: ""}
37
- , qualifier = {type: "axis_specifier", style: "qualifier"};
38
-
39
- // kwObj is what is return from this function at the end
40
- var kwObj = {
41
- 'if': A, 'switch': A, 'while': A, 'for': A,
42
- 'else': B, 'then': B, 'try': B, 'finally': B, 'catch': B,
43
- 'element': C, 'attribute': C, 'let': C, 'implements': C, 'import': C, 'module': C, 'namespace': C,
44
- 'return': C, 'super': C, 'this': C, 'throws': C, 'where': C, 'private': C,
45
- ',': punctuation,
46
- 'null': atom, 'fn:false()': atom, 'fn:true()': atom
47
- };
48
-
49
- // a list of 'basic' keywords. For each add a property to kwObj with the value of
50
- // {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"}
51
- var basic = ['after','ancestor','ancestor-or-self','and','as','ascending','assert','attribute','before',
52
- 'by','case','cast','child','comment','declare','default','define','descendant','descendant-or-self',
53
- 'descending','document','document-node','element','else','eq','every','except','external','following',
54
- 'following-sibling','follows','for','function','if','import','in','instance','intersect','item',
55
- 'let','module','namespace','node','node','of','only','or','order','parent','precedes','preceding',
56
- 'preceding-sibling','processing-instruction','ref','return','returns','satisfies','schema','schema-element',
57
- 'self','some','sortby','stable','text','then','to','treat','typeswitch','union','variable','version','where',
58
- 'xquery', 'empty-sequence'];
59
- for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i])};
60
-
61
- // a list of types. For each add a property to kwObj with the value of
62
- // {type: "atom", style: "atom"}
63
- var types = ['xs:string', 'xs:float', 'xs:decimal', 'xs:double', 'xs:integer', 'xs:boolean', 'xs:date', 'xs:dateTime',
64
- 'xs:time', 'xs:duration', 'xs:dayTimeDuration', 'xs:time', 'xs:yearMonthDuration', 'numeric', 'xs:hexBinary',
65
- 'xs:base64Binary', 'xs:anyURI', 'xs:QName', 'xs:byte','xs:boolean','xs:anyURI','xf:yearMonthDuration'];
66
- for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;};
67
-
68
- // each operator will add a property to kwObj with value of {type: "operator", style: "keyword"}
69
- var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-'];
70
- for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;};
71
-
72
- // each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"}
73
- var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::",
74
- "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"];
75
- for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; };
76
-
77
- return kwObj;
78
- }();
79
-
80
- // Used as scratch variables to communicate multiple values without
81
- // consing up tons of objects.
82
- var type, content;
83
-
84
- function ret(tp, style, cont) {
85
- type = tp; content = cont;
86
- return style;
87
- }
88
-
89
- function chain(stream, state, f) {
90
- state.tokenize = f;
91
- return f(stream, state);
92
- }
93
-
94
- // the primary mode tokenizer
95
- function tokenBase(stream, state) {
96
- var ch = stream.next(),
97
- mightBeFunction = false,
98
- isEQName = isEQNameAhead(stream);
99
-
100
- // an XML tag (if not in some sub, chained tokenizer)
101
- if (ch == "<") {
102
- if(stream.match("!--", true))
103
- return chain(stream, state, tokenXMLComment);
104
-
105
- if(stream.match("![CDATA", false)) {
106
- state.tokenize = tokenCDATA;
107
- return ret("tag", "tag");
108
- }
109
-
110
- if(stream.match("?", false)) {
111
- return chain(stream, state, tokenPreProcessing);
112
- }
113
-
114
- var isclose = stream.eat("/");
115
- stream.eatSpace();
116
- var tagName = "", c;
117
- while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;
118
-
119
- return chain(stream, state, tokenTag(tagName, isclose));
120
- }
121
- // start code block
122
- else if(ch == "{") {
123
- pushStateStack(state,{ type: "codeblock"});
124
- return ret("", "");
125
- }
126
- // end code block
127
- else if(ch == "}") {
128
- popStateStack(state);
129
- return ret("", "");
130
- }
131
- // if we're in an XML block
132
- else if(isInXmlBlock(state)) {
133
- if(ch == ">")
134
- return ret("tag", "tag");
135
- else if(ch == "/" && stream.eat(">")) {
136
- popStateStack(state);
137
- return ret("tag", "tag");
138
- }
139
- else
140
- return ret("word", "word");
141
- }
142
- // if a number
143
- else if (/\d/.test(ch)) {
144
- stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);
145
- return ret("number", "atom");
146
- }
147
- // comment start
148
- else if (ch === "(" && stream.eat(":")) {
149
- pushStateStack(state, { type: "comment"});
150
- return chain(stream, state, tokenComment);
151
- }
152
- // quoted string
153
- else if ( !isEQName && (ch === '"' || ch === "'"))
154
- return chain(stream, state, tokenString(ch));
155
- // variable
156
- else if(ch === "$") {
157
- return chain(stream, state, tokenVariable);
158
- }
159
- // assignment
160
- else if(ch ===":" && stream.eat("=")) {
161
- return ret("operator", "keyword");
162
- }
163
- // open paren
164
- else if(ch === "(") {
165
- pushStateStack(state, { type: "paren"});
166
- return ret("", "");
167
- }
168
- // close paren
169
- else if(ch === ")") {
170
- popStateStack(state);
171
- return ret("", "");
172
- }
173
- // open paren
174
- else if(ch === "[") {
175
- pushStateStack(state, { type: "bracket"});
176
- return ret("", "");
177
- }
178
- // close paren
179
- else if(ch === "]") {
180
- popStateStack(state);
181
- return ret("", "");
182
- }
183
- else {
184
- var known = keywords.propertyIsEnumerable(ch) && keywords[ch];
185
-
186
- // if there's a EQName ahead, consume the rest of the string portion, it's likely a function
187
- if(isEQName && ch === '\"') while(stream.next() !== '"'){}
188
- if(isEQName && ch === '\'') while(stream.next() !== '\''){}
189
-
190
- // gobble up a word if the character is not known
191
- if(!known) stream.eatWhile(/[\w\$_-]/);
192
-
193
- // gobble a colon in the case that is a lib func type call fn:doc
194
- var foundColon = stream.eat(":")
195
-
196
- // if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier
197
- // which should get matched as a keyword
198
- if(!stream.eat(":") && foundColon) {
199
- stream.eatWhile(/[\w\$_-]/);
200
- }
201
- // if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort)
202
- if(stream.match(/^[ \t]*\(/, false)) {
203
- mightBeFunction = true;
204
- }
205
- // is the word a keyword?
206
- var word = stream.current();
207
- known = keywords.propertyIsEnumerable(word) && keywords[word];
208
-
209
- // if we think it's a function call but not yet known,
210
- // set style to variable for now for lack of something better
211
- if(mightBeFunction && !known) known = {type: "function_call", style: "variable def"};
212
-
213
- // if the previous word was element, attribute, axis specifier, this word should be the name of that
214
- if(isInXmlConstructor(state)) {
215
- popStateStack(state);
216
- return ret("word", "word", word);
217
- }
218
- // as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and
219
- // push the stack so we know to look for it on the next word
220
- if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"});
221
-
222
- // if the word is known, return the details of that else just call this a generic 'word'
223
- return known ? ret(known.type, known.style, word) :
224
- ret("word", "word", word);
225
- }
226
- }
227
-
228
- // handle comments, including nested
229
- function tokenComment(stream, state) {
230
- var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
231
- while (ch = stream.next()) {
232
- if (ch == ")" && maybeEnd) {
233
- if(nestedCount > 0)
234
- nestedCount--;
235
- else {
236
- popStateStack(state);
237
- break;
238
- }
239
- }
240
- else if(ch == ":" && maybeNested) {
241
- nestedCount++;
242
- }
243
- maybeEnd = (ch == ":");
244
- maybeNested = (ch == "(");
245
- }
246
-
247
- return ret("comment", "comment");
248
- }
249
-
250
- // tokenizer for string literals
251
- // optionally pass a tokenizer function to set state.tokenize back to when finished
252
- function tokenString(quote, f) {
253
- return function(stream, state) {
254
- var ch;
255
-
256
- if(isInString(state) && stream.current() == quote) {
257
- popStateStack(state);
258
- if(f) state.tokenize = f;
259
- return ret("string", "string");
260
- }
261
-
262
- pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) });
263
-
264
- // if we're in a string and in an XML block, allow an embedded code block
265
- if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
266
- state.tokenize = tokenBase;
267
- return ret("string", "string");
268
- }
269
-
270
-
271
- while (ch = stream.next()) {
272
- if (ch == quote) {
273
- popStateStack(state);
274
- if(f) state.tokenize = f;
275
- break;
276
- }
277
- else {
278
- // if we're in a string and in an XML block, allow an embedded code block in an attribute
279
- if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
280
- state.tokenize = tokenBase;
281
- return ret("string", "string");
282
- }
283
-
284
- }
285
- }
286
-
287
- return ret("string", "string");
288
- };
289
- }
290
-
291
- // tokenizer for variables
292
- function tokenVariable(stream, state) {
293
- var isVariableChar = /[\w\$_-]/;
294
-
295
- // a variable may start with a quoted EQName so if the next character is quote, consume to the next quote
296
- if(stream.eat("\"")) {
297
- while(stream.next() !== '\"'){};
298
- stream.eat(":");
299
- } else {
300
- stream.eatWhile(isVariableChar);
301
- if(!stream.match(":=", false)) stream.eat(":");
302
- }
303
- stream.eatWhile(isVariableChar);
304
- state.tokenize = tokenBase;
305
- return ret("variable", "variable");
306
- }
307
-
308
- // tokenizer for XML tags
309
- function tokenTag(name, isclose) {
310
- return function(stream, state) {
311
- stream.eatSpace();
312
- if(isclose && stream.eat(">")) {
313
- popStateStack(state);
314
- state.tokenize = tokenBase;
315
- return ret("tag", "tag");
316
- }
317
- // self closing tag without attributes?
318
- if(!stream.eat("/"))
319
- pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase});
320
- if(!stream.eat(">")) {
321
- state.tokenize = tokenAttribute;
322
- return ret("tag", "tag");
323
- }
324
- else {
325
- state.tokenize = tokenBase;
326
- }
327
- return ret("tag", "tag");
328
- }
329
- }
330
-
331
- // tokenizer for XML attributes
332
- function tokenAttribute(stream, state) {
333
- var ch = stream.next();
334
-
335
- if(ch == "/" && stream.eat(">")) {
336
- if(isInXmlAttributeBlock(state)) popStateStack(state);
337
- if(isInXmlBlock(state)) popStateStack(state);
338
- return ret("tag", "tag");
339
- }
340
- if(ch == ">") {
341
- if(isInXmlAttributeBlock(state)) popStateStack(state);
342
- return ret("tag", "tag");
343
- }
344
- if(ch == "=")
345
- return ret("", "");
346
- // quoted string
347
- if (ch == '"' || ch == "'")
348
- return chain(stream, state, tokenString(ch, tokenAttribute));
349
-
350
- if(!isInXmlAttributeBlock(state))
351
- pushStateStack(state, { type: "attribute", name: name, tokenize: tokenAttribute});
352
-
353
- stream.eat(/[a-zA-Z_:]/);
354
- stream.eatWhile(/[-a-zA-Z0-9_:.]/);
355
- stream.eatSpace();
356
-
357
- // the case where the attribute has not value and the tag was closed
358
- if(stream.match(">", false) || stream.match("/", false)) {
359
- popStateStack(state);
360
- state.tokenize = tokenBase;
361
- }
362
-
363
- return ret("attribute", "attribute");
364
- }
365
-
366
- // handle comments, including nested
367
- function tokenXMLComment(stream, state) {
368
- while (ch = stream.next()) {
369
- if (ch == "-" && stream.match("->", true)) {
370
- state.tokenize = tokenBase;
371
- return ret("comment", "comment");
372
- }
373
- }
374
- }
375
-
376
-
377
- // handle CDATA
378
- function tokenCDATA(stream, state) {
379
- while (ch = stream.next()) {
380
- if (ch == "]" && stream.match("]", true)) {
381
- state.tokenize = tokenBase;
382
- return ret("comment", "comment");
383
- }
384
- }
385
- }
386
-
387
- // handle preprocessing instructions
388
- function tokenPreProcessing(stream, state) {
389
- while (ch = stream.next()) {
390
- if (ch == "?" && stream.match(">", true)) {
391
- state.tokenize = tokenBase;
392
- return ret("comment", "comment meta");
393
- }
394
- }
395
- }
396
-
397
-
398
- // functions to test the current context of the state
399
- function isInXmlBlock(state) { return isIn(state, "tag"); }
400
- function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); }
401
- function isInCodeBlock(state) { return isIn(state, "codeblock"); }
402
- function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); }
403
- function isInString(state) { return isIn(state, "string"); }
404
-
405
- function isEQNameAhead(stream) {
406
- // assume we've already eaten a quote (")
407
- if(stream.current() === '"')
408
- return stream.match(/^[^\"]+\"\:/, false);
409
- else if(stream.current() === '\'')
410
- return stream.match(/^[^\"]+\'\:/, false);
411
- else
412
- return false;
413
- }
414
-
415
- function isIn(state, type) {
416
- return (state.stack.length && state.stack[state.stack.length - 1].type == type);
417
- }
418
-
419
- function pushStateStack(state, newState) {
420
- state.stack.push(newState);
421
- }
422
-
423
- function popStateStack(state) {
424
- var popped = state.stack.pop();
425
- var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize
426
- state.tokenize = reinstateTokenize || tokenBase;
427
- }
428
-
429
- // the interface for the mode API
430
- return {
431
- startState: function(basecolumn) {
432
- return {
433
- tokenize: tokenBase,
434
- cc: [],
435
- stack: []
436
- };
437
- },
438
-
439
- token: function(stream, state) {
440
- if (stream.eatSpace()) return null;
441
- var style = state.tokenize(stream, state);
442
- return style;
443
- }
444
- };
445
-
446
- });
447
-
448
- CodeMirror.defineMIME("application/xquery", "xquery");
@@ -1,67 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: YAML mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="yaml.js"></script>
8
- <style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
9
- <link rel="stylesheet" href="../../doc/docs.css">
10
- </head>
11
- <body>
12
- <h1>CodeMirror: YAML mode</h1>
13
- <form><textarea id="code" name="code">
14
- --- # Favorite movies
15
- - Casablanca
16
- - North by Northwest
17
- - The Man Who Wasn't There
18
- --- # Shopping list
19
- [milk, pumpkin pie, eggs, juice]
20
- --- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
21
- name: John Smith
22
- age: 33
23
- --- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
24
- {name: John Smith, age: 33}
25
- ---
26
- receipt: Oz-Ware Purchase Invoice
27
- date: 2007-08-06
28
- customer:
29
- given: Dorothy
30
- family: Gale
31
-
32
- items:
33
- - part_no: A4786
34
- descrip: Water Bucket (Filled)
35
- price: 1.47
36
- quantity: 4
37
-
38
- - part_no: E1628
39
- descrip: High Heeled "Ruby" Slippers
40
- size: 8
41
- price: 100.27
42
- quantity: 1
43
-
44
- bill-to: &id001
45
- street: |
46
- 123 Tornado Alley
47
- Suite 16
48
- city: East Centerville
49
- state: KS
50
-
51
- ship-to: *id001
52
-
53
- specialDelivery: >
54
- Follow the Yellow Brick
55
- Road to the Emerald City.
56
- Pay no attention to the
57
- man behind the curtain.
58
- ...
59
- </textarea></form>
60
- <script>
61
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
62
- </script>
63
-
64
- <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p>
65
-
66
- </body>
67
- </html>
@@ -1,95 +0,0 @@
1
- CodeMirror.defineMode("yaml", function() {
2
-
3
- var cons = ['true', 'false', 'on', 'off', 'yes', 'no'];
4
- var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i');
5
-
6
- return {
7
- token: function(stream, state) {
8
- var ch = stream.peek();
9
- var esc = state.escaped;
10
- state.escaped = false;
11
- /* comments */
12
- if (ch == "#") { stream.skipToEnd(); return "comment"; }
13
- if (state.literal && stream.indentation() > state.keyCol) {
14
- stream.skipToEnd(); return "string";
15
- } else if (state.literal) { state.literal = false; }
16
- if (stream.sol()) {
17
- state.keyCol = 0;
18
- state.pair = false;
19
- state.pairStart = false;
20
- /* document start */
21
- if(stream.match(/---/)) { return "def"; }
22
- /* document end */
23
- if (stream.match(/\.\.\./)) { return "def"; }
24
- /* array list item */
25
- if (stream.match(/\s*-\s+/)) { return 'meta'; }
26
- }
27
- /* pairs (associative arrays) -> key */
28
- if (!state.pair && stream.match(/^\s*([a-z0-9\._-])+(?=\s*:)/i)) {
29
- state.pair = true;
30
- state.keyCol = stream.indentation();
31
- return "atom";
32
- }
33
- if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; }
34
-
35
- /* inline pairs/lists */
36
- if (stream.match(/^(\{|\}|\[|\])/)) {
37
- if (ch == '{')
38
- state.inlinePairs++;
39
- else if (ch == '}')
40
- state.inlinePairs--;
41
- else if (ch == '[')
42
- state.inlineList++;
43
- else
44
- state.inlineList--;
45
- return 'meta';
46
- }
47
-
48
- /* list seperator */
49
- if (state.inlineList > 0 && !esc && ch == ',') {
50
- stream.next();
51
- return 'meta';
52
- }
53
- /* pairs seperator */
54
- if (state.inlinePairs > 0 && !esc && ch == ',') {
55
- state.keyCol = 0;
56
- state.pair = false;
57
- state.pairStart = false;
58
- stream.next();
59
- return 'meta';
60
- }
61
-
62
- /* start of value of a pair */
63
- if (state.pairStart) {
64
- /* block literals */
65
- if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; };
66
- /* references */
67
- if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; }
68
- /* numbers */
69
- if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; }
70
- if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; }
71
- /* keywords */
72
- if (stream.match(keywordRegex)) { return 'keyword'; }
73
- }
74
-
75
- /* nothing found, continue */
76
- state.pairStart = false;
77
- state.escaped = (ch == '\\');
78
- stream.next();
79
- return null;
80
- },
81
- startState: function() {
82
- return {
83
- pair: false,
84
- pairStart: false,
85
- keyCol: 0,
86
- inlinePairs: 0,
87
- inlineList: 0,
88
- literal: false,
89
- escaped: false
90
- };
91
- }
92
- };
93
- });
94
-
95
- CodeMirror.defineMIME("text/x-yaml", "yaml");
@@ -1,28 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Test Suite</title>
5
- <link rel="stylesheet" href="../lib/codemirror.css">
6
- <script src="../lib/codemirror.js"></script>
7
- <script src="../mode/javascript/javascript.js"></script>
8
-
9
- <style type="text/css">
10
- .ok {color: #0e0;}
11
- .failure {color: #e00;}
12
- .error {color: #c90;}
13
- </style>
14
- </head>
15
- <body>
16
- <h1>CodeMirror: Test Suite</h1>
17
-
18
- <p>A limited set of programmatic sanity tests for CodeMirror.</p>
19
-
20
- <pre id=output></pre>
21
-
22
- <div style="visibility: hidden" id=testground>
23
- <form><textarea id="code" name="code"></textarea><input type=submit value=ok name=submit></form>
24
- </div>
25
-
26
- <script src="test.js"></script>
27
- </body>
28
- </html>
@@ -1,22 +0,0 @@
1
- .mt-output .mt-token {
2
- border: 1px solid #ddd;
3
- white-space: pre;
4
- font-family: "Consolas", monospace;
5
- text-align: center;
6
- }
7
-
8
- .mt-output .mt-style {
9
- font-size: x-small;
10
- }
11
-
12
- .mt-test {
13
- border-left: 10px solid #fff;
14
- }
15
-
16
- .mt-pass {
17
- border-left: 10px solid #cfc;
18
- }
19
-
20
- .mt-fail {
21
- border-left: 10px solid #fcc;
22
- }