wallaby 7.0.0.beta1 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/wallaby/core.js.map +3 -3
- data/app/assets/stylesheets/wallaby/base/_override_vars.scss +3 -0
- data/app/assets/stylesheets/wallaby/base.scss +2 -1
- data/lib/wallaby/version.rb +1 -1
- metadata +21 -434
- data/config/brakeman.ignore +0 -26
- data/config/massa.yml +0 -45
- data/config/rails_best_practices.yml +0 -42
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/comment/comment.js +0 -209
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/comment/continuecomment.js +0 -113
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/dialog/dialog.css +0 -32
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/dialog/dialog.js +0 -161
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/autorefresh.js +0 -47
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/fullscreen.css +0 -6
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/fullscreen.js +0 -41
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/panel.js +0 -127
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/placeholder.js +0 -63
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/display/rulers.js +0 -51
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/closebrackets.js +0 -191
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/closetag.js +0 -184
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/continuelist.js +0 -99
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/matchbrackets.js +0 -150
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/matchtags.js +0 -66
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/edit/trailingspace.js +0 -27
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/brace-fold.js +0 -105
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/comment-fold.js +0 -59
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/foldcode.js +0 -152
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/foldgutter.css +0 -20
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/foldgutter.js +0 -163
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/indent-fold.js +0 -48
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/markdown-fold.js +0 -49
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/fold/xml-fold.js +0 -184
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/anyword-hint.js +0 -41
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/css-hint.js +0 -60
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/html-hint.js +0 -350
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/javascript-hint.js +0 -157
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/show-hint.css +0 -36
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/show-hint.js +0 -460
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/sql-hint.js +0 -304
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/hint/xml-hint.js +0 -123
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/coffeescript-lint.js +0 -47
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/css-lint.js +0 -40
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/html-lint.js +0 -59
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/javascript-lint.js +0 -63
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/json-lint.js +0 -40
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/lint.css +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/lint.js +0 -252
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/lint/yaml-lint.js +0 -41
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/merge/merge.css +0 -119
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/merge/merge.js +0 -1002
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/mode/loadmode.js +0 -64
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/mode/multiplex.js +0 -131
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/mode/multiplex_test.js +0 -33
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/mode/overlay.js +0 -90
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/mode/simple.js +0 -216
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/runmode/colorize.js +0 -40
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/runmode/runmode-standalone.js +0 -158
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/runmode/runmode.js +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/runmode/runmode.node.js +0 -197
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/scroll/annotatescrollbar.js +0 -122
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/scroll/scrollpastend.js +0 -48
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/scroll/simplescrollbars.css +0 -66
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/scroll/simplescrollbars.js +0 -152
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/jump-to-line.js +0 -50
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/match-highlighter.js +0 -165
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/matchesonscrollbar.css +0 -8
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/matchesonscrollbar.js +0 -97
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/search.js +0 -260
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/search/searchcursor.js +0 -293
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/selection/active-line.js +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/selection/mark-selection.js +0 -119
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/selection/selection-pointer.js +0 -98
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/tern/tern.css +0 -87
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/tern/tern.js +0 -718
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/tern/worker.js +0 -44
- data/vendor/assets/javascripts/codemirror/5.49.2/addon/wrap/hardwrap.js +0 -145
- data/vendor/assets/javascripts/codemirror/5.49.2/lib/codemirror.js +0 -9783
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/apl/apl.js +0 -174
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/apl/index.html +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asciiarmor/asciiarmor.js +0 -74
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asciiarmor/index.html +0 -46
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asn.1/asn.1.js +0 -204
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asn.1/index.html +0 -78
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asterisk/asterisk.js +0 -220
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/asterisk/index.html +0 -155
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/brainfuck/brainfuck.js +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/brainfuck/index.html +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clike/clike.js +0 -935
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clike/index.html +0 -380
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clike/scala.html +0 -767
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clike/test.js +0 -165
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clojure/clojure.js +0 -292
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clojure/index.html +0 -95
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/clojure/test.js +0 -384
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cmake/cmake.js +0 -97
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cmake/index.html +0 -129
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cobol/cobol.js +0 -255
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cobol/index.html +0 -210
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/coffeescript/coffeescript.js +0 -359
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/coffeescript/index.html +0 -740
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/commonlisp/commonlisp.js +0 -124
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/commonlisp/index.html +0 -177
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/crystal/crystal.js +0 -433
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/crystal/index.html +0 -116
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/css.js +0 -831
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/gss.html +0 -104
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/gss_test.js +0 -17
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/index.html +0 -75
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/less.html +0 -152
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/less_test.js +0 -54
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/scss.html +0 -158
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/scss_test.js +0 -110
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/css/test.js +0 -217
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/cypher.js +0 -150
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/index.html +0 -64
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/cypher/test.js +0 -37
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/d/d.js +0 -223
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/d/index.html +0 -273
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/d/test.js +0 -11
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dart/dart.js +0 -166
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dart/index.html +0 -71
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/diff/diff.js +0 -47
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/diff/index.html +0 -117
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/django/django.js +0 -356
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/django/index.html +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dockerfile/dockerfile.js +0 -211
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dockerfile/index.html +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dockerfile/test.js +0 -128
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dtd/dtd.js +0 -142
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dtd/index.html +0 -89
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dylan/dylan.js +0 -352
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dylan/index.html +0 -407
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/dylan/test.js +0 -88
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ebnf/ebnf.js +0 -195
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ebnf/index.html +0 -102
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ecl/ecl.js +0 -206
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ecl/index.html +0 -52
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/eiffel/eiffel.js +0 -160
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/eiffel/index.html +0 -429
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/elm/elm.js +0 -205
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/elm/index.html +0 -61
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/erlang/erlang.js +0 -619
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/erlang/index.html +0 -76
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/factor/factor.js +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/factor/index.html +0 -77
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/fcl/fcl.js +0 -173
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/fcl/index.html +0 -108
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/forth/forth.js +0 -180
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/forth/index.html +0 -75
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/fortran/fortran.js +0 -188
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/fortran/index.html +0 -81
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gas/gas.js +0 -345
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gas/index.html +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gfm/gfm.js +0 -129
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gfm/index.html +0 -136
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gfm/test.js +0 -198
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gherkin/gherkin.js +0 -178
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/gherkin/index.html +0 -48
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/go/go.js +0 -187
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/go/index.html +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/groovy/groovy.js +0 -233
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/groovy/index.html +0 -84
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haml/haml.js +0 -161
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haml/index.html +0 -79
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haml/test.js +0 -97
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/handlebars/handlebars.js +0 -70
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/handlebars/index.html +0 -82
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haskell/haskell.js +0 -268
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haskell/index.html +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haskell-literate/haskell-literate.js +0 -43
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haskell-literate/index.html +0 -282
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haxe/haxe.js +0 -515
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/haxe/index.html +0 -124
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/htmlembedded/htmlembedded.js +0 -37
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/htmlembedded/index.html +0 -60
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/htmlmixed/htmlmixed.js +0 -152
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/htmlmixed/index.html +0 -100
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/http/http.js +0 -113
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/http/index.html +0 -45
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/idl/idl.js +0 -290
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/idl/index.html +0 -65
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/index.html +0 -165
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/javascript/index.html +0 -114
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/javascript/javascript.js +0 -930
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/javascript/json-ld.html +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/javascript/test.js +0 -513
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/javascript/typescript.html +0 -62
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/jinja2/index.html +0 -54
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/jinja2/jinja2.js +0 -146
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/jsx/index.html +0 -89
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/jsx/jsx.js +0 -148
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/jsx/test.js +0 -91
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/julia/index.html +0 -196
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/julia/julia.js +0 -429
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/livescript/index.html +0 -459
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/livescript/livescript.js +0 -280
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/lua/index.html +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/lua/lua.js +0 -159
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/markdown/index.html +0 -412
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/markdown/markdown.js +0 -883
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/markdown/test.js +0 -1317
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mathematica/index.html +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mathematica/mathematica.js +0 -176
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mbox/index.html +0 -44
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mbox/mbox.js +0 -129
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/meta.js +0 -219
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mirc/index.html +0 -161
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mirc/mirc.js +0 -193
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mllike/index.html +0 -198
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mllike/mllike.js +0 -359
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/modelica/index.html +0 -67
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/modelica/modelica.js +0 -245
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mscgen/index.html +0 -151
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mscgen/mscgen.js +0 -175
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mscgen/mscgen_test.js +0 -84
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mscgen/msgenny_test.js +0 -77
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mscgen/xu_test.js +0 -87
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mumps/index.html +0 -85
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/mumps/mumps.js +0 -148
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/nginx/index.html +0 -181
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/nginx/nginx.js +0 -178
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/nsis/index.html +0 -80
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/nsis/nsis.js +0 -95
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ntriples/index.html +0 -70
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ntriples/ntriples.js +0 -195
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/octave/index.html +0 -84
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/octave/octave.js +0 -139
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/oz/index.html +0 -59
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/oz/oz.js +0 -252
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pascal/index.html +0 -61
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pascal/pascal.js +0 -121
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pegjs/index.html +0 -66
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pegjs/pegjs.js +0 -114
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/perl/index.html +0 -75
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/perl/perl.js +0 -837
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/php/index.html +0 -64
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/php/php.js +0 -234
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/php/test.js +0 -154
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pig/index.html +0 -53
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pig/pig.js +0 -178
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/powershell/index.html +0 -205
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/powershell/powershell.js +0 -398
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/powershell/test.js +0 -74
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/properties/index.html +0 -53
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/properties/properties.js +0 -78
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/protobuf/index.html +0 -104
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/protobuf/protobuf.js +0 -69
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pug/index.html +0 -70
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/pug/pug.js +0 -591
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/puppet/index.html +0 -121
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/puppet/puppet.js +0 -220
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/python/index.html +0 -207
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/python/python.js +0 -399
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/python/test.js +0 -44
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/q/index.html +0 -144
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/q/q.js +0 -139
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/r/index.html +0 -88
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/r/r.js +0 -190
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rpm/changes/index.html +0 -66
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rpm/index.html +0 -149
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rpm/rpm.js +0 -109
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rst/index.html +0 -535
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rst/rst.js +0 -557
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/index.html +0 -183
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/ruby.js +0 -298
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ruby/test.js +0 -23
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rust/index.html +0 -64
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rust/rust.js +0 -72
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/rust/test.js +0 -39
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sas/index.html +0 -81
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sas/sas.js +0 -303
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sass/index.html +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sass/sass.js +0 -454
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sass/test.js +0 -122
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/scheme/index.html +0 -77
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/scheme/scheme.js +0 -265
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/shell/index.html +0 -66
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/shell/shell.js +0 -152
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/shell/test.js +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sieve/index.html +0 -93
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sieve/sieve.js +0 -193
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/slim/index.html +0 -96
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/slim/slim.js +0 -575
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/slim/test.js +0 -96
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/smalltalk/index.html +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/smalltalk/smalltalk.js +0 -168
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/smarty/index.html +0 -138
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/smarty/smarty.js +0 -225
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/solr/index.html +0 -57
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/solr/solr.js +0 -104
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/soy/index.html +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/soy/soy.js +0 -437
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/soy/test.js +0 -204
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sparql/index.html +0 -61
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sparql/sparql.js +0 -180
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/spreadsheet/index.html +0 -42
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/spreadsheet/spreadsheet.js +0 -112
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sql/index.html +0 -89
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/sql/sql.js +0 -494
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/stex/index.html +0 -116
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/stex/stex.js +0 -264
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/stex/test.js +0 -132
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/stylus/index.html +0 -106
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/stylus/stylus.js +0 -771
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/swift/index.html +0 -70
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/swift/swift.js +0 -223
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/swift/test.js +0 -162
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tcl/index.html +0 -142
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tcl/tcl.js +0 -139
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/textile/index.html +0 -191
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/textile/test.js +0 -417
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/textile/textile.js +0 -469
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiddlywiki/index.html +0 -154
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiddlywiki/tiddlywiki.js +0 -308
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiki/index.html +0 -95
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiki/tiki.css +0 -26
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tiki/tiki.js +0 -312
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/toml/index.html +0 -73
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/toml/toml.js +0 -88
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tornado/index.html +0 -63
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/tornado/tornado.js +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/troff/index.html +0 -146
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/troff/troff.js +0 -84
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ttcn/index.html +0 -119
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ttcn/ttcn.js +0 -283
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ttcn-cfg/index.html +0 -116
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/ttcn-cfg/ttcn-cfg.js +0 -214
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/turtle/index.html +0 -51
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/turtle/turtle.js +0 -162
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/twig/index.html +0 -45
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/twig/twig.js +0 -141
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vb/index.html +0 -49
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vb/vb.js +0 -275
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vbscript/index.html +0 -55
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vbscript/vbscript.js +0 -350
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/velocity/index.html +0 -120
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/velocity/velocity.js +0 -201
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/verilog/index.html +0 -120
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/verilog/test.js +0 -273
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/verilog/verilog.js +0 -675
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vhdl/index.html +0 -95
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vhdl/vhdl.js +0 -189
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vue/index.html +0 -69
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/vue/vue.js +0 -77
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/webidl/index.html +0 -71
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/webidl/webidl.js +0 -195
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xml/index.html +0 -61
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xml/test.js +0 -51
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xml/xml.js +0 -413
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xquery/index.html +0 -211
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xquery/test.js +0 -67
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/xquery/xquery.js +0 -448
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yacas/index.html +0 -87
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yacas/yacas.js +0 -204
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yaml/index.html +0 -80
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yaml/yaml.js +0 -120
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yaml-frontmatter/index.html +0 -121
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/yaml-frontmatter/yaml-frontmatter.js +0 -68
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/z80/index.html +0 -53
- data/vendor/assets/javascripts/codemirror/5.49.2/mode/z80/z80.js +0 -116
- data/vendor/assets/stylesheets/codemirror/5.49.2/lib/codemirror.css +0 -349
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/3024-day.css +0 -41
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/3024-night.css +0 -39
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/abcdef.css +0 -32
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/ambiance-mobile.css +0 -5
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/ambiance.css +0 -74
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/base16-dark.css +0 -38
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/base16-light.css +0 -38
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/bespin.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/blackboard.css +0 -32
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/cobalt.css +0 -25
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/colorforth.css +0 -33
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/darcula.css +0 -53
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/dracula.css +0 -40
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/duotone-dark.css +0 -35
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/duotone-light.css +0 -36
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/eclipse.css +0 -23
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/elegant.css +0 -13
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/erlang-dark.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/gruvbox-dark.css +0 -37
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/hopscotch.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/icecoder.css +0 -43
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/idea.css +0 -42
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/isotope.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/lesser-dark.css +0 -47
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/liquibyte.css +0 -95
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/lucario.css +0 -37
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/material-darker.css +0 -135
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/material-ocean.css +0 -135
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/material-palenight.css +0 -135
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/material.css +0 -135
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/mbo.css +0 -37
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/mdn-like.css +0 -46
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/midnight.css +0 -39
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/monokai.css +0 -41
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/moxer.css +0 -143
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/neat.css +0 -12
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/neo.css +0 -43
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/night.css +0 -27
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/nord.css +0 -42
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/oceanic-next.css +0 -44
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/panda-syntax.css +0 -85
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/paraiso-dark.css +0 -38
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/paraiso-light.css +0 -38
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/pastel-on-dark.css +0 -52
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/railscasts.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/rubyblue.css +0 -25
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/seti.css +0 -44
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/shadowfox.css +0 -52
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/solarized.css +0 -168
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/ssms.css +0 -16
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/the-matrix.css +0 -30
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/tomorrow-night-bright.css +0 -35
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/tomorrow-night-eighties.css +0 -38
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/ttcn.css +0 -64
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/twilight.css +0 -32
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/vibrant-ink.css +0 -34
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/xq-dark.css +0 -53
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/xq-light.css +0 -43
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/yeti.css +0 -44
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/yonce.css +0 -59
- data/vendor/assets/stylesheets/codemirror/5.49.2/theme/zenburn.css +0 -37
@@ -1,265 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Author: Koh Zi Han, based on implementation by Koh Zi Chun
|
6
|
-
*/
|
7
|
-
|
8
|
-
(function(mod) {
|
9
|
-
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
10
|
-
mod(require("../../lib/codemirror"));
|
11
|
-
else if (typeof define == "function" && define.amd) // AMD
|
12
|
-
define(["../../lib/codemirror"], mod);
|
13
|
-
else // Plain browser env
|
14
|
-
mod(CodeMirror);
|
15
|
-
})(function(CodeMirror) {
|
16
|
-
"use strict";
|
17
|
-
|
18
|
-
CodeMirror.defineMode("scheme", function () {
|
19
|
-
var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
|
20
|
-
ATOM = "atom", NUMBER = "number", BRACKET = "bracket";
|
21
|
-
var INDENT_WORD_SKIP = 2;
|
22
|
-
|
23
|
-
function makeKeywords(str) {
|
24
|
-
var obj = {}, words = str.split(" ");
|
25
|
-
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
26
|
-
return obj;
|
27
|
-
}
|
28
|
-
|
29
|
-
var keywords = makeKeywords("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?");
|
30
|
-
var indentKeys = makeKeywords("define let letrec let* lambda");
|
31
|
-
|
32
|
-
function stateStack(indent, type, prev) { // represents a state stack object
|
33
|
-
this.indent = indent;
|
34
|
-
this.type = type;
|
35
|
-
this.prev = prev;
|
36
|
-
}
|
37
|
-
|
38
|
-
function pushStack(state, indent, type) {
|
39
|
-
state.indentStack = new stateStack(indent, type, state.indentStack);
|
40
|
-
}
|
41
|
-
|
42
|
-
function popStack(state) {
|
43
|
-
state.indentStack = state.indentStack.prev;
|
44
|
-
}
|
45
|
-
|
46
|
-
var binaryMatcher = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i);
|
47
|
-
var octalMatcher = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i);
|
48
|
-
var hexMatcher = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i);
|
49
|
-
var decimalMatcher = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);
|
50
|
-
|
51
|
-
function isBinaryNumber (stream) {
|
52
|
-
return stream.match(binaryMatcher);
|
53
|
-
}
|
54
|
-
|
55
|
-
function isOctalNumber (stream) {
|
56
|
-
return stream.match(octalMatcher);
|
57
|
-
}
|
58
|
-
|
59
|
-
function isDecimalNumber (stream, backup) {
|
60
|
-
if (backup === true) {
|
61
|
-
stream.backUp(1);
|
62
|
-
}
|
63
|
-
return stream.match(decimalMatcher);
|
64
|
-
}
|
65
|
-
|
66
|
-
function isHexNumber (stream) {
|
67
|
-
return stream.match(hexMatcher);
|
68
|
-
}
|
69
|
-
|
70
|
-
return {
|
71
|
-
startState: function () {
|
72
|
-
return {
|
73
|
-
indentStack: null,
|
74
|
-
indentation: 0,
|
75
|
-
mode: false,
|
76
|
-
sExprComment: false,
|
77
|
-
sExprQuote: false
|
78
|
-
};
|
79
|
-
},
|
80
|
-
|
81
|
-
token: function (stream, state) {
|
82
|
-
if (state.indentStack == null && stream.sol()) {
|
83
|
-
// update indentation, but only if indentStack is empty
|
84
|
-
state.indentation = stream.indentation();
|
85
|
-
}
|
86
|
-
|
87
|
-
// skip spaces
|
88
|
-
if (stream.eatSpace()) {
|
89
|
-
return null;
|
90
|
-
}
|
91
|
-
var returnType = null;
|
92
|
-
|
93
|
-
switch(state.mode){
|
94
|
-
case "string": // multi-line string parsing mode
|
95
|
-
var next, escaped = false;
|
96
|
-
while ((next = stream.next()) != null) {
|
97
|
-
if (next == "\"" && !escaped) {
|
98
|
-
|
99
|
-
state.mode = false;
|
100
|
-
break;
|
101
|
-
}
|
102
|
-
escaped = !escaped && next == "\\";
|
103
|
-
}
|
104
|
-
returnType = STRING; // continue on in scheme-string mode
|
105
|
-
break;
|
106
|
-
case "comment": // comment parsing mode
|
107
|
-
var next, maybeEnd = false;
|
108
|
-
while ((next = stream.next()) != null) {
|
109
|
-
if (next == "#" && maybeEnd) {
|
110
|
-
|
111
|
-
state.mode = false;
|
112
|
-
break;
|
113
|
-
}
|
114
|
-
maybeEnd = (next == "|");
|
115
|
-
}
|
116
|
-
returnType = COMMENT;
|
117
|
-
break;
|
118
|
-
case "s-expr-comment": // s-expr commenting mode
|
119
|
-
state.mode = false;
|
120
|
-
if(stream.peek() == "(" || stream.peek() == "["){
|
121
|
-
// actually start scheme s-expr commenting mode
|
122
|
-
state.sExprComment = 0;
|
123
|
-
}else{
|
124
|
-
// if not we just comment the entire of the next token
|
125
|
-
stream.eatWhile(/[^\s\(\)\[\]]/); // eat symbol atom
|
126
|
-
returnType = COMMENT;
|
127
|
-
break;
|
128
|
-
}
|
129
|
-
default: // default parsing mode
|
130
|
-
var ch = stream.next();
|
131
|
-
|
132
|
-
if (ch == "\"") {
|
133
|
-
state.mode = "string";
|
134
|
-
returnType = STRING;
|
135
|
-
|
136
|
-
} else if (ch == "'") {
|
137
|
-
if (stream.peek() == "(" || stream.peek() == "["){
|
138
|
-
if (typeof state.sExprQuote != "number") {
|
139
|
-
state.sExprQuote = 0;
|
140
|
-
} // else already in a quoted expression
|
141
|
-
returnType = ATOM;
|
142
|
-
} else {
|
143
|
-
stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);
|
144
|
-
returnType = ATOM;
|
145
|
-
}
|
146
|
-
} else if (ch == '#') {
|
147
|
-
if (stream.eat("|")) { // Multi-line comment
|
148
|
-
state.mode = "comment"; // toggle to comment mode
|
149
|
-
returnType = COMMENT;
|
150
|
-
} else if (stream.eat(/[tf]/i)) { // #t/#f (atom)
|
151
|
-
returnType = ATOM;
|
152
|
-
} else if (stream.eat(';')) { // S-Expr comment
|
153
|
-
state.mode = "s-expr-comment";
|
154
|
-
returnType = COMMENT;
|
155
|
-
} else {
|
156
|
-
var numTest = null, hasExactness = false, hasRadix = true;
|
157
|
-
if (stream.eat(/[ei]/i)) {
|
158
|
-
hasExactness = true;
|
159
|
-
} else {
|
160
|
-
stream.backUp(1); // must be radix specifier
|
161
|
-
}
|
162
|
-
if (stream.match(/^#b/i)) {
|
163
|
-
numTest = isBinaryNumber;
|
164
|
-
} else if (stream.match(/^#o/i)) {
|
165
|
-
numTest = isOctalNumber;
|
166
|
-
} else if (stream.match(/^#x/i)) {
|
167
|
-
numTest = isHexNumber;
|
168
|
-
} else if (stream.match(/^#d/i)) {
|
169
|
-
numTest = isDecimalNumber;
|
170
|
-
} else if (stream.match(/^[-+0-9.]/, false)) {
|
171
|
-
hasRadix = false;
|
172
|
-
numTest = isDecimalNumber;
|
173
|
-
// re-consume the intial # if all matches failed
|
174
|
-
} else if (!hasExactness) {
|
175
|
-
stream.eat('#');
|
176
|
-
}
|
177
|
-
if (numTest != null) {
|
178
|
-
if (hasRadix && !hasExactness) {
|
179
|
-
// consume optional exactness after radix
|
180
|
-
stream.match(/^#[ei]/i);
|
181
|
-
}
|
182
|
-
if (numTest(stream))
|
183
|
-
returnType = NUMBER;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
} else if (/^[-+0-9.]/.test(ch) && isDecimalNumber(stream, true)) { // match non-prefixed number, must be decimal
|
187
|
-
returnType = NUMBER;
|
188
|
-
} else if (ch == ";") { // comment
|
189
|
-
stream.skipToEnd(); // rest of the line is a comment
|
190
|
-
returnType = COMMENT;
|
191
|
-
} else if (ch == "(" || ch == "[") {
|
192
|
-
var keyWord = ''; var indentTemp = stream.column(), letter;
|
193
|
-
/**
|
194
|
-
Either
|
195
|
-
(indent-word ..
|
196
|
-
(non-indent-word ..
|
197
|
-
(;something else, bracket, etc.
|
198
|
-
*/
|
199
|
-
|
200
|
-
while ((letter = stream.eat(/[^\s\(\[\;\)\]]/)) != null) {
|
201
|
-
keyWord += letter;
|
202
|
-
}
|
203
|
-
|
204
|
-
if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word
|
205
|
-
|
206
|
-
pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);
|
207
|
-
} else { // non-indent word
|
208
|
-
// we continue eating the spaces
|
209
|
-
stream.eatSpace();
|
210
|
-
if (stream.eol() || stream.peek() == ";") {
|
211
|
-
// nothing significant after
|
212
|
-
// we restart indentation 1 space after
|
213
|
-
pushStack(state, indentTemp + 1, ch);
|
214
|
-
} else {
|
215
|
-
pushStack(state, indentTemp + stream.current().length, ch); // else we match
|
216
|
-
}
|
217
|
-
}
|
218
|
-
stream.backUp(stream.current().length - 1); // undo all the eating
|
219
|
-
|
220
|
-
if(typeof state.sExprComment == "number") state.sExprComment++;
|
221
|
-
if(typeof state.sExprQuote == "number") state.sExprQuote++;
|
222
|
-
|
223
|
-
returnType = BRACKET;
|
224
|
-
} else if (ch == ")" || ch == "]") {
|
225
|
-
returnType = BRACKET;
|
226
|
-
if (state.indentStack != null && state.indentStack.type == (ch == ")" ? "(" : "[")) {
|
227
|
-
popStack(state);
|
228
|
-
|
229
|
-
if(typeof state.sExprComment == "number"){
|
230
|
-
if(--state.sExprComment == 0){
|
231
|
-
returnType = COMMENT; // final closing bracket
|
232
|
-
state.sExprComment = false; // turn off s-expr commenting mode
|
233
|
-
}
|
234
|
-
}
|
235
|
-
if(typeof state.sExprQuote == "number"){
|
236
|
-
if(--state.sExprQuote == 0){
|
237
|
-
returnType = ATOM; // final closing bracket
|
238
|
-
state.sExprQuote = false; // turn off s-expr quote mode
|
239
|
-
}
|
240
|
-
}
|
241
|
-
}
|
242
|
-
} else {
|
243
|
-
stream.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);
|
244
|
-
|
245
|
-
if (keywords && keywords.propertyIsEnumerable(stream.current())) {
|
246
|
-
returnType = BUILTIN;
|
247
|
-
} else returnType = "variable";
|
248
|
-
}
|
249
|
-
}
|
250
|
-
return (typeof state.sExprComment == "number") ? COMMENT : ((typeof state.sExprQuote == "number") ? ATOM : returnType);
|
251
|
-
},
|
252
|
-
|
253
|
-
indent: function (state) {
|
254
|
-
if (state.indentStack == null) return state.indentation;
|
255
|
-
return state.indentStack.indent;
|
256
|
-
},
|
257
|
-
|
258
|
-
closeBrackets: {pairs: "()[]{}\"\""},
|
259
|
-
lineComment: ";;"
|
260
|
-
};
|
261
|
-
});
|
262
|
-
|
263
|
-
CodeMirror.defineMIME("text/x-scheme", "scheme");
|
264
|
-
|
265
|
-
});
|
@@ -1,66 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
|
3
|
-
<title>CodeMirror: Shell mode</title>
|
4
|
-
<meta charset="utf-8"/>
|
5
|
-
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
-
|
7
|
-
<link rel=stylesheet href=../../lib/codemirror.css>
|
8
|
-
<script src=../../lib/codemirror.js></script>
|
9
|
-
<script src="../../addon/edit/matchbrackets.js"></script>
|
10
|
-
<script src=shell.js></script>
|
11
|
-
<style type=text/css>
|
12
|
-
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
13
|
-
</style>
|
14
|
-
<div id=nav>
|
15
|
-
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
|
16
|
-
|
17
|
-
<ul>
|
18
|
-
<li><a href="../../index.html">Home</a>
|
19
|
-
<li><a href="../../doc/manual.html">Manual</a>
|
20
|
-
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
21
|
-
</ul>
|
22
|
-
<ul>
|
23
|
-
<li><a href="../index.html">Language modes</a>
|
24
|
-
<li><a class=active href="#">Shell</a>
|
25
|
-
</ul>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<article>
|
29
|
-
<h2>Shell mode</h2>
|
30
|
-
|
31
|
-
|
32
|
-
<textarea id=code>
|
33
|
-
#!/bin/bash
|
34
|
-
|
35
|
-
# clone the repository
|
36
|
-
git clone http://github.com/garden/tree
|
37
|
-
|
38
|
-
# generate HTTPS credentials
|
39
|
-
cd tree
|
40
|
-
openssl genrsa -aes256 -out https.key 1024
|
41
|
-
openssl req -new -nodes -key https.key -out https.csr
|
42
|
-
openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
|
43
|
-
cp https.key{,.orig}
|
44
|
-
openssl rsa -in https.key.orig -out https.key
|
45
|
-
|
46
|
-
# start the server in HTTPS mode
|
47
|
-
cd web
|
48
|
-
sudo node ../server.js 443 'yes' >> ../node.log &
|
49
|
-
|
50
|
-
# here is how to stop the server
|
51
|
-
for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
|
52
|
-
sudo kill -9 $pid 2> /dev/null
|
53
|
-
done
|
54
|
-
|
55
|
-
exit 0</textarea>
|
56
|
-
|
57
|
-
<script>
|
58
|
-
var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
|
59
|
-
mode: 'shell',
|
60
|
-
lineNumbers: true,
|
61
|
-
matchBrackets: true
|
62
|
-
});
|
63
|
-
</script>
|
64
|
-
|
65
|
-
<p><strong>MIME types defined:</strong> <code>text/x-sh</code>, <code>application/x-sh</code>.</p>
|
66
|
-
</article>
|
@@ -1,152 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
(function(mod) {
|
5
|
-
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
-
mod(require("../../lib/codemirror"));
|
7
|
-
else if (typeof define == "function" && define.amd) // AMD
|
8
|
-
define(["../../lib/codemirror"], mod);
|
9
|
-
else // Plain browser env
|
10
|
-
mod(CodeMirror);
|
11
|
-
})(function(CodeMirror) {
|
12
|
-
"use strict";
|
13
|
-
|
14
|
-
CodeMirror.defineMode('shell', function() {
|
15
|
-
|
16
|
-
var words = {};
|
17
|
-
function define(style, dict) {
|
18
|
-
for(var i = 0; i < dict.length; i++) {
|
19
|
-
words[dict[i]] = style;
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
var commonAtoms = ["true", "false"];
|
24
|
-
var commonKeywords = ["if", "then", "do", "else", "elif", "while", "until", "for", "in", "esac", "fi",
|
25
|
-
"fin", "fil", "done", "exit", "set", "unset", "export", "function"];
|
26
|
-
var commonCommands = ["ab", "awk", "bash", "beep", "cat", "cc", "cd", "chown", "chmod", "chroot", "clear",
|
27
|
-
"cp", "curl", "cut", "diff", "echo", "find", "gawk", "gcc", "get", "git", "grep", "hg", "kill", "killall",
|
28
|
-
"ln", "ls", "make", "mkdir", "openssl", "mv", "nc", "nl", "node", "npm", "ping", "ps", "restart", "rm",
|
29
|
-
"rmdir", "sed", "service", "sh", "shopt", "shred", "source", "sort", "sleep", "ssh", "start", "stop",
|
30
|
-
"su", "sudo", "svn", "tee", "telnet", "top", "touch", "vi", "vim", "wall", "wc", "wget", "who", "write",
|
31
|
-
"yes", "zsh"];
|
32
|
-
|
33
|
-
CodeMirror.registerHelper("hintWords", "shell", commonAtoms.concat(commonKeywords, commonCommands));
|
34
|
-
|
35
|
-
define('atom', commonAtoms);
|
36
|
-
define('keyword', commonKeywords);
|
37
|
-
define('builtin', commonCommands);
|
38
|
-
|
39
|
-
function tokenBase(stream, state) {
|
40
|
-
if (stream.eatSpace()) return null;
|
41
|
-
|
42
|
-
var sol = stream.sol();
|
43
|
-
var ch = stream.next();
|
44
|
-
|
45
|
-
if (ch === '\\') {
|
46
|
-
stream.next();
|
47
|
-
return null;
|
48
|
-
}
|
49
|
-
if (ch === '\'' || ch === '"' || ch === '`') {
|
50
|
-
state.tokens.unshift(tokenString(ch, ch === "`" ? "quote" : "string"));
|
51
|
-
return tokenize(stream, state);
|
52
|
-
}
|
53
|
-
if (ch === '#') {
|
54
|
-
if (sol && stream.eat('!')) {
|
55
|
-
stream.skipToEnd();
|
56
|
-
return 'meta'; // 'comment'?
|
57
|
-
}
|
58
|
-
stream.skipToEnd();
|
59
|
-
return 'comment';
|
60
|
-
}
|
61
|
-
if (ch === '$') {
|
62
|
-
state.tokens.unshift(tokenDollar);
|
63
|
-
return tokenize(stream, state);
|
64
|
-
}
|
65
|
-
if (ch === '+' || ch === '=') {
|
66
|
-
return 'operator';
|
67
|
-
}
|
68
|
-
if (ch === '-') {
|
69
|
-
stream.eat('-');
|
70
|
-
stream.eatWhile(/\w/);
|
71
|
-
return 'attribute';
|
72
|
-
}
|
73
|
-
if (/\d/.test(ch)) {
|
74
|
-
stream.eatWhile(/\d/);
|
75
|
-
if(stream.eol() || !/\w/.test(stream.peek())) {
|
76
|
-
return 'number';
|
77
|
-
}
|
78
|
-
}
|
79
|
-
stream.eatWhile(/[\w-]/);
|
80
|
-
var cur = stream.current();
|
81
|
-
if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
|
82
|
-
return words.hasOwnProperty(cur) ? words[cur] : null;
|
83
|
-
}
|
84
|
-
|
85
|
-
function tokenString(quote, style) {
|
86
|
-
var close = quote == "(" ? ")" : quote == "{" ? "}" : quote
|
87
|
-
return function(stream, state) {
|
88
|
-
var next, escaped = false;
|
89
|
-
while ((next = stream.next()) != null) {
|
90
|
-
if (next === close && !escaped) {
|
91
|
-
state.tokens.shift();
|
92
|
-
break;
|
93
|
-
} else if (next === '$' && !escaped && quote !== "'" && stream.peek() != close) {
|
94
|
-
escaped = true;
|
95
|
-
stream.backUp(1);
|
96
|
-
state.tokens.unshift(tokenDollar);
|
97
|
-
break;
|
98
|
-
} else if (!escaped && quote !== close && next === quote) {
|
99
|
-
state.tokens.unshift(tokenString(quote, style))
|
100
|
-
return tokenize(stream, state)
|
101
|
-
} else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
|
102
|
-
state.tokens.unshift(tokenStringStart(next, "string"));
|
103
|
-
stream.backUp(1);
|
104
|
-
break;
|
105
|
-
}
|
106
|
-
escaped = !escaped && next === '\\';
|
107
|
-
}
|
108
|
-
return style;
|
109
|
-
};
|
110
|
-
};
|
111
|
-
|
112
|
-
function tokenStringStart(quote, style) {
|
113
|
-
return function(stream, state) {
|
114
|
-
state.tokens[0] = tokenString(quote, style)
|
115
|
-
stream.next()
|
116
|
-
return tokenize(stream, state)
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
var tokenDollar = function(stream, state) {
|
121
|
-
if (state.tokens.length > 1) stream.eat('$');
|
122
|
-
var ch = stream.next()
|
123
|
-
if (/['"({]/.test(ch)) {
|
124
|
-
state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
|
125
|
-
return tokenize(stream, state);
|
126
|
-
}
|
127
|
-
if (!/\d/.test(ch)) stream.eatWhile(/\w/);
|
128
|
-
state.tokens.shift();
|
129
|
-
return 'def';
|
130
|
-
};
|
131
|
-
|
132
|
-
function tokenize(stream, state) {
|
133
|
-
return (state.tokens[0] || tokenBase) (stream, state);
|
134
|
-
};
|
135
|
-
|
136
|
-
return {
|
137
|
-
startState: function() {return {tokens:[]};},
|
138
|
-
token: function(stream, state) {
|
139
|
-
return tokenize(stream, state);
|
140
|
-
},
|
141
|
-
closeBrackets: "()[]{}''\"\"``",
|
142
|
-
lineComment: '#',
|
143
|
-
fold: "brace"
|
144
|
-
};
|
145
|
-
});
|
146
|
-
|
147
|
-
CodeMirror.defineMIME('text/x-sh', 'shell');
|
148
|
-
// Apache uses a slightly different Media Type for Shell scripts
|
149
|
-
// http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
150
|
-
CodeMirror.defineMIME('application/x-sh', 'shell');
|
151
|
-
|
152
|
-
});
|
@@ -1,73 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
(function() {
|
5
|
-
var mode = CodeMirror.getMode({}, "shell");
|
6
|
-
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
7
|
-
|
8
|
-
MT("var",
|
9
|
-
"text [def $var] text");
|
10
|
-
MT("varBraces",
|
11
|
-
"text[def ${var}]text");
|
12
|
-
MT("varVar",
|
13
|
-
"text [def $a$b] text");
|
14
|
-
MT("varBracesVarBraces",
|
15
|
-
"text[def ${a}${b}]text");
|
16
|
-
|
17
|
-
MT("singleQuotedVar",
|
18
|
-
"[string 'text $var text']");
|
19
|
-
MT("singleQuotedVarBraces",
|
20
|
-
"[string 'text ${var} text']");
|
21
|
-
|
22
|
-
MT("doubleQuotedVar",
|
23
|
-
'[string "text ][def $var][string text"]');
|
24
|
-
MT("doubleQuotedVarBraces",
|
25
|
-
'[string "text][def ${var}][string text"]');
|
26
|
-
MT("doubleQuotedVarPunct",
|
27
|
-
'[string "text ][def $@][string text"]');
|
28
|
-
MT("doubleQuotedVarVar",
|
29
|
-
'[string "][def $a$b][string "]');
|
30
|
-
MT("doubleQuotedVarBracesVarBraces",
|
31
|
-
'[string "][def ${a}${b}][string "]');
|
32
|
-
|
33
|
-
MT("notAString",
|
34
|
-
"text\\'text");
|
35
|
-
MT("escapes",
|
36
|
-
"outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");
|
37
|
-
|
38
|
-
MT("subshell",
|
39
|
-
"[builtin echo] [quote $(whoami)] s log, stardate [quote `date`].");
|
40
|
-
MT("doubleQuotedSubshell",
|
41
|
-
"[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]");
|
42
|
-
|
43
|
-
MT("hashbang",
|
44
|
-
"[meta #!/bin/bash]");
|
45
|
-
MT("comment",
|
46
|
-
"text [comment # Blurb]");
|
47
|
-
|
48
|
-
MT("numbers",
|
49
|
-
"[number 0] [number 1] [number 2]");
|
50
|
-
MT("keywords",
|
51
|
-
"[keyword while] [atom true]; [keyword do]",
|
52
|
-
" [builtin sleep] [number 3]",
|
53
|
-
"[keyword done]");
|
54
|
-
MT("options",
|
55
|
-
"[builtin ls] [attribute -l] [attribute --human-readable]");
|
56
|
-
MT("operator",
|
57
|
-
"[def var][operator =]value");
|
58
|
-
|
59
|
-
MT("doubleParens",
|
60
|
-
"foo [quote $((bar))]")
|
61
|
-
|
62
|
-
MT("nested braces",
|
63
|
-
"[builtin echo] [def ${A[${B}]]}]")
|
64
|
-
|
65
|
-
MT("strings in parens",
|
66
|
-
"[def FOO][operator =]([quote $(<][string \"][def $MYDIR][string \"][quote /myfile grep ][string 'hello$'][quote )])")
|
67
|
-
|
68
|
-
MT ("string ending in dollar",
|
69
|
-
'[def a][operator =][string "xyz$"]; [def b][operator =][string "y"]')
|
70
|
-
|
71
|
-
MT ("quote ending in dollar",
|
72
|
-
"[quote $(echo a$)]")
|
73
|
-
})();
|
@@ -1,93 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
|
3
|
-
<title>CodeMirror: Sieve (RFC5228) mode</title>
|
4
|
-
<meta charset="utf-8"/>
|
5
|
-
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
-
|
7
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
-
<script src="../../lib/codemirror.js"></script>
|
9
|
-
<script src="sieve.js"></script>
|
10
|
-
<style>.CodeMirror {background: #f8f8f8;}</style>
|
11
|
-
<div id=nav>
|
12
|
-
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
|
13
|
-
|
14
|
-
<ul>
|
15
|
-
<li><a href="../../index.html">Home</a>
|
16
|
-
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
-
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
-
</ul>
|
19
|
-
<ul>
|
20
|
-
<li><a href="../index.html">Language modes</a>
|
21
|
-
<li><a class=active href="#">Sieve (RFC5228)</a>
|
22
|
-
</ul>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<article>
|
26
|
-
<h2>Sieve (RFC5228) mode</h2>
|
27
|
-
<form><textarea id="code" name="code">
|
28
|
-
#
|
29
|
-
# Example Sieve Filter
|
30
|
-
# Declare any optional features or extension used by the script
|
31
|
-
#
|
32
|
-
|
33
|
-
require ["fileinto", "reject"];
|
34
|
-
|
35
|
-
#
|
36
|
-
# Reject any large messages (note that the four leading dots get
|
37
|
-
# "stuffed" to three)
|
38
|
-
#
|
39
|
-
if size :over 1M
|
40
|
-
{
|
41
|
-
reject text:
|
42
|
-
Please do not send me large attachments.
|
43
|
-
Put your file on a server and send me the URL.
|
44
|
-
Thank you.
|
45
|
-
.... Fred
|
46
|
-
.
|
47
|
-
;
|
48
|
-
stop;
|
49
|
-
}
|
50
|
-
|
51
|
-
#
|
52
|
-
# Handle messages from known mailing lists
|
53
|
-
# Move messages from IETF filter discussion list to filter folder
|
54
|
-
#
|
55
|
-
if header :is "Sender" "owner-ietf-mta-filters@imc.org"
|
56
|
-
{
|
57
|
-
fileinto "filter"; # move to "filter" folder
|
58
|
-
}
|
59
|
-
#
|
60
|
-
# Keep all messages to or from people in my company
|
61
|
-
#
|
62
|
-
elsif address :domain :is ["From", "To"] "example.com"
|
63
|
-
{
|
64
|
-
keep; # keep in "In" folder
|
65
|
-
}
|
66
|
-
|
67
|
-
#
|
68
|
-
# Try and catch unsolicited email. If a message is not to me,
|
69
|
-
# or it contains a subject known to be spam, file it away.
|
70
|
-
#
|
71
|
-
elsif anyof (not address :all :contains
|
72
|
-
["To", "Cc", "Bcc"] "me@example.com",
|
73
|
-
header :matches "subject"
|
74
|
-
["*make*money*fast*", "*university*dipl*mas*"])
|
75
|
-
{
|
76
|
-
# If message header does not contain my address,
|
77
|
-
# it's from a list.
|
78
|
-
fileinto "spam"; # move to "spam" folder
|
79
|
-
}
|
80
|
-
else
|
81
|
-
{
|
82
|
-
# Move all other (non-company) mail to "personal"
|
83
|
-
# folder.
|
84
|
-
fileinto "personal";
|
85
|
-
}
|
86
|
-
</textarea></form>
|
87
|
-
<script>
|
88
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
89
|
-
</script>
|
90
|
-
|
91
|
-
<p><strong>MIME types defined:</strong> <code>application/sieve</code>.</p>
|
92
|
-
|
93
|
-
</article>
|