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.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/burp/add-image-2.jpg +0 -0
- data/app/assets/images/burp/add-image-3.jpg +0 -0
- data/app/assets/images/burp/add-image-4.jpg +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-2.jpg +0 -0
- data/app/assets/images/burp/remove-image-3.jpg +0 -0
- data/app/assets/images/burp/remove-image-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-5.jpg +0 -0
- data/app/views/burp/static/help.html.erb +8 -8
- data/lib/burp/version.rb +1 -1
- metadata +95 -234
- data/app/assets/images/burp/add-image-2.png +0 -0
- data/app/assets/images/burp/add-image-3.png +0 -0
- data/app/assets/images/burp/add-image-4.png +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
- data/app/assets/images/burp/remove-image-2.png +0 -0
- data/app/assets/images/burp/remove-image-3.png +0 -0
- data/app/assets/images/burp/remove-image-4.png +0 -0
- data/app/assets/images/burp/remove-image-5.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,232 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
LESS mode - http://www.lesscss.org/
|
3
|
-
Ported to CodeMirror by Peter Kroon
|
4
|
-
*/
|
5
|
-
|
6
|
-
CodeMirror.defineMode("less", function(config) {
|
7
|
-
var indentUnit = config.indentUnit, type;
|
8
|
-
function ret(style, tp) {type = tp; return style;}
|
9
|
-
//html5 tags
|
10
|
-
var tags = ["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","legend","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr"];
|
11
|
-
|
12
|
-
function inTagsArray(val){
|
13
|
-
for(var i=0; i<tags.length; i++){
|
14
|
-
if(val === tags[i]){
|
15
|
-
return true;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
function tokenBase(stream, state) {
|
21
|
-
var ch = stream.next();
|
22
|
-
|
23
|
-
if (ch == "@") {stream.eatWhile(/[\w\-]/); return ret("meta", stream.current());}
|
24
|
-
else if (ch == "/" && stream.eat("*")) {
|
25
|
-
state.tokenize = tokenCComment;
|
26
|
-
return tokenCComment(stream, state);
|
27
|
-
}
|
28
|
-
else if (ch == "<" && stream.eat("!")) {
|
29
|
-
state.tokenize = tokenSGMLComment;
|
30
|
-
return tokenSGMLComment(stream, state);
|
31
|
-
}
|
32
|
-
else if (ch == "=") ret(null, "compare");
|
33
|
-
else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
|
34
|
-
else if (ch == "\"" || ch == "'") {
|
35
|
-
state.tokenize = tokenString(ch);
|
36
|
-
return state.tokenize(stream, state);
|
37
|
-
}
|
38
|
-
else if (ch == "/") { // lesscss e.g.: .png will not be parsed as a class
|
39
|
-
if(stream.eat("/")){
|
40
|
-
state.tokenize = tokenSComment
|
41
|
-
return tokenSComment(stream, state);
|
42
|
-
}else{
|
43
|
-
stream.eatWhile(/[\a-zA-Z0-9\-_.\s]/);
|
44
|
-
if(/\/|\)|#/.test(stream.peek() || stream.eol() || (stream.eatSpace() && stream.peek() == ")")))return ret("string", "string");//let url(/images/logo.png) without quotes return as string
|
45
|
-
return ret("number", "unit");
|
46
|
-
}
|
47
|
-
}
|
48
|
-
else if (ch == "!") {
|
49
|
-
stream.match(/^\s*\w*/);
|
50
|
-
return ret("keyword", "important");
|
51
|
-
}
|
52
|
-
else if (/\d/.test(ch)) {
|
53
|
-
stream.eatWhile(/[\w.%]/);
|
54
|
-
return ret("number", "unit");
|
55
|
-
}
|
56
|
-
else if (/[,+<>*\/]/.test(ch)) {//removed . dot character original was [,.+>*\/]
|
57
|
-
return ret(null, "select-op");
|
58
|
-
}
|
59
|
-
else if (/[;{}:\[\]()]/.test(ch)) { //added () char for lesscss original was [;{}:\[\]]
|
60
|
-
if(ch == ":"){
|
61
|
-
stream.eatWhile(/[active|hover|link|visited]/);
|
62
|
-
if( stream.current().match(/active|hover|link|visited/)){
|
63
|
-
return ret("tag", "tag");
|
64
|
-
}else{
|
65
|
-
return ret(null, ch);
|
66
|
-
}
|
67
|
-
}else{
|
68
|
-
return ret(null, ch);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
else if (ch == ".") { // lesscss
|
72
|
-
stream.eatWhile(/[\a-zA-Z0-9\-_]/);
|
73
|
-
return ret("tag", "tag");
|
74
|
-
}
|
75
|
-
else if (ch == "#") { // lesscss
|
76
|
-
//we don't eat white-space, we want the hex color and or id only
|
77
|
-
stream.eatWhile(/[A-Za-z0-9]/);
|
78
|
-
//check if there is a proper hex color length e.g. #eee || #eeeEEE
|
79
|
-
if(stream.current().length ===4 || stream.current().length ===7){
|
80
|
-
if(stream.current().match(/[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}/,false) != null){//is there a valid hex color value present in the current stream
|
81
|
-
//when not a valid hex value, parse as id
|
82
|
-
if(stream.current().substring(1) != stream.current().match(/[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}/,false))return ret("atom", "tag");
|
83
|
-
//eat white-space
|
84
|
-
stream.eatSpace();
|
85
|
-
//when hex value declaration doesn't end with [;,] but is does with a slash/cc comment treat it as an id, just like the other hex values that don't end with[;,]
|
86
|
-
if( /[\/<>.(){!$%^&*_\-\\?=+\|#'~`]/.test(stream.peek()) )return ret("atom", "tag");
|
87
|
-
//#time { color: #aaa }
|
88
|
-
else if(stream.peek() == "}" )return ret("number", "unit");
|
89
|
-
//we have a valid hex color value, parse as id whenever an element/class is defined after the hex(id) value e.g. #eee aaa || #eee .aaa
|
90
|
-
else if( /[a-zA-Z\\]/.test(stream.peek()) )return ret("atom", "tag");
|
91
|
-
//when a hex value is on the end of a line, parse as id
|
92
|
-
else if(stream.eol())return ret("atom", "tag");
|
93
|
-
//default
|
94
|
-
else return ret("number", "unit");
|
95
|
-
}else{//when not a valid hexvalue in the current stream e.g. #footer
|
96
|
-
stream.eatWhile(/[\w\\\-]/);
|
97
|
-
return ret("atom", "tag");
|
98
|
-
}
|
99
|
-
}else{
|
100
|
-
stream.eatWhile(/[\w\\\-]/);
|
101
|
-
return ret("atom", "tag");
|
102
|
-
}
|
103
|
-
}
|
104
|
-
else if (ch == "&") {
|
105
|
-
stream.eatWhile(/[\w\-]/);
|
106
|
-
return ret(null, ch);
|
107
|
-
}
|
108
|
-
else {
|
109
|
-
stream.eatWhile(/[\w\\\-_%.{]/);
|
110
|
-
if(stream.current().match(/http|https/) != null){
|
111
|
-
stream.eatWhile(/[\w\\\-_%.{:\/]/);
|
112
|
-
return ret("string", "string");
|
113
|
-
}else if(stream.peek() == "<" || stream.peek() == ">"){
|
114
|
-
return ret("tag", "tag");
|
115
|
-
}else if( stream.peek().match(/\(/) != null ){// lessc
|
116
|
-
return ret(null, ch);
|
117
|
-
}else if (stream.peek() == "/" && state.stack[state.stack.length-1] != undefined){ // url(dir/center/image.png)
|
118
|
-
return ret("string", "string");
|
119
|
-
}else if( stream.current().match(/\-\d|\-.\d/) ){ // lesscss match e.g.: -5px -0.4 etc... only colorize the minus sign
|
120
|
-
//stream.backUp(stream.current().length-1); //commment out these 2 comment if you want the minus sign to be parsed as null -500px
|
121
|
-
//return ret(null, ch);
|
122
|
-
return ret("number", "unit");
|
123
|
-
}else if( inTagsArray(stream.current()) ){ // lesscss match html tags
|
124
|
-
return ret("tag", "tag");
|
125
|
-
}else if( /\/|[\s\)]/.test(stream.peek() || stream.eol() || (stream.eatSpace() && stream.peek() == "/")) && stream.current().indexOf(".") !== -1){
|
126
|
-
if(stream.current().substring(stream.current().length-1,stream.current().length) == "{"){
|
127
|
-
stream.backUp(1);
|
128
|
-
return ret("tag", "tag");
|
129
|
-
}//end if
|
130
|
-
if( (stream.eatSpace() && stream.peek().match(/[{<>.a-zA-Z]/) != null) || stream.eol() )return ret("tag", "tag");//e.g. button.icon-plus
|
131
|
-
return ret("string", "string");//let url(/images/logo.png) without quotes return as string
|
132
|
-
}else if( stream.eol() ){
|
133
|
-
if(stream.current().substring(stream.current().length-1,stream.current().length) == "{")stream.backUp(1);
|
134
|
-
return ret("tag", "tag");
|
135
|
-
}else{
|
136
|
-
return ret("variable", "variable");
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
}
|
141
|
-
|
142
|
-
function tokenSComment(stream, state) {// SComment = Slash comment
|
143
|
-
stream.skipToEnd();
|
144
|
-
state.tokenize = tokenBase;
|
145
|
-
return ret("comment", "comment");
|
146
|
-
}
|
147
|
-
|
148
|
-
function tokenCComment(stream, state) {
|
149
|
-
var maybeEnd = false, ch;
|
150
|
-
while ((ch = stream.next()) != null) {
|
151
|
-
if (maybeEnd && ch == "/") {
|
152
|
-
state.tokenize = tokenBase;
|
153
|
-
break;
|
154
|
-
}
|
155
|
-
maybeEnd = (ch == "*");
|
156
|
-
}
|
157
|
-
return ret("comment", "comment");
|
158
|
-
}
|
159
|
-
|
160
|
-
function tokenSGMLComment(stream, state) {
|
161
|
-
var dashes = 0, ch;
|
162
|
-
while ((ch = stream.next()) != null) {
|
163
|
-
if (dashes >= 2 && ch == ">") {
|
164
|
-
state.tokenize = tokenBase;
|
165
|
-
break;
|
166
|
-
}
|
167
|
-
dashes = (ch == "-") ? dashes + 1 : 0;
|
168
|
-
}
|
169
|
-
return ret("comment", "comment");
|
170
|
-
}
|
171
|
-
|
172
|
-
function tokenString(quote) {
|
173
|
-
return function(stream, state) {
|
174
|
-
var escaped = false, ch;
|
175
|
-
while ((ch = stream.next()) != null) {
|
176
|
-
if (ch == quote && !escaped)
|
177
|
-
break;
|
178
|
-
escaped = !escaped && ch == "\\";
|
179
|
-
}
|
180
|
-
if (!escaped) state.tokenize = tokenBase;
|
181
|
-
return ret("string", "string");
|
182
|
-
};
|
183
|
-
}
|
184
|
-
|
185
|
-
return {
|
186
|
-
startState: function(base) {
|
187
|
-
return {tokenize: tokenBase,
|
188
|
-
baseIndent: base || 0,
|
189
|
-
stack: []};
|
190
|
-
},
|
191
|
-
|
192
|
-
token: function(stream, state) {
|
193
|
-
if (stream.eatSpace()) return null;
|
194
|
-
var style = state.tokenize(stream, state);
|
195
|
-
|
196
|
-
var context = state.stack[state.stack.length-1];
|
197
|
-
if (type == "hash" && context == "rule") style = "atom";
|
198
|
-
else if (style == "variable") {
|
199
|
-
if (context == "rule") style = null; //"tag"
|
200
|
-
else if (!context || context == "@media{"){
|
201
|
-
style = stream.current() == "when" ? "variable" :
|
202
|
-
stream.string.match(/#/g) != undefined ? null :
|
203
|
-
/[\s,|\s\)]/.test(stream.peek()) ? "tag" : null;
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
if (context == "rule" && /^[\{\};]$/.test(type))
|
208
|
-
state.stack.pop();
|
209
|
-
if (type == "{") {
|
210
|
-
if (context == "@media") state.stack[state.stack.length-1] = "@media{";
|
211
|
-
else state.stack.push("{");
|
212
|
-
}
|
213
|
-
else if (type == "}") state.stack.pop();
|
214
|
-
else if (type == "@media") state.stack.push("@media");
|
215
|
-
else if (context == "{" && type != "comment") state.stack.push("rule");
|
216
|
-
return style;
|
217
|
-
},
|
218
|
-
|
219
|
-
indent: function(state, textAfter) {
|
220
|
-
var n = state.stack.length;
|
221
|
-
if (/^\}/.test(textAfter))
|
222
|
-
n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
|
223
|
-
return state.baseIndent + n * indentUnit;
|
224
|
-
},
|
225
|
-
|
226
|
-
electricChars: "}"
|
227
|
-
};
|
228
|
-
});
|
229
|
-
|
230
|
-
CodeMirror.defineMIME("text/x-less", "less");
|
231
|
-
if (!CodeMirror.mimeModes.hasOwnProperty("text/css"))
|
232
|
-
CodeMirror.defineMIME("text/css", "less");
|
@@ -1,72 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Lua mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="lua.js"></script>
|
8
|
-
<link rel="stylesheet" href="../../theme/neat.css">
|
9
|
-
<style>.CodeMirror {border: 1px solid black;}</style>
|
10
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<h1>CodeMirror: Lua mode</h1>
|
14
|
-
<form><textarea id="code" name="code">
|
15
|
-
--[[
|
16
|
-
example useless code to show lua syntax highlighting
|
17
|
-
this is multiline comment
|
18
|
-
]]
|
19
|
-
|
20
|
-
function blahblahblah(x)
|
21
|
-
|
22
|
-
local table = {
|
23
|
-
"asd" = 123,
|
24
|
-
"x" = 0.34,
|
25
|
-
}
|
26
|
-
if x ~= 3 then
|
27
|
-
print( x )
|
28
|
-
elseif x == "string"
|
29
|
-
my_custom_function( 0x34 )
|
30
|
-
else
|
31
|
-
unknown_function( "some string" )
|
32
|
-
end
|
33
|
-
|
34
|
-
--single line comment
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
function blablabla3()
|
39
|
-
|
40
|
-
for k,v in ipairs( table ) do
|
41
|
-
--abcde..
|
42
|
-
y=[=[
|
43
|
-
x=[[
|
44
|
-
x is a multi line string
|
45
|
-
]]
|
46
|
-
but its definition is iside a highest level string!
|
47
|
-
]=]
|
48
|
-
print(" \"\" ")
|
49
|
-
|
50
|
-
s = math.sin( x )
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
</textarea></form>
|
55
|
-
<script>
|
56
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
57
|
-
tabMode: "indent",
|
58
|
-
matchBrackets: true,
|
59
|
-
theme: "neat"
|
60
|
-
});
|
61
|
-
</script>
|
62
|
-
|
63
|
-
<p>Loosely based on Franciszek
|
64
|
-
Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror
|
65
|
-
1 mode</a>. One configuration parameter is
|
66
|
-
supported, <code>specials</code>, to which you can provide an
|
67
|
-
array of strings to have those identifiers highlighted with
|
68
|
-
the <code>lua-special</code> style.</p>
|
69
|
-
<p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p>
|
70
|
-
|
71
|
-
</body>
|
72
|
-
</html>
|
@@ -1,140 +0,0 @@
|
|
1
|
-
// LUA mode. Ported to CodeMirror 2 from Franciszek Wawrzak's
|
2
|
-
// CodeMirror 1 mode.
|
3
|
-
// highlights keywords, strings, comments (no leveling supported! ("[==[")), tokens, basic indenting
|
4
|
-
|
5
|
-
CodeMirror.defineMode("lua", function(config, parserConfig) {
|
6
|
-
var indentUnit = config.indentUnit;
|
7
|
-
|
8
|
-
function prefixRE(words) {
|
9
|
-
return new RegExp("^(?:" + words.join("|") + ")", "i");
|
10
|
-
}
|
11
|
-
function wordRE(words) {
|
12
|
-
return new RegExp("^(?:" + words.join("|") + ")$", "i");
|
13
|
-
}
|
14
|
-
var specials = wordRE(parserConfig.specials || []);
|
15
|
-
|
16
|
-
// long list of standard functions from lua manual
|
17
|
-
var builtins = wordRE([
|
18
|
-
"_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load",
|
19
|
-
"loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require",
|
20
|
-
"select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall",
|
21
|
-
|
22
|
-
"coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield",
|
23
|
-
|
24
|
-
"debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable",
|
25
|
-
"debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable",
|
26
|
-
"debug.setupvalue","debug.traceback",
|
27
|
-
|
28
|
-
"close","flush","lines","read","seek","setvbuf","write",
|
29
|
-
|
30
|
-
"io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin",
|
31
|
-
"io.stdout","io.tmpfile","io.type","io.write",
|
32
|
-
|
33
|
-
"math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg",
|
34
|
-
"math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max",
|
35
|
-
"math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh",
|
36
|
-
"math.sqrt","math.tan","math.tanh",
|
37
|
-
|
38
|
-
"os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale",
|
39
|
-
"os.time","os.tmpname",
|
40
|
-
|
41
|
-
"package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload",
|
42
|
-
"package.seeall",
|
43
|
-
|
44
|
-
"string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub",
|
45
|
-
"string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper",
|
46
|
-
|
47
|
-
"table.concat","table.insert","table.maxn","table.remove","table.sort"
|
48
|
-
]);
|
49
|
-
var keywords = wordRE(["and","break","elseif","false","nil","not","or","return",
|
50
|
-
"true","function", "end", "if", "then", "else", "do",
|
51
|
-
"while", "repeat", "until", "for", "in", "local" ]);
|
52
|
-
|
53
|
-
var indentTokens = wordRE(["function", "if","repeat","do", "\\(", "{"]);
|
54
|
-
var dedentTokens = wordRE(["end", "until", "\\)", "}"]);
|
55
|
-
var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]);
|
56
|
-
|
57
|
-
function readBracket(stream) {
|
58
|
-
var level = 0;
|
59
|
-
while (stream.eat("=")) ++level;
|
60
|
-
stream.eat("[");
|
61
|
-
return level;
|
62
|
-
}
|
63
|
-
|
64
|
-
function normal(stream, state) {
|
65
|
-
var ch = stream.next();
|
66
|
-
if (ch == "-" && stream.eat("-")) {
|
67
|
-
if (stream.eat("["))
|
68
|
-
return (state.cur = bracketed(readBracket(stream), "comment"))(stream, state);
|
69
|
-
stream.skipToEnd();
|
70
|
-
return "comment";
|
71
|
-
}
|
72
|
-
if (ch == "\"" || ch == "'")
|
73
|
-
return (state.cur = string(ch))(stream, state);
|
74
|
-
if (ch == "[" && /[\[=]/.test(stream.peek()))
|
75
|
-
return (state.cur = bracketed(readBracket(stream), "string"))(stream, state);
|
76
|
-
if (/\d/.test(ch)) {
|
77
|
-
stream.eatWhile(/[\w.%]/);
|
78
|
-
return "number";
|
79
|
-
}
|
80
|
-
if (/[\w_]/.test(ch)) {
|
81
|
-
stream.eatWhile(/[\w\\\-_.]/);
|
82
|
-
return "variable";
|
83
|
-
}
|
84
|
-
return null;
|
85
|
-
}
|
86
|
-
|
87
|
-
function bracketed(level, style) {
|
88
|
-
return function(stream, state) {
|
89
|
-
var curlev = null, ch;
|
90
|
-
while ((ch = stream.next()) != null) {
|
91
|
-
if (curlev == null) {if (ch == "]") curlev = 0;}
|
92
|
-
else if (ch == "=") ++curlev;
|
93
|
-
else if (ch == "]" && curlev == level) { state.cur = normal; break; }
|
94
|
-
else curlev = null;
|
95
|
-
}
|
96
|
-
return style;
|
97
|
-
};
|
98
|
-
}
|
99
|
-
|
100
|
-
function string(quote) {
|
101
|
-
return function(stream, state) {
|
102
|
-
var escaped = false, ch;
|
103
|
-
while ((ch = stream.next()) != null) {
|
104
|
-
if (ch == quote && !escaped) break;
|
105
|
-
escaped = !escaped && ch == "\\";
|
106
|
-
}
|
107
|
-
if (!escaped) state.cur = normal;
|
108
|
-
return "string";
|
109
|
-
};
|
110
|
-
}
|
111
|
-
|
112
|
-
return {
|
113
|
-
startState: function(basecol) {
|
114
|
-
return {basecol: basecol || 0, indentDepth: 0, cur: normal};
|
115
|
-
},
|
116
|
-
|
117
|
-
token: function(stream, state) {
|
118
|
-
if (stream.eatSpace()) return null;
|
119
|
-
var style = state.cur(stream, state);
|
120
|
-
var word = stream.current();
|
121
|
-
if (style == "variable") {
|
122
|
-
if (keywords.test(word)) style = "keyword";
|
123
|
-
else if (builtins.test(word)) style = "builtin";
|
124
|
-
else if (specials.test(word)) style = "variable-2";
|
125
|
-
}
|
126
|
-
if ((style != "comment") && (style != "string")){
|
127
|
-
if (indentTokens.test(word)) ++state.indentDepth;
|
128
|
-
else if (dedentTokens.test(word)) --state.indentDepth;
|
129
|
-
}
|
130
|
-
return style;
|
131
|
-
},
|
132
|
-
|
133
|
-
indent: function(state, textAfter) {
|
134
|
-
var closing = dedentPartial.test(textAfter);
|
135
|
-
return state.basecol + indentUnit * (state.indentDepth - (closing ? 1 : 0));
|
136
|
-
}
|
137
|
-
};
|
138
|
-
});
|
139
|
-
|
140
|
-
CodeMirror.defineMIME("text/x-lua", "lua");
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: MySQL mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="mysql.js"></script>
|
8
|
-
<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
9
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<h1>CodeMirror: MySQL mode</h1>
|
13
|
-
<form><textarea id="code" name="code">
|
14
|
-
-- Comment for the code
|
15
|
-
-- MySQL Mode for CodeMirror2 by MySQLTools http://github.com/partydroid/MySQL-Tools
|
16
|
-
SELECT UNIQUE `var1` as `variable`,
|
17
|
-
MAX(`var5`) as `max`,
|
18
|
-
MIN(`var5`) as `min`,
|
19
|
-
STDEV(`var5`) as `dev`
|
20
|
-
FROM `table`
|
21
|
-
|
22
|
-
LEFT JOIN `table2` ON `var2` = `variable`
|
23
|
-
|
24
|
-
ORDER BY `var3` DESC
|
25
|
-
GROUP BY `groupvar`
|
26
|
-
|
27
|
-
LIMIT 0,30;
|
28
|
-
|
29
|
-
</textarea></form>
|
30
|
-
<script>
|
31
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
32
|
-
mode: "text/x-mysql",
|
33
|
-
tabMode: "indent",
|
34
|
-
matchBrackets: true
|
35
|
-
});
|
36
|
-
</script>
|
37
|
-
|
38
|
-
<p><strong>MIME types defined:</strong> <code>text/x-mysql</code>.</p>
|
39
|
-
|
40
|
-
</body>
|
41
|
-
</html>
|
@@ -1,188 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* MySQL Mode for CodeMirror 2 by MySQL-Tools
|
3
|
-
* @author James Thorne (partydroid)
|
4
|
-
* @link http://github.com/partydroid/MySQL-Tools
|
5
|
-
* @link http://mysqltools.org
|
6
|
-
* @version 02/Jan/2012
|
7
|
-
*/
|
8
|
-
CodeMirror.defineMode("mysql", function(config) {
|
9
|
-
var indentUnit = config.indentUnit;
|
10
|
-
var curPunc;
|
11
|
-
|
12
|
-
function wordRegexp(words) {
|
13
|
-
return new RegExp("^(?:" + words.join("|") + ")$", "i");
|
14
|
-
}
|
15
|
-
var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri",
|
16
|
-
"isblank", "isliteral", "union", "a"]);
|
17
|
-
var keywords = wordRegexp([
|
18
|
-
('ACCESSIBLE'),('ALTER'),('AS'),('BEFORE'),('BINARY'),('BY'),('CASE'),('CHARACTER'),('COLUMN'),('CONTINUE'),('CROSS'),('CURRENT_TIMESTAMP'),('DATABASE'),('DAY_MICROSECOND'),('DEC'),('DEFAULT'),
|
19
|
-
('DESC'),('DISTINCT'),('DOUBLE'),('EACH'),('ENCLOSED'),('EXIT'),('FETCH'),('FLOAT8'),('FOREIGN'),('GRANT'),('HIGH_PRIORITY'),('HOUR_SECOND'),('IN'),('INNER'),('INSERT'),('INT2'),('INT8'),
|
20
|
-
('INTO'),('JOIN'),('KILL'),('LEFT'),('LINEAR'),('LOCALTIME'),('LONG'),('LOOP'),('MATCH'),('MEDIUMTEXT'),('MINUTE_SECOND'),('NATURAL'),('NULL'),('OPTIMIZE'),('OR'),('OUTER'),('PRIMARY'),
|
21
|
-
('RANGE'),('READ_WRITE'),('REGEXP'),('REPEAT'),('RESTRICT'),('RIGHT'),('SCHEMAS'),('SENSITIVE'),('SHOW'),('SPECIFIC'),('SQLSTATE'),('SQL_CALC_FOUND_ROWS'),('STARTING'),('TERMINATED'),
|
22
|
-
('TINYINT'),('TRAILING'),('UNDO'),('UNLOCK'),('USAGE'),('UTC_DATE'),('VALUES'),('VARCHARACTER'),('WHERE'),('WRITE'),('ZEROFILL'),('ALL'),('AND'),('ASENSITIVE'),('BIGINT'),('BOTH'),('CASCADE'),
|
23
|
-
('CHAR'),('COLLATE'),('CONSTRAINT'),('CREATE'),('CURRENT_TIME'),('CURSOR'),('DAY_HOUR'),('DAY_SECOND'),('DECLARE'),('DELETE'),('DETERMINISTIC'),('DIV'),('DUAL'),('ELSEIF'),('EXISTS'),('FALSE'),
|
24
|
-
('FLOAT4'),('FORCE'),('FULLTEXT'),('HAVING'),('HOUR_MINUTE'),('IGNORE'),('INFILE'),('INSENSITIVE'),('INT1'),('INT4'),('INTERVAL'),('ITERATE'),('KEYS'),('LEAVE'),('LIMIT'),('LOAD'),('LOCK'),
|
25
|
-
('LONGTEXT'),('MASTER_SSL_VERIFY_SERVER_CERT'),('MEDIUMINT'),('MINUTE_MICROSECOND'),('MODIFIES'),('NO_WRITE_TO_BINLOG'),('ON'),('OPTIONALLY'),('OUT'),('PRECISION'),('PURGE'),('READS'),
|
26
|
-
('REFERENCES'),('RENAME'),('REQUIRE'),('REVOKE'),('SCHEMA'),('SELECT'),('SET'),('SPATIAL'),('SQLEXCEPTION'),('SQL_BIG_RESULT'),('SSL'),('TABLE'),('TINYBLOB'),('TO'),('TRUE'),('UNIQUE'),
|
27
|
-
('UPDATE'),('USING'),('UTC_TIMESTAMP'),('VARCHAR'),('WHEN'),('WITH'),('YEAR_MONTH'),('ADD'),('ANALYZE'),('ASC'),('BETWEEN'),('BLOB'),('CALL'),('CHANGE'),('CHECK'),('CONDITION'),('CONVERT'),
|
28
|
-
('CURRENT_DATE'),('CURRENT_USER'),('DATABASES'),('DAY_MINUTE'),('DECIMAL'),('DELAYED'),('DESCRIBE'),('DISTINCTROW'),('DROP'),('ELSE'),('ESCAPED'),('EXPLAIN'),('FLOAT'),('FOR'),('FROM'),
|
29
|
-
('GROUP'),('HOUR_MICROSECOND'),('IF'),('INDEX'),('INOUT'),('INT'),('INT3'),('INTEGER'),('IS'),('KEY'),('LEADING'),('LIKE'),('LINES'),('LOCALTIMESTAMP'),('LONGBLOB'),('LOW_PRIORITY'),
|
30
|
-
('MEDIUMBLOB'),('MIDDLEINT'),('MOD'),('NOT'),('NUMERIC'),('OPTION'),('ORDER'),('OUTFILE'),('PROCEDURE'),('READ'),('REAL'),('RELEASE'),('REPLACE'),('RETURN'),('RLIKE'),('SECOND_MICROSECOND'),
|
31
|
-
('SEPARATOR'),('SMALLINT'),('SQL'),('SQLWARNING'),('SQL_SMALL_RESULT'),('STRAIGHT_JOIN'),('THEN'),('TINYTEXT'),('TRIGGER'),('UNION'),('UNSIGNED'),('USE'),('UTC_TIME'),('VARBINARY'),('VARYING'),
|
32
|
-
('WHILE'),('XOR'),('FULL'),('COLUMNS'),('MIN'),('MAX'),('STDEV'),('COUNT')
|
33
|
-
]);
|
34
|
-
var operatorChars = /[*+\-<>=&|]/;
|
35
|
-
|
36
|
-
function tokenBase(stream, state) {
|
37
|
-
var ch = stream.next();
|
38
|
-
curPunc = null;
|
39
|
-
if (ch == "$" || ch == "?") {
|
40
|
-
stream.match(/^[\w\d]*/);
|
41
|
-
return "variable-2";
|
42
|
-
}
|
43
|
-
else if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) {
|
44
|
-
stream.match(/^[^\s\u00a0>]*>?/);
|
45
|
-
return "atom";
|
46
|
-
}
|
47
|
-
else if (ch == "\"" || ch == "'") {
|
48
|
-
state.tokenize = tokenLiteral(ch);
|
49
|
-
return state.tokenize(stream, state);
|
50
|
-
}
|
51
|
-
else if (ch == "`") {
|
52
|
-
state.tokenize = tokenOpLiteral(ch);
|
53
|
-
return state.tokenize(stream, state);
|
54
|
-
}
|
55
|
-
else if (/[{}\(\),\.;\[\]]/.test(ch)) {
|
56
|
-
curPunc = ch;
|
57
|
-
return null;
|
58
|
-
}
|
59
|
-
else if (ch == "-") {
|
60
|
-
ch2 = stream.next();
|
61
|
-
if(ch2=="-")
|
62
|
-
{
|
63
|
-
stream.skipToEnd();
|
64
|
-
return "comment";
|
65
|
-
}
|
66
|
-
|
67
|
-
}
|
68
|
-
else if (operatorChars.test(ch)) {
|
69
|
-
stream.eatWhile(operatorChars);
|
70
|
-
return null;
|
71
|
-
}
|
72
|
-
else if (ch == ":") {
|
73
|
-
stream.eatWhile(/[\w\d\._\-]/);
|
74
|
-
return "atom";
|
75
|
-
}
|
76
|
-
else {
|
77
|
-
stream.eatWhile(/[_\w\d]/);
|
78
|
-
if (stream.eat(":")) {
|
79
|
-
stream.eatWhile(/[\w\d_\-]/);
|
80
|
-
return "atom";
|
81
|
-
}
|
82
|
-
var word = stream.current(), type;
|
83
|
-
if (ops.test(word))
|
84
|
-
return null;
|
85
|
-
else if (keywords.test(word))
|
86
|
-
return "keyword";
|
87
|
-
else
|
88
|
-
return "variable";
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
function tokenLiteral(quote) {
|
93
|
-
return function(stream, state) {
|
94
|
-
var escaped = false, ch;
|
95
|
-
while ((ch = stream.next()) != null) {
|
96
|
-
if (ch == quote && !escaped) {
|
97
|
-
state.tokenize = tokenBase;
|
98
|
-
break;
|
99
|
-
}
|
100
|
-
escaped = !escaped && ch == "\\";
|
101
|
-
}
|
102
|
-
return "string";
|
103
|
-
};
|
104
|
-
}
|
105
|
-
|
106
|
-
function tokenOpLiteral(quote) {
|
107
|
-
return function(stream, state) {
|
108
|
-
var escaped = false, ch;
|
109
|
-
while ((ch = stream.next()) != null) {
|
110
|
-
if (ch == quote && !escaped) {
|
111
|
-
state.tokenize = tokenBase;
|
112
|
-
break;
|
113
|
-
}
|
114
|
-
escaped = !escaped && ch == "\\";
|
115
|
-
}
|
116
|
-
return "variable-2";
|
117
|
-
};
|
118
|
-
}
|
119
|
-
|
120
|
-
|
121
|
-
function pushContext(state, type, col) {
|
122
|
-
state.context = {prev: state.context, indent: state.indent, col: col, type: type};
|
123
|
-
}
|
124
|
-
function popContext(state) {
|
125
|
-
state.indent = state.context.indent;
|
126
|
-
state.context = state.context.prev;
|
127
|
-
}
|
128
|
-
|
129
|
-
return {
|
130
|
-
startState: function(base) {
|
131
|
-
return {tokenize: tokenBase,
|
132
|
-
context: null,
|
133
|
-
indent: 0,
|
134
|
-
col: 0};
|
135
|
-
},
|
136
|
-
|
137
|
-
token: function(stream, state) {
|
138
|
-
if (stream.sol()) {
|
139
|
-
if (state.context && state.context.align == null) state.context.align = false;
|
140
|
-
state.indent = stream.indentation();
|
141
|
-
}
|
142
|
-
if (stream.eatSpace()) return null;
|
143
|
-
var style = state.tokenize(stream, state);
|
144
|
-
|
145
|
-
if (style != "comment" && state.context && state.context.align == null && state.context.type != "pattern") {
|
146
|
-
state.context.align = true;
|
147
|
-
}
|
148
|
-
|
149
|
-
if (curPunc == "(") pushContext(state, ")", stream.column());
|
150
|
-
else if (curPunc == "[") pushContext(state, "]", stream.column());
|
151
|
-
else if (curPunc == "{") pushContext(state, "}", stream.column());
|
152
|
-
else if (/[\]\}\)]/.test(curPunc)) {
|
153
|
-
while (state.context && state.context.type == "pattern") popContext(state);
|
154
|
-
if (state.context && curPunc == state.context.type) popContext(state);
|
155
|
-
}
|
156
|
-
else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state);
|
157
|
-
else if (/atom|string|variable/.test(style) && state.context) {
|
158
|
-
if (/[\}\]]/.test(state.context.type))
|
159
|
-
pushContext(state, "pattern", stream.column());
|
160
|
-
else if (state.context.type == "pattern" && !state.context.align) {
|
161
|
-
state.context.align = true;
|
162
|
-
state.context.col = stream.column();
|
163
|
-
}
|
164
|
-
}
|
165
|
-
|
166
|
-
return style;
|
167
|
-
},
|
168
|
-
|
169
|
-
indent: function(state, textAfter) {
|
170
|
-
var firstChar = textAfter && textAfter.charAt(0);
|
171
|
-
var context = state.context;
|
172
|
-
if (/[\]\}]/.test(firstChar))
|
173
|
-
while (context && context.type == "pattern") context = context.prev;
|
174
|
-
|
175
|
-
var closing = context && firstChar == context.type;
|
176
|
-
if (!context)
|
177
|
-
return 0;
|
178
|
-
else if (context.type == "pattern")
|
179
|
-
return context.col;
|
180
|
-
else if (context.align)
|
181
|
-
return context.col + (closing ? 0 : 1);
|
182
|
-
else
|
183
|
-
return context.indent + (closing ? 0 : indentUnit);
|
184
|
-
}
|
185
|
-
};
|
186
|
-
});
|
187
|
-
|
188
|
-
CodeMirror.defineMIME("text/x-mysql", "mysql");
|