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,70 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
|
3
|
-
<title>CodeMirror: Swift 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="./swift.js"></script>
|
11
|
-
<style>
|
12
|
-
.CodeMirror { border: 2px inset #dee; }
|
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="#">Swift</a>
|
25
|
-
</ul>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<article>
|
29
|
-
<h2>Swift mode</h2>
|
30
|
-
<form><textarea id="code" name="code">
|
31
|
-
protocol HeaderViewProtocol {
|
32
|
-
func setTitle(_ string: String)
|
33
|
-
}
|
34
|
-
|
35
|
-
struct AnyHeaderView {
|
36
|
-
let view: UIView
|
37
|
-
let headerView: HeaderViewProtocol
|
38
|
-
init<T: UIView>(view: T) where T: HeaderViewProtocol {
|
39
|
-
self.view = view
|
40
|
-
self.headerView = view
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
let header = AnyHeaderView(view: myView)
|
45
|
-
header.headerView.setTitle("hi")
|
46
|
-
|
47
|
-
struct HeaderView {
|
48
|
-
let view: UIView
|
49
|
-
let setTitle: (String) -> ()
|
50
|
-
}
|
51
|
-
|
52
|
-
var label = UILabel()
|
53
|
-
let header = HeaderView(view: label) { str in
|
54
|
-
label.text = str
|
55
|
-
}
|
56
|
-
header.setTitle("hello")
|
57
|
-
</textarea></form>
|
58
|
-
|
59
|
-
<script>
|
60
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
61
|
-
lineNumbers: true,
|
62
|
-
matchBrackets: true,
|
63
|
-
mode: "text/x-swift"
|
64
|
-
});
|
65
|
-
</script>
|
66
|
-
|
67
|
-
<p>A simple mode for Swift</p>
|
68
|
-
|
69
|
-
<p><strong>MIME types defined:</strong> <code>text/x-swift</code> (Swift code)</p>
|
70
|
-
</article>
|
@@ -1,223 +0,0 @@
|
|
1
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
3
|
-
|
4
|
-
// Swift mode created by Michael Kaminsky https://github.com/mkaminsky11
|
5
|
-
|
6
|
-
(function(mod) {
|
7
|
-
if (typeof exports == "object" && typeof module == "object")
|
8
|
-
mod(require("../../lib/codemirror"))
|
9
|
-
else if (typeof define == "function" && define.amd)
|
10
|
-
define(["../../lib/codemirror"], mod)
|
11
|
-
else
|
12
|
-
mod(CodeMirror)
|
13
|
-
})(function(CodeMirror) {
|
14
|
-
"use strict"
|
15
|
-
|
16
|
-
function wordSet(words) {
|
17
|
-
var set = {}
|
18
|
-
for (var i = 0; i < words.length; i++) set[words[i]] = true
|
19
|
-
return set
|
20
|
-
}
|
21
|
-
|
22
|
-
var keywords = wordSet(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype",
|
23
|
-
"open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super",
|
24
|
-
"convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is",
|
25
|
-
"break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while",
|
26
|
-
"defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet",
|
27
|
-
"assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right",
|
28
|
-
"Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"])
|
29
|
-
var definingKeywords = wordSet(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"])
|
30
|
-
var atoms = wordSet(["true","false","nil","self","super","_"])
|
31
|
-
var types = wordSet(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String",
|
32
|
-
"UInt8","UInt16","UInt32","UInt64","Void"])
|
33
|
-
var operators = "+-/*%=|&<>~^?!"
|
34
|
-
var punc = ":;,.(){}[]"
|
35
|
-
var binary = /^\-?0b[01][01_]*/
|
36
|
-
var octal = /^\-?0o[0-7][0-7_]*/
|
37
|
-
var hexadecimal = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/
|
38
|
-
var decimal = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/
|
39
|
-
var identifier = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/
|
40
|
-
var property = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/
|
41
|
-
var instruction = /^\#[A-Za-z]+/
|
42
|
-
var attribute = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/
|
43
|
-
//var regexp = /^\/(?!\s)(?:\/\/)?(?:\\.|[^\/])+\//
|
44
|
-
|
45
|
-
function tokenBase(stream, state, prev) {
|
46
|
-
if (stream.sol()) state.indented = stream.indentation()
|
47
|
-
if (stream.eatSpace()) return null
|
48
|
-
|
49
|
-
var ch = stream.peek()
|
50
|
-
if (ch == "/") {
|
51
|
-
if (stream.match("//")) {
|
52
|
-
stream.skipToEnd()
|
53
|
-
return "comment"
|
54
|
-
}
|
55
|
-
if (stream.match("/*")) {
|
56
|
-
state.tokenize.push(tokenComment)
|
57
|
-
return tokenComment(stream, state)
|
58
|
-
}
|
59
|
-
}
|
60
|
-
if (stream.match(instruction)) return "builtin"
|
61
|
-
if (stream.match(attribute)) return "attribute"
|
62
|
-
if (stream.match(binary)) return "number"
|
63
|
-
if (stream.match(octal)) return "number"
|
64
|
-
if (stream.match(hexadecimal)) return "number"
|
65
|
-
if (stream.match(decimal)) return "number"
|
66
|
-
if (stream.match(property)) return "property"
|
67
|
-
if (operators.indexOf(ch) > -1) {
|
68
|
-
stream.next()
|
69
|
-
return "operator"
|
70
|
-
}
|
71
|
-
if (punc.indexOf(ch) > -1) {
|
72
|
-
stream.next()
|
73
|
-
stream.match("..")
|
74
|
-
return "punctuation"
|
75
|
-
}
|
76
|
-
var stringMatch
|
77
|
-
if (stringMatch = stream.match(/("""|"|')/)) {
|
78
|
-
var tokenize = tokenString.bind(null, stringMatch[0])
|
79
|
-
state.tokenize.push(tokenize)
|
80
|
-
return tokenize(stream, state)
|
81
|
-
}
|
82
|
-
|
83
|
-
if (stream.match(identifier)) {
|
84
|
-
var ident = stream.current()
|
85
|
-
if (types.hasOwnProperty(ident)) return "variable-2"
|
86
|
-
if (atoms.hasOwnProperty(ident)) return "atom"
|
87
|
-
if (keywords.hasOwnProperty(ident)) {
|
88
|
-
if (definingKeywords.hasOwnProperty(ident))
|
89
|
-
state.prev = "define"
|
90
|
-
return "keyword"
|
91
|
-
}
|
92
|
-
if (prev == "define") return "def"
|
93
|
-
return "variable"
|
94
|
-
}
|
95
|
-
|
96
|
-
stream.next()
|
97
|
-
return null
|
98
|
-
}
|
99
|
-
|
100
|
-
function tokenUntilClosingParen() {
|
101
|
-
var depth = 0
|
102
|
-
return function(stream, state, prev) {
|
103
|
-
var inner = tokenBase(stream, state, prev)
|
104
|
-
if (inner == "punctuation") {
|
105
|
-
if (stream.current() == "(") ++depth
|
106
|
-
else if (stream.current() == ")") {
|
107
|
-
if (depth == 0) {
|
108
|
-
stream.backUp(1)
|
109
|
-
state.tokenize.pop()
|
110
|
-
return state.tokenize[state.tokenize.length - 1](stream, state)
|
111
|
-
}
|
112
|
-
else --depth
|
113
|
-
}
|
114
|
-
}
|
115
|
-
return inner
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
function tokenString(openQuote, stream, state) {
|
120
|
-
var singleLine = openQuote.length == 1
|
121
|
-
var ch, escaped = false
|
122
|
-
while (ch = stream.peek()) {
|
123
|
-
if (escaped) {
|
124
|
-
stream.next()
|
125
|
-
if (ch == "(") {
|
126
|
-
state.tokenize.push(tokenUntilClosingParen())
|
127
|
-
return "string"
|
128
|
-
}
|
129
|
-
escaped = false
|
130
|
-
} else if (stream.match(openQuote)) {
|
131
|
-
state.tokenize.pop()
|
132
|
-
return "string"
|
133
|
-
} else {
|
134
|
-
stream.next()
|
135
|
-
escaped = ch == "\\"
|
136
|
-
}
|
137
|
-
}
|
138
|
-
if (singleLine) {
|
139
|
-
state.tokenize.pop()
|
140
|
-
}
|
141
|
-
return "string"
|
142
|
-
}
|
143
|
-
|
144
|
-
function tokenComment(stream, state) {
|
145
|
-
var ch
|
146
|
-
while (true) {
|
147
|
-
stream.match(/^[^/*]+/, true)
|
148
|
-
ch = stream.next()
|
149
|
-
if (!ch) break
|
150
|
-
if (ch === "/" && stream.eat("*")) {
|
151
|
-
state.tokenize.push(tokenComment)
|
152
|
-
} else if (ch === "*" && stream.eat("/")) {
|
153
|
-
state.tokenize.pop()
|
154
|
-
}
|
155
|
-
}
|
156
|
-
return "comment"
|
157
|
-
}
|
158
|
-
|
159
|
-
function Context(prev, align, indented) {
|
160
|
-
this.prev = prev
|
161
|
-
this.align = align
|
162
|
-
this.indented = indented
|
163
|
-
}
|
164
|
-
|
165
|
-
function pushContext(state, stream) {
|
166
|
-
var align = stream.match(/^\s*($|\/[\/\*])/, false) ? null : stream.column() + 1
|
167
|
-
state.context = new Context(state.context, align, state.indented)
|
168
|
-
}
|
169
|
-
|
170
|
-
function popContext(state) {
|
171
|
-
if (state.context) {
|
172
|
-
state.indented = state.context.indented
|
173
|
-
state.context = state.context.prev
|
174
|
-
}
|
175
|
-
}
|
176
|
-
|
177
|
-
CodeMirror.defineMode("swift", function(config) {
|
178
|
-
return {
|
179
|
-
startState: function() {
|
180
|
-
return {
|
181
|
-
prev: null,
|
182
|
-
context: null,
|
183
|
-
indented: 0,
|
184
|
-
tokenize: []
|
185
|
-
}
|
186
|
-
},
|
187
|
-
|
188
|
-
token: function(stream, state) {
|
189
|
-
var prev = state.prev
|
190
|
-
state.prev = null
|
191
|
-
var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase
|
192
|
-
var style = tokenize(stream, state, prev)
|
193
|
-
if (!style || style == "comment") state.prev = prev
|
194
|
-
else if (!state.prev) state.prev = style
|
195
|
-
|
196
|
-
if (style == "punctuation") {
|
197
|
-
var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current())
|
198
|
-
if (bracket) (bracket[1] ? popContext : pushContext)(state, stream)
|
199
|
-
}
|
200
|
-
|
201
|
-
return style
|
202
|
-
},
|
203
|
-
|
204
|
-
indent: function(state, textAfter) {
|
205
|
-
var cx = state.context
|
206
|
-
if (!cx) return 0
|
207
|
-
var closing = /^[\]\}\)]/.test(textAfter)
|
208
|
-
if (cx.align != null) return cx.align - (closing ? 1 : 0)
|
209
|
-
return cx.indented + (closing ? 0 : config.indentUnit)
|
210
|
-
},
|
211
|
-
|
212
|
-
electricInput: /^\s*[\)\}\]]$/,
|
213
|
-
|
214
|
-
lineComment: "//",
|
215
|
-
blockCommentStart: "/*",
|
216
|
-
blockCommentEnd: "*/",
|
217
|
-
fold: "brace",
|
218
|
-
closeBrackets: "()[]{}''\"\"``"
|
219
|
-
}
|
220
|
-
})
|
221
|
-
|
222
|
-
CodeMirror.defineMIME("text/x-swift","swift")
|
223
|
-
});
|
@@ -1,162 +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({indentUnit: 2}, "swift");
|
6
|
-
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
7
|
-
|
8
|
-
// Ensure all number types are properly represented.
|
9
|
-
MT("numbers",
|
10
|
-
"[keyword var] [def a] [operator =] [number 17]",
|
11
|
-
"[keyword var] [def b] [operator =] [number -0.5]",
|
12
|
-
"[keyword var] [def c] [operator =] [number 0.3456e-4]",
|
13
|
-
"[keyword var] [def d] [operator =] [number 345e2]",
|
14
|
-
"[keyword var] [def e] [operator =] [number 0o7324]",
|
15
|
-
"[keyword var] [def f] [operator =] [number 0b10010]",
|
16
|
-
"[keyword var] [def g] [operator =] [number -0x35ade]",
|
17
|
-
"[keyword var] [def h] [operator =] [number 0xaea.ep-13]",
|
18
|
-
"[keyword var] [def i] [operator =] [number 0x13ep6]");
|
19
|
-
|
20
|
-
// Variable/class/etc definition.
|
21
|
-
MT("definition",
|
22
|
-
"[keyword var] [def a] [operator =] [number 5]",
|
23
|
-
"[keyword let] [def b][punctuation :] [variable-2 Int] [operator =] [number 10]",
|
24
|
-
"[keyword class] [def C] [punctuation {] [punctuation }]",
|
25
|
-
"[keyword struct] [def D] [punctuation {] [punctuation }]",
|
26
|
-
"[keyword enum] [def E] [punctuation {] [punctuation }]",
|
27
|
-
"[keyword extension] [def F] [punctuation {] [punctuation }]",
|
28
|
-
"[keyword protocol] [def G] [punctuation {] [punctuation }]",
|
29
|
-
"[keyword func] [def h][punctuation ()] [punctuation {] [punctuation }]",
|
30
|
-
"[keyword import] [def Foundation]",
|
31
|
-
"[keyword typealias] [def NewString] [operator =] [variable-2 String]",
|
32
|
-
"[keyword associatedtype] [def I]",
|
33
|
-
"[keyword for] [def j] [keyword in] [number 0][punctuation ..][operator <][number 3] [punctuation {] [punctuation }]");
|
34
|
-
|
35
|
-
// Strings and string interpolation.
|
36
|
-
MT("strings",
|
37
|
-
"[keyword var] [def a][punctuation :] [variable-2 String] [operator =] [string \"test\"]",
|
38
|
-
"[keyword var] [def b][punctuation :] [variable-2 String] [operator =] [string \"\\(][variable a][string )\"]",
|
39
|
-
"[keyword var] [def c] [operator =] [string \"\"\"]",
|
40
|
-
"[string multi]",
|
41
|
-
"[string line]",
|
42
|
-
"[string \"test\"]",
|
43
|
-
"[string \"\"\"]",
|
44
|
-
"[variable print][punctuation (][string \"\"][punctuation )]");
|
45
|
-
|
46
|
-
// Comments.
|
47
|
-
MT("comments",
|
48
|
-
"[comment // This is a comment]",
|
49
|
-
"[comment /* This is another comment */]",
|
50
|
-
"[keyword var] [def a] [operator =] [number 5] [comment // Third comment]");
|
51
|
-
|
52
|
-
// Atoms.
|
53
|
-
MT("atoms",
|
54
|
-
"[keyword class] [def FooClass] [punctuation {]",
|
55
|
-
" [keyword let] [def fooBool][punctuation :] [variable-2 Bool][operator ?]",
|
56
|
-
" [keyword let] [def fooInt][punctuation :] [variable-2 Int][operator ?]",
|
57
|
-
" [keyword func] [keyword init][punctuation (][variable fooBool][punctuation :] [variable-2 Bool][punctuation ,] [variable barBool][punctuation :] [variable-2 Bool][punctuation )] [punctuation {]",
|
58
|
-
" [atom super][property .init][punctuation ()]",
|
59
|
-
" [atom self][property .fooBool] [operator =] [variable fooBool]",
|
60
|
-
" [variable fooInt] [operator =] [atom nil]",
|
61
|
-
" [keyword if] [variable barBool] [operator ==] [atom true] [punctuation {]",
|
62
|
-
" [variable print][punctuation (][string \"True!\"][punctuation )]",
|
63
|
-
" [punctuation }] [keyword else] [keyword if] [variable barBool] [operator ==] [atom false] [punctuation {]",
|
64
|
-
" [keyword for] [atom _] [keyword in] [number 0][punctuation ...][number 5] [punctuation {]",
|
65
|
-
" [variable print][punctuation (][string \"False!\"][punctuation )]",
|
66
|
-
" [punctuation }]",
|
67
|
-
" [punctuation }]",
|
68
|
-
" [punctuation }]",
|
69
|
-
"[punctuation }]");
|
70
|
-
|
71
|
-
// Types.
|
72
|
-
MT("types",
|
73
|
-
"[keyword var] [def a] [operator =] [variable-2 Array][operator <][variable-2 Int][operator >]",
|
74
|
-
"[keyword var] [def b] [operator =] [variable-2 Set][operator <][variable-2 Bool][operator >]",
|
75
|
-
"[keyword var] [def c] [operator =] [variable-2 Dictionary][operator <][variable-2 String][punctuation ,][variable-2 Character][operator >]",
|
76
|
-
"[keyword var] [def d][punctuation :] [variable-2 Int64][operator ?] [operator =] [variable-2 Optional][punctuation (][number 8][punctuation )]",
|
77
|
-
"[keyword func] [def e][punctuation ()] [operator ->] [variable-2 Void] [punctuation {]",
|
78
|
-
" [keyword var] [def e1][punctuation :] [variable-2 Float] [operator =] [number 1.2]",
|
79
|
-
"[punctuation }]",
|
80
|
-
"[keyword func] [def f][punctuation ()] [operator ->] [variable-2 Never] [punctuation {]",
|
81
|
-
" [keyword var] [def f1][punctuation :] [variable-2 Double] [operator =] [number 2.4]",
|
82
|
-
"[punctuation }]");
|
83
|
-
|
84
|
-
// Operators.
|
85
|
-
MT("operators",
|
86
|
-
"[keyword var] [def a] [operator =] [number 1] [operator +] [number 2]",
|
87
|
-
"[keyword var] [def b] [operator =] [number 1] [operator -] [number 2]",
|
88
|
-
"[keyword var] [def c] [operator =] [number 1] [operator *] [number 2]",
|
89
|
-
"[keyword var] [def d] [operator =] [number 1] [operator /] [number 2]",
|
90
|
-
"[keyword var] [def e] [operator =] [number 1] [operator %] [number 2]",
|
91
|
-
"[keyword var] [def f] [operator =] [number 1] [operator |] [number 2]",
|
92
|
-
"[keyword var] [def g] [operator =] [number 1] [operator &] [number 2]",
|
93
|
-
"[keyword var] [def h] [operator =] [number 1] [operator <<] [number 2]",
|
94
|
-
"[keyword var] [def i] [operator =] [number 1] [operator >>] [number 2]",
|
95
|
-
"[keyword var] [def j] [operator =] [number 1] [operator ^] [number 2]",
|
96
|
-
"[keyword var] [def k] [operator =] [operator ~][number 1]",
|
97
|
-
"[keyword var] [def l] [operator =] [variable foo] [operator ?] [number 1] [punctuation :] [number 2]",
|
98
|
-
"[keyword var] [def m][punctuation :] [variable-2 Int] [operator =] [variable-2 Optional][punctuation (][number 8][punctuation )][operator !]");
|
99
|
-
|
100
|
-
// Punctuation.
|
101
|
-
MT("punctuation",
|
102
|
-
"[keyword let] [def a] [operator =] [number 1][punctuation ;] [keyword let] [def b] [operator =] [number 2]",
|
103
|
-
"[keyword let] [def testArr][punctuation :] [punctuation [[][variable-2 Int][punctuation ]]] [operator =] [punctuation [[][variable a][punctuation ,] [variable b][punctuation ]]]",
|
104
|
-
"[keyword for] [def i] [keyword in] [number 0][punctuation ..][operator <][variable testArr][property .count] [punctuation {]",
|
105
|
-
" [variable print][punctuation (][variable testArr][punctuation [[][variable i][punctuation ]])]",
|
106
|
-
"[punctuation }]");
|
107
|
-
|
108
|
-
// Identifiers.
|
109
|
-
MT("identifiers",
|
110
|
-
"[keyword let] [def abc] [operator =] [number 1]",
|
111
|
-
"[keyword let] [def ABC] [operator =] [number 2]",
|
112
|
-
"[keyword let] [def _123] [operator =] [number 3]",
|
113
|
-
"[keyword let] [def _$1$2$3] [operator =] [number 4]",
|
114
|
-
"[keyword let] [def A1$_c32_$_] [operator =] [number 5]",
|
115
|
-
"[keyword let] [def `var`] [operator =] [punctuation [[][number 1][punctuation ,] [number 2][punctuation ,] [number 3][punctuation ]]]",
|
116
|
-
"[keyword let] [def square$] [operator =] [variable `var`][property .map] [punctuation {][variable $0] [operator *] [variable $0][punctuation }]",
|
117
|
-
"$$ [number 1][variable a] $[atom _] [variable _$] [variable __] `[variable a] [variable b]`");
|
118
|
-
|
119
|
-
// Properties.
|
120
|
-
MT("properties",
|
121
|
-
"[variable print][punctuation (][variable foo][property .abc][punctuation )]",
|
122
|
-
"[variable print][punctuation (][variable foo][property .ABC][punctuation )]",
|
123
|
-
"[variable print][punctuation (][variable foo][property ._123][punctuation )]",
|
124
|
-
"[variable print][punctuation (][variable foo][property ._$1$2$3][punctuation )]",
|
125
|
-
"[variable print][punctuation (][variable foo][property .A1$_c32_$_][punctuation )]",
|
126
|
-
"[variable print][punctuation (][variable foo][property .`var`][punctuation )]",
|
127
|
-
"[variable print][punctuation (][variable foo][property .__][punctuation )]");
|
128
|
-
|
129
|
-
// Instructions or other things that start with #.
|
130
|
-
MT("instructions",
|
131
|
-
"[keyword if] [builtin #available][punctuation (][variable iOS] [number 9][punctuation ,] [operator *][punctuation )] [punctuation {}]",
|
132
|
-
"[variable print][punctuation (][builtin #file][punctuation ,] [builtin #function][punctuation )]",
|
133
|
-
"[variable print][punctuation (][builtin #line][punctuation ,] [builtin #column][punctuation )]",
|
134
|
-
"[builtin #if] [atom true]",
|
135
|
-
"[keyword import] [def A]",
|
136
|
-
"[builtin #elseif] [atom false]",
|
137
|
-
"[keyword import] [def B]",
|
138
|
-
"[builtin #endif]",
|
139
|
-
"[builtin #sourceLocation][punctuation (][variable file][punctuation :] [string \"file.swift\"][punctuation ,] [variable line][punctuation :] [number 2][punctuation )]");
|
140
|
-
|
141
|
-
// Attributes; things that start with @.
|
142
|
-
MT("attributes",
|
143
|
-
"[attribute @objc][punctuation (][variable objcFoo][punctuation :)]",
|
144
|
-
"[attribute @available][punctuation (][variable iOS][punctuation )]");
|
145
|
-
|
146
|
-
// Property/number edge case.
|
147
|
-
MT("property_number",
|
148
|
-
"[variable print][punctuation (][variable foo][property ._123][punctuation )]",
|
149
|
-
"[variable print][punctuation (]")
|
150
|
-
|
151
|
-
MT("nested_comments",
|
152
|
-
"[comment /*]",
|
153
|
-
"[comment But wait /* this is a nested comment */ for real]",
|
154
|
-
"[comment /**** let * me * show * you ****/]",
|
155
|
-
"[comment ///// let / me / show / you /////]",
|
156
|
-
"[comment */]");
|
157
|
-
|
158
|
-
// TODO: correctly identify when multiple variables are being declared
|
159
|
-
// by use of a comma-separated list.
|
160
|
-
// TODO: correctly identify when variables are being declared in a tuple.
|
161
|
-
// TODO: identify protocols as types when used before an extension?
|
162
|
-
})();
|
@@ -1,142 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
|
3
|
-
<title>CodeMirror: Tcl 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
|
-
<link rel="stylesheet" href="../../theme/night.css">
|
9
|
-
<script src="../../lib/codemirror.js"></script>
|
10
|
-
<script src="tcl.js"></script>
|
11
|
-
<script src="../../addon/scroll/scrollpastend.js"></script>
|
12
|
-
<div id=nav>
|
13
|
-
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
|
14
|
-
|
15
|
-
<ul>
|
16
|
-
<li><a href="../../index.html">Home</a>
|
17
|
-
<li><a href="../../doc/manual.html">Manual</a>
|
18
|
-
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
19
|
-
</ul>
|
20
|
-
<ul>
|
21
|
-
<li><a href="../index.html">Language modes</a>
|
22
|
-
<li><a class=active href="#">Tcl</a>
|
23
|
-
</ul>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<article>
|
27
|
-
<h2>Tcl mode</h2>
|
28
|
-
<form><textarea id="code" name="code">
|
29
|
-
##############################################################################################
|
30
|
-
## ## whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help ## ##
|
31
|
-
##############################################################################################
|
32
|
-
## To use this script you must set channel flag +whois (ie .chanset #chan +whois) ##
|
33
|
-
##############################################################################################
|
34
|
-
## ____ __ ########################################### ##
|
35
|
-
## / __/___ _ ___ _ ___/ /____ ___ ___ ########################################### ##
|
36
|
-
## / _/ / _ `// _ `// _ // __// _ \ / _ \ ########################################### ##
|
37
|
-
## /___/ \_, / \_, / \_,_//_/ \___// .__/ ########################################### ##
|
38
|
-
## /___/ /___/ /_/ ########################################### ##
|
39
|
-
## ########################################### ##
|
40
|
-
##############################################################################################
|
41
|
-
## ## Start Setup. ## ##
|
42
|
-
##############################################################################################
|
43
|
-
namespace eval whois {
|
44
|
-
## change cmdchar to the trigger you want to use ## ##
|
45
|
-
variable cmdchar "!"
|
46
|
-
## change command to the word trigger you would like to use. ## ##
|
47
|
-
## Keep in mind, This will also change the .chanset +/-command ## ##
|
48
|
-
variable command "whois"
|
49
|
-
## change textf to the colors you want for the text. ## ##
|
50
|
-
variable textf "\017\00304"
|
51
|
-
## change tagf to the colors you want for tags: ## ##
|
52
|
-
variable tagf "\017\002"
|
53
|
-
## Change logo to the logo you want at the start of the line. ## ##
|
54
|
-
variable logo "\017\00304\002\[\00306W\003hois\00304\]\017"
|
55
|
-
## Change lineout to the results you want. Valid results are channel users modes topic ## ##
|
56
|
-
variable lineout "channel users modes topic"
|
57
|
-
##############################################################################################
|
58
|
-
## ## End Setup. ## ##
|
59
|
-
##############################################################################################
|
60
|
-
variable channel ""
|
61
|
-
setudef flag $whois::command
|
62
|
-
bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list
|
63
|
-
bind raw -|- "311" whois::311
|
64
|
-
bind raw -|- "312" whois::312
|
65
|
-
bind raw -|- "319" whois::319
|
66
|
-
bind raw -|- "317" whois::317
|
67
|
-
bind raw -|- "313" whois::multi
|
68
|
-
bind raw -|- "310" whois::multi
|
69
|
-
bind raw -|- "335" whois::multi
|
70
|
-
bind raw -|- "301" whois::301
|
71
|
-
bind raw -|- "671" whois::multi
|
72
|
-
bind raw -|- "320" whois::multi
|
73
|
-
bind raw -|- "401" whois::multi
|
74
|
-
bind raw -|- "318" whois::318
|
75
|
-
bind raw -|- "307" whois::307
|
76
|
-
}
|
77
|
-
proc whois::311 {from key text} {
|
78
|
-
if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} {
|
79
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \
|
80
|
-
$nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname"
|
81
|
-
}
|
82
|
-
}
|
83
|
-
proc whois::multi {from key text} {
|
84
|
-
if {[regexp {\:(.*)$} $text match $key]} {
|
85
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]"
|
86
|
-
return 1
|
87
|
-
}
|
88
|
-
}
|
89
|
-
proc whois::312 {from key text} {
|
90
|
-
regexp {([^\s]+)\s\:} $text match server
|
91
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server"
|
92
|
-
}
|
93
|
-
proc whois::319 {from key text} {
|
94
|
-
if {[regexp {.+\:(.+)$} $text match channels]} {
|
95
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels"
|
96
|
-
}
|
97
|
-
}
|
98
|
-
proc whois::317 {from key text} {
|
99
|
-
if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} {
|
100
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \
|
101
|
-
[ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]"
|
102
|
-
}
|
103
|
-
}
|
104
|
-
proc whois::301 {from key text} {
|
105
|
-
if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} {
|
106
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg"
|
107
|
-
}
|
108
|
-
}
|
109
|
-
proc whois::318 {from key text} {
|
110
|
-
namespace eval whois {
|
111
|
-
variable channel ""
|
112
|
-
}
|
113
|
-
variable whois::channel ""
|
114
|
-
}
|
115
|
-
proc whois::307 {from key text} {
|
116
|
-
putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick"
|
117
|
-
}
|
118
|
-
proc whois::list {nick host hand chan text} {
|
119
|
-
if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} {
|
120
|
-
namespace eval whois {
|
121
|
-
variable channel ""
|
122
|
-
}
|
123
|
-
variable whois::channel $chan
|
124
|
-
putserv "WHOIS $text"
|
125
|
-
}
|
126
|
-
}
|
127
|
-
putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \
|
128
|
-
Ford_Lawnmower irc.GeekShed.net #Script-Help"
|
129
|
-
</textarea></form>
|
130
|
-
<script>
|
131
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
132
|
-
theme: "night",
|
133
|
-
lineNumbers: true,
|
134
|
-
indentUnit: 2,
|
135
|
-
scrollPastEnd: true,
|
136
|
-
mode: "text/x-tcl"
|
137
|
-
});
|
138
|
-
</script>
|
139
|
-
|
140
|
-
<p><strong>MIME types defined:</strong> <code>text/x-tcl</code>.</p>
|
141
|
-
|
142
|
-
</article>
|