wallaby 7.0.0.beta2 → 8.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 +1615 -1622
- data/app/assets/javascripts/wallaby/core.js.map +2 -2
- 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,407 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
|
3
|
-
<title>CodeMirror: Dylan 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="../../addon/comment/continuecomment.js"></script>
|
11
|
-
<script src="../../addon/comment/comment.js"></script>
|
12
|
-
<script src="dylan.js"></script>
|
13
|
-
<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</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="#">Dylan</a>
|
25
|
-
</ul>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<article>
|
29
|
-
<h2>Dylan mode</h2>
|
30
|
-
|
31
|
-
|
32
|
-
<div><textarea id="code" name="code">
|
33
|
-
Module: locators-internals
|
34
|
-
Synopsis: Abstract modeling of locations
|
35
|
-
Author: Andy Armstrong
|
36
|
-
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
|
37
|
-
All rights reserved.
|
38
|
-
License: See License.txt in this distribution for details.
|
39
|
-
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
|
40
|
-
|
41
|
-
define open generic locator-server
|
42
|
-
(locator :: <locator>) => (server :: false-or(<server-locator>));
|
43
|
-
define open generic locator-host
|
44
|
-
(locator :: <locator>) => (host :: false-or(<string>));
|
45
|
-
define open generic locator-volume
|
46
|
-
(locator :: <locator>) => (volume :: false-or(<string>));
|
47
|
-
define open generic locator-directory
|
48
|
-
(locator :: <locator>) => (directory :: false-or(<directory-locator>));
|
49
|
-
define open generic locator-relative?
|
50
|
-
(locator :: <locator>) => (relative? :: <boolean>);
|
51
|
-
define open generic locator-path
|
52
|
-
(locator :: <locator>) => (path :: <sequence>);
|
53
|
-
define open generic locator-base
|
54
|
-
(locator :: <locator>) => (base :: false-or(<string>));
|
55
|
-
define open generic locator-extension
|
56
|
-
(locator :: <locator>) => (extension :: false-or(<string>));
|
57
|
-
|
58
|
-
/// Locator classes
|
59
|
-
|
60
|
-
define open abstract class <directory-locator> (<physical-locator>)
|
61
|
-
end class <directory-locator>;
|
62
|
-
|
63
|
-
define open abstract class <file-locator> (<physical-locator>)
|
64
|
-
end class <file-locator>;
|
65
|
-
|
66
|
-
define method as
|
67
|
-
(class == <directory-locator>, string :: <string>)
|
68
|
-
=> (locator :: <directory-locator>)
|
69
|
-
as(<native-directory-locator>, string)
|
70
|
-
end method as;
|
71
|
-
|
72
|
-
define method make
|
73
|
-
(class == <directory-locator>,
|
74
|
-
#key server :: false-or(<server-locator>) = #f,
|
75
|
-
path :: <sequence> = #[],
|
76
|
-
relative? :: <boolean> = #f,
|
77
|
-
name :: false-or(<string>) = #f)
|
78
|
-
=> (locator :: <directory-locator>)
|
79
|
-
make(<native-directory-locator>,
|
80
|
-
server: server,
|
81
|
-
path: path,
|
82
|
-
relative?: relative?,
|
83
|
-
name: name)
|
84
|
-
end method make;
|
85
|
-
|
86
|
-
define method as
|
87
|
-
(class == <file-locator>, string :: <string>)
|
88
|
-
=> (locator :: <file-locator>)
|
89
|
-
as(<native-file-locator>, string)
|
90
|
-
end method as;
|
91
|
-
|
92
|
-
define method make
|
93
|
-
(class == <file-locator>,
|
94
|
-
#key directory :: false-or(<directory-locator>) = #f,
|
95
|
-
base :: false-or(<string>) = #f,
|
96
|
-
extension :: false-or(<string>) = #f,
|
97
|
-
name :: false-or(<string>) = #f)
|
98
|
-
=> (locator :: <file-locator>)
|
99
|
-
make(<native-file-locator>,
|
100
|
-
directory: directory,
|
101
|
-
base: base,
|
102
|
-
extension: extension,
|
103
|
-
name: name)
|
104
|
-
end method make;
|
105
|
-
|
106
|
-
/// Locator coercion
|
107
|
-
|
108
|
-
//---*** andrewa: This caching scheme doesn't work yet, so disable it.
|
109
|
-
define constant $cache-locators? = #f;
|
110
|
-
define constant $cache-locator-strings? = #f;
|
111
|
-
|
112
|
-
define constant $locator-to-string-cache = make(<object-table>, weak: #"key");
|
113
|
-
define constant $string-to-locator-cache = make(<string-table>, weak: #"value");
|
114
|
-
|
115
|
-
define open generic locator-as-string
|
116
|
-
(class :: subclass(<string>), locator :: <locator>)
|
117
|
-
=> (string :: <string>);
|
118
|
-
|
119
|
-
define open generic string-as-locator
|
120
|
-
(class :: subclass(<locator>), string :: <string>)
|
121
|
-
=> (locator :: <locator>);
|
122
|
-
|
123
|
-
define sealed sideways method as
|
124
|
-
(class :: subclass(<string>), locator :: <locator>)
|
125
|
-
=> (string :: <string>)
|
126
|
-
let string = element($locator-to-string-cache, locator, default: #f);
|
127
|
-
if (string)
|
128
|
-
as(class, string)
|
129
|
-
else
|
130
|
-
let string = locator-as-string(class, locator);
|
131
|
-
if ($cache-locator-strings?)
|
132
|
-
element($locator-to-string-cache, locator) := string;
|
133
|
-
else
|
134
|
-
string
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end method as;
|
138
|
-
|
139
|
-
define sealed sideways method as
|
140
|
-
(class :: subclass(<locator>), string :: <string>)
|
141
|
-
=> (locator :: <locator>)
|
142
|
-
let locator = element($string-to-locator-cache, string, default: #f);
|
143
|
-
if (instance?(locator, class))
|
144
|
-
locator
|
145
|
-
else
|
146
|
-
let locator = string-as-locator(class, string);
|
147
|
-
if ($cache-locators?)
|
148
|
-
element($string-to-locator-cache, string) := locator;
|
149
|
-
else
|
150
|
-
locator
|
151
|
-
end
|
152
|
-
end
|
153
|
-
end method as;
|
154
|
-
|
155
|
-
/// Locator conditions
|
156
|
-
|
157
|
-
define class <locator-error> (<format-string-condition>, <error>)
|
158
|
-
end class <locator-error>;
|
159
|
-
|
160
|
-
define function locator-error
|
161
|
-
(format-string :: <string>, #rest format-arguments)
|
162
|
-
error(make(<locator-error>,
|
163
|
-
format-string: format-string,
|
164
|
-
format-arguments: format-arguments))
|
165
|
-
end function locator-error;
|
166
|
-
|
167
|
-
/// Useful locator protocols
|
168
|
-
|
169
|
-
define open generic locator-test
|
170
|
-
(locator :: <directory-locator>) => (test :: <function>);
|
171
|
-
|
172
|
-
define method locator-test
|
173
|
-
(locator :: <directory-locator>) => (test :: <function>)
|
174
|
-
\=
|
175
|
-
end method locator-test;
|
176
|
-
|
177
|
-
define open generic locator-might-have-links?
|
178
|
-
(locator :: <directory-locator>) => (links? :: <boolean>);
|
179
|
-
|
180
|
-
define method locator-might-have-links?
|
181
|
-
(locator :: <directory-locator>) => (links? :: singleton(#f))
|
182
|
-
#f
|
183
|
-
end method locator-might-have-links?;
|
184
|
-
|
185
|
-
define method locator-relative?
|
186
|
-
(locator :: <file-locator>) => (relative? :: <boolean>)
|
187
|
-
let directory = locator.locator-directory;
|
188
|
-
~directory | directory.locator-relative?
|
189
|
-
end method locator-relative?;
|
190
|
-
|
191
|
-
define method current-directory-locator?
|
192
|
-
(locator :: <directory-locator>) => (current-directory? :: <boolean>)
|
193
|
-
locator.locator-relative?
|
194
|
-
& locator.locator-path = #[#"self"]
|
195
|
-
end method current-directory-locator?;
|
196
|
-
|
197
|
-
define method locator-directory
|
198
|
-
(locator :: <directory-locator>) => (parent :: false-or(<directory-locator>))
|
199
|
-
let path = locator.locator-path;
|
200
|
-
unless (empty?(path))
|
201
|
-
make(object-class(locator),
|
202
|
-
server: locator.locator-server,
|
203
|
-
path: copy-sequence(path, end: path.size - 1),
|
204
|
-
relative?: locator.locator-relative?)
|
205
|
-
end
|
206
|
-
end method locator-directory;
|
207
|
-
|
208
|
-
/// Simplify locator
|
209
|
-
|
210
|
-
define open generic simplify-locator
|
211
|
-
(locator :: <physical-locator>)
|
212
|
-
=> (simplified-locator :: <physical-locator>);
|
213
|
-
|
214
|
-
define method simplify-locator
|
215
|
-
(locator :: <directory-locator>)
|
216
|
-
=> (simplified-locator :: <directory-locator>)
|
217
|
-
let path = locator.locator-path;
|
218
|
-
let relative? = locator.locator-relative?;
|
219
|
-
let resolve-parent? = ~locator.locator-might-have-links?;
|
220
|
-
let simplified-path
|
221
|
-
= simplify-path(path,
|
222
|
-
resolve-parent?: resolve-parent?,
|
223
|
-
relative?: relative?);
|
224
|
-
if (path ~= simplified-path)
|
225
|
-
make(object-class(locator),
|
226
|
-
server: locator.locator-server,
|
227
|
-
path: simplified-path,
|
228
|
-
relative?: locator.locator-relative?)
|
229
|
-
else
|
230
|
-
locator
|
231
|
-
end
|
232
|
-
end method simplify-locator;
|
233
|
-
|
234
|
-
define method simplify-locator
|
235
|
-
(locator :: <file-locator>) => (simplified-locator :: <file-locator>)
|
236
|
-
let directory = locator.locator-directory;
|
237
|
-
let simplified-directory = directory & simplify-locator(directory);
|
238
|
-
if (directory ~= simplified-directory)
|
239
|
-
make(object-class(locator),
|
240
|
-
directory: simplified-directory,
|
241
|
-
base: locator.locator-base,
|
242
|
-
extension: locator.locator-extension)
|
243
|
-
else
|
244
|
-
locator
|
245
|
-
end
|
246
|
-
end method simplify-locator;
|
247
|
-
|
248
|
-
/// Subdirectory locator
|
249
|
-
|
250
|
-
define open generic subdirectory-locator
|
251
|
-
(locator :: <directory-locator>, #rest sub-path)
|
252
|
-
=> (subdirectory :: <directory-locator>);
|
253
|
-
|
254
|
-
define method subdirectory-locator
|
255
|
-
(locator :: <directory-locator>, #rest sub-path)
|
256
|
-
=> (subdirectory :: <directory-locator>)
|
257
|
-
let old-path = locator.locator-path;
|
258
|
-
let new-path = concatenate-as(<simple-object-vector>, old-path, sub-path);
|
259
|
-
make(object-class(locator),
|
260
|
-
server: locator.locator-server,
|
261
|
-
path: new-path,
|
262
|
-
relative?: locator.locator-relative?)
|
263
|
-
end method subdirectory-locator;
|
264
|
-
|
265
|
-
/// Relative locator
|
266
|
-
|
267
|
-
define open generic relative-locator
|
268
|
-
(locator :: <physical-locator>, from-locator :: <physical-locator>)
|
269
|
-
=> (relative-locator :: <physical-locator>);
|
270
|
-
|
271
|
-
define method relative-locator
|
272
|
-
(locator :: <directory-locator>, from-locator :: <directory-locator>)
|
273
|
-
=> (relative-locator :: <directory-locator>)
|
274
|
-
let path = locator.locator-path;
|
275
|
-
let from-path = from-locator.locator-path;
|
276
|
-
case
|
277
|
-
~locator.locator-relative? & from-locator.locator-relative? =>
|
278
|
-
locator-error
|
279
|
-
("Cannot find relative path of absolute locator %= from relative locator %=",
|
280
|
-
locator, from-locator);
|
281
|
-
locator.locator-server ~= from-locator.locator-server =>
|
282
|
-
locator;
|
283
|
-
path = from-path =>
|
284
|
-
make(object-class(locator),
|
285
|
-
path: vector(#"self"),
|
286
|
-
relative?: #t);
|
287
|
-
otherwise =>
|
288
|
-
make(object-class(locator),
|
289
|
-
path: relative-path(path, from-path, test: locator.locator-test),
|
290
|
-
relative?: #t);
|
291
|
-
end
|
292
|
-
end method relative-locator;
|
293
|
-
|
294
|
-
define method relative-locator
|
295
|
-
(locator :: <file-locator>, from-directory :: <directory-locator>)
|
296
|
-
=> (relative-locator :: <file-locator>)
|
297
|
-
let directory = locator.locator-directory;
|
298
|
-
let relative-directory = directory & relative-locator(directory, from-directory);
|
299
|
-
if (relative-directory ~= directory)
|
300
|
-
simplify-locator
|
301
|
-
(make(object-class(locator),
|
302
|
-
directory: relative-directory,
|
303
|
-
base: locator.locator-base,
|
304
|
-
extension: locator.locator-extension))
|
305
|
-
else
|
306
|
-
locator
|
307
|
-
end
|
308
|
-
end method relative-locator;
|
309
|
-
|
310
|
-
define method relative-locator
|
311
|
-
(locator :: <physical-locator>, from-locator :: <file-locator>)
|
312
|
-
=> (relative-locator :: <physical-locator>)
|
313
|
-
let from-directory = from-locator.locator-directory;
|
314
|
-
case
|
315
|
-
from-directory =>
|
316
|
-
relative-locator(locator, from-directory);
|
317
|
-
~locator.locator-relative? =>
|
318
|
-
locator-error
|
319
|
-
("Cannot find relative path of absolute locator %= from relative locator %=",
|
320
|
-
locator, from-locator);
|
321
|
-
otherwise =>
|
322
|
-
locator;
|
323
|
-
end
|
324
|
-
end method relative-locator;
|
325
|
-
|
326
|
-
/// Merge locators
|
327
|
-
|
328
|
-
define open generic merge-locators
|
329
|
-
(locator :: <physical-locator>, from-locator :: <physical-locator>)
|
330
|
-
=> (merged-locator :: <physical-locator>);
|
331
|
-
|
332
|
-
/// Merge locators
|
333
|
-
|
334
|
-
define method merge-locators
|
335
|
-
(locator :: <directory-locator>, from-locator :: <directory-locator>)
|
336
|
-
=> (merged-locator :: <directory-locator>)
|
337
|
-
if (locator.locator-relative?)
|
338
|
-
let path = concatenate(from-locator.locator-path, locator.locator-path);
|
339
|
-
simplify-locator
|
340
|
-
(make(object-class(locator),
|
341
|
-
server: from-locator.locator-server,
|
342
|
-
path: path,
|
343
|
-
relative?: from-locator.locator-relative?))
|
344
|
-
else
|
345
|
-
locator
|
346
|
-
end
|
347
|
-
end method merge-locators;
|
348
|
-
|
349
|
-
define method merge-locators
|
350
|
-
(locator :: <file-locator>, from-locator :: <directory-locator>)
|
351
|
-
=> (merged-locator :: <file-locator>)
|
352
|
-
let directory = locator.locator-directory;
|
353
|
-
let merged-directory
|
354
|
-
= if (directory)
|
355
|
-
merge-locators(directory, from-locator)
|
356
|
-
else
|
357
|
-
simplify-locator(from-locator)
|
358
|
-
end;
|
359
|
-
if (merged-directory ~= directory)
|
360
|
-
make(object-class(locator),
|
361
|
-
directory: merged-directory,
|
362
|
-
base: locator.locator-base,
|
363
|
-
extension: locator.locator-extension)
|
364
|
-
else
|
365
|
-
locator
|
366
|
-
end
|
367
|
-
end method merge-locators;
|
368
|
-
|
369
|
-
define method merge-locators
|
370
|
-
(locator :: <physical-locator>, from-locator :: <file-locator>)
|
371
|
-
=> (merged-locator :: <physical-locator>)
|
372
|
-
let from-directory = from-locator.locator-directory;
|
373
|
-
if (from-directory)
|
374
|
-
merge-locators(locator, from-directory)
|
375
|
-
else
|
376
|
-
locator
|
377
|
-
end
|
378
|
-
end method merge-locators;
|
379
|
-
|
380
|
-
/// Locator protocols
|
381
|
-
|
382
|
-
define sideways method supports-open-locator?
|
383
|
-
(locator :: <file-locator>) => (openable? :: <boolean>)
|
384
|
-
~locator.locator-relative?
|
385
|
-
end method supports-open-locator?;
|
386
|
-
|
387
|
-
define sideways method open-locator
|
388
|
-
(locator :: <file-locator>, #rest keywords, #key, #all-keys)
|
389
|
-
=> (stream :: <stream>)
|
390
|
-
apply(open-file-stream, locator, keywords)
|
391
|
-
end method open-locator;
|
392
|
-
</textarea></div>
|
393
|
-
|
394
|
-
<script>
|
395
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
396
|
-
mode: "text/x-dylan",
|
397
|
-
lineNumbers: true,
|
398
|
-
matchBrackets: true,
|
399
|
-
continueComments: "Enter",
|
400
|
-
extraKeys: {"Ctrl-Q": "toggleComment"},
|
401
|
-
tabMode: "indent",
|
402
|
-
indentUnit: 2
|
403
|
-
});
|
404
|
-
</script>
|
405
|
-
|
406
|
-
<p><strong>MIME types defined:</strong> <code>text/x-dylan</code>.</p>
|
407
|
-
</article>
|
@@ -1,88 +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}, "dylan");
|
6
|
-
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
|
7
|
-
|
8
|
-
MT('comments',
|
9
|
-
'[comment // This is a line comment]',
|
10
|
-
'[comment /* This is a block comment */]',
|
11
|
-
'[comment /* This is a multi]',
|
12
|
-
'[comment line comment]',
|
13
|
-
'[comment */]',
|
14
|
-
'[comment /* And this is a /*]',
|
15
|
-
'[comment /* nested */ comment */]');
|
16
|
-
|
17
|
-
MT('unary_operators',
|
18
|
-
'[operator -][variable a]',
|
19
|
-
'[operator -] [variable a]',
|
20
|
-
'[operator ~][variable a]',
|
21
|
-
'[operator ~] [variable a]');
|
22
|
-
|
23
|
-
MT('binary_operators',
|
24
|
-
'[variable a] [operator +] [variable b]',
|
25
|
-
'[variable a] [operator -] [variable b]',
|
26
|
-
'[variable a] [operator *] [variable b]',
|
27
|
-
'[variable a] [operator /] [variable b]',
|
28
|
-
'[variable a] [operator ^] [variable b]',
|
29
|
-
'[variable a] [operator =] [variable b]',
|
30
|
-
'[variable a] [operator ==] [variable b]',
|
31
|
-
'[variable a] [operator ~=] [variable b]',
|
32
|
-
'[variable a] [operator ~==] [variable b]',
|
33
|
-
'[variable a] [operator <] [variable b]',
|
34
|
-
'[variable a] [operator <=] [variable b]',
|
35
|
-
'[variable a] [operator >] [variable b]',
|
36
|
-
'[variable a] [operator >=] [variable b]',
|
37
|
-
'[variable a] [operator &] [variable b]',
|
38
|
-
'[variable a] [operator |] [variable b]',
|
39
|
-
'[variable a] [operator :=] [variable b]');
|
40
|
-
|
41
|
-
MT('integers',
|
42
|
-
'[number 1]',
|
43
|
-
'[number 123]',
|
44
|
-
'[number -123]',
|
45
|
-
'[number +456]',
|
46
|
-
'[number #b010]',
|
47
|
-
'[number #o073]',
|
48
|
-
'[number #xabcDEF123]');
|
49
|
-
|
50
|
-
MT('floats',
|
51
|
-
'[number .3]',
|
52
|
-
'[number -1.]',
|
53
|
-
'[number -2.335]',
|
54
|
-
'[number +3.78d1]',
|
55
|
-
'[number 3.78s-1]',
|
56
|
-
'[number -3.32e+5]');
|
57
|
-
|
58
|
-
MT('characters_and_strings',
|
59
|
-
"[string 'a']",
|
60
|
-
"[string '\\\\'']",
|
61
|
-
'[string ""]',
|
62
|
-
'[string "a"]',
|
63
|
-
'[string "abc def"]',
|
64
|
-
'[string "More escaped characters: \\\\\\\\ \\\\a \\\\b \\\\e \\\\f \\\\n \\\\r \\\\t \\\\0 ..."]');
|
65
|
-
|
66
|
-
MT('brackets',
|
67
|
-
'[bracket #[[]]]',
|
68
|
-
'[bracket #()]',
|
69
|
-
'[bracket #(][number 1][bracket )]',
|
70
|
-
'[bracket [[][number 1][punctuation ,] [number 3][bracket ]]]',
|
71
|
-
'[bracket ()]',
|
72
|
-
'[bracket {}]',
|
73
|
-
'[keyword if] [bracket (][variable foo][bracket )]',
|
74
|
-
'[bracket (][number 1][bracket )]',
|
75
|
-
'[bracket [[][number 1][bracket ]]]');
|
76
|
-
|
77
|
-
MT('hash_words',
|
78
|
-
'[punctuation ##]',
|
79
|
-
'[atom #f]', '[atom #F]',
|
80
|
-
'[atom #t]', '[atom #T]',
|
81
|
-
'[atom #all-keys]',
|
82
|
-
'[atom #include]',
|
83
|
-
'[atom #key]',
|
84
|
-
'[atom #next]',
|
85
|
-
'[atom #rest]',
|
86
|
-
'[string #"foo"]',
|
87
|
-
'[error #invalid]');
|
88
|
-
})();
|
@@ -1,195 +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("ebnf", function (config) {
|
15
|
-
var commentType = {slash: 0, parenthesis: 1};
|
16
|
-
var stateType = {comment: 0, _string: 1, characterClass: 2};
|
17
|
-
var bracesMode = null;
|
18
|
-
|
19
|
-
if (config.bracesMode)
|
20
|
-
bracesMode = CodeMirror.getMode(config, config.bracesMode);
|
21
|
-
|
22
|
-
return {
|
23
|
-
startState: function () {
|
24
|
-
return {
|
25
|
-
stringType: null,
|
26
|
-
commentType: null,
|
27
|
-
braced: 0,
|
28
|
-
lhs: true,
|
29
|
-
localState: null,
|
30
|
-
stack: [],
|
31
|
-
inDefinition: false
|
32
|
-
};
|
33
|
-
},
|
34
|
-
token: function (stream, state) {
|
35
|
-
if (!stream) return;
|
36
|
-
|
37
|
-
//check for state changes
|
38
|
-
if (state.stack.length === 0) {
|
39
|
-
//strings
|
40
|
-
if ((stream.peek() == '"') || (stream.peek() == "'")) {
|
41
|
-
state.stringType = stream.peek();
|
42
|
-
stream.next(); // Skip quote
|
43
|
-
state.stack.unshift(stateType._string);
|
44
|
-
} else if (stream.match(/^\/\*/)) { //comments starting with /*
|
45
|
-
state.stack.unshift(stateType.comment);
|
46
|
-
state.commentType = commentType.slash;
|
47
|
-
} else if (stream.match(/^\(\*/)) { //comments starting with (*
|
48
|
-
state.stack.unshift(stateType.comment);
|
49
|
-
state.commentType = commentType.parenthesis;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
//return state
|
54
|
-
//stack has
|
55
|
-
switch (state.stack[0]) {
|
56
|
-
case stateType._string:
|
57
|
-
while (state.stack[0] === stateType._string && !stream.eol()) {
|
58
|
-
if (stream.peek() === state.stringType) {
|
59
|
-
stream.next(); // Skip quote
|
60
|
-
state.stack.shift(); // Clear flag
|
61
|
-
} else if (stream.peek() === "\\") {
|
62
|
-
stream.next();
|
63
|
-
stream.next();
|
64
|
-
} else {
|
65
|
-
stream.match(/^.[^\\\"\']*/);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
return state.lhs ? "property string" : "string"; // Token style
|
69
|
-
|
70
|
-
case stateType.comment:
|
71
|
-
while (state.stack[0] === stateType.comment && !stream.eol()) {
|
72
|
-
if (state.commentType === commentType.slash && stream.match(/\*\//)) {
|
73
|
-
state.stack.shift(); // Clear flag
|
74
|
-
state.commentType = null;
|
75
|
-
} else if (state.commentType === commentType.parenthesis && stream.match(/\*\)/)) {
|
76
|
-
state.stack.shift(); // Clear flag
|
77
|
-
state.commentType = null;
|
78
|
-
} else {
|
79
|
-
stream.match(/^.[^\*]*/);
|
80
|
-
}
|
81
|
-
}
|
82
|
-
return "comment";
|
83
|
-
|
84
|
-
case stateType.characterClass:
|
85
|
-
while (state.stack[0] === stateType.characterClass && !stream.eol()) {
|
86
|
-
if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) {
|
87
|
-
state.stack.shift();
|
88
|
-
}
|
89
|
-
}
|
90
|
-
return "operator";
|
91
|
-
}
|
92
|
-
|
93
|
-
var peek = stream.peek();
|
94
|
-
|
95
|
-
if (bracesMode !== null && (state.braced || peek === "{")) {
|
96
|
-
if (state.localState === null)
|
97
|
-
state.localState = CodeMirror.startState(bracesMode);
|
98
|
-
|
99
|
-
var token = bracesMode.token(stream, state.localState),
|
100
|
-
text = stream.current();
|
101
|
-
|
102
|
-
if (!token) {
|
103
|
-
for (var i = 0; i < text.length; i++) {
|
104
|
-
if (text[i] === "{") {
|
105
|
-
if (state.braced === 0) {
|
106
|
-
token = "matchingbracket";
|
107
|
-
}
|
108
|
-
state.braced++;
|
109
|
-
} else if (text[i] === "}") {
|
110
|
-
state.braced--;
|
111
|
-
if (state.braced === 0) {
|
112
|
-
token = "matchingbracket";
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
return token;
|
118
|
-
}
|
119
|
-
|
120
|
-
//no stack
|
121
|
-
switch (peek) {
|
122
|
-
case "[":
|
123
|
-
stream.next();
|
124
|
-
state.stack.unshift(stateType.characterClass);
|
125
|
-
return "bracket";
|
126
|
-
case ":":
|
127
|
-
case "|":
|
128
|
-
case ";":
|
129
|
-
stream.next();
|
130
|
-
return "operator";
|
131
|
-
case "%":
|
132
|
-
if (stream.match("%%")) {
|
133
|
-
return "header";
|
134
|
-
} else if (stream.match(/[%][A-Za-z]+/)) {
|
135
|
-
return "keyword";
|
136
|
-
} else if (stream.match(/[%][}]/)) {
|
137
|
-
return "matchingbracket";
|
138
|
-
}
|
139
|
-
break;
|
140
|
-
case "/":
|
141
|
-
if (stream.match(/[\/][A-Za-z]+/)) {
|
142
|
-
return "keyword";
|
143
|
-
}
|
144
|
-
case "\\":
|
145
|
-
if (stream.match(/[\][a-z]+/)) {
|
146
|
-
return "string-2";
|
147
|
-
}
|
148
|
-
case ".":
|
149
|
-
if (stream.match(".")) {
|
150
|
-
return "atom";
|
151
|
-
}
|
152
|
-
case "*":
|
153
|
-
case "-":
|
154
|
-
case "+":
|
155
|
-
case "^":
|
156
|
-
if (stream.match(peek)) {
|
157
|
-
return "atom";
|
158
|
-
}
|
159
|
-
case "$":
|
160
|
-
if (stream.match("$$")) {
|
161
|
-
return "builtin";
|
162
|
-
} else if (stream.match(/[$][0-9]+/)) {
|
163
|
-
return "variable-3";
|
164
|
-
}
|
165
|
-
case "<":
|
166
|
-
if (stream.match(/<<[a-zA-Z_]+>>/)) {
|
167
|
-
return "builtin";
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
if (stream.match(/^\/\//)) {
|
172
|
-
stream.skipToEnd();
|
173
|
-
return "comment";
|
174
|
-
} else if (stream.match(/return/)) {
|
175
|
-
return "operator";
|
176
|
-
} else if (stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)) {
|
177
|
-
if (stream.match(/(?=[\(.])/)) {
|
178
|
-
return "variable";
|
179
|
-
} else if (stream.match(/(?=[\s\n]*[:=])/)) {
|
180
|
-
return "def";
|
181
|
-
}
|
182
|
-
return "variable-2";
|
183
|
-
} else if (["[", "]", "(", ")"].indexOf(stream.peek()) != -1) {
|
184
|
-
stream.next();
|
185
|
-
return "bracket";
|
186
|
-
} else if (!stream.eatSpace()) {
|
187
|
-
stream.next();
|
188
|
-
}
|
189
|
-
return null;
|
190
|
-
}
|
191
|
-
};
|
192
|
-
});
|
193
|
-
|
194
|
-
CodeMirror.defineMIME("text/x-ebnf", "ebnf");
|
195
|
-
});
|