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,32 +0,0 @@
1
- CodeMirror.defineMode("diff", function() {
2
-
3
- var TOKEN_NAMES = {
4
- '+': 'tag',
5
- '-': 'string',
6
- '@': 'meta'
7
- };
8
-
9
- return {
10
- token: function(stream) {
11
- var tw_pos = stream.string.search(/[\t ]+?$/);
12
-
13
- if (!stream.sol() || tw_pos === 0) {
14
- stream.skipToEnd();
15
- return ("error " + (
16
- TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
17
- }
18
-
19
- var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
20
-
21
- if (tw_pos === -1) {
22
- stream.skipToEnd();
23
- } else {
24
- stream.pos = tw_pos;
25
- }
26
-
27
- return token_name;
28
- }
29
- };
30
- });
31
-
32
- CodeMirror.defineMIME("text/x-diff", "diff");
@@ -1,104 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: Diff mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="diff.js"></script>
8
- <style>
9
- .CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}
10
- span.cm-meta {color: #a0b !important;}
11
- span.cm-error { background-color: black; opacity: 0.4;}
12
- span.cm-error.cm-string { background-color: red; }
13
- span.cm-error.cm-tag { background-color: #2b2; }
14
- </style>
15
- <link rel="stylesheet" href="../../doc/docs.css">
16
- </head>
17
- <body>
18
- <h1>CodeMirror: Diff mode</h1>
19
- <form><textarea id="code" name="code">
20
- diff --git a/index.html b/index.html
21
- index c1d9156..7764744 100644
22
- --- a/index.html
23
- +++ b/index.html
24
- @@ -95,7 +95,8 @@ StringStream.prototype = {
25
- <script>
26
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
27
- lineNumbers: true,
28
- - autoMatchBrackets: true
29
- + autoMatchBrackets: true,
30
- + onGutterClick: function(x){console.log(x);}
31
- });
32
- </script>
33
- </body>
34
- diff --git a/lib/codemirror.js b/lib/codemirror.js
35
- index 04646a9..9a39cc7 100644
36
- --- a/lib/codemirror.js
37
- +++ b/lib/codemirror.js
38
- @@ -399,10 +399,16 @@ var CodeMirror = (function() {
39
- }
40
-
41
- function onMouseDown(e) {
42
- - var start = posFromMouse(e), last = start;
43
- + var start = posFromMouse(e), last = start, target = e.target();
44
- if (!start) return;
45
- setCursor(start.line, start.ch, false);
46
- if (e.button() != 1) return;
47
- + if (target.parentNode == gutter) {
48
- + if (options.onGutterClick)
49
- + options.onGutterClick(indexOf(gutter.childNodes, target) + showingFrom);
50
- + return;
51
- + }
52
- +
53
- if (!focused) onFocus();
54
-
55
- e.stop();
56
- @@ -808,7 +814,7 @@ var CodeMirror = (function() {
57
- for (var i = showingFrom; i < showingTo; ++i) {
58
- var marker = lines[i].gutterMarker;
59
- if (marker) html.push('<div class="' + marker.style + '">' + htmlEscape(marker.text) + '</div>');
60
- - else html.push("<div>" + (options.lineNumbers ? i + 1 : "\u00a0") + "</div>");
61
- + else html.push("<div>" + (options.lineNumbers ? i + options.firstLineNumber : "\u00a0") + "</div>");
62
- }
63
- gutter.style.display = "none"; // TODO test whether this actually helps
64
- gutter.innerHTML = html.join("");
65
- @@ -1371,10 +1377,8 @@ var CodeMirror = (function() {
66
- if (option == "parser") setParser(value);
67
- else if (option === "lineNumbers") setLineNumbers(value);
68
- else if (option === "gutter") setGutter(value);
69
- - else if (option === "readOnly") options.readOnly = value;
70
- - else if (option === "indentUnit") {options.indentUnit = indentUnit = value; setParser(options.parser);}
71
- - else if (/^(?:enterMode|tabMode|indentWithTabs|readOnly|autoMatchBrackets|undoDepth)$/.test(option)) options[option] = value;
72
- - else throw new Error("Can't set option " + option);
73
- + else if (option === "indentUnit") {options.indentUnit = value; setParser(options.parser);}
74
- + else options[option] = value;
75
- },
76
- cursorCoords: cursorCoords,
77
- undo: operation(undo),
78
- @@ -1402,7 +1406,8 @@ var CodeMirror = (function() {
79
- replaceRange: operation(replaceRange),
80
-
81
- operation: function(f){return operation(f)();},
82
- - refresh: function(){updateDisplay([{from: 0, to: lines.length}]);}
83
- + refresh: function(){updateDisplay([{from: 0, to: lines.length}]);},
84
- + getInputField: function(){return input;}
85
- };
86
- return instance;
87
- }
88
- @@ -1420,6 +1425,7 @@ var CodeMirror = (function() {
89
- readOnly: false,
90
- onChange: null,
91
- onCursorActivity: null,
92
- + onGutterClick: null,
93
- autoMatchBrackets: false,
94
- workTime: 200,
95
- workDelay: 300,
96
- </textarea></form>
97
- <script>
98
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
99
- </script>
100
-
101
- <p><strong>MIME types defined:</strong> <code>text/x-diff</code>.</p>
102
-
103
- </body>
104
- </html>
@@ -1,203 +0,0 @@
1
- CodeMirror.defineMode("ecl", function(config) {
2
-
3
- function words(str) {
4
- var obj = {}, words = str.split(" ");
5
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
6
- return obj;
7
- }
8
-
9
- function metaHook(stream, state) {
10
- if (!state.startOfLine) return false;
11
- stream.skipToEnd();
12
- return "meta";
13
- }
14
-
15
- function tokenAtString(stream, state) {
16
- var next;
17
- while ((next = stream.next()) != null) {
18
- if (next == '"' && !stream.eat('"')) {
19
- state.tokenize = null;
20
- break;
21
- }
22
- }
23
- return "string";
24
- }
25
-
26
- var indentUnit = config.indentUnit;
27
- var keyword = words("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode");
28
- var variable = words("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait");
29
- var variable_2 = words("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath");
30
- var variable_3 = words("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode");
31
- var builtin = words("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when");
32
- var blockKeywords = words("catch class do else finally for if switch try while");
33
- var atoms = words("true false null");
34
- var hooks = {"#": metaHook};
35
- var multiLineStrings;
36
- var isOperatorChar = /[+\-*&%=<>!?|\/]/;
37
-
38
- var curPunc;
39
-
40
- function tokenBase(stream, state) {
41
- var ch = stream.next();
42
- if (hooks[ch]) {
43
- var result = hooks[ch](stream, state);
44
- if (result !== false) return result;
45
- }
46
- if (ch == '"' || ch == "'") {
47
- state.tokenize = tokenString(ch);
48
- return state.tokenize(stream, state);
49
- }
50
- if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
51
- curPunc = ch;
52
- return null
53
- }
54
- if (/\d/.test(ch)) {
55
- stream.eatWhile(/[\w\.]/);
56
- return "number";
57
- }
58
- if (ch == "/") {
59
- if (stream.eat("*")) {
60
- state.tokenize = tokenComment;
61
- return tokenComment(stream, state);
62
- }
63
- if (stream.eat("/")) {
64
- stream.skipToEnd();
65
- return "comment";
66
- }
67
- }
68
- if (isOperatorChar.test(ch)) {
69
- stream.eatWhile(isOperatorChar);
70
- return "operator";
71
- }
72
- stream.eatWhile(/[\w\$_]/);
73
- var cur = stream.current().toLowerCase();
74
- if (keyword.propertyIsEnumerable(cur)) {
75
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
76
- return "keyword";
77
- } else if (variable.propertyIsEnumerable(cur)) {
78
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
79
- return "variable";
80
- } else if (variable_2.propertyIsEnumerable(cur)) {
81
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
82
- return "variable-2";
83
- } else if (variable_3.propertyIsEnumerable(cur)) {
84
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
85
- return "variable-3";
86
- } else if (builtin.propertyIsEnumerable(cur)) {
87
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
88
- return "builtin";
89
- } else { //Data types are of from KEYWORD##
90
- var i = cur.length - 1;
91
- while(i >= 0 && (!isNaN(cur[i]) || cur[i] == '_'))
92
- --i;
93
-
94
- if (i > 0) {
95
- var cur2 = cur.substr(0, i + 1);
96
- if (variable_3.propertyIsEnumerable(cur2)) {
97
- if (blockKeywords.propertyIsEnumerable(cur2)) curPunc = "newstatement";
98
- return "variable-3";
99
- }
100
- }
101
- }
102
- if (atoms.propertyIsEnumerable(cur)) return "atom";
103
- return "word";
104
- }
105
-
106
- function tokenString(quote) {
107
- return function(stream, state) {
108
- var escaped = false, next, end = false;
109
- while ((next = stream.next()) != null) {
110
- if (next == quote && !escaped) {end = true; break;}
111
- escaped = !escaped && next == "\\";
112
- }
113
- if (end || !(escaped || multiLineStrings))
114
- state.tokenize = tokenBase;
115
- return "string";
116
- };
117
- }
118
-
119
- function tokenComment(stream, state) {
120
- var maybeEnd = false, ch;
121
- while (ch = stream.next()) {
122
- if (ch == "/" && maybeEnd) {
123
- state.tokenize = tokenBase;
124
- break;
125
- }
126
- maybeEnd = (ch == "*");
127
- }
128
- return "comment";
129
- }
130
-
131
- function Context(indented, column, type, align, prev) {
132
- this.indented = indented;
133
- this.column = column;
134
- this.type = type;
135
- this.align = align;
136
- this.prev = prev;
137
- }
138
- function pushContext(state, col, type) {
139
- return state.context = new Context(state.indented, col, type, null, state.context);
140
- }
141
- function popContext(state) {
142
- var t = state.context.type;
143
- if (t == ")" || t == "]" || t == "}")
144
- state.indented = state.context.indented;
145
- return state.context = state.context.prev;
146
- }
147
-
148
- // Interface
149
-
150
- return {
151
- startState: function(basecolumn) {
152
- return {
153
- tokenize: null,
154
- context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
155
- indented: 0,
156
- startOfLine: true
157
- };
158
- },
159
-
160
- token: function(stream, state) {
161
- var ctx = state.context;
162
- if (stream.sol()) {
163
- if (ctx.align == null) ctx.align = false;
164
- state.indented = stream.indentation();
165
- state.startOfLine = true;
166
- }
167
- if (stream.eatSpace()) return null;
168
- curPunc = null;
169
- var style = (state.tokenize || tokenBase)(stream, state);
170
- if (style == "comment" || style == "meta") return style;
171
- if (ctx.align == null) ctx.align = true;
172
-
173
- if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
174
- else if (curPunc == "{") pushContext(state, stream.column(), "}");
175
- else if (curPunc == "[") pushContext(state, stream.column(), "]");
176
- else if (curPunc == "(") pushContext(state, stream.column(), ")");
177
- else if (curPunc == "}") {
178
- while (ctx.type == "statement") ctx = popContext(state);
179
- if (ctx.type == "}") ctx = popContext(state);
180
- while (ctx.type == "statement") ctx = popContext(state);
181
- }
182
- else if (curPunc == ctx.type) popContext(state);
183
- else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
184
- pushContext(state, stream.column(), "statement");
185
- state.startOfLine = false;
186
- return style;
187
- },
188
-
189
- indent: function(state, textAfter) {
190
- if (state.tokenize != tokenBase && state.tokenize != null) return 0;
191
- var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
192
- if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
193
- var closing = firstChar == ctx.type;
194
- if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : indentUnit);
195
- else if (ctx.align) return ctx.column + (closing ? 0 : 1);
196
- else return ctx.indented + (closing ? 0 : indentUnit);
197
- },
198
-
199
- electricChars: "{}"
200
- };
201
- });
202
-
203
- CodeMirror.defineMIME("text/x-ecl", "ecl");
@@ -1,42 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>CodeMirror: ECL mode</title>
5
- <link rel="stylesheet" href="../../lib/codemirror.css">
6
- <script src="../../lib/codemirror.js"></script>
7
- <script src="ecl.js"></script>
8
- <link rel="stylesheet" href="../../doc/docs.css">
9
- <style>.CodeMirror {border: 1px solid black;}</style>
10
- </head>
11
- <body>
12
- <h1>CodeMirror: ECL mode</h1>
13
- <form><textarea id="code" name="code">
14
- /*
15
- sample useless code to demonstrate ecl syntax highlighting
16
- this is a multiline comment!
17
- */
18
-
19
- // this is a singleline comment!
20
-
21
- import ut;
22
- r :=
23
- record
24
- string22 s1 := '123';
25
- integer4 i1 := 123;
26
- end;
27
- #option('tmp', true);
28
- d := dataset('tmp::qb', r, thor);
29
- output(d);
30
- </textarea></form>
31
- <script>
32
- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
33
- tabMode: "indent",
34
- matchBrackets: true,
35
- });
36
- </script>
37
-
38
- <p>Based on CodeMirror's clike mode. For more information see <a href="http://hpccsystems.com">HPCC Systems</a> web site.</p>
39
- <p><strong>MIME types defined:</strong> <code>text/x-ecl</code>.</p>
40
-
41
- </body>
42
- </html>
@@ -1,251 +0,0 @@
1
- // erlang -> CodeMirror tag
2
- //
3
- // atom -> atom
4
- // attribute -> attribute
5
- // builtin -> builtin
6
- // comment -> comment
7
- // error -> error
8
- // fun -> meta
9
- // function -> tag
10
- // guard -> property
11
- // keyword -> keyword
12
- // macro -> variable-2
13
- // number -> number
14
- // operator -> operator
15
- // record -> bracket
16
- // string -> string
17
- // type -> def
18
- // variable -> variable
19
-
20
- CodeMirror.defineMIME("text/x-erlang", "erlang");
21
-
22
- CodeMirror.defineMode("erlang", function(cmCfg, modeCfg) {
23
-
24
- var typeWords = [
25
- "-type", "-spec", "-export_type", "-opaque"];
26
-
27
- var keywordWords = [
28
- "after","begin","catch","case","cond","end","fun","if",
29
- "let","of","query","receive","try","when"];
30
-
31
- var operatorWords = [
32
- "and","andalso","band","bnot","bor","bsl","bsr","bxor",
33
- "div","not","or","orelse","rem","xor"];
34
-
35
- var operatorSymbols = [
36
- "+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-"];
37
-
38
- var guardWords = [
39
- "is_atom","is_binary","is_bitstring","is_boolean","is_float",
40
- "is_function","is_integer","is_list","is_number","is_pid",
41
- "is_port","is_record","is_reference","is_tuple",
42
- "atom","binary","bitstring","boolean","function","integer","list",
43
- "number","pid","port","record","reference","tuple"];
44
-
45
- var bifWords = [
46
- "abs","adler32","adler32_combine","alive","apply","atom_to_binary",
47
- "atom_to_list","binary_to_atom","binary_to_existing_atom",
48
- "binary_to_list","binary_to_term","bit_size","bitstring_to_list",
49
- "byte_size","check_process_code","contact_binary","crc32",
50
- "crc32_combine","date","decode_packet","delete_module",
51
- "disconnect_node","element","erase","exit","float","float_to_list",
52
- "garbage_collect","get","get_keys","group_leader","halt","hd",
53
- "integer_to_list","internal_bif","iolist_size","iolist_to_binary",
54
- "is_alive","is_atom","is_binary","is_bitstring","is_boolean",
55
- "is_float","is_function","is_integer","is_list","is_number","is_pid",
56
- "is_port","is_process_alive","is_record","is_reference","is_tuple",
57
- "length","link","list_to_atom","list_to_binary","list_to_bitstring",
58
- "list_to_existing_atom","list_to_float","list_to_integer",
59
- "list_to_pid","list_to_tuple","load_module","make_ref","module_loaded",
60
- "monitor_node","node","node_link","node_unlink","nodes","notalive",
61
- "now","open_port","pid_to_list","port_close","port_command",
62
- "port_connect","port_control","pre_loaded","process_flag",
63
- "process_info","processes","purge_module","put","register",
64
- "registered","round","self","setelement","size","spawn","spawn_link",
65
- "spawn_monitor","spawn_opt","split_binary","statistics",
66
- "term_to_binary","time","throw","tl","trunc","tuple_size",
67
- "tuple_to_list","unlink","unregister","whereis"];
68
-
69
- function isMember(element,list) {
70
- return (-1 < list.indexOf(element));
71
- }
72
-
73
- function isPrev(stream,string) {
74
- var start = stream.start;
75
- var len = string.length;
76
- if (len <= start) {
77
- var word = stream.string.slice(start-len,start);
78
- return word == string;
79
- }else{
80
- return false;
81
- }
82
- }
83
-
84
- var smallRE = /[a-z_]/;
85
- var largeRE = /[A-Z_]/;
86
- var digitRE = /[0-9]/;
87
- var octitRE = /[0-7]/;
88
- var idRE = /[a-z_A-Z0-9]/;
89
-
90
- function tokenize(stream, state) {
91
- if (stream.eatSpace()) {
92
- return null;
93
- }
94
-
95
- // attributes and type specs
96
- if (stream.sol() && stream.peek() == '-') {
97
- stream.next();
98
- if (stream.eat(smallRE) && stream.eatWhile(idRE)) {
99
- if (stream.peek() == "(") {
100
- return "attribute";
101
- }else if (isMember(stream.current(),typeWords)) {
102
- return "def";
103
- }else{
104
- return null;
105
- }
106
- }
107
- stream.backUp(1);
108
- }
109
-
110
- var ch = stream.next();
111
-
112
- // comment
113
- if (ch == '%') {
114
- stream.skipToEnd();
115
- return "comment";
116
- }
117
-
118
- // macro
119
- if (ch == '?') {
120
- stream.eatWhile(idRE);
121
- return "variable-2";
122
- }
123
-
124
- // record
125
- if ( ch == "#") {
126
- stream.eatWhile(idRE);
127
- return "bracket";
128
- }
129
-
130
- // char
131
- if ( ch == "$") {
132
- if (stream.next() == "\\") {
133
- if (!stream.eatWhile(octitRE)) {
134
- stream.next();
135
- }
136
- }
137
- return "string";
138
- }
139
-
140
- // quoted atom
141
- if (ch == '\'') {
142
- return singleQuote(stream);
143
- }
144
-
145
- // string
146
- if (ch == '"') {
147
- return doubleQuote(stream);
148
- }
149
-
150
- // variable
151
- if (largeRE.test(ch)) {
152
- stream.eatWhile(idRE);
153
- return "variable";
154
- }
155
-
156
- // atom/keyword/BIF/function
157
- if (smallRE.test(ch)) {
158
- stream.eatWhile(idRE);
159
-
160
- if (stream.peek() == "/") {
161
- stream.next();
162
- if (stream.eatWhile(digitRE)) {
163
- return "meta"; // f/0 style fun
164
- }else{
165
- stream.backUp(1);
166
- return "atom";
167
- }
168
- }
169
-
170
- var w = stream.current();
171
-
172
- if (isMember(w,keywordWords)) {
173
- return "keyword"; // keyword
174
- }
175
- if (stream.peek() == "(") {
176
- if (isMember(w,bifWords) &&
177
- (!isPrev(stream,":") || isPrev(stream,"erlang:"))) {
178
- return "builtin"; // BIF
179
- }else{
180
- return "tag"; // function
181
- }
182
- }
183
- if (isMember(w,guardWords)) {
184
- return "property"; // guard
185
- }
186
- if (isMember(w,operatorWords)) {
187
- return "operator"; // operator
188
- }
189
-
190
-
191
- if (stream.peek() == ":") {
192
- if (w == "erlang") { // f:now() is highlighted incorrectly
193
- return "builtin";
194
- } else {
195
- return "tag"; // function application
196
- }
197
- }
198
-
199
- return "atom";
200
- }
201
-
202
- // number
203
- if (digitRE.test(ch)) {
204
- stream.eatWhile(digitRE);
205
- if (stream.eat('#')) {
206
- stream.eatWhile(digitRE); // 16#10 style integer
207
- } else {
208
- if (stream.eat('.')) { // float
209
- stream.eatWhile(digitRE);
210
- }
211
- if (stream.eat(/[eE]/)) {
212
- stream.eat(/[-+]/); // float with exponent
213
- stream.eatWhile(digitRE);
214
- }
215
- }
216
- return "number"; // normal integer
217
- }
218
-
219
- return null;
220
- }
221
-
222
- function doubleQuote(stream) {
223
- return Quote(stream, '"', '\\', "string");
224
- }
225
-
226
- function singleQuote(stream) {
227
- return Quote(stream,'\'','\\',"atom");
228
- }
229
-
230
- function Quote(stream,quoteChar,escapeChar,tag) {
231
- while (!stream.eol()) {
232
- var ch = stream.next();
233
- if (ch == quoteChar) {
234
- return tag;
235
- }else if (ch == escapeChar) {
236
- stream.next();
237
- }
238
- }
239
- return "error";
240
- }
241
-
242
- return {
243
- startState: function() {
244
- return {};
245
- },
246
-
247
- token: function(stream, state) {
248
- return tokenize(stream, state);
249
- }
250
- };
251
- });